/* ==========================================================================
   Landing Page Styles — hero.cad2calc.com
   Extends theme-125.css, does NOT override existing kalkulator styles.
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    --lp-primary: #18106E;
    --lp-primary-hover: #0e00b8;
    --lp-accent: #C9352F;
    --lp-accent-light: rgba(201, 53, 47, 0.10);
    --lp-accent-glow: rgba(201, 53, 47, 0.35);
    --lp-dark: #1a1d23;
    --lp-dark-card: #242830;
    --lp-dark-lighter: #2d3139;
    --lp-light-bg: #f5f6f8;
    --lp-white: #ffffff;
    --lp-text-on-dark: #e8eaed;
    --lp-text-muted-dark: #9ca3af;
    --lp-text-on-light: #242424;
    --lp-text-muted-light: #6b7280;
    --lp-border-subtle: rgba(255, 255, 255, 0.08);
    --lp-transition: 0.3s ease;
}


/* ---------- Hero Section ---------- */
.lp-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--lp-dark);
}

/* Full-cover background image layer */
.lp-hero__bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero_image.jpg') center center / cover no-repeat;
    z-index: 0;
}

/* Dark gradient overlay on top of the image */
.lp-hero__overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 29, 35, 0.88) 0%,
        rgba(26, 29, 35, 0.72) 40%,
        rgba(45, 49, 57, 0.55) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade to next section */
.lp-hero__overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--lp-dark));
    pointer-events: none;
    z-index: 1;
}

.lp-hero__content {
    position: relative;
    z-index: 2;
}

.lp-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--lp-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lp-hero__title-accent {
    color: var(--lp-accent);
}

.lp-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--lp-text-muted-dark);
    line-height: 1.6;
    max-width: 640px;
}

/* Hero trust badges row */
.lp-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.lp-hero__badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lp-text-on-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.lp-hero__badge-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lp-accent-light);
    color: var(--lp-accent);
    font-size: 1rem;
}


/* ---------- Buttons (landing-specific) ---------- */
.lp-btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: transparent;
    color: var(--lp-white);
    border: 2px solid var(--lp-primary-hover);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--lp-transition), color var(--lp-transition);
    border-radius: 0;
}

.lp-btn-primary:hover,
.lp-btn-primary:focus {
    background-color: var(--lp-primary-hover);
    border-color: var(--lp-primary-hover);
    color: var(--lp-white);
    text-decoration: none;
}

.lp-btn-outline {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: transparent;
    color: var(--lp-white);
    border: 2px solid var(--lp-accent);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--lp-transition), color var(--lp-transition);
    border-radius: 0;
}

.lp-btn-outline:hover,
.lp-btn-outline:focus {
    background-color: var(--lp-accent);
    color: var(--lp-white);
    text-decoration: none;
}


/* ---------- Section Utilities ---------- */
.lp-section {
    padding: 4.5rem 0;
}

.lp-section--dark {
    background-color: var(--lp-dark);
    color: var(--lp-text-on-dark);
}

.lp-section--light {
    background-color: var(--lp-light-bg);
    color: var(--lp-text-on-light);
}

.lp-section--white {
    background-color: var(--lp-white);
    color: var(--lp-text-on-light);
}

.lp-section__heading {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.lp-section__heading--dark {
    color: var(--lp-white);
}

.lp-section__heading--light {
    color: var(--lp-text-on-light);
}

.lp-section__subheading {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
}

.lp-section__subheading--dark {
    color: var(--lp-text-muted-dark);
}

.lp-section__subheading--light {
    color: var(--lp-text-muted-light);
}

/* Accent underline for section headings */
.lp-accent-line {
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--lp-accent);
    margin-top: 0.75rem;
}

.lp-accent-line--center {
    margin-left: auto;
    margin-right: auto;
}


/* ---------- Product Category Cards ---------- */
.lp-card {
    position: relative;
    background-color: var(--lp-white);
    border: 1px solid #e5e7eb;
    padding: 2rem 1.5rem;
    transition:
        transform var(--lp-transition),
        box-shadow var(--lp-transition),
        border-color var(--lp-transition);
    text-decoration: none;
    color: var(--lp-text-on-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
}

.lp-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 25px rgba(201, 53, 47, 0.15),
        0 0 0 1px rgba(201, 53, 47, 0.12);
    border-color: rgba(201, 53, 47, 0.3);
    text-decoration: none;
    color: var(--lp-text-on-light);
}

.lp-card:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
}

.lp-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lp-accent-light);
    color: var(--lp-accent);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    transition: background-color var(--lp-transition);
}

.lp-card:hover .lp-card__icon {
    background-color: var(--lp-accent);
    color: var(--lp-white);
}

.lp-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--lp-text-on-light);
    margin-bottom: 0.5rem;
}

.lp-card__text {
    font-size: 0.92rem;
    color: var(--lp-text-muted-light);
    line-height: 1.55;
    flex-grow: 1;
}

.lp-card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lp-primary);
    margin-top: 1rem;
    transition: gap var(--lp-transition);
}

.lp-card:hover .lp-card__arrow {
    gap: 0.7rem;
    color: var(--lp-accent);
}

