/*!
 * Agentur-Funnel — Scoped Styles
 *
 * Mobile-First. Klassen-Prefix .af-* (Agentur-Funnel), Schwesterdatei zu
 * workshop.css. Brand-Variablen aus dem Theme (var(--maroon), var(--oatmilk) …),
 * Honeychrome wird global geladen.
 *
 * Phase 1 (statisch): alle Screens sichtbar als langer Scroll.
 * Phase 2 (JS): .af-funnel--js blendet alles außer .af-screen.is-active aus.
 *
 * Referenz: theme/CLAUDE_FUNNEL_AGENTUR.md (Sektion 7 Design)
 *
 * @since 2026-09-07
 */

/* ============================================================
   1. RESET & BASE
   ============================================================ */

html:has(.af-body),
.af-body {
    overflow-x: hidden;
    max-width: 100vw;
}

.af-body {
    margin: 0;
    padding: 0;
    background-color: var(--oatmilk);
    color: var(--maroon-dark);
}

.af-funnel,
.af-funnel *,
.af-funnel *::before,
.af-funnel *::after {
    box-sizing: border-box;
}

.af-funnel {
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 64px;    /* Topbar */
    padding-bottom: 40px;
}

/* ============================================================
   2. SCREEN-CONTAINER
   ============================================================ */

.af-screen {
    display: block; /* ohne JS: alle sichtbar (graceful degradation) */
    width: 100%;
    max-width: 100%;
    padding: 32px 24px 56px;
    min-height: calc(100vh - 64px);
    overflow-x: hidden;
}

@media (max-width: 380px) {
    .af-screen {
        padding: 24px 14px;
    }
}

.af-funnel--js .af-screen {
    display: none;
}

.af-funnel--js .af-screen.is-active {
    display: block;
    animation: af-screen-in 350ms ease-out;
}

@keyframes af-screen-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.af-screen-inner {
    max-width: 480px;
    margin: 0 auto;
}

.af-screen-inner--centered {
    text-align: center;
}

/* Dunkler Ergebnis-Screen */
.af-screen--result {
    background: var(--maroon-dark);
    color: var(--oatmilk);
}

/* Marmor-Textur (1125x1500 WebP, 88 KB) mit Abdunklung für Lesbarkeit, wie der Startseiten-Hero.
   .af-marble      = kompakter Block (Hero + Zähler): ein Bild, cover, keine Naht
   .af-marble-long = lange Sektionen: Marmor oben, läuft nach unten in die Flächenfarbe aus (keine Kachel-Naht) */
