/* flottery-Unterseite im Design der App (App/Theme.swift): Königsblau als Akzent, Tinte für Text,
   Pastell zum Unterscheiden, weiße Karten (Radius 22) ohne Rand und Schatten auf hellgrauem Grund.
   Kopf und Fuß bleiben die der Seite. Kein Inline-CSS: alles hier, Positionen setzt flottery.js. */

.fl {
  --bg: #F2F2F7;
  --panel: #FFFFFF;
  --ink: #1B1F27;
  --ink-2: #6B7080;
  --ink-body: #3A3F4B;
  --rule: rgb(27 31 39 / .09);
  --fl-accent: #2D4FE0;
  --accent: #2D4FE0; --accent-ring: rgb(45 79 224 / .22); --accent-text: #2D4FE0; --signal: #2D4FE0; /* Linie und Punkte der Kopfleiste in Blau */
  --fl-accent-press: #2443C6;
  --fl-ring: rgb(45 79 224 / .22);
  --fl-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --fl-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --fl-r: 22px;
  --fl-drawer: cubic-bezier(.32, .72, 0, 1);
  --fl-out: cubic-bezier(.23, 1, .32, 1);
  /* Pastell aus der App */
  --p-sage: #9CC9A8; --p-sky: #9EC3E8; --p-lav: #B7AEE6; --p-peach: #F2B999; --p-rose: #EDA8BC;
  --p-butter: #E9D58F; --p-sea: #86C9B8; --p-slate: #AEB8C6; --p-mist: #CDD2D9; --p-graphite: #7D8796;
  background: var(--bg);
  font-family: var(--fl-text);
  font-feature-settings: normal;
  color: var(--ink);
}
.fl ::selection { background: var(--fl-accent); color: #fff; }
.fl :focus-visible { outline-color: var(--fl-accent); }
.fl-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.fl h1, .fl h2, .fl h3 { font-family: var(--fl-display); font-stretch: 108%; color: var(--ink); text-wrap: balance; }

/* ---------- Bausteine ---------- */
.fl-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: #1B1F27; background: color-mix(in srgb, var(--tone, var(--p-mist)) 40%, transparent);
}
.fl-badge svg, .fl-facts svg, .fl-btn svg, .fl-back svg, .fl-replay svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-sage { --tone: var(--p-sage); } .fl-sky { --tone: var(--p-sky); } .fl-lav { --tone: var(--p-lav); } .fl-peach { --tone: var(--p-peach); }
.fl-rose { --tone: var(--p-rose); } .fl-butter { --tone: var(--p-butter); } .fl-sea { --tone: var(--p-sea); } .fl-slate { --tone: var(--p-slate); }
.fl-mist { --tone: var(--p-mist); }

.fl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--fl-accent); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  transition: transform .16s ease-out, background-color .2s ease;
}
.fl-btn svg { width: 18px; height: 18px; }
.fl-btn:active { transform: scale(.97); }
.fl-btn-quiet { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .fl-btn:hover { background: var(--fl-accent-press); }
  .fl-btn-quiet:hover { background: #fff; color: var(--fl-accent); }
}

.fl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-accent); box-shadow: 0 0 0 4px var(--fl-ring); flex: none; }
@media (prefers-reduced-motion: no-preference) { .fl-dot { animation: fl-breathe 2.8s ease-in-out infinite; } }
@keyframes fl-breathe { 50% { box-shadow: 0 0 0 7px rgb(45 79 224 / .08); } }

/* ---------- Bühne: Kopf, Rundgang, Telefon ---------- */
.fl-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: clamp(40px, 6vw, 96px);
  grid-template-areas: "hero phone" "kicker phone" "tour phone";
  padding-top: clamp(28px, 4vw, 56px);
}
.fl-copy { display: contents; }
.fl-hero { grid-area: hero; padding-bottom: clamp(48px, 7vw, 96px); }
.fl-kicker { grid-area: kicker; }
.fl-tour { grid-area: tour; }
.fl-phone-col { grid-area: phone; position: relative; }
.fl-sticky { position: sticky; top: calc(var(--bar) + 20px); display: grid; justify-items: center; gap: 18px; }

