/*
 * Changelog
 * 2026-08-13
 * - Eigenständiges, responsives Conversion-Layout für /garzeiten-app erstellt.
 * - Hero, Store-Grafik, Benefit-Leiste, Smartphone-Screenshots, Feature-Karten, Tester-Bereich und Abschluss-CTA gestaltet.
 * - Sämtliche Regeln unter .afg-app-page gekapselt, damit globale AFG-Seiten und Rechner-Komponenten unverändert bleiben.
 */

.afg-app-page {
    --app-bg: #09111e;
    --app-surface: #0e1a2a;
    --app-surface-soft: #122238;
    --app-border: rgba(148, 163, 184, .18);
    --app-border-strong: rgba(255, 145, 32, .36);
    --app-text: #f7f9fc;
    --app-muted: #a9b7c8;
    --app-orange: #ff941f;
    --app-orange-strong: #ff7a00;
    --app-green: #74d06f;
    width: 100%;
    padding: .9rem 0 2.6rem;
    color: var(--app-text);
}

.afg-app-page *,
.afg-app-page *::before,
.afg-app-page *::after {
    box-sizing: border-box;
}

.afg-app-page a {
    text-decoration: none;
}

.afg-app-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
    align-items: center;
    margin-bottom: 1rem;
    color: #7f91a6;
    font-size: .78rem;
}

.afg-app-breadcrumb a {
    display: inline-flex;
    gap: .34rem;
    align-items: center;
    color: #aebbd0;
}

.afg-app-breadcrumb a:hover {
    color: #fff;
}

.afg-app-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2.4rem);
    border: 1px solid var(--app-border);
    border-radius: 24px;
    background: #0b1625;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.afg-app-kicker,
.afg-app-section-kicker {
    display: inline-flex;
    width: fit-content;
    gap: .45rem;
    align-items: center;
    color: var(--app-orange);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.afg-app-hero h1 {
    max-width: 760px;
    margin: .7rem 0 .8rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.afg-app-hero-lead {
    max-width: 700px;
    margin: 0 0 .85rem;
    color: #e8eef6;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: 650;
    line-height: 1.5;
}

.afg-app-hero-text {
    max-width: 680px;
    margin: 0;
    color: var(--app-muted);
    font-size: .98rem;
    line-height: 1.7;
}

.afg-app-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.35rem;
}

.afg-app-button {
    display: inline-flex;
    min-height: 46px;
    gap: .55rem;
    align-items: center;
    justify-content: center;
    padding: .76rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.afg-app-button:hover {
    transform: translateY(-1px);
}

.afg-app-button.is-primary {
    border-color: rgba(255, 173, 87, .42);
    color: #17100a;
    background: var(--app-orange);
    box-shadow: 0 10px 28px rgba(255, 122, 0, .18);
}

.afg-app-button.is-primary:hover {
    color: #120c07;
    background: #ffa13d;
}

.afg-app-button.is-secondary {
    border-color: var(--app-border);
    color: #dde6f0;
    background: rgba(255, 255, 255, .035);
}

.afg-app-button.is-secondary:hover {
    border-color: rgba(255, 148, 31, .45);
    color: #fff;
}

.afg-app-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: .52rem 1rem;
    margin-top: 1rem;
    color: #b9c6d5;
    font-size: .78rem;
    font-weight: 650;
}

.afg-app-hero-points span {
    display: inline-flex;
    gap: .34rem;
    align-items: center;
}

.afg-app-hero-points i {
    color: var(--app-green);
}

.afg-app-hero-visual {
    overflow: hidden;
    border: 1px solid rgba(255, 147, 32, .28);
    border-radius: 20px;
    background: #0b1016;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.afg-app-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.afg-app-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .9rem;
}

.afg-app-benefit {
    display: flex;
    min-width: 0;
    gap: .75rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid var(--app-border);
    border-radius: 15px;
    background: rgba(14, 26, 42, .82);
}

.afg-app-benefit-icon,
.afg-app-feature-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 148, 31, .25);
    border-radius: 12px;
    color: var(--app-orange);
    background: rgba(255, 148, 31, .08);
    font-size: 1.05rem;
}