.af-marble {
    position: relative;
    background-color: var(--maroon-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(191, 184, 178, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(221, 239, 252, 0.06) 0%, transparent 50%),
        linear-gradient(rgba(61, 8, 9, 0.62), rgba(61, 8, 9, 0.62)),
        url("../assets/images/textures/marble-dark-funnel-1125.webp");
    background-size: auto, auto, auto, cover;
    background-repeat: no-repeat;
    background-position: center top;
}

.af-marble-long {
    position: relative;
    background-color: var(--maroon-dark);
    background-image:
        linear-gradient(to bottom, rgba(61, 8, 9, 0.62) 0%, rgba(61, 8, 9, 0.62) 45%, rgba(61, 8, 9, 1) 100%),
        url("../assets/images/textures/marble-dark-funnel-1125.webp");
    background-size: 100% 133.4vw, 100% 133.4vw;
    background-repeat: no-repeat;
    background-position: center top;
}

/* Screen 1: Hero dunkel (full bleed), Trust-Block hell */
.af-screen--intro {
    padding: 0;
    background: var(--oatmilk);
}

.af-funnel--js .af-screen--intro {
    padding-top: 0;
}

.af-hero-dark {
    color: var(--oatmilk);
    padding: 28px 20px 28px;
    text-align: center;
}

.af-hero-trust {
    padding: 20px 20px 32px;
}

.af-badge--dark {
    color: var(--oatmilk);
    background: rgba(240, 236, 234, 0.14);
}

.af-subline--light {
    color: rgba(240, 236, 234, 0.88);
}

.af-hero-dark .af-headline--hero {
    color: #fff;
}

.af-hero-dark .af-accent {
    /* Eisblau ist die Akzentfarbe des Themes auf dunklem Grund (siehe
       ueber-uns-Hero und Case-Study-Kennzahlen). Das vorherige Rosa
       #F0B0B1 kam auf dem Marmor auf keinen brauchbaren Kontrast. */
    color: var(--ice, #DDEFFC);
}

.af-chips--dark li {
    color: var(--oatmilk);
    background: rgba(240, 236, 234, 0.10);
    border-color: rgba(240, 236, 234, 0.25);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

.af-headline {
    font-family: var(--font-primary);
    color: var(--maroon);
    font-size: clamp(22px, 6.2vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 24px;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.af-headline--hero {
    font-size: clamp(28px, 8vw, 36px);
    margin-top: 8px;
}

.af-headline--light {
    color: var(--oatmilk);
}

.af-accent {
    color: var(--maroon-400, #C73B3E);
}

.af-headline--light .af-accent {
    color: var(--ice, #DDEFFC);
}

/* Zweiter CTA direkt unter dem Hebel: gleiche Optik wie der am Screen-Ende,
   nur mit eigenem Abstand. Wer hier schon ueberzeugt ist, muss nicht an
   Bullets, Case-Karte, Zitat und Team vorbeiscrollen. */
.af-cta-inline {
    margin: 12px 0 36px;
}

.af-mirror {
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.45;
    font-weight: 600;
    color: var(--stone);
    margin: 0 0 16px;
}

.af-headline--result {
    font-size: clamp(20px, 5.6vw, 24px);
    font-weight: 700;
}

.af-hebel {
    display: block;
    margin-top: 12px;
    font-size: clamp(26px, 7.4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    /* Eisblau wie der Hero-Akzent. Das vorherige #E8C9CA war ein blasses
       Rosa auf dunklem Marmor und damit die schwaechste Stelle des Screens,
       obwohl es die wichtigste Aussage traegt. */
    color: var(--ice, #DDEFFC);
}

.af-subline {
    font-size: 17px;
    line-height: 1.5;
    color: var(--maroon-dark);
    margin: 0 0 22px;
}

.af-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-dark);
    margin: 0 0 18px;
}

.af-eyebrow--light {
    color: var(--stone);
}

.af-microcopy {
    font-size: 15px;
    line-height: 1.5;
    color: var(--stone-dark);
    margin: 0 0 24px;
}

.af-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--maroon);
    background: rgba(86, 12, 14, 0.07);
    border-radius: 999px;
    padding: 5px 10px;
    margin: 0 0 10px;
}

/* ============================================================
   4. HERO (Screen 1)
   ============================================================ */

.af-hero-icon {
    display: block;
    width: 56px;
    height: 54px;
    margin: 0 auto 12px;
    object-fit: contain;
    opacity: 0.95;
}

.af-proof {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--maroon);
    padding: 12px 14px;
    border-left: 3px solid var(--maroon);
    background: #fff;
    border-radius: 0 12px 12px 0;
    margin: 0 0 14px;
}

/* Partner-Logos: groß genug, um erkannt zu werden */
.af-partners {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px 14px;
    margin: 14px 0 12px;
}

.af-partners-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-dark);
    text-align: center;
    margin: 0 0 10px;
}

.af-partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
}

.af-partners-row img {
    height: 34px;
    max-height: 34px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

/* TÜV-Zeile */
.af-tuv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 14px;
}

.af-tuv-logo {
    width: 76px;
    height: auto;
    flex: 0 0 76px;
}

.af-tuv-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--stone-dark);
}

.af-tuv-text strong {
    color: var(--maroon);
}

.af-ratings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 8px;
}

.af-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--maroon-dark);
}

.af-rating-text strong {
    color: var(--maroon);
}

.af-stars {
    display: inline-flex;
    gap: 2px;
    color: #E0A100;
    line-height: 0;
}

.af-trust-anker {
    text-align: center;
    font-size: 13px;
    color: var(--stone-dark);
    margin: 12px 0 0;
    line-height: 1.4;
}