.fl-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: clamp(28px, 4vw, 44px);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: color .2s ease;
}
.fl-back svg { width: 18px; height: 18px; transition: transform .3s var(--fl-out); }
@media (hover: hover) and (pointer: fine) { .fl-back:hover { color: var(--ink); } .fl-back:hover svg { transform: translateX(-2px); } }
.fl-brand { display: flex; align-items: center; gap: 16px; }
.fl-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 1px 2px rgb(27 31 39 / .12), 0 0 0 1px rgb(27 31 39 / .05); }
.fl-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; font-size: .875rem; font-weight: 600; color: var(--ink);
}
.fl-hero h1 { margin-top: 26px; font-size: clamp(3rem, 6.4vw, 4.5rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.fl-lede { margin-top: 20px; max-width: 30em; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-body); text-wrap: pretty; }
.fl-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fl-facts li {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: #fff; font-size: .9375rem; font-weight: 500;
}
.fl-facts svg { width: 18px; height: 18px; color: var(--fl-accent); stroke-width: 2.2; }
.fl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.fl-kicker { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-stretch: 100%; }

/* Rundgang am Rechner: Schritte untereinander, der aktive voll, links eine Fortschrittslinie */
.fl-tour { position: relative; margin-top: 8px; padding: 0 0 18vh 28px; list-style: none; counter-reset: step; }
.fl-tour::before, .fl-tour::after { content: ""; position: absolute; left: 5px; top: 28px; bottom: 18vh; width: 2px; border-radius: 2px; background: var(--rule); }
.fl-tour::after { background: var(--fl-accent); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.fl-step { position: relative; padding-block: clamp(56px, 14vh, 140px); transition: opacity .35s ease; }
.fl-step:first-child { padding-top: 32px; }
.fl-step::before {
  content: ""; position: absolute; left: -28px; top: calc(clamp(56px, 14vh, 140px) + 16px); width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--p-mist); transition: box-shadow .3s ease, background-color .3s ease;
}
.fl-step:first-child::before { top: 48px; }
.fl-step.is-active::before { background: var(--fl-accent); box-shadow: 0 0 0 5px var(--fl-ring); }
.js .fl-step:not(.is-active) { opacity: .38; }
.fl-step h3 { margin-top: 16px; font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.fl-step p { margin-top: 12px; max-width: 26em; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-body); text-wrap: pretty; }
.fl-show {
  margin-top: 18px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--fl-accent); font: 600 .9375rem/1 var(--fl-text);
  transition: transform .16s ease-out, background-color .2s ease, color .2s ease;
}
.fl-show:active { transform: scale(.97); }
.fl-step.is-active .fl-show { background: var(--fl-accent); color: #fff; }
html:not(.js) .fl-show { display: none; }

/* ---------- Telefon ---------- */
.fl-tilt { perspective: 1400px; }
.fl-phone {
  --k: .82;
  position: relative; width: calc(402px * var(--k) + 22px); height: calc(874px * var(--k) + 22px);
  border-radius: calc(62px * var(--k) + 11px);
  background: linear-gradient(145deg, #5B5F66, #2A2D33 40%, #1A1C20);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .18), 0 40px 80px -30px rgb(27 31 39 / .45), 0 18px 36px -18px rgb(27 31 39 / .35);
  transform-style: preserve-3d; will-change: transform;
}
.fl-phone::before { /* schwarzer Rand ums Glas */
  content: ""; position: absolute; inset: 4px; border-radius: inherit; background: #050506;
}
.fl-device {
  position: absolute; left: 11px; top: 11px; width: 402px; height: 874px;
  transform: scale(var(--k)); transform-origin: 0 0;
  border-radius: 62px; overflow: hidden; background: #F2F2F7;
  isolation: isolate; -webkit-user-select: none; user-select: none;
}
.fl-screens { position: absolute; inset: 0; }
.fl-screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: auto;
  background: #F2F2F7; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  visibility: hidden;
}
.fl-screen::-webkit-scrollbar { display: none; }
.fl-screen.is-active { visibility: visible; z-index: 1; }
.fl-screen.is-under { visibility: visible; z-index: 0; }
.fl-screen[data-name="home"] { background: #2A2E36; }
.fl-content { position: relative; width: 402px; }
.fl-content img { width: 402px; height: auto; pointer-events: none; -webkit-user-drag: none; }
/* Nach unten auslaufen, damit der Schnitt unter der Leiste nicht auffällt */
.fl-content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #F2F2F7 70%); pointer-events: none; }
html:not(.js) .fl-screen:not([data-name="home"]) { display: none; }
html:not(.js) .fl-screen[data-name="home"] { visibility: visible; }

.fl-cap {
  position: sticky; top: 0; z-index: 2; height: 116px; margin-bottom: -116px; pointer-events: none;
  background: no-repeat top / 402px auto;
  -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent);
}
.fl-hot {
  z-index: 3;
  position: absolute; display: block; padding: 0; border: 0; border-radius: 22px; cursor: pointer;
  background: transparent; transition: background-color .12s ease;
}
.fl-hot.fl-round { border-radius: 50%; }
.fl-hot:active { background: rgb(27 31 39 / .07); }
.fl-hot:focus-visible { outline: 3px solid var(--fl-accent); outline-offset: -3px; }
html:not(.js) .fl-hot, html:not(.js) .fl-tabbar button { pointer-events: none; }

.fl-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 54px; pointer-events: none;
  display: grid; grid-template-columns: 1fr 126px 1fr; align-items: center; padding: 0 30px 0 34px;
  color: #000; transition: color .25s ease;
}
.fl-device[data-sb="light"] .fl-status { color: #fff; }
.fl-time { justify-self: center; font: 600 17px/1 var(--fl-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fl-island { width: 126px; height: 37px; margin-top: -2px; border-radius: 20px; background: #000; }
.fl-sys { justify-self: center; display: flex; align-items: center; gap: 6px; }
.fl-sys svg { height: 12px; width: auto; fill: currentColor; }
.fl-sys svg:last-child { height: 13px; }

.fl-tabbar {
  position: absolute; z-index: 4; left: 18.7px; top: 789.3px; width: 364.7px; height: 66px;
  border-radius: 33px; overflow: hidden;
  display: grid; grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 8px 24px -10px rgb(27 31 39 / .25);
}
.fl-tabimg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.fl-tabimg.is-on { opacity: 1; }
html:not(.js) .fl-tabimg[data-tab="home"] { opacity: 1; }
.fl-tabbar button { position: relative; z-index: 1; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 33px; }
.fl-tabbar button:focus-visible { outline: 3px solid var(--fl-accent); outline-offset: -4px; }

/* Hinweis: pulsierender Punkt auf dem, was man antippen kann */
.fl-hint {
  position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  background: rgb(255 255 255 / .9); box-shadow: 0 0 0 6px rgb(255 255 255 / .35), 0 6px 16px rgb(0 0 0 / .25);
  opacity: 0; transition: opacity .3s ease;
}
.fl-hint.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .fl-hint.is-on { animation: fl-tap 2.4s var(--fl-out) infinite; } }
@keyframes fl-tap {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px rgb(255 255 255 / .35), 0 6px 16px rgb(0 0 0 / .25); }
  12% { transform: scale(.86); }
  40% { transform: scale(1); box-shadow: 0 0 0 22px rgb(255 255 255 / 0), 0 6px 16px rgb(0 0 0 / .25); }
}

.fl-caption { display: flex; align-items: center; gap: 10px; max-width: 340px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.fl-caption span[data-caption] { transition: opacity .2s ease, filter .2s ease; }
.fl-caption .is-swap { opacity: 0; filter: blur(3px); }

/* ---------- Abschnitte ---------- */
.fl-section { padding-top: clamp(80px, 11vw, 150px); }
.fl-last { padding-bottom: clamp(88px, 11vw, 150px); }
.fl-head { max-width: 40em; }
.fl-head h2 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.fl-head p { margin-top: 14px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; color: var(--ink-body); text-wrap: pretty; }

/* Beleg scannen */
.fl-scan {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--p-sky) 34%, #fff), color-mix(in srgb, var(--p-lav) 22%, #fff));
}
.fl-receipt { position: relative; justify-self: center; width: min(100%, 300px); margin: 0; transform: rotate(-2deg); }
.fl-paper {
  padding: 26px 24px 40px; background: #fff; color: #2B2F38;
  font: 500 .875rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: -.01em;
  box-shadow: 0 24px 40px -24px rgb(27 31 39 / .35);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.fl-paper p + p { margin-top: 6px; }
.fl-r-brand { font-size: 1.125rem; font-weight: 700; letter-spacing: .02em; text-align: center; }
.fl-r-small { font-size: .75rem; color: #6B7080; }
.fl-r-center, .fl-r-brand + .fl-r-small { text-align: center; }
.fl-r-row { display: flex; justify-content: space-between; gap: 12px; }
.fl-r-rule { height: 0; margin-block: 10px !important; border-top: 1.5px dashed #C9CCD3; }
.fl-r-sum { font-size: 1.0625rem; font-weight: 700; }
.fl-paper [data-field] { margin: -1px -4px; padding: 1px 4px; border-radius: 5px; transition: background-color .25s ease, box-shadow .25s ease; }
.fl-paper [data-field].is-hit { background: rgb(45 79 224 / .12); box-shadow: inset 0 0 0 1.5px rgb(45 79 224 / .55); }
.fl-beam {
  position: absolute; left: -14px; right: -14px; top: 0; height: 64px; margin-top: -60px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgb(45 79 224 / 0), rgb(45 79 224 / .14) 92%, var(--fl-accent) 94%, rgb(45 79 224 / 0));
  filter: drop-shadow(0 4px 10px rgb(45 79 224 / .5));
}
.fl-form { padding: 24px; border-radius: var(--fl-r); background: #fff; box-shadow: 0 24px 48px -32px rgb(27 31 39 / .3); }
.fl-form-title { font: 700 1.25rem/1.2 var(--fl-display); font-stretch: 108%; letter-spacing: -.02em; }
.fl-form dl { margin: 16px 0 0; }
.fl-form dl > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; border-top: 1px solid var(--rule); }
.fl-form dt { color: var(--ink-2); font-size: .9375rem; }
.fl-form dd { position: relative; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .35s ease, filter .35s ease, transform .35s var(--fl-out); }
.fl-form dd::before { /* Platzhalter, bis der Wert erkannt ist */
  content: ""; position: absolute; right: 0; top: 50%; width: 72px; height: 10px; margin-top: -5px; border-radius: 5px;
  background: #EEF0F4; opacity: 0; transition: opacity .2s ease;
}
.fl-scan.is-ready .fl-form dd:not(.is-on) { color: transparent; filter: blur(4px); transform: translateY(4px); }
.fl-scan.is-ready .fl-form dd:not(.is-on)::before { opacity: 1; }
.fl-save { position: relative; display: grid; margin-top: 18px; }
.fl-save > * { grid-area: 1 / 1; }
.fl-save-btn {
  display: grid; place-items: center; height: 50px; border-radius: 999px; background: var(--fl-accent); color: #fff; font-weight: 600;
  transition: transform .16s ease-out, opacity .25s ease;
}
.fl-save-btn.is-press { transform: scale(.97); }
.fl-done {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; font-weight: 600; color: var(--ink);
  opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .4s var(--fl-out);
}
.fl-done svg { width: 30px; height: 30px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fl-done circle { stroke: var(--fl-accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .5s var(--fl-out); }
.fl-done path { stroke: var(--fl-accent); stroke-width: 4; stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset .35s var(--fl-out) .3s; }
.fl-scan.is-saved .fl-save-btn, html:not(.js) .fl-save-btn { opacity: 0; }
.fl-scan.is-saved .fl-done, html:not(.js) .fl-done { opacity: 1; transform: none; }
.fl-scan.is-saved .fl-done circle, .fl-scan.is-saved .fl-done path, html:not(.js) .fl-done circle, html:not(.js) .fl-done path { stroke-dashoffset: 0; }
.fl-replay {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  color: var(--fl-accent); font: 600 .9375rem/1 var(--fl-text); opacity: 0; transition: opacity .3s ease;
}
.fl-replay svg { width: 18px; height: 18px; }
.fl-scan.is-saved .fl-replay { opacity: 1; }
html:not(.js) .fl-replay { display: none; }

/* Gegenüberstellung */
.fl-vs { margin-top: clamp(28px, 4vw, 44px); }
.fl-seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #E3E5EB;
}
.fl-seg button {
  position: relative; z-index: 1; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 .9375rem/1 var(--fl-text); color: var(--ink-2); transition: color .25s ease;
}
.fl-seg button[aria-pressed="true"] { color: var(--ink); }
.fl-vs[data-state="mit"] .fl-seg button[aria-pressed="true"] { color: #fff; }
.fl-seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff;
  box-shadow: 0 2px 6px rgb(27 31 39 / .12); transition: transform .4s var(--fl-drawer), background-color .3s ease;
}
.fl-vs[data-state="mit"] .fl-seg-thumb { transform: translateX(100%); background: var(--fl-accent); }
.fl-vs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.fl-vs-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 20px; border-radius: var(--fl-r); background: #fff;
}
.fl-vs-list .fl-badge { grid-row: 1 / 3; transition: filter .35s ease, opacity .35s ease; }
.fl-vs-list strong { align-self: end; font-size: 1.0625rem; font-weight: 600; }
.fl-swap { display: grid; color: var(--ink-body); line-height: 1.5; }
.fl-swap > span { grid-area: 1 / 1; transition: opacity .3s ease, filter .3s ease, transform .35s var(--fl-out); transition-delay: var(--d, 0ms); }
.fl-vs[data-state="ohne"] [data-v="mit"], .fl-vs[data-state="mit"] [data-v="ohne"] { opacity: 0; filter: blur(4px); transform: translateY(6px); pointer-events: none; }
.fl-vs[data-state="ohne"] .fl-badge { filter: grayscale(1); opacity: .55; }
.fl-vs[data-state="ohne"] [data-v="ohne"] { color: var(--ink-2); }

/* Zahlen */
.fl-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 44px);
  border-radius: var(--fl-r); background: #fff; overflow: hidden;
}
.fl-metrics > div { display: grid; gap: 6px; padding: clamp(20px, 2.4vw, 30px); }
.fl-metrics > div + div { box-shadow: -1px 0 0 var(--rule); }
.fl-val { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.fl-val b { font: 700 clamp(1.75rem, 3vw, 2.5rem)/1 var(--fl-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fl-val small { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.fl-lbl { font-size: .875rem; color: var(--ink-2); line-height: 1.35; }

.fl-bar { margin-top: 12px; padding: clamp(20px, 2.4vw, 30px); border-radius: var(--fl-r); background: #1B1F27; color: #fff; }
.fl-bar-track { display: flex; gap: 3px; height: 14px; }
.fl-bar-track span { border-radius: 7px; transform-origin: left; }
.js .fl-bar-track span { transform: scaleX(0); transition: transform .9s var(--fl-out); }
.js .fl-bar.is-in .fl-bar-track span { transform: none; }
.fl-bar-track span:nth-child(2) { transition-delay: .08s; } .fl-bar-track span:nth-child(3) { transition-delay: .16s; }
.fl-bar-track span:nth-child(4) { transition-delay: .24s; } .fl-bar-track span:nth-child(5) { transition-delay: .32s; } .fl-bar-track span:nth-child(6) { transition-delay: .4s; }
span.fl-c-kauf { flex: 76.9; } span.fl-c-vers { flex: 6.9; } span.fl-c-tank { flex: 6.7; } span.fl-c-reif { flex: 2.9; } span.fl-c-serv { flex: 2.2; } span.fl-c-rest { flex: 4.4; }
.fl-c-kauf { background: var(--p-graphite); } .fl-c-vers { background: var(--p-lav); } .fl-c-tank { background: var(--p-sea); }
.fl-c-reif { background: var(--p-slate); } .fl-c-serv { background: var(--p-sky); } .fl-c-rest { background: var(--p-butter); }
.fl-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin-top: 22px; font-size: .9375rem; color: rgb(255 255 255 / .62); }
.fl-legend li { display: grid; grid-template-columns: 10px auto; column-gap: 10px; align-items: center; }
.fl-legend i { width: 10px; height: 10px; border-radius: 50%; grid-row: 1 / 3; align-self: start; margin-top: 7px; }
.fl-legend b { grid-column: 2; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Privat und Preis */
.fl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.fl-cards li { display: grid; gap: 6px; padding: 24px; border-radius: var(--fl-r); background: #fff; }
.fl-cards strong { margin-top: 12px; font-size: 1.125rem; font-weight: 600; }
.fl-cards li > span:last-child { color: var(--ink-body); line-height: 1.5; }
.fl-price {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  margin-top: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--fl-r); background: #1B1F27; color: #fff;
}
.fl-price-big { font: 700 clamp(1.375rem, 2.4vw, 1.875rem)/1.15 var(--fl-display); font-stretch: 108%; letter-spacing: -.025em; }
.fl-price-big b { color: #8FA4FF; }
.fl-price-sub { margin-top: 8px; color: rgb(255 255 255 / .62); }

.fl-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: .9375rem; font-weight: 500; }
.fl-links a { color: var(--fl-accent); }
@media (hover: hover) and (pointer: fine) { .fl-links a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* Einblenden beim Scrollen (nur mit JS) */
.js .fl-rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .9s var(--fl-out); transition-delay: var(--d, 0ms); }
.js .fl-rv.is-in { opacity: 1; transform: none; }

/* Verkaufsmappe: Kapitel an- und abwählen wie im Blatt der App, Seiten schlagen sich um die linke Kante um (Lage setzt flottery.js) */
.fl-dossier {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(28px, 5vw, 64px); border-radius: 32px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--p-rose) 26%, #fff), color-mix(in srgb, var(--p-peach) 20%, #fff));
  overflow: clip; /* umschlagende Blätter ragen nicht über den Rand */
}
.fl-ch-head { display: flex; align-items: center; gap: 10px; font: 700 1.25rem/1.2 var(--fl-display); letter-spacing: -.02em; color: var(--ink); }
.fl-pro { padding: 3px 9px; border-radius: 999px; background: var(--fl-accent); color: #fff; font: 600 .75rem/1.2 var(--fl-text); letter-spacing: .01em; }
.fl-ch-count { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.fl-ch-count b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* Kapitel: kleine Bilder der echten Seiten, Schalter wie in den Einstellungen; die ganze Zeile schaltet */
.fl-ch-list { margin-top: 14px; padding: 0; list-style: none; border-radius: var(--fl-r); background: #fff; overflow: hidden; }
.fl-ch-list li + li { box-shadow: inset 0 1px 0 var(--rule); }
.fl-ch-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px;
  border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s ease;
}
div.fl-ch-row { cursor: default; }
button.fl-ch-row:active { background: #F4F5F8; }
@media (hover: hover) and (pointer: fine) { button.fl-ch-row:hover { background: #F7F7FA; } }
.fl-ch-list li.is-here .fl-ch-row { background: color-mix(in srgb, var(--fl-accent) 6%, #fff); }
.fl-ch-list li.is-here .fl-ch-t { color: var(--fl-accent); }
.fl-thumbs { position: relative; flex: none; width: 46px; height: 46px; }
.fl-thumbs img {
  position: absolute; top: 0; left: 8px; width: 30px; height: 42px; border-radius: 3px; background: #fff; object-fit: cover; object-position: top;
  box-shadow: 0 0 0 1px rgb(27 31 39 / .08), 0 4px 8px -4px rgb(27 31 39 / .3);
  transition: transform .35s var(--fl-out), filter .25s ease, opacity .25s ease;
}
.fl-thumbs img:first-child { z-index: 2; }
.fl-thumbs img:nth-child(2) { transform: translate(8px, 3px) rotate(6deg); }
.fl-thumbs img:nth-child(3) { transform: translate(-6px, 3px) rotate(-6deg); }
.fl-ch-t { flex: 1; min-width: 0; display: grid; gap: 1px; font: 600 .9375rem/1.25 var(--fl-text); transition: color .2s ease; }
.fl-ch-t small { font-size: .8125rem; font-weight: 400; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-ch-always { flex: none; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.fl-switch {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #34C759;
  transition: background-color .2s ease;
}
.fl-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / .18), 0 0 0 .5px rgb(0 0 0 / .04);
  transform: translateX(18px); transition: transform .28s var(--fl-out), width .16s ease-out;
}
button.fl-ch-row:active .fl-switch::after { width: 30px; }
button.fl-ch-row[aria-checked="true"]:active .fl-switch::after { transform: translateX(12px); }
.fl-ch-row[aria-checked="false"] .fl-switch { background: #E3E5EB; }
.fl-ch-row[aria-checked="false"] .fl-switch::after { transform: none; }
.fl-ch-row[aria-checked="false"] .fl-ch-t { color: var(--ink-2); }
/* Abgeschaltet: die Seiten werden grau und rutschen zusammen */
.fl-ch-row[aria-checked="false"] .fl-thumbs img { filter: grayscale(1); opacity: .4; transform: translate(0, 4px) scale(.9); }
.fl-pdf { margin-top: 18px; height: 46px; padding: 0 20px; font-size: .9375rem; }

.fl-viewer { display: grid; justify-items: center; }
.fl-stack {
  position: relative; width: min(100%, 440px); aspect-ratio: 960 / 1359; perspective: 2200px;
  touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.fl-stack:focus-visible { outline: 3px solid var(--fl-accent); outline-offset: 10px; border-radius: 8px; }
.fl-page {
  position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 60%;
  --shadow: 0 1px 2px rgb(27 31 39 / .08), 0 22px 44px -26px rgb(27 31 39 / .45);
  transition: transform .5s var(--fl-drawer), opacity .3s ease, visibility 0s;
  transition-delay: var(--d, 0ms);
}
.fl-page img { display: block; width: 100%; height: 100%; border-radius: 6px; background: #fff; box-shadow: var(--shadow); -webkit-user-drag: none; }
/* Blätter weiter hinten im Stapel liegen etwas im Schatten */
.fl-page::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; background: rgb(27 31 39 / .5);
  opacity: var(--shade, 0); transition: opacity .4s ease;
}
.fl-page[data-pos="cur"] { z-index: 4; }
.fl-page[data-pos="n1"] { z-index: 3; transform: translate(8px, 10px) scale(.975); --shade: .05; }
.fl-page[data-pos="n2"] { z-index: 2; transform: translate(16px, 20px) scale(.95); --shade: .1; }
.fl-page[data-pos="far"], .fl-page[data-pos="out"] { z-index: 1; transform: translate(16px, 20px) scale(.95); opacity: 0; visibility: hidden; }
/* Weitergeblättert: das Blatt hebt sich und fliegt nach oben rechts in die Ecke; danach ganz ausgeblendet */
.fl-page[data-pos="gone"] {
  z-index: 5; transform: translate(72%, -34%) rotate(14deg) scale(.92); opacity: 0; visibility: hidden;
  transition: transform .55s var(--fl-out), opacity .3s ease .15s, visibility 0s linear .55s;
}
.fl-page.is-turning { z-index: 6; }
.fl-stack.is-drag .fl-page, .fl-stack.is-drag .fl-page::after { transition: none; }
/* Auftritt: die Blätter legen sich zusammen, sobald der Stapel ins Bild kommt */
.js .fl-dossier:not(.is-in) .fl-page[data-pos] { transform: translate3d(0, 40px, 0) rotate(var(--r0, 0deg)); opacity: 0; }

.fl-pager { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.fl-nav {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
  box-shadow: 0 1px 2px rgb(27 31 39 / .08); transition: transform .16s ease-out, opacity .2s ease, color .2s ease;
}
.fl-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fl-next svg { transform: scaleX(-1); }
.fl-nav:active { transform: scale(.94); }
.fl-nav:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .fl-nav:hover:not(:disabled) { color: var(--fl-accent); } }
.fl-where { display: grid; justify-items: center; min-width: 15em; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fl-where b { color: var(--ink); font-weight: 600; }
.fl-ttl { margin-top: 2px; color: var(--ink); font-weight: 600; }
.fl-note { margin-top: 14px; font-size: .8125rem; color: var(--ink-2); text-align: center; text-wrap: balance; }

/* ---------- Kleinere Bildschirme: Telefon unter dem Kopf, Rundgang als Wischreihe ---------- */
@media (max-width: 999px) {
  .fl-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "phone" "kicker" "tour"; }
  .fl-hero { padding-bottom: 40px; }
  .fl-sticky { position: static; }
  .fl-kicker { margin-top: 48px; }
  .fl-tour {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 360px); gap: 12px;
    margin: 16px calc(-1 * max(var(--gutter), env(safe-area-inset-left))) 0; padding: 0 max(var(--gutter), env(safe-area-inset-left)) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left)); scrollbar-width: none;
  }
  .fl-tour::-webkit-scrollbar { display: none; }
  .fl-tour::before, .fl-tour::after, .fl-step::before { display: none; }
  .fl-step, .fl-step:first-child { padding: 22px; border-radius: var(--fl-r); background: #fff; scroll-snap-align: start; }
  .js .fl-step:not(.is-active) { opacity: 1; }
  .fl-step h3 { font-size: 1.375rem; margin-top: 14px; }
  .fl-step p { font-size: 1rem; }
  .fl-show { background: #F2F2F7; }
  .fl-scan { grid-template-columns: 1fr; }
  .fl-vs-list, .fl-cards { grid-template-columns: 1fr; }
  .fl-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-metrics > div + div { box-shadow: none; }
  .fl-metrics > div:nth-child(even) { box-shadow: -1px 0 0 var(--rule); }
  .fl-metrics > div:nth-child(n+3) { box-shadow: 0 -1px 0 var(--rule); }
  .fl-metrics > div:nth-child(4) { box-shadow: 0 -1px 0 var(--rule), -1px 0 0 var(--rule); }
  .fl-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl-dossier { grid-template-columns: 1fr; }
  .fl-ch { order: -1; }
  .fl-pdf { width: 100%; }
  .fl-where { min-width: 0; flex: 1; }
}
@media (max-width: 520px) {
  .fl-seg { display: grid; width: 100%; }
  .fl-seg button { padding: 0 10px; }
  .fl-price .fl-btn { width: 100%; }
  .fl-scan { margin-inline: calc(-1 * var(--gutter) + 8px); border-radius: 28px; }
  .fl-dossier { margin-inline: calc(-1 * var(--gutter) + 8px); padding: 28px 18px; border-radius: 28px; }
  .fl-pager { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .fl-rv { opacity: 1; transform: none; transition: none; }
  .fl-swap > span { transition: opacity .2s ease; transform: none !important; filter: none !important; }
  .js .fl-bar-track span { transform: none; transition: none; }
  .fl-phone { transform: none !important; }
  .fl-page[data-pos], .js .fl-dossier:not(.is-in) .fl-page[data-pos] { transform: none; transition: opacity .25s ease, visibility 0s; }
  .fl-page[data-pos="n1"], .fl-page[data-pos="n2"] { opacity: 0; }
  .fl-page[data-pos="gone"] { transform: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
}
