.webentwicklung {
    --lp-cyan: #3abff0;
    --lp-cyan-deep: #0d7ea8;
    --lp-ink: #1a1a1a;
    --lp-muted: #555;
    --lp-surface: #eef9fd;
    --lp-radius: 12px;
    --lp-header-height: 100px;

    /* clip transforms (hero scale / reveal) that Chrome counts into scrollWidth */
    overflow-x: clip;

    main {
        padding-bottom: 0;
        overflow-x: clip;
        flex: 1 0 auto;
    }

    /* .page section { padding } otherwise hits the hero */
    .lp-hero {
        padding: 0;
        position: relative;
        height: calc(100svh - var(--lp-header-height));
        min-height: calc(100svh - var(--lp-header-height));
        max-height: calc(100dvh - var(--lp-header-height));
        display: flex;
        align-items: flex-end;
        color: #fff;
        isolation: isolate;
        overflow: hidden;
    }

    .lp-hero__media {
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url("/assets/img/webentwicklung/hero.png") center / cover no-repeat;
        transform: scale(1.04);
        animation: lp-hero-media 1.8s ease-out both;
    }

    .lp-hero__shade {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            105deg,
            rgba(13, 126, 168, 0.88) 0%,
            rgba(58, 191, 240, 0.62) 55%,
            rgba(58, 191, 240, 0.35) 100%
        );
        animation: lp-hero-shade 1.5s ease-out both;
    }

    .lp-hero__inner {
        position: relative;
        z-index: 2;
        width: 100%;
        padding-top: 72px;
        padding-bottom: 64px;
    }

    .lp-hero__title {
        margin: 0 0 18px;
        font-family: "Annie Use Your Telescope", sans-serif;
        font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem);
        line-height: 1.05;
        color: #fff;
        text-align: left;
        font-weight: 400;
        animation: lp-hero-in 1.15s ease-out 0.25s both;
    }

    .lp-hero__lead {
        margin: 0 0 28px;
        max-width: 34rem;
        font-size: 1.15rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.92);
        text-align: left;
        animation: lp-hero-in 1.15s ease-out 0.5s both;
    }

    .lp-hero__cta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        animation: lp-hero-in 1.15s ease-out 0.75s both;
    }

    .lp-section {
        padding: 72px 0;
    }

    .lp-section--surface {
        background: var(--lp-surface);
    }

    .lp-section__title {
        margin: 0 0 16px;
        font-family: "Annie Use Your Telescope", sans-serif;
        font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
        line-height: 1.1;
        color: var(--lp-ink);
        text-align: left;
        font-weight: 400;
    }

    .lp-section__title--center {
        text-align: center;
    }

    .lp-section__intro {
        margin: 0 auto 40px;
        max-width: 40rem;
        text-align: center;
        color: var(--lp-muted);
    }

    .lp-section__copy p {
        text-align: left;
    }

    .lp-section__grid {
        display: grid;
        gap: 36px;
        align-items: center;

        @media screen and (min-width: 900px) {
            grid-template-columns: 1.05fr 0.95fr;
            gap: 56px;
        }
    }

    .lp-section__figure {
        margin: 0;
        border-radius: var(--lp-radius);
        overflow: hidden;
        box-shadow: 0 18px 40px rgba(13, 126, 168, 0.14);

        img {
            display: block;
            width: 100%;
            height: auto;
        }
    }

    .lp-features {
        display: grid;
        gap: 28px;

        @media screen and (min-width: 700px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .lp-feature {
        display: flex;
        flex-direction: column;
        gap: 12px;

        img {
            width: 100%;
            height: auto;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            border-radius: var(--lp-radius);
        }

        h3 {
            margin: 0;
            font-family: var(--font-sans);
            font-size: 1.25rem;
            color: var(--lp-ink);
            text-align: left;
        }

        p {
            margin: 0;
            text-align: left;
            font-size: 1.05rem;
            line-height: 1.55;
        }
    }

    .lp-feature__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: var(--lp-cyan);
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
    }

    .lp-packages {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--lp-radius);
        border: 1px solid rgba(58, 191, 240, 0.35);
        background: #fff;
    }

    .lp-packages__table {
        width: 100%;
        min-width: 640px;
        border-collapse: collapse;
        font-size: 1rem;

        th,
        td {
            padding: 16px 18px;
            text-align: left;
            border-bottom: 1px solid #e8e8e8;
            vertical-align: middle;
        }

        thead th {
            background: #f7fbfd;
            font-family: var(--font-sans);
            font-weight: 700;
            color: var(--lp-ink);
            text-align: center;

            &:first-child {
                text-align: left;
            }
        }

        tbody th {
            font-weight: 600;
            color: var(--lp-ink);
            max-width: 220px;
        }

        td {
            text-align: center;
            color: var(--lp-muted);
        }

        .is-highlight {
            background: rgba(58, 191, 240, 0.12);
            color: var(--lp-ink);
            font-weight: 600;
        }

        thead th.is-highlight {
            background: var(--lp-cyan);
            color: #fff;
        }
    }

    .lp-check {
        color: var(--lp-cyan-deep);
        font-weight: 700;
        text-transform: lowercase;
    }

    .lp-packages__note {
        margin: 20px 0 0;
        text-align: center;
        font-size: 0.95rem;
        color: var(--lp-muted);
    }

    .lp-steps {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 24px;

        @media screen and (min-width: 900px) {
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
    }

    .lp-step {
        position: relative;
        padding: 0;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        opacity: 0;
        transform: translateY(28px);
        transition:
            opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
            transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: calc(var(--lp-step-index, 0) * 220ms);

        h3 {
            margin: 12px 0 8px;
            font-family: var(--font-sans);
            font-size: 1.2rem;
            color: var(--lp-ink);
            text-align: left;
        }

        p {
            margin: 0;
            text-align: left;
            font-size: 1.05rem;
            line-height: 1.5;
        }
    }

    .lp-steps.is-visible .lp-step {
        opacity: 1;
        transform: translateY(0);
    }

    .lp-step__num {
        box-sizing: border-box;
        display: flex;
        flex: 0 0 42px;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
        margin: 0;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        background: var(--lp-cyan);
        color: #fff;
        font-weight: 700;
        font-family: var(--font-sans);
        font-size: 1rem;
        line-height: 1;
        text-align: center;
    }

    .lp-split {
        display: grid;
        gap: 20px;

        @media screen and (min-width: 800px) {
            grid-template-columns: 1fr 1fr;
            gap: 28px;
        }
    }

    .lp-split__col {
        padding: 28px 24px;
        border-radius: var(--lp-radius);
        background: #f5f5f5;
        border-left: 4px solid var(--lp-cyan);

        h3 {
            margin: 0 0 14px;
            font-family: var(--font-sans);
            font-size: 1.25rem;
            color: var(--lp-ink);
            text-align: left;
        }

        ul {
            margin: 0;
            padding-left: 1.15rem;
            color: var(--lp-muted);

            li {
                margin-bottom: 8px;
                line-height: 1.45;
            }
        }

        &--accent {
            background: rgba(58, 191, 240, 0.12);
            border-left-color: var(--lp-cyan-deep);
        }
    }

    .lp-cta-final {
        padding: 80px 0;
        /* deep end — separates from the site footer’s #anydesk cyan band */
        background: linear-gradient(160deg, #083647 0%, var(--lp-cyan-deep) 100%);
        color: #fff;
        text-align: center;
    }

    .lp-cta-final__title {
        margin: 0 0 14px;
        font-family: "Annie Use Your Telescope", sans-serif;
        font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
        line-height: 1.1;
        color: #fff;
        text-align: center;
        font-weight: 400;
    }

    .lp-cta-final__text {
        margin: 0 auto 28px;
        max-width: 36rem;
        color: rgba(255, 255, 255, 0.92);
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.55;
    }

    .lp-cta-final__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;

        .btn.primary {
            background: #fff !important;
            border-color: #fff;
            color: var(--lp-cyan-deep);

            &:hover {
                background: transparent !important;
                color: #fff !important;
                border-color: #fff;
            }
        }

        .btn.secondary {
            background: transparent !important;
            border-color: #fff;
            color: #fff;

            &:hover {
                background: #fff !important;
                color: var(--lp-cyan-deep) !important;
            }
        }
    }

    .lp-reveal {
        opacity: 0;
        transition:
            opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
            transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;

        &[data-reveal-delay="1"] { transition-delay: 140ms; }
        &[data-reveal-delay="2"] { transition-delay: 280ms; }
        &[data-reveal-delay="3"] { transition-delay: 420ms; }
        &[data-reveal-delay="4"] { transition-delay: 560ms; }

        &--up { transform: translateY(36px); }
        &--down { transform: translateY(-36px); }
        &--left { transform: translateX(-40px); }
        &--right { transform: translateX(40px); }

        &.is-visible {
            opacity: 1;
            transform: none;
        }
    }
}

@keyframes lp-hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lp-hero-media {
    from {
        opacity: 0.4;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes lp-hero-shade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .webentwicklung {
        .lp-hero__media,
        .lp-hero__shade,
        .lp-hero__title,
        .lp-hero__lead,
        .lp-hero__cta {
            animation: none;
        }

        .lp-hero__media {
            transform: none;
        }

        .lp-reveal,
        .lp-step {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
}