.af-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    padding: 16px 0 0;
    margin: 20px 0 0;
    border-top: 1px solid var(--stone-light);
}

.af-trust-row img {
    height: 26px;
    max-height: 26px;
    max-width: 88px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    flex: 0 0 auto;
}

.af-trust-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--maroon);
    padding: 6px 10px;
    background: rgba(86, 12, 14, 0.06);
    border-radius: 999px;
    white-space: nowrap;
}

.af-trust-strip {
    text-align: center;
    font-size: 12px;
    color: var(--stone-dark);
    margin: 16px 0 0;
    line-height: 1.5;
}

.af-trust-strip a {
    color: var(--maroon);
    text-decoration: underline;
}

.af-trust-strip--light {
    color: var(--stone);
}

/* ============================================================
   5. OPTIONS (Screens 2, 3, 4, 6)
   ============================================================ */

.af-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.af-option {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid var(--stone-light);
    border-radius: 14px;
    padding: 20px 56px 20px 22px;
    min-height: 64px;
    box-shadow: 0 2px 6px rgba(86, 12, 14, 0.04);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.4;
    color: var(--maroon-dark);
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out;
    width: 100%;
}

.af-option:hover,
.af-option:focus-visible {
    border-color: var(--maroon);
    outline: none;
}

.af-option:active {
    transform: scale(0.97);
    background-color: rgba(86, 12, 14, 0.04);
}

.af-option.is-selected {
    border-color: var(--maroon);
    background-color: rgba(86, 12, 14, 0.06);
    box-shadow: inset 0 0 0 1px var(--maroon);
}

/* Radio-Indikator rechts */
.af-option::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    border: 2px solid var(--stone);
    background: #fff;
    transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.af-option:hover::after,
.af-option:focus-visible::after {
    border-color: var(--maroon);
}

.af-option.is-selected::after {
    border-color: var(--maroon);
    background: var(--maroon) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0ECEA' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 14px 14px no-repeat;
}

.af-option-label {
    display: inline-block;
    font-weight: 600;
}

.af-option-hint {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--stone-dark);
    margin-top: 4px;
}

/* ============================================================
   6. LOADING (Screen 5)
   ============================================================ */

.af-screen--loading {
    min-height: 70vh;
}

.af-spinner {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.af-spinner-ring {
    width: 64px;
    height: 64px;
    border: 5px solid var(--stone-light);
    border-top-color: var(--maroon);
    border-radius: 50%;
    animation: af-spin 1s linear infinite;
}

@keyframes af-spin {
    to { transform: rotate(360deg); }
}

.af-loading-text {
    font-size: 16px;
    color: var(--maroon-dark);
    margin: 16px 0 32px;
    line-height: 1.5;
}

.af-logos-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-dark);
    margin: 0 0 12px;
}

.af-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    align-items: center;
    justify-items: center;
}

.af-logos img {
    width: auto;
    max-width: 104px;
    height: 36px;
    object-fit: contain;
    opacity: 0.8;
    filter: grayscale(1);
}

/* ============================================================
   7. ERGEBNIS (Screen 7, dunkel)
   ============================================================ */

.af-bullets {
    margin: 32px 0;
}

.af-bullets-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 14px;
}

.af-bullets-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.af-bullets-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 16px;
    line-height: 1.45;
    color: var(--oatmilk);
}

.af-bullets-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--maroon-200, #E8C9CA);
    font-weight: 800;
}

/* Case-Karte */
.af-case {
    background: #fff;
    color: var(--maroon-dark);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
}

.af-case--secondary {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.92);
}

.af-case-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}

.af-case-name {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: 800;
    color: var(--maroon);
}

.af-case-industry {
    font-size: 13px;
    color: var(--stone-dark);
}

.af-case-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.af-case-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: var(--oatmilk);
    border-radius: 12px;
}

.af-case-row-label {
    font-size: 13px;
    color: var(--stone-dark);
    line-height: 1.35;
}

.af-case-row-values {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 800;
}

.af-case-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.af-case-cell-label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--stone-dark);
}

.af-case-from {
    color: var(--stone-dark);
    font-size: 16px;
    line-height: 1.25;
}

