/* ============================================================
   Funnel-Demo "Von der Anzeige bis zum Auftrag" (kampagnen-entwurf.html, 04.11.2026)
   Aufbau und Skript wie auf glueckauf-marketing.de/kundengewinnung (funnel-demo.js),
   hier im Design A: Nachtblau, Champagner, Haarlinien, eckig, ohne Pillen und Schatten-Effekte.
   Links die Stufen (1-6 als Trichter, 7-10 als Folge), rechts das Handy mit einem
   Bildschirm je Stufe. Ohne JS stehen alle Bildschirme nebeneinander zum Wischen.
   ============================================================ */
.fd-abschnitt { padding: 88px 0; background: var(--paper); }
.fd-abschnitt .section-head { margin-bottom: 48px; }

.fd { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1000px; margin: 0 auto; }
.fd > * { min-width: 0; }
.fd-links { display: grid; gap: 16px; }

/* ---------- Stufen ---------- */
.fd-schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fd-schritt {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 11px 16px; background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.fd-schritt:hover { border-color: #CFC5B4; }
.fd-schritt:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.fd-schritt b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.4; }
.fd-schritt small { display: block; font-size: .88rem; line-height: 1.5; color: var(--ink-m); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .35s ease; }
.fd-nr { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.2; color: var(--gold-deep); }
.fd-schritt.ist-aktiv { background: var(--navy); border-color: var(--navy); color: var(--auf-dunkel-hell); }
.fd-schritt.ist-aktiv .fd-nr { color: var(--gold); }
.fd-schritt.ist-aktiv small { max-height: 8em; opacity: 1; margin-top: 3px; color: var(--auf-dunkel); }

/* Trichter: jede Stufe etwas schmaler (Breite aus --b im HTML) */
.fd-schritte--trichter li { display: flex; justify-content: center; }
.fd-schritt--trichter { width: var(--b, 100%); min-width: 230px; }

/* Folge 7-10 als Raster unter dem Trichter */
.fd-schritte--folge { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; position: relative; padding-top: 22px; }
.fd-schritte--folge::before { content: ''; position: absolute; top: 2px; left: 50%; width: 1px; height: 14px; background: var(--gold-deep); }
.fd-schritt--folge { padding: 10px 12px; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }

/* Nebenbei: zwei Zeilen statt gestrichelter Kaesten */
.fd-neben { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.fd-neben li { padding-top: 12px; font-size: .88rem; line-height: 1.55; color: var(--ink-m); }
.fd-neben b { display: block; margin-bottom: 2px; font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Handy ---------- */
.fd-buehne { display: grid; justify-items: center; gap: 16px; }
.fd-handy { position: relative; width: 290px; }
.fd-handy__rand { position: relative; height: 590px; background: #0B0F14; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(10, 19, 28, .45), inset 0 0 0 2px #2A3340; overflow: hidden; }
.fd-handy__rand::before { content: ''; position: absolute; top: 18px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: #0B0F14; border-radius: 999px; z-index: 5; }
.fd-etikett { position: absolute; top: -10px; right: -8px; z-index: 6; padding: 4px 9px; background: var(--navy); color: var(--gold); border: 1px solid var(--gold); font-size: .56rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.fd-screen { position: absolute; inset: 12px; border-radius: 30px; overflow: hidden; background: #fff; font-family: var(--sans); font-size: .82rem; line-height: 1.35; }
.js .fd .fd-screen { opacity: 0; transform: translateX(30px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.js .fd .fd-screen.ist-aktiv { opacity: 1; transform: none; pointer-events: auto; }

/* iOS-Statuszeile, Instagram-Leiste */
.ios-status { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 34px; font-family: -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif; font-size: .82rem; color: #000; z-index: 5; pointer-events: none; }
.ios-status b { font-weight: 600; letter-spacing: -.01em; }
.ios-icons { display: flex; align-items: center; gap: 5px; }
.ios-netz { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.ios-netz i { width: 3px; background: currentColor; border-radius: 1px; }
.ios-netz i:nth-child(1) { height: 4px; } .ios-netz i:nth-child(2) { height: 6px; } .ios-netz i:nth-child(3) { height: 8px; } .ios-netz i:nth-child(4) { height: 10px; }
.ios-wlan { width: 15px; height: 11px; fill: currentColor; }
.ios-akku { position: relative; width: 23px; height: 11px; border: 1.2px solid currentColor; border-radius: 3.5px; padding: 1.2px; }
.ios-akku::after { content: ''; position: absolute; right: -3.5px; top: 3px; width: 1.6px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.ios-akku i { display: block; height: 100%; width: 78%; background: currentColor; border-radius: 1.5px; }
.ios--hell { color: #fff; }
.ios-home { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: #111; z-index: 5; pointer-events: none; }
.ios-home.ios--hell { background: #fff; }
.ig-bar { display: flex; justify-content: space-between; align-items: center; padding: 50px 14px 6px; background: #fff; color: #111; }
.ig-bar b { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 1.45rem; font-weight: 400; line-height: 1; }
.ig-bar__icons, .fd-feed__fuss { display: flex; align-items: center; gap: 14px; }
.ig-bar__icons svg, .fd-feed__fuss svg { width: 20px; height: 20px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Feed mit Anzeige */
.fd-feed { height: 100%; display: flex; flex-direction: column; background: #000; color: #fff; }
.fd-feed__kopf { display: flex; align-items: center; gap: 8px; padding: 38px 12px 10px; background: #fff; color: #111; }
.fd-feed__kopf small { display: block; color: #777; font-size: .7rem; }
.fd-logo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; font-size: .66rem; letter-spacing: .04em; }
.fd-logo--grau { background: #DDE1E6; color: #55606C; }
.fd-punkte { margin-left: auto; color: #333; }
.fd-feed__bild { position: relative; flex: 1; overflow: hidden; }
.fd-feed__foto { width: 100%; height: 100%; object-fit: cover; }
.js .fd--sichtbar .ist-aktiv .fd-feed__foto { animation: fd-zoom 7s ease-out both; }
.fd-feed__titel { position: absolute; left: 12px; right: 12px; bottom: 70px; display: grid; justify-items: center; gap: 4px; text-align: center; line-height: 1.1; }
.fd-feed__titel small { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: #fff; color: #111; padding: 3px 8px; }
.fd-feed__titel span { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; background: var(--gold); color: var(--navy); padding: 6px 12px; }
.fd-feed__untertitel { position: absolute; left: 16px; right: 16px; bottom: 28px; text-align: center; background: rgba(10, 19, 28, .88); color: #fff; font-weight: 600; font-size: .74rem; padding: 6px 8px; }
.fd-feed__cta { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: #1C2733; color: #fff; font-weight: 600; }
.fd-feed__cta--klick { background: var(--gold); color: var(--navy); }
.js .fd--sichtbar .ist-aktiv .fd-feed__cta--klick { animation: fd-klick 1.4s ease .5s both; }
.fd-feed__fuss { padding: 10px 14px 14px; background: #fff; color: #222; font-size: .8rem; gap: 16px; }
.fd-feed__fuss span { display: inline-flex; align-items: center; gap: 5px; }
.fd-feed__fuss svg { width: 18px; height: 18px; }
.fd-rot svg { fill: #E0245E; stroke: #E0245E; }
.fd-rot { color: #E0245E; font-weight: 600; }
.fd-feed--scroll { overflow: hidden; }
.fd-fremd { flex: 0 0 auto; background: #fff; color: #111; }
.fd-fremd__bild { height: 150px; background: linear-gradient(135deg, #C9D6C1, #8FA889 60%, #5E7A63); }
.fd-rein { flex: 1; display: flex; }
.fd-rein .fd-feed { flex: 1; }
.fd-rein .fd-feed__kopf { padding-top: 10px; }
.js .fd--sichtbar .ist-aktiv .fd-feed--scroll > * { animation: fd-scroll 3.2s ease-in-out .3s both; }
.fd-video { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .3); }
.fd-video i { display: block; height: 100%; width: 35%; background: #fff; }
.js .fd--sichtbar .ist-aktiv .fd-video i { animation: fd-video 3.4s linear both; }
.fd-zeit { position: absolute; left: 10px; bottom: 8px; font-size: .62rem; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 4px; }
.fd-herz { position: absolute; left: 50%; top: 38%; width: 72px; height: 72px; transform: translate(-50%, -50%); opacity: 0; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4)); }
.fd-herz svg { width: 100%; height: 100%; fill: #fff; }
.js .fd--sichtbar .ist-aktiv .fd-herz { animation: fd-herz 1.6s ease .4s both; }

/* Anfrage-Assistent */
.fd-form { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 40px 16px 16px; background: #10151C; color: #fff; }
.fd-form__kopf { display: flex; justify-content: space-between; align-items: center; color: #C9D1DB; font-size: .78rem; font-weight: 600; }
.fd-form__kopf b { font-size: 1.1rem; font-weight: 400; }
.fd-balken { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.fd-balken i { height: 3px; border-radius: 2px; background: #2E3743; }
.fd-balken i.an { background: var(--gold); }
.fd-frage { font-weight: 700; font-size: 1rem; margin: 10px 0 4px; line-height: 1.3; }
.fd-frage--klein { font-size: .86rem; margin: 6px 0 2px; }
.fd-klein { color: #9AA5B1; font-size: .74rem; margin: -6px 0 2px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chip { border: 1px solid #3A4552; border-radius: 999px; padding: 6px 10px; font-size: .76rem; font-weight: 600; color: #E3E8EE; }
.fd-chip.ist-gewaehlt { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.js .fd--sichtbar .ist-aktiv .fd-chip.ist-gewaehlt { animation: fd-tipp 1.4s ease .8s both; }
.fd-feld { display: grid; border: 1px solid #3A4552; border-radius: 10px; padding: 7px 10px; color: #fff; font-size: .82rem; overflow-wrap: anywhere; }
.fd-feld small { color: #9AA5B1; font-size: .68rem; }
.fd-knopf { margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; border-radius: 10px; background: #1C2733; color: #fff; font-weight: 600; text-align: center; }
.fd-knopf svg { width: 16px; height: 16px; }
.fd-knopf--gold { background: var(--gold); color: var(--navy); }
.js .fd--sichtbar .ist-aktiv .fd-knopf--klick { animation: fd-klick 1.4s ease .6s both; }
.fd-danke { justify-content: center; align-items: center; text-align: center; }
.fd-danke p { margin: 0; color: #C9D1DB; }
.fd-danke .fd-knopf { width: 100%; margin-top: 18px; }
.fd-danke__haken { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); }
.fd-danke__haken svg { width: 30px; height: 30px; }
.js .fd--sichtbar .ist-aktiv .fd-danke__haken { animation: fd-pop .6s ease both; }

/* Postfach, Kalender */
.fd-mail { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 40px 14px 16px; background: var(--surface); color: var(--ink); }
.fd-mail__kopf { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.fd-mail__kopf svg { width: 18px; height: 18px; color: var(--gold-deep); }
.fd-mail__karte { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 12px; }
.js .fd--sichtbar .ist-aktiv .fd-mail__karte { animation: fd-rein .6s ease .2s both; }
.fd-mail__neu { display: inline-block; margin-bottom: 6px; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.fd-mail__karte b { display: block; margin-bottom: 8px; }
.fd-mail__karte dl { margin: 0; display: grid; gap: 4px; }
.fd-mail__karte dl div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.fd-mail__karte dt { color: var(--ink-m); }
.fd-mail__karte dd { margin: 0; font-weight: 600; text-align: right; }
.fd-termin { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 10px; }
.fd-termin__tag { width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; line-height: 1; text-align: center; font-size: .9rem; }
.fd-termin__tag small { display: block; font-size: .62rem; font-weight: 600; }
.fd-termin b { display: block; font-size: .82rem; }
.fd-termin small { color: var(--ink-m); font-size: .72rem; }

/* Rueckruf */
.fd-anruf { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 16px 16px; background: linear-gradient(180deg, #101B26, var(--navy)); color: #fff; text-align: center; }
.fd-anruf__status { margin: 0; font-size: .74rem; color: var(--gold-soft); }
.fd-anruf__bild { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #22303D; font-weight: 700; font-size: 1.1rem; }
.js .fd--sichtbar .ist-aktiv .fd-anruf__bild { animation: fd-ring 1.8s ease-out infinite; }
.fd-check { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.fd-check li { position: relative; padding: 7px 10px 7px 30px; background: rgba(255, 255, 255, .06); border-radius: 8px; font-size: .8rem; }
.fd-check li::before { content: '✓'; position: absolute; left: 10px; color: var(--gold); font-weight: 700; }
.js .fd--sichtbar .ist-aktiv .fd-check li { animation: fd-rein .4s ease both; }
.js .fd--sichtbar .ist-aktiv .fd-check li:nth-child(2) { animation-delay: .4s; }
.js .fd--sichtbar .ist-aktiv .fd-check li:nth-child(3) { animation-delay: .8s; }
.js .fd--sichtbar .ist-aktiv .fd-check li:nth-child(4) { animation-delay: 1.2s; }
.fd-urteil { margin-top: auto; width: 100%; padding: 11px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 700; }

/* Steuerung unter dem Handy */
.fd-steuerung { display: flex; align-items: center; gap: 14px; }
.fd-steuerung button { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.3rem; line-height: 1; transition: border-color .2s ease; }
.fd-steuerung button:hover { border-color: var(--ink-m); }
.fd-steuerung button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.fd-punkte-nav { display: flex; gap: 6px; }
.fd-punkte-nav i { width: 6px; height: 6px; background: var(--line); transition: width .25s ease, background .25s ease; }
.fd-punkte-nav i.an { width: 20px; background: var(--gold-deep); }
.fd-hinweis { max-width: 70ch; margin: 32px auto 0; text-align: center; font-size: .85rem; color: var(--ink-m); }

@keyframes fd-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fd-tipp { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes fd-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes fd-rein { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fd-scroll { from { transform: translateY(0); } to { transform: translateY(-150px); } }
@keyframes fd-video { from { width: 0; } to { width: 100%; } }
@keyframes fd-herz { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 40% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
@keyframes fd-klick { 0%, 100% { transform: none; } 30% { transform: scale(.95); } }
@keyframes fd-ring { 0% { box-shadow: 0 0 0 0 rgba(197, 164, 106, .5); } 100% { box-shadow: 0 0 0 18px rgba(197, 164, 106, 0); } }

/* Ohne JS: alle Bildschirme nebeneinander zum Wischen, alle Texte offen */
html:not(.js) .fd { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .fd .fd-steuerung { display: none; }
html:not(.js) .fd .fd-handy { width: 100%; }
html:not(.js) .fd .fd-handy__rand { height: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; background: none; box-shadow: none; padding: 0; border-radius: 0; }
html:not(.js) .fd .fd-handy__rand::before { display: none; }
html:not(.js) .fd .fd-screen { position: relative; inset: auto; flex: 0 0 260px; height: 540px; scroll-snap-align: center; border: 10px solid #0B0F14; }
html:not(.js) .fd .fd-schritt small { max-height: none; opacity: 1; }

@media (max-width: 860px) {
  .fd-abschnitt { padding: 64px 0; }
  .fd { grid-template-columns: minmax(0, 1fr); }
  .fd-buehne { order: -1; }
}
@media (max-width: 520px) {
  .fd-schritt--trichter { min-width: 0; width: 100%; }   /* am Handy kein Trichter-Zuschnitt: Text braucht die Breite */
  .fd-neben { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) { .fd-handy { width: 268px; } .fd-handy__rand { height: 560px; } }
@media (prefers-reduced-motion: reduce) {
  .js .fd .fd-screen { transition: none; }
  .js .fd--sichtbar .ist-aktiv .fd-feed__foto, .js .fd--sichtbar .ist-aktiv .fd-chip.ist-gewaehlt,
  .js .fd--sichtbar .ist-aktiv .fd-danke__haken, .js .fd--sichtbar .ist-aktiv .fd-mail__karte,
  .js .fd--sichtbar .ist-aktiv .fd-feed--scroll > *, .js .fd--sichtbar .ist-aktiv .fd-video i,
  .js .fd--sichtbar .ist-aktiv .fd-herz, .js .fd--sichtbar .ist-aktiv .fd-feed__cta--klick,
  .js .fd--sichtbar .ist-aktiv .fd-knopf--klick, .js .fd--sichtbar .ist-aktiv .fd-anruf__bild,
  .js .fd--sichtbar .ist-aktiv .fd-check li { animation: none; }
}