.afg-app-benefit > span:last-child {
    min-width: 0;
}

.afg-app-benefit strong,
.afg-app-benefit small {
    display: block;
}

.afg-app-benefit strong {
    color: #fff;
    font-size: .88rem;
    line-height: 1.25;
}

.afg-app-benefit small {
    margin-top: .17rem;
    color: #8fa0b5;
    font-size: .72rem;
    line-height: 1.4;
}

.afg-app-section {
    margin-top: clamp(2.2rem, 5vw, 4rem);
}

.afg-app-section-head {
    max-width: 760px;
    margin: 0 auto 1.4rem;
    text-align: center;
}

.afg-app-section-head.is-compact {
    margin-bottom: 1rem;
}

.afg-app-section-head .afg-app-section-kicker {
    margin-inline: auto;
}

.afg-app-section-head h2,
.afg-app-test h2,
.afg-app-info h2,
.afg-app-final-cta h2 {
    margin: .45rem 0 .55rem;
    color: #fff;
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 820;
    letter-spacing: -.02em;
    line-height: 1.16;
}

.afg-app-section-head p {
    margin: 0;
    color: var(--app-muted);
    font-size: .93rem;
    line-height: 1.65;
}

.afg-app-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.afg-app-screen-card {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    background: var(--app-surface);
    text-align: center;
}

.afg-app-phone-frame {
    width: min(100%, 285px);
    margin: 0 auto;
    overflow: hidden;
    border: 8px solid #05080c;
    border-radius: 30px;
    background: #05080c;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.afg-app-phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 21px;
}

.afg-app-screen-card figcaption {
    display: block;
    max-width: 360px;
    margin: .9rem auto 0;
}

.afg-app-screen-card figcaption strong,
.afg-app-screen-card figcaption span {
    display: block;
}

.afg-app-screen-card figcaption strong {
    color: #fff;
    font-size: 1rem;
}

.afg-app-screen-card figcaption span {
    margin-top: .28rem;
    color: #98a8bb;
    font-size: .78rem;
    line-height: 1.5;
}

.afg-app-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.afg-app-feature-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: var(--app-surface);
}

.afg-app-feature-card h3 {
    margin: .8rem 0 .42rem;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}

.afg-app-feature-card p {
    margin: 0;
    color: #97a8bc;
    font-size: .8rem;
    line-height: 1.58;
}

.afg-app-test {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    margin-top: clamp(2.4rem, 5vw, 4.2rem);
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--app-border-strong);
    border-radius: 22px;
    background: #101b2b;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.afg-app-test-copy > p {
    max-width: 680px;
    margin: 0;
    color: var(--app-muted);
    font-size: .9rem;
    line-height: 1.65;
}

.afg-app-test-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0 1.15rem;
}

.afg-app-test-badges span {
    display: inline-flex;
    gap: .38rem;
    align-items: center;
    padding: .42rem .6rem;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: #c8d2df;
    background: rgba(255, 255, 255, .03);
    font-size: .72rem;
    font-weight: 700;
}

.afg-app-test-badges i {
    color: var(--app-orange);
}

.afg-app-test-steps {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.afg-app-test-steps li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    background: rgba(7, 16, 28, .5);
}

.afg-app-test-steps li > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1a1008;
    background: var(--app-orange);
    font-size: .78rem;
    font-weight: 900;
}

.afg-app-test-steps strong,
.afg-app-test-steps p {
    display: block;
}

.afg-app-test-steps strong {
    color: #fff;
    font-size: .84rem;
}

.afg-app-test-steps p {
    margin: .2rem 0 0;
    color: #91a2b6;
    font-size: .75rem;
    line-height: 1.45;
}