.af-case-arrow {
    color: var(--maroon-300, #E07A7C);
    display: inline-flex;
}

.af-case-to {
    color: #1F6B3A;
    font-size: 20px;
    line-height: 1.2;
}

.af-case-cell--to {
    padding-left: 2px;
}

.af-case-stats {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.af-case-stats--2,
.af-case-stats--3 {
    grid-template-columns: 1fr;
}

.af-case-stat {
    background: var(--maroon);
    color: var(--oatmilk);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.af-case-stat-value {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.af-case-stat-label {
    font-size: 13px;
    line-height: 1.35;
    opacity: 0.9;
}

.af-case-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon);
    text-decoration: underline;
}

/* Zitat */
.af-quote {
    margin: 24px 0 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}

.af-quote .af-stars {
    margin-bottom: 8px;
}

.af-quote-text {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--oatmilk);
}

.af-quote-meta {
    font-size: 13px;
    color: var(--stone);
}

.af-quote-meta strong {
    color: var(--oatmilk);
}

/* Team */
.af-team {
    margin: 36px 0 12px;
    text-align: center;
}

.af-team-duo {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 14px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.af-team-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--oatmilk);
    margin: 0 0 8px;
}

.af-team-roles {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--stone);
    line-height: 1.6;
}

.af-team-roles strong {
    color: var(--oatmilk);
}

/* ============================================================
   8. FORM (Screens 8 + Downsell-Newsletter)
   ============================================================ */

.af-form {
    margin-top: 16px;
}

.af-field {
    display: block;
    margin-bottom: 12px;
}

.af-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon-dark);
    margin-bottom: 6px;
}

.af-field-optional {
    font-weight: 400;
    color: var(--stone-dark);
    font-size: 13px;
}

.af-input,
.af-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--stone-light);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--maroon-dark);
    transition: border-color 150ms ease-out;
}

.af-input:focus,
.af-select:focus {
    outline: none;
    border-color: var(--maroon);
}

.af-input.is-invalid {
    border-color: #d63838;
}

.af-input-group {
    display: flex;
    gap: 8px;
}

.af-select {
    flex: 0 0 110px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23560C0E' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 32px;
}

.af-input--phone {
    flex: 1;
}

.af-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    cursor: pointer;
    padding: 4px 0;
}

.af-checkbox-input {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    accent-color: var(--maroon);
    cursor: pointer;
}

.af-checkbox-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    color: var(--maroon-dark);
}

.af-checkbox-label a {
    color: var(--maroon);
    text-decoration: underline;
}

/* Honeypot: sr-only-Pattern, kein left:-9999px (iOS-Scroll) */
.af-honeypot,
.af-honeypot input {
    width: 1px;
    max-width: 1px;
}

.af-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.af-form-error {
    margin: 12px 0 0;
    padding: 12px 16px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid #d63838;
    border-radius: 10px;
    color: #a02020;
    font-size: 14px;
}

.af-form-trust {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--stone-dark);
}

.af-form-trust strong {
    color: var(--maroon);
}

.af-form-trust-logo {
    width: 64px;
    height: auto;
    object-fit: contain;
    flex: 0 0 64px;
}

/* ============================================================
   9. TERMIN / THANK YOU (Screen 9)
   ============================================================ */

.af-calendly {
    margin: 16px 0;
    min-height: 120px;
}

.af-calendly-placeholder {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.af-calendly-placeholder-text {
    font-size: 14px;
    color: var(--stone-dark);
    margin: 0 0 12px;
    line-height: 1.5;
}

.af-calendly-widget {
    min-width: 280px;
    height: 720px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--oatmilk);
    box-shadow: 0 6px 20px rgba(86, 12, 14, 0.08);
}

.af-calendly-widget iframe {
    border-radius: 16px;
}

.af-calendly-loading {
    padding: 24px 0;
}

/* 2-Klick-Consent-Karte */
.af-consent {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(86, 12, 14, 0.06);
}

.af-consent-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 800;
    color: var(--maroon);
    margin: 0 0 6px;
}

.af-consent-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--stone-dark);
    margin: 0 0 14px;
}

