/* Betrieb Digital – Bausteine für Funnel-Seiten (/checkliste, /demo)
   Ergänzt styles.css. Farben, Schriften, Abstände und Radien aus dem Design-Handoff. */

.fn-page { background: #FFFFFF; color: #0F1B33; font-family: Manrope, system-ui, sans-serif; font-size: 16px; line-height: 1.6; overflow-x: clip; }
.fn-wrap { max-width: 1160px; margin: 0 auto; padding: clamp(60px, 10vw, 96px) clamp(18px, 5vw, 28px); }
.fn-alt { background: #F5F7FB; }
.fn-dark { background: #16264A; color: #FFFFFF; }
.fn-dark :focus-visible { outline-color: #7FA6F5; }

/* Header: nur Logo, keine Navigation */
.fn-header { background: #FFFFFF; border-bottom: 1px solid #E6EAF1; }
.fn-header > div { max-width: 1160px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 28px); display: flex; align-items: center; }
.fn-header img { width: auto; height: clamp(26px, 6vw, 34px); display: block; }

/* Typografie */
.fn-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #2F6BE6; margin: 0 0 14px; }
.fn-dark .fn-eyebrow { color: #7FA6F5; }
.fn-h1 { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(28px, 7.4vw, 54px); hyphens: auto; overflow-wrap: break-word; line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 20px; color: #0F1B33; text-wrap: balance; }
.fn-h2 { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(29px, 6.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
/* Hervorhebung in der Headline: Unterstreichung zeichnet sich nach dem Laden von links nach rechts */
.fn-mark { white-space: nowrap; background-image: linear-gradient(#2F6BE6, #2F6BE6); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% 0.11em; padding-bottom: 0.04em; }
@keyframes fn-mark-draw { from { background-size: 0% 0.11em; } to { background-size: 100% 0.11em; } }
.js .fn-mark { animation: fn-mark-draw .9s cubic-bezier(.2,.8,.2,1) .5s both; }
.fn-h3 { font-family: Archivo, sans-serif; font-weight: 700; font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.fn-lead { font-size: clamp(17px, 2.2vw, 18px); line-height: 1.65; color: #4A5A78; margin: 0; text-wrap: pretty; }
.fn-dark .fn-lead { color: #C9D6EE; }
.fn-body { font-size: 16px; color: #4A5A78; margin: 0; text-wrap: pretty; }
.fn-meta { font-size: 14px; color: #6B7A96; }
.fn-dark .fn-meta { color: #A9B8D4; }

/* Buttons */
.fn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #2F6BE6; color: #FFFFFF; padding: 16px 24px; border: none; border-radius: 12px; font: inherit; font-weight: 700; font-size: clamp(15.5px, 4vw, 17px); text-align: center; cursor: pointer; transition: transform .3s, box-shadow .3s; }
.fn-btn:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,107,230,0.3); }
.fn-btn:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.fn-btn-block { width: 100%; }

/* Hero mit Video */
.fn-hero { max-width: 1160px; margin: 0 auto; padding: clamp(36px, 7vw, 64px) clamp(18px, 5vw, 28px) clamp(48px, 8vw, 72px); text-align: center; }
.fn-hero-text { max-width: 820px; margin: 0 auto clamp(28px, 5vw, 40px); }
.fn-hero .fn-lead { max-width: 640px; margin: 0 auto; }
.fn-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: clamp(24px, 4vw, 32px); }

.fn-video { position: relative; max-width: 920px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0A1326; box-shadow: 0 24px 50px rgba(15,27,51,0.08); }
.fn-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0A1326; }
.fn-video-ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: #A9B8D4; font-size: 14px; font-weight: 600; background: #16264A; }
.fn-video-ph span:first-child { width: 64px; height: 64px; border-radius: 999px; background: rgba(255,255,255,0.08); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.fn-video.is-missing video { display: none; }
.fn-video.is-missing .fn-video-ph { display: flex; }

/* Karten (Teaser) */
.fn-head { max-width: 680px; margin: 0 0 clamp(28px, 5vw, 44px); }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.fn-card { background: #FFFFFF; border: 1px solid #E3E8F0; border-radius: 16px; padding: clamp(22px, 4vw, 28px); }
.fn-num { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(24px, 6.4vw, 34px); line-height: 1; letter-spacing: -0.03em; color: #2F6BE6; margin-bottom: 16px; }

/* Heft-Mockup neben der Teaser-Überschrift */
.fn-cover-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: clamp(32px, 6vw, 56px); }
.fn-cover img { width: clamp(150px, 20vw, 230px); height: auto; display: block; mix-blend-mode: multiply; } /* PNG hat weißen Hintergrund: verschmilzt so mit der Sektionsfarbe */
/* Schmale Handys: Heft unter den Text, damit die Überschrift Platz behält */
@media (max-width: 559.98px) { .fn-cover-row { grid-template-columns: 1fr; } .fn-cover img { width: 180px; margin: 0 auto; } }

/* Zweispalter (Für wen, Über mich) */
.fn-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 6vw, 56px); align-items: center; }
.fn-checks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.fn-checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: #16264A; }
.fn-check { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; border-radius: 50%; background: #1A2C52; display: flex; align-items: center; justify-content: center; }
.fn-photo { position: relative; height: clamp(320px, 80vw, 480px); border-radius: 20px; overflow: hidden; background: #EEF2F8; }
.fn-sign { border-top: 1px solid #E3E8F0; padding-top: 20px; margin-top: 24px; }
.fn-sign strong { display: block; font-family: Archivo, sans-serif; font-weight: 700; font-size: 19px; }

/* Formular */
.fn-form-head { max-width: 640px; margin: 0 auto clamp(28px, 5vw, 36px); text-align: center; }
.fn-panel { max-width: 640px; margin: 0 auto; background: #FFFFFF; color: #0F1B33; border-radius: 18px; padding: clamp(20px, 5vw, 32px); }
.fn-panel :focus-visible { outline-color: #2F6BE6; }
.fn-panel .fn-meta { color: #6B7A96; }
.fn-fields { display: grid; gap: 18px; }
.fn-field label { display: block; font-size: 14.5px; font-weight: 700; color: #16264A; margin-bottom: 6px; }
.fn-field .fn-opt { font-weight: 500; color: #6B7A96; }
.fn-input { width: 100%; padding: 13px 14px; border: 1px solid #D5DCE8; border-radius: 10px; background: #FFFFFF; color: #0F1B33; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fn-input:hover { border-color: #A6B1C4; }
.fn-input:focus { outline: none; border-color: #2F6BE6; box-shadow: 0 0 0 3px #DCE7FC; }
.fn-input[aria-invalid="true"] { border-color: #E08A00; box-shadow: 0 0 0 3px #FDF3E2; }
.fn-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: #9A5B00; }
.fn-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: #3A4A68; }
.fn-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: #2F6BE6; cursor: pointer; }
.fn-consent label { cursor: pointer; }
.fn-consent a { color: #2F6BE6; text-decoration: underline; }
.fn-consent a:hover { color: #1A2C52; }
.fn-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.fn-alert { border-radius: 12px; padding: 14px 16px; background: #FDF3E2; color: #9A5B00; font-size: 15px; font-weight: 600; line-height: 1.5; }
.fn-alert a { color: #9A5B00; text-decoration: underline; }
.fn-note { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: #6B7A96; }

/* Danke-Ansicht */
.fn-thanks h2:focus { outline: none; }
.fn-success { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #E6F5EE; border: 1px solid #CDEBDD; color: #157A4B; font-size: 13.5px; font-weight: 700; margin-bottom: 16px; }
.fn-divider { height: 1px; background: #E6EAF1; margin: clamp(28px, 5vw, 36px) 0; }
.fn-cal-ph { min-height: 360px; border-radius: 12px; background: #F5F7FB; border: 1px solid #E3E8F0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; }
.fn-cal-ph p { font-size: 14px; line-height: 1.6; color: #4A5A78; margin: 0; max-width: 380px; text-wrap: pretty; }
.fn-cal-ph a { color: #2F6BE6; text-decoration: underline; }
[data-calendly]:not(:has(iframe)) + .fn-cal-note { display: none; }

/* Dashboard-Ausschnitt (/demo): bewusst angeschnitten, unten weich ausgeblendet und leicht unscharf */
.fn-shot { position: relative; max-width: 960px; margin: clamp(32px, 6vw, 48px) auto 0; aspect-ratio: 16 / 9; border-radius: 20px 20px 0 0; overflow: hidden; background: #FFFFFF; border: 1px solid #E3E8F0; border-bottom: 0; box-shadow: 0 -12px 40px rgba(15,27,51,0.06); }
.fn-shot img { position: absolute; inset: 0; width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top left; display: block; }
.fn-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to bottom, rgba(245,247,251,0), #F5F7FB 92%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); pointer-events: none; }
.fn-shot-ph { position: absolute; inset: 0; display: none; padding: clamp(14px, 3vw, 24px); filter: blur(0.6px); }
.fn-shot.is-missing img { display: none; }
.fn-shot.is-missing .fn-shot-ph { display: block; }
.fn-shot-bar { display: flex; align-items: center; gap: 10px; padding-bottom: clamp(10px, 2vw, 16px); margin-bottom: clamp(6px, 1.5vw, 10px); border-bottom: 1px solid #E6EAF1; font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(13px, 2.4vw, 17px); color: #16264A; }
.fn-shot-bar i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: #2F6BE6; }
.fn-shot-row { display: flex; align-items: center; gap: clamp(8px, 2vw, 16px); padding: clamp(7px, 1.6vw, 12px) 0; border-bottom: 1px solid #EEF2F8; }
.fn-shot-row b { flex: 0 0 auto; width: clamp(22px, 4vw, 32px); height: clamp(22px, 4vw, 32px); border-radius: 50%; background: #EEF2F8; }
.fn-shot-row span { display: block; height: clamp(7px, 1.3vw, 10px); border-radius: 4px; background: #E3E8F0; }
.fn-shot-row .fn-shot-txt { flex: 1 1 auto; display: grid; gap: 6px; }
.fn-shot-row .fn-shot-txt span:last-child { width: 60%; background: #EEF2F8; }
.fn-shot-score { flex: 0 0 auto; min-width: clamp(42px, 8vw, 58px); padding: 4px 8px; border-radius: 999px; text-align: center; font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(12px, 2.2vw, 15px); }
.fn-shot-score.is-hi { background: #E6F5EE; color: #157A4B; }
.fn-shot-score.is-mid { background: #DCE7FC; color: #1A2C52; }
.fn-shot-score.is-lo { background: #FDF3E2; color: #9A5B00; }
@media (max-width: 600px) { .fn-shot { aspect-ratio: 4 / 3; } }

/* Echter Ausschnitt aus dem Demosystem (/demo): stummer Loop im Browserrahmen */
.fn-loop { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #F5F7FB; border: 1px solid #E3E8F0; box-shadow: 0 24px 50px rgba(15,27,51,0.08); }
.fn-loop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fn-loop-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.94); border: 1px solid #E3E8F0; color: #16264A; font-size: 13px; font-weight: 700; line-height: 1.3; box-shadow: 0 6px 16px rgba(15,27,51,0.08); }
.fn-loop-badge i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #157A4B; box-shadow: 0 0 0 3px #E6F5EE; }
/* Mobil: auf das Portal-Fenster zuschneiden, damit es größer wirkt */
@media (max-width: 600px) { .fn-loop { aspect-ratio: 4 / 3; } .fn-loop video { object-position: 82% 50%; } }

/* Footer wie Startseite */
.fn-footer { border-top: 1px solid #E6EAF1; }

@media (prefers-reduced-motion: reduce) {
  .fn-btn, .fn-input { transition: none; }
  .js .fn-mark { animation: none; }
}

/* ---------- Bausteine für die Startseite (Positionierung „vorqualifizierte Anfragen“) ---------- */

/* Zweiter Button: weiß mit Rahmen, gleiche Größe wie .fn-btn */
.fn-btn-ghost { background: #FFFFFF; color: #1A2C52; box-shadow: inset 0 0 0 1.5px #D5DCE8; }
.fn-btn-ghost:hover { color: #1A2C52; box-shadow: inset 0 0 0 1.5px #2F6BE6, 0 14px 30px rgba(15,27,51,0.08); }

/* Kleine Überschrift über Kartentiteln (wie „Format 1“) */
.fn-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6B7A96; margin: 0 0 8px; }
.fn-alt .fn-card { border-color: #E3E8F0; }
/* Hervorgehobene Karte: 2px Navy, Innenabstand um 1px kleiner */
.fn-card.is-strong { border: 2px solid #1A2C52; padding: clamp(21px, 4vw, 27px); }

/* Stimmen aus Gesprächen */
.fn-voice { margin: 0; font-family: Archivo, sans-serif; font-weight: 500; font-size: clamp(17px, 2.2vw, 19px); line-height: 1.45; color: #16264A; text-wrap: pretty; }

/* Ablauf in Schritten */
.fn-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 20px; margin: 0; padding: 0; list-style: none; }
.fn-step { border-top: 2px solid #1A2C52; padding-top: 18px; }
.fn-step-n { width: 36px; height: 36px; border-radius: 50%; background: #1A2C52; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.fn-step .fn-h3 { font-size: 18px; }
.fn-step .fn-body { font-size: 15px; }
.fn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid #DCE7FC; color: #1A2C52; font-size: 12px; font-weight: 700; line-height: 1.4; }
.fn-chip.is-warn { background: #FDF3E2; border-color: #FDF3E2; color: #9A5B00; }

/* Ersparnis-Rechner */
.fn-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: stretch; }
.fn-unit-wrap { position: relative; }
.fn-unit-wrap .fn-input { padding-right: 64px; }
.fn-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 600; color: #6B7A96; pointer-events: none; }
.fn-hint { margin: 6px 0 0; font-size: 13.5px; color: #6B7A96; }
.fn-result { display: flex; flex-direction: column; justify-content: center; }
.fn-result-num { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(36px, 8vw, 52px); line-height: 1; letter-spacing: -0.03em; color: #0F1B33; margin: 4px 0 10px; }
.fn-result-sub { font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(20px, 4vw, 24px); color: #2F6BE6; margin: 0 0 16px; }