/* Dark variant for cards on dark backgrounds */
.lp-card--dark {
    background-color: var(--lp-dark-card);
    border-color: var(--lp-border-subtle);
    color: var(--lp-text-on-dark);
}

.lp-card--dark:hover {
    box-shadow:
        0 8px 30px rgba(201, 53, 47, 0.20),
        0 0 0 1px rgba(201, 53, 47, 0.15);
    border-color: rgba(201, 53, 47, 0.35);
    color: var(--lp-text-on-dark);
}

.lp-card--dark .lp-card__title {
    color: var(--lp-white);
}

.lp-card--dark .lp-card__text {
    color: var(--lp-text-muted-dark);
}

.lp-card--dark .lp-card__arrow {
    color: var(--lp-text-on-dark);
}

.lp-card--dark:hover .lp-card__arrow {
    color: var(--lp-accent);
}


/* ---------- Steps / "So funktioniert's" ---------- */
.lp-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    counter-reset: step-counter;
    position: relative;
}

.lp-step {
    flex: 1 1 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
    counter-increment: step-counter;
}

/* Connecting line between steps */
.lp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.8rem;
    right: 0;
    width: 50%;
    height: 2px;
    background-color: #d1d5db;
}

.lp-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 2.8rem;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: #d1d5db;
}

.lp-step__number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lp-primary);
    color: var(--lp-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    border-radius: 0;
}

.lp-step__icon {
    font-size: 1.3rem;
}

.lp-step__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-text-on-light);
    margin-bottom: 0.35rem;
}

.lp-step__text {
    font-size: 0.88rem;
    color: var(--lp-text-muted-light);
    line-height: 1.5;
}

/* Hide connecting lines on small screens, use vertical layout */
@media (max-width: 767px) {
    .lp-step:not(:last-child)::after,
    .lp-step:not(:first-child)::before {
        display: none;
    }

    .lp-step {
        text-align: left;
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .lp-step__number {
        flex-shrink: 0;
        margin-bottom: 0;
    }
}


/* ---------- Trust / Machines Section ---------- */
.lp-trust-card {
    text-align: center;
    padding: 2rem 1.25rem;
}

.lp-trust-card__value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--lp-accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.lp-trust-card__label {
    font-size: 0.95rem;
    color: var(--lp-text-muted-dark);
    font-weight: 500;
}

/* Machines/capabilities grid */
.lp-capability {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
}

.lp-capability__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lp-accent-light);
    color: var(--lp-accent);
    font-size: 1.15rem;
}

.lp-capability__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lp-white);
    margin-bottom: 0.2rem;
}

.lp-capability__text {
    font-size: 0.88rem;
    color: var(--lp-text-muted-dark);
    line-height: 1.5;
    margin-bottom: 0;
}


/* ---------- CTA Banner ---------- */
.lp-cta {
    background: linear-gradient(
        135deg,
        var(--lp-primary) 0%,
        #2218a0 100%
    );
    padding: 3.5rem 0;
}

.lp-cta__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--lp-white);
    margin-bottom: 0.5rem;
}

.lp-cta__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.lp-btn-white {
    display: inline-block;
    padding: 0.85rem 2rem;
    background-color: var(--lp-white);
    color: var(--lp-primary);
    border: 2px solid var(--lp-white);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--lp-transition), color var(--lp-transition);
    border-radius: 0;
}

.lp-btn-white:hover,
.lp-btn-white:focus {
    background-color: transparent;
    color: var(--lp-white);
    text-decoration: none;
}


/* ---------- Footer ---------- */
.lp-footer {
    background-color: var(--lp-dark);
    color: var(--lp-text-muted-dark);
    padding: 3rem 0 1.5rem;
    border-top: 3px solid var(--lp-accent);
}

.lp-footer__heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lp-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-footer__link {
    color: var(--lp-text-muted-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--lp-transition);
    display: block;
    padding: 0.2rem 0;
}

.lp-footer__link:hover {
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-footer__text {
    font-size: 0.9rem;
}

.lp-footer__bottom {
    border-top: 1px solid var(--lp-border-subtle);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

.lp-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--lp-dark-lighter);
    color: var(--lp-text-muted-dark);
    text-decoration: none;
    transition: background-color var(--lp-transition), color var(--lp-transition);
    border-radius: 0;
}

.lp-footer__social-link:hover {
    background-color: var(--lp-accent);
    color: var(--lp-white);
    text-decoration: none;
}


/* ---------- SEO Content Section ---------- */
.lp-seo-text h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--lp-text-on-light);
    margin-bottom: 0.75rem;
}

.lp-seo-text p {
    font-size: 0.95rem;
    color: var(--lp-text-muted-light);
    line-height: 1.7;
}


/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lp-fade-up {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .lp-fade-up.lp-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays for card grids */
    .lp-fade-up-delay-1 { transition-delay: 0.1s; }
    .lp-fade-up-delay-2 { transition-delay: 0.2s; }
    .lp-fade-up-delay-3 { transition-delay: 0.3s; }
    .lp-fade-up-delay-4 { transition-delay: 0.4s; }
    .lp-fade-up-delay-5 { transition-delay: 0.5s; }
}