.af-consent-alt {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--maroon);
    text-decoration: underline;
}

/* Nach der Buchung */
.af-booked {
    background: #fff;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(86, 12, 14, 0.08);
    margin: 8px 0 16px;
}

.af-success-icon--filled {
    color: var(--maroon);
    margin: 0 0 10px;
}

.af-booked-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 800;
    color: var(--maroon);
    margin: 0 0 8px;
}

.af-booked-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--maroon-dark);
    margin: 0;
}

.af-fallback {
    font-size: 14px;
    line-height: 1.5;
    color: var(--maroon-dark);
    padding: 12px 14px;
    background: rgba(86, 12, 14, 0.06);
    border-radius: 12px;
    margin: 12px 0 20px;
}

.af-next-steps {
    margin: 20px 0;
}

.af-next-steps-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 800;
    color: var(--maroon);
    margin: 0 0 12px;
}

.af-next-steps-list {
    padding-left: 24px;
    margin: 0;
}

.af-next-steps-list li {
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   10. DOWNSELL (Screen 9b)
   ============================================================ */

.af-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 8px 24px rgba(86, 12, 14, 0.06);
}

.af-card-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 800;
    color: var(--maroon);
    margin: 0 0 8px;
}

.af-card-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.af-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.af-card-list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 15px;
    line-height: 1.4;
}

.af-card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--maroon);
    font-weight: 700;
}

.af-card .af-form {
    margin-top: 4px;
}

/* ============================================================
   11. BUTTONS
   ============================================================ */

.af-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 18px 28px;
    min-height: 56px;
    width: 100%;
    border-radius: 14px;
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}

.af-button--primary {
    background: var(--maroon);
    color: var(--oatmilk);
}

.af-button--primary:hover {
    background: var(--maroon-dark);
}

.af-button--primary:active {
    transform: scale(0.97);
}

.af-button--on-dark {
    background: var(--oatmilk);
    color: var(--maroon);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.af-button--on-dark:hover {
    background: #fff;
}

.af-button--secondary {
    background: transparent;
    color: var(--maroon);
    border: 2px solid var(--maroon);
}

.af-button--secondary:hover {
    background: var(--maroon);
    color: var(--oatmilk);
}

.af-button--cta {
    margin: 16px 0 4px;
    box-shadow: 0 6px 16px rgba(86, 12, 14, 0.2);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 340px) {
    .af-button--cta {
        font-size: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

.af-button--submit:disabled {
    background: var(--stone);
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   12. TOPBAR + SCHRITT-SEGMENTE
   ============================================================ */

.af-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(240, 236, 234, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stone-light);
}

.af-topbar-inner {
    max-width: 480px;
    margin: 0 auto;
    height: 52px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.af-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--maroon);
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.af-brand-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.af-back {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 8px 4px 8px 8px;
    min-height: 44px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--stone-dark);
    cursor: pointer;
}

.af-back:hover,
.af-back:focus-visible {
    color: var(--maroon);
    outline: none;
}

/* hidden-Attribut muss gegen die display-Regeln gewinnen */
.af-back[hidden],
.af-result[hidden],
.af-quali[hidden],
.af-downsell[hidden],
[data-af-downsell][hidden] {
    display: none !important;
}

.af-steps {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 10px;
    display: none;
    gap: 6px;
}

.af-steps.is-visible {
    display: flex;
}

.af-step {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--stone-light);
    transition: background-color 300ms ease-out;
}

.af-step.is-done {
    background: var(--maroon);
}

.af-step.is-current {
    background: var(--maroon);
    opacity: 0.55;
}

.af-funnel--js .af-screen {
    padding-top: 36px;
}

/* Chips unter dem Hero-CTA */
.af-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 12px 0 0;
}

.af-chips li {
    font-size: 12px;
    font-weight: 700;
    color: var(--maroon);
    background: #fff;
    border: 1px solid var(--stone-light);
    border-radius: 999px;
    padding: 5px 10px;
}

/* Loading-Schritte */
.af-loading-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 320px;
    text-align: left;
}