.afg-app-test-steps a,
.afg-app-info a {
    color: #ffad5b;
}

.afg-app-test-steps a:hover,
.afg-app-info a:hover {
    color: #ffc487;
}

.afg-app-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--app-border);
    border-radius: 17px;
    background: rgba(14, 26, 42, .7);
}

.afg-app-info h2 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.afg-app-info p {
    margin: .45rem 0 0;
    color: #96a6b9;
    font-size: .8rem;
    line-height: 1.6;
}

.afg-app-info-note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem;
    border: 1px solid rgba(255, 148, 31, .22);
    border-radius: 13px;
    color: #d6dfeb;
    background: rgba(255, 148, 31, .05);
}

.afg-app-info-note > i {
    color: var(--app-orange);
    font-size: 1.05rem;
}

.afg-app-info-note strong,
.afg-app-info-note span {
    display: block;
}

.afg-app-info-note strong {
    color: #fff;
    font-size: .82rem;
}

.afg-app-info-note span {
    margin-top: .2rem;
    color: #9cadc0;
    font-size: .74rem;
    line-height: 1.45;
}

.afg-app-final-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--app-border-strong);
    border-radius: 18px;
    background: #141d29;
}

.afg-app-final-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--app-orange);
    background: rgba(255, 148, 31, .09);
    font-size: 1.3rem;
}

.afg-app-final-cta h2 {
    margin: .25rem 0 .25rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.afg-app-final-cta p {
    margin: 0;
    color: #94a5b8;
    font-size: .78rem;
    line-height: 1.5;
}

@media (max-width: 1199.98px) {
    .afg-app-hero {
        grid-template-columns: 1fr;
    }

    .afg-app-hero-copy {
        max-width: 820px;
    }

    .afg-app-hero-visual {
        max-width: 900px;
    }

    .afg-app-benefits,
    .afg-app-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 899.98px) {
    .afg-app-test,
    .afg-app-info {
        grid-template-columns: 1fr;
    }

    .afg-app-showcase-grid {
        display: flex;
        gap: .8rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: .35rem;
        scrollbar-width: thin;
    }

    .afg-app-screen-card {
        width: min(82vw, 340px);
        flex: 0 0 min(82vw, 340px);
        scroll-snap-align: start;
    }

    .afg-app-final-cta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .afg-app-final-cta .afg-app-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 599.98px) {
    .afg-app-page {
        padding-top: .65rem;
    }

    .afg-app-hero {
        gap: 1.15rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .afg-app-hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.65rem);
    }

    .afg-app-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .afg-app-button {
        width: 100%;
    }

    .afg-app-hero-visual {
        border-radius: 14px;
    }

    .afg-app-benefits,
    .afg-app-feature-grid {
        grid-template-columns: 1fr;
    }

    .afg-app-benefit {
        padding: .78rem;
    }

    .afg-app-section {
        margin-top: 2.3rem;
    }

    .afg-app-section-head {
        text-align: left;
    }

    .afg-app-section-head .afg-app-section-kicker {
        margin-inline: 0;
    }

    .afg-app-screen-card {
        width: min(86vw, 310px);
        flex-basis: min(86vw, 310px);
        padding: .8rem;
    }

    .afg-app-phone-frame {
        width: min(100%, 235px);
        border-width: 6px;
        border-radius: 25px;
    }

    .afg-app-phone-frame img {
        border-radius: 18px;
    }

    .afg-app-test {
        padding: 1rem;
        border-radius: 17px;
    }

    .afg-app-test-badges {
        display: grid;
        grid-template-columns: 1fr;
    }

    .afg-app-test-badges span {
        width: fit-content;
    }

    .afg-app-info,
    .afg-app-final-cta {
        padding: .9rem;
    }

    .afg-app-final-cta {
        grid-template-columns: 1fr;
    }

    .afg-app-final-icon {
        width: 44px;
        height: 44px;
    }
}