.af-loading-steps li {
    position: relative;
    padding: 6px 0 6px 30px;
    font-size: 15px;
    color: var(--maroon-dark);
    opacity: 0;
    animation: af-step-in 400ms ease-out forwards;
    animation-delay: calc(0.35s + var(--i) * 0.7s);
}

.af-loading-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--maroon) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0ECEA' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 11px 11px no-repeat;
}

@keyframes af-step-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Erfolgs-Icon Termin-Screen */
.af-success-icon {
    color: var(--maroon);
    margin: 4px 0 12px;
}

/* ============================================================
   13. CONFETTI
   ============================================================ */

.af-confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 200;
}

.af-confetti-particle {
    position: absolute;
    width: 8px;
    height: 12px;
    top: -20px;
    background: var(--maroon);
    animation: af-confetti-fall 3s ease-in forwards;
}

@keyframes af-confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   14. SUCCESS (Newsletter nach Submit)
   ============================================================ */

.af-success {
    text-align: center;
    font-size: 16px;
    color: var(--maroon);
    padding: 20px 16px;
    background: rgba(86, 12, 14, 0.06);
    border-radius: 16px;
    margin: 12px 0;
    font-weight: 600;
}

/* ============================================================
   15. RESPONSIVE (≥ 768px): eine zentrierte Spalte, bleibt schmal
   ============================================================ */

@media (min-width: 768px) {
    .af-screen {
        padding: 48px 32px;
    }

    .af-screen-inner {
        max-width: 480px;
    }

    .af-ratings {
        flex-direction: row;
        justify-content: space-between;
    }

    .af-case-stats--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .af-case-stats--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   16. REDUCED MOTION + PRINT
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .af-funnel--js .af-screen.is-active,
    .af-spinner-ring,
    .af-confetti-particle {
        animation: none;
    }

    .af-loading-steps li {
        animation: none;
        opacity: 1;
    }

    .af-option,
    .af-button,
    .af-progress-fill {
        transition: none;
    }
}

@media print {
    .af-funnel,
    .af-progress,
    .af-confetti {
        display: none !important;
    }
}

/* ============================================================
   17. OVERRIDES (Hero dunkel): müssen NACH den Basisregeln stehen,
   sonst gewinnen .af-badge / .af-subline / .af-chips li per Reihenfolge
   ============================================================ */

.af-hero-dark .af-badge,
.af-badge--dark {
    color: var(--oatmilk);
    background: rgba(240, 236, 234, 0.14);
}

.af-hero-dark .af-subline,
.af-subline--light {
    color: rgba(240, 236, 234, 0.88);
    margin-bottom: 20px;
}

.af-hero-dark .af-chips li,
.af-chips--dark li {
    color: var(--oatmilk);
    background: rgba(240, 236, 234, 0.10);
    border-color: rgba(240, 236, 234, 0.25);
}

.af-hero-dark .af-headline--hero {
    color: #fff;
}

.af-hero-dark .af-accent {
    /* Eisblau ist die Akzentfarbe des Themes auf dunklem Grund (siehe
       ueber-uns-Hero und Case-Study-Kennzahlen). Das vorherige Rosa
       #F0B0B1 kam auf dem Marmor auf keinen brauchbaren Kontrast. */
    color: var(--ice, #DDEFFC);
}

/* ============================================================
   18. LANDINGPAGE (Screen 1): Hero + recycelte Theme-Sektionen
   ============================================================ */

.af-hero-dark {
    padding: 24px 20px 20px;
}

/* Die Badge war eine breite, zweizeilige Pille und damit die zweite Flaeche
   neben dem CTA. Als schlichte Eyebrow bleibt sie der Zielgruppen-Hinweis,
   der sie sein soll, ohne um Aufmerksamkeit zu konkurrieren. */
.af-hero-dark .af-badge {
    background: none;
    padding: 0;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240, 236, 234, 0.7);
    margin-bottom: 10px;
}

/* Above the fold soll auf genau eine Handlung zeigen. Deshalb im Hero:
   die Chips verlieren Kasten und Rahmen (sonst sehen vier Dinge aus wie
   Buttons), und die Proof-Zeile verliert ihre Box. Uebrig bleibt ein
   einziges Element mit Flaeche: der CTA. */
.af-hero-dark .af-chips {
    gap: 0 14px;
    margin-top: 10px;
}

.af-hero-dark .af-chips li {
    position: relative;
    background: none;
    border: 0;
    padding: 2px 0;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(240, 236, 234, 0.82);
}

.af-hero-dark .af-chips li + li::before {
    content: "·";
    position: absolute;
    left: -9px;
    color: rgba(240, 236, 234, 0.45);
}

.af-proof--dark {
    margin: 16px 0 0;
    padding: 0;
    background: none;
    border: 0;
    border-left: 2px solid var(--ice, #DDEFFC);
    padding-left: 12px;
    color: rgba(240, 236, 234, 0.86);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

/* Recycelte Sektionen: Box-Sizing des Funnels nicht auf Theme-Markup erzwingen,
   Reihenfolge-Abstände glätten, Testimonials-Marmor durch die leichte WebP ersetzen */
.af-lp {
    max-width: 100%;
    overflow-x: hidden;
}

.af-lp .marble-bg::before {
    background-image:
        linear-gradient(to bottom, rgba(61, 8, 9, 0) 0%, rgba(61, 8, 9, 0) 45%, rgba(61, 8, 9, 1) 100%),
        url("../assets/images/textures/marble-dark-funnel-1125.webp");
    background-size: 100% 133.4vw, 100% 133.4vw;
    background-repeat: no-repeat;
    background-position: center top;
}

.af-lp .social-proof-section {
    margin-top: 0 !important;
}

.af-lp section:first-child {
    padding-top: 2.5rem;
}

/* Sektions-CTAs sehen im Funnel wie der Funnel-Button aus */
.af-lp .btn-accent,
.af-lp .btn-primary {
    border-radius: 14px;
}

.af-lp-cta {
    padding: 36px 20px 40px;
    text-align: center;
    background: var(--oatmilk);
}

.af-lp-heading {
    font-family: var(--font-primary);
    font-size: clamp(22px, 6vw, 26px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--maroon);
    margin: 0 0 8px;
}

.af-lp-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--maroon-dark);
    margin: 0 0 8px;
}

/* Sticky-CTA (nur Screen 1) */
.af-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(240, 236, 234, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--stone-light);
}

.af-sticky[hidden] {
    display: none !important;
}

.af-sticky .af-button {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-height: 52px;
}

.af-screen--intro {
    padding-bottom: 72px;

    /* Muss NACH ".af-funnel--js .af-screen { padding-top: 28px }" stehen:
       gleiche Spezifitaet, sonst gewinnt dort die 28-px-Regel und schiebt
       einen hellen Streifen zwischen Topbar und Marmor-Hero. */
    padding-top: 0;

    /* Der Marmor-Hero laesst oben ein paar Pixel frei, weil der Funnel 64 px
       fuer die Topbar reserviert, die real niedriger baut. Dunkler Grund
       statt Oatmilk, damit dort kein heller Spalt aufblitzt. */
    background: var(--maroon-dark, #3D0809);
}

.af-funnel--js .af-screen--intro {
    padding-top: 0;
}

/* Recycelte Sektionen dürfen nie an der Scroll-Animation hängen bleiben (theme.js-Abhängigkeit) */
.af-lp .fade-up,
.af-lp .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* ------------------------------------------------------------
   Recycelte Sektionen an den Funnel angleichen
   ------------------------------------------------------------ */

/* Zähler liegen im Hero-Block: keine eigene Fläche, nur Abstand */
.af-hero-dark .social-proof-section {
    background: transparent !important;
    margin: 0 -20px !important;
    padding: 20px 20px 4px !important;
    color: var(--oatmilk);
}

.af-hero-dark .social-proof-section .stat-label {
    font-size: 12px;
    letter-spacing: 0.06em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

/* TÜV-Block (lang) und Testimonials (lang): Marmor oben, unten Fläche */
.af-lp .trust-badge-section {
    background-color: var(--maroon-dark);
    background-image:
        linear-gradient(to bottom, rgba(61, 8, 9, 0.62) 0%, rgba(61, 8, 9, 0.62) 45%, rgba(61, 8, 9, 1) 100%),
        url("../assets/images/textures/marble-dark-funnel-1125.webp");
    background-size: 100% 133.4vw, 100% 133.4vw;
    background-repeat: no-repeat;
    background-position: center top;
    color: var(--oatmilk);
}

/* Sektions-Buttons im Funnel-Stil (kein Eisblau) */
.af-lp .btn-accent,
.af-lp .btn-primary {
    background: var(--maroon) !important;
    color: var(--oatmilk) !important;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(86, 12, 14, 0.2);
}

.af-lp .btn-secondary {
    border-radius: 14px;
}

/* Logos in Erkennungsgröße, keine Ausgrauung */
.af-lp .marquee-section img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Bewertungen: drei reichen auf der Landingpage, der Rest bleibt der Startseite */
.af-lp .reviews-grid > *:nth-child(n+4) {
    display: none !important;
}

.af-lp .testimonials-toggle-wrap {
    display: none !important;
}

@media (min-width: 900px) {
    .af-marble-long,
    .af-lp .trust-badge-section,
    .af-lp .marble-bg::before {
        background-size: 100% 1200px, 100% 1200px;
    }
}

/* Hinweiszeile unter den Ergebnis-Karten (Herkunft der Zahlen) */
.af-case-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--stone-dark);
}

/* Links, die aus dem Funnel führen würden: Team-Kontakte weg, neutralisierte Links wie Text */
.af-lp .team-linkedin,
.af-lp .team-mail {
    display: none !important;
}

.af-lp .af-link-off {
    cursor: default;
    text-decoration: none;
}

.af-lp a.case-card-link.af-link-off {
    cursor: default;
}

/* Wunschzeit-Chips im Formular */
.af-chipset {
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    min-width: 0;
}

.af-chipset legend {
    padding: 0;
}

.af-chipset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.af-chip-radio {
    position: relative;
    cursor: pointer;
}

.af-chip-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.af-chip-radio span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 2px solid var(--stone-light);
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--maroon-dark);
    transition: border-color 150ms ease-out, background-color 150ms ease-out;
}

.af-chip-radio input:checked + span {
    border-color: var(--maroon);
    background: rgba(86, 12, 14, 0.06);
    color: var(--maroon);
}

.af-chip-radio input:focus-visible + span {
    outline: 2px solid var(--maroon);
    outline-offset: 2px;
}

/* Anruf-Abschluss */
.af-call {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(86, 12, 14, 0.08);
    margin: 8px 0 20px;
}

.af-call-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--oatmilk);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.af-call-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--maroon);
    margin: 0 0 10px;
}

.af-call-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--maroon-dark);
    margin: 0 0 8px;
}

.af-call-text--muted {
    font-size: 13px;
    color: var(--stone-dark);
    margin: 0;
}


/* ============================================================
   KAMPAGNE (Black Friday, /analyse-bf/, 08.10.2026):
   Whitepaper-Formular im dunklen Hero, Skip-Link, Bruecken-Screen
   ============================================================ */

.af-magnet {
    max-width: 440px;
    margin: 24px auto 0;
    text-align: left;
}

.af-magnet .af-input {
    background: #fff;
    color: var(--maroon-dark, #3D0809);
}

.af-field-label--light {
    color: var(--oatmilk);
}

.af-checkbox--light .af-checkbox-label {
    color: rgba(240, 236, 234, 0.88);
}

.af-checkbox--light .af-checkbox-label a {
    color: var(--ice, #DDEFFC);
}

.af-magnet .af-button--cta {
    width: 100%;
    margin-top: 16px;
}

.af-magnet .af-form-error {
    color: #FFD6D6;
}

.af-magnet-skip {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(240, 236, 234, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.af-screen--bridge .af-success-icon {
    margin: 0 auto 20px;
}

.af-screen--bridge .af-chips {
    justify-content: center;
    margin-top: 22px;
}

.af-screen--bridge .af-button--cta {
    margin-top: 24px;
}

/* Kampagnen-Headline: feste Umbrueche aus der Config, keine automatische Silbentrennung */
.af-headline--campaign {
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: normal;
}
