/* =========================================================================
   SmartTap B2B — Stylesheet
   Markenfarben aus DesignAssets/SmartTap_Farben.png: Jeans (Navy) #232653,
   Neon (Lime) #bfd000, Eggwhite #f8f9f4, Blackwidow #0c0e11. Die Seite
   steht auf hellem Grund; Navy traegt Text und die Preis-Abschnitte,
   Blackwidow nur die Explosionsansicht (das Video ist dort dunkel).
   Lime sitzt auf Knoepfen und Markierungen.
   ========================================================================= */

:root {
  /* Marke */
  --navy: #232653;
  --navy-deep: #1a1d3e;
  --lime: #bfd000;
  --lime-hover: #d4e700;
  --lime-text: #5e6600;          /* Lime, das auf hellem Grund lesbar ist (WCAG AA) */
  --cream: #f8f9f4;
  --surface: #ffffff;
  --blackwidow: #0c0e11;

  /* Text */
  --tinte-leise: #565a7c;        /* gedaempfter Text, zur Marke getoent statt grau */
  --auf-dunkel: rgba(248, 249, 244, .72);

  /* Flaechen und Linien */
  --linie: rgba(35, 38, 83, .12);
  --linie-hell: rgba(248, 249, 244, .14);
  --glas: rgba(248, 249, 244, .07);
  --lime-tint: rgba(191, 208, 0, .18);

  /* Typo */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Form */
  --r-btn: 10px;
  --r-card: 18px;
  --r-gross: 22px;
  --r-pill: 100px;

  /* Schatten, immer navy-getoent */
  --sh-card: 0 2px 8px rgba(35,38,83,.06), 0 8px 24px rgba(35,38,83,.05);
  --sh-card-hover: 0 8px 32px rgba(35,38,83,.13), 0 2px 8px rgba(35,38,83,.06);
  --sh-knopf: 0 8px 20px rgba(35,38,83,.18);
  --sh-knopf-hover: 0 12px 28px rgba(35,38,83,.24);

  /* Bewegung */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Layout */
  --nav-h: 64px;
  --breite: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-family: var(--font-head); }
img { display: block; max-width: 100%; }
p { text-wrap: pretty; }
a { color: inherit; }
ol, ul { list-style: none; }

/* ── Grundbausteine ───────────────────────────────────────────────────── */

.abschnitt { padding: 72px 20px; }
.mitte { max-width: var(--breite); margin: 0 auto; }
.schmal { max-width: 780px; margin: 0 auto; }

.hell    { background: var(--cream); color: var(--navy); }
.weiss   { background: var(--surface); color: var(--navy); }
.dunkel  { background: var(--navy); color: var(--cream); }
.schwarz { background: var(--blackwidow); color: var(--cream); }

h2.titel {
  font-weight: 900; font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -.035em; line-height: 1.06; text-wrap: balance;
}
h3.unter {
  font-weight: 800; font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: -.03em; line-height: 1.2;
}
.vorspann { font-size: 17px; line-height: 1.65; color: var(--tinte-leise); max-width: 560px; }
.dunkel .vorspann { color: var(--auf-dunkel); }

/* Abschnittskopf: links ausgerichtet, am Desktop Titel und Vorspann
   nebeneinander. Das liest sich wie eine Seite, nicht wie eine Vorlage. */
.kopf { margin-bottom: 40px; display: grid; gap: 14px; }
@media (min-width: 900px) {
  .kopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 56px; margin-bottom: 56px; }
  .kopf .vorspann { padding-bottom: 6px; }
}

/* ── Knoepfe ──────────────────────────────────────────────────────────── */

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; min-height: 48px; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: -.01em; border-radius: var(--r-btn); text-decoration: none;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.knopf-lime { background: var(--lime); color: var(--navy); box-shadow: var(--sh-knopf); }
.knopf-lime:hover { background: var(--lime-hover); transform: translateY(-2px); box-shadow: var(--sh-knopf-hover); }
.knopf-lime:active { transform: translateY(1px); }
.knopf-geist { background: transparent; color: var(--navy); border: 1.5px solid rgba(35,38,83,.32); }
.knopf-geist:hover { background: rgba(35,38,83,.06); transform: translateY(-2px); }
.dunkel .knopf-geist { color: rgba(248,249,244,.9); border-color: rgba(248,249,244,.3); }
.dunkel .knopf-geist:hover { background: rgba(248,249,244,.1); }
.knopf-weiss { background: var(--cream); color: var(--navy); }
.knopf-weiss:hover { background: var(--surface); transform: translateY(-2px); }
.knopf:focus-visible, .fall-tab:focus-visible { outline: 3px solid rgba(191,208,0,.7); outline-offset: 3px; }
.cta-zeile { margin-top: 40px; }

/* ── Navigationsleiste ────────────────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; padding: 0 20px;
  background: rgba(248,249,244,.78); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
nav.fest { background: rgba(248,249,244,.94); border-bottom-color: var(--linie); }
nav .innen {
  max-width: var(--breite); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
nav img { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--tinte-leise); text-decoration: none; position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--lime); transition: width .25s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-rechts { display: flex; align-items: center; gap: 10px; }
#langSwitch {
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .08em; color: var(--navy);
  background: none; border: 1px solid rgba(35,38,83,.3);
  border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
#langSwitch:hover { color: var(--lime-text); border-color: var(--lime); }
#langSwitch:focus-visible { outline: 3px solid rgba(191,208,0,.7); outline-offset: 3px; }
.nav-knopf { font-size: 14px; padding: 10px 18px; min-height: 40px; display: none; }

/* Auf schmalen Schirmen traegt allein die mitlaufende Leiste unten den
   Aufruf. Ein zweiter, dauerhaft sichtbarer Knopf oben macht dasselbe und
   nimmt nur Platz weg. */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-knopf { display: inline-flex; }
}

/* ── Startanimation: die Buehne mit dem Spotlight-Video liegt ueber der Seite;
   js/seite.js laesst am Ende Licht die Buehne fluten (nur transform und opacity). */

.intro { display: none; }
html.intro-an .intro { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden; }
html.intro-laeuft { overflow: hidden; }
html.intro-laeuft #nav { opacity: 0; }
html.intro-laeuft #leiste { visibility: hidden; }
html.intro-laeuft #hero { will-change: transform; }
.intro-weiter {
  position: absolute; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); pointer-events: auto;
  font: 600 13px/1 var(--font-head); color: var(--navy); cursor: pointer;
  background: rgba(248,249,244,.85); border: 1px solid rgba(35,38,83,.25);
  border-radius: var(--r-pill); padding: 10px 16px; min-height: 40px;
}
.intro-weiter:focus-visible { outline: 3px solid rgba(191,208,0,.7); outline-offset: 3px; }
.buehne { position: absolute; inset: 0; background: #000; will-change: opacity; }
.buehne video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Lichtflut: klein angelegt und gross skaliert (der weiche Verlauf vertraegt das), Mitte am Anhaenger */
.buehne-licht {
  position: absolute; left: 50%; top: 42%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--cream) 45%, rgba(248, 249, 244, 0)); transform: scale(0); will-change: transform;
}
.buehne .ki-hinweis { position: absolute; left: 16px; top: calc(14px + env(safe-area-inset-top)); }

/* ── Startseite: Anhaenger fliegen herein, Text links (quer) bzw. unten (hoch) */

#hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--cream);
  padding: calc(var(--nav-h) + 40px) 20px 56px;
}
#flug, #flugStandbild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#flug { opacity: 0; transition: opacity .8s var(--ease); }
#flug.da { opacity: 1; }
#flugStandbild { display: none; object-fit: cover; object-position: 72% 50%; }
@media (orientation: portrait) { #flugStandbild { object-position: 50% 0; } }
html.ohne-3d #flug { display: none; }
html.ohne-3d #flugStandbild { display: block; }
/* Lesbarkeit: hinter dem Text laeuft der Grund weich in die Buehne aus */
#hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--cream) 0 30%, rgba(248,249,244,.92) 46%, rgba(248,249,244,0) 64%);
}
.hero-text { position: relative; z-index: 1; width: 100%; max-width: var(--breite); margin: 0 auto; }
.hero-text h1 {
  font-weight: 900; font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1.02; letter-spacing: -.04em; max-width: 11ch; text-wrap: balance;
}
/* Kernaussage: Wort fuer Wort von unten, zuletzt zieht die Neon-Markierung
   unter "hervor." durch. Startet, wenn das Intro vorbei ist (hero-bereit). */
.hero-text h1 .w { display: inline-block; opacity: 0; transform: translateY(.55em); }
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(var(--lime), var(--lime)) 0 92% / 0 .3em no-repeat;
}
html.hero-bereit .hero-text h1 .w { animation: wortAuf .7s var(--ease) forwards; }
html.hero-bereit .hero-text h1 .w:nth-child(2) { animation-delay: .09s; }
html.hero-bereit .hero-text h1 .w:nth-child(3) { animation-delay: .18s; }
html.hero-bereit .hero-text h1 .w:nth-child(4) { animation-delay: .27s; }
html.hero-bereit .hero-text h1 em.w {
  animation: wortHervor .8s cubic-bezier(.2, 1.4, .4, 1) .45s forwards, markierung .5s var(--ease) 1.05s forwards;
}
@keyframes wortAuf { to { opacity: 1; transform: none; } }
@keyframes wortHervor { 0% { opacity: 0; transform: translateY(.55em) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes markierung { to { background-size: 100% .3em; } }
/* Unterzeile, Fakten und Knoepfe folgen der Kernaussage */
.hero-satz, .hero-fakten, .hero-text .knoepfe { opacity: 0; transform: translateY(14px); }
html.hero-bereit .hero-satz, html.hero-bereit .hero-fakten, html.hero-bereit .hero-text .knoepfe {
  animation: wortAuf .7s var(--ease) 1.1s forwards;
}
html.hero-bereit .hero-fakten { animation-delay: 1.2s; }
html.hero-bereit .hero-text .knoepfe { animation-delay: 1.3s; }
.hero-satz {
  margin-top: 22px; font-size: clamp(1.05rem, 1.45vw, 1.22rem); line-height: 1.6;
  color: var(--tinte-leise); max-width: 40ch;
}
.hero-fakten { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.hero-fakten li { display: flex; align-items: center; gap: 8px; }
.hero-fakten li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.hero-text .knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* Hochformat: Der Film fuellt das obere Drittel bis zur Haelfte, der Text sitzt darunter */
@media (orientation: portrait), (max-width: 760px) {
  #hero { align-items: flex-end; padding-bottom: 32px; }
  #hero::after { background: linear-gradient(180deg, rgba(248,249,244,0) 36%, rgba(248,249,244,.9) 58%, var(--cream) 74%); }
  .hero-text h1 { max-width: none; font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
}

/* ── Ihr Fall: Reiter mit Heute / Mit SmartTap ────────────────────────── */

/* Fall-Auswahl: Anhaenger haengen an einer Stange, wiegen leicht und drehen
   sich beim Antippen einmal um den Ring. Handy: zwei Stangen zu je zwei,
   ab 700 px eine Stange mit vier. --kette und --takt stehen je Anhaenger im HTML,
   die Maske der Rueckseite als Inline-Stil (url() in CSS-Variablen loesen Browser verschieden auf). */
.fall-reiter { display: none; }
html.reiter-an .fall-reiter {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; margin: 6px 0 34px;
  --karte: min(36vw, 160px);
}
@media (min-width: 700px) { html.reiter-an .fall-reiter { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.haenger {
  position: relative; display: block; cursor: pointer; padding: 0; border: 0; background: none; color: var(--navy);
  /* gleiche Hoehe fuer alle (laengste Kette 0.42): die Namen stehen auf einer Linie */
  height: calc(.42 * var(--karte) + var(--karte) * .96 + 44px); -webkit-tap-highlight-color: transparent;
}
/* Die Stange: jedes Feld zeichnet sein Stueck, nebeneinander ergibt das eine Stange */
.haenger::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px;
  background: linear-gradient(#f2f3f5, #b6bac1 55%, #8d929a); box-shadow: 0 2px 3px rgba(35, 38, 83, .18);
}
.haenger-pendel {
  position: absolute; top: 3px; width: 0; height: 0; transform-origin: 0 0;
  left: calc(50% + (var(--ring-x) - .5) * var(--karte));
  animation: wiegen 4.8s ease-in-out var(--takt) infinite alternate;
}
.haenger-kette {
  position: absolute; left: -2px; top: 0; width: 4px; height: calc(var(--kette) * var(--karte) + 4px);
  background: radial-gradient(circle at 50% 50%, #f1f2f4 0 .7px, #a9aeb6 1.5px, #6f747c 1.9px, transparent 2.1px) 0 0 / 4px 5px repeat-y;
}
.haenger-karte {
  position: absolute; width: var(--karte); height: var(--karte); transform-style: preserve-3d;
  left: calc(-1 * var(--ring-x) * var(--karte)); top: calc(var(--kette) * var(--karte) - var(--ring-y) * var(--karte) + 4px);
  transform-origin: calc(var(--ring-x) * 100%) calc(var(--ring-y) * 100%);
}
.haenger-karte img, .haenger-hinten { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.haenger-karte img { transition: filter .3s var(--ease); }
/* Rueckseite: die Silhouette des Anhaengers in Navy mit dem NFC-Zeichen, wie auf echten SmartTaps */
.haenger-hinten {
  transform: rotateY(180deg); background: var(--navy);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.haenger-hinten::after {
  content: ""; position: absolute; left: 50%; top: 56%; width: 30%; height: 30%; transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 8a6 6 0 0 1 0 8M11 5a10 10 0 0 1 0 14M15 2.5a13.5 13.5 0 0 1 0 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.haenger-name {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
  font: 700 clamp(13px, 3.6vw, 15px)/1.2 var(--font-head); letter-spacing: -.01em;
}
.haenger[aria-selected="true"] .haenger-name { text-decoration: underline 3px var(--lime); text-underline-offset: 6px; }
.haenger[aria-selected="true"] .haenger-karte img { filter: drop-shadow(0 12px 14px rgba(35, 38, 83, .3)); }
.haenger:not([aria-selected="true"]) .haenger-karte img { filter: saturate(.85); }
.haenger:hover .haenger-pendel { animation: wippen 1.5s ease-out; }
.haenger.dreht .haenger-karte { animation: drehen 1.15s cubic-bezier(.22, .9, .28, 1); }
@keyframes wiegen { from { transform: rotate(-1.3deg); } to { transform: rotate(1.3deg); } }
@keyframes wippen { 0% { transform: rotate(0); } 22% { transform: rotate(6deg); } 50% { transform: rotate(-3.5deg); } 76% { transform: rotate(1.4deg); } 100% { transform: rotate(0); } }
@keyframes drehen { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

.faelle { display: grid; gap: 48px; }
html.reiter-an .faelle { display: block; }
.fall { display: grid; gap: 22px; }
.fall[hidden] { display: none; }
html.reiter-an .fall { animation: fallAuf .45s var(--ease); }
@keyframes fallAuf { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .fall { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
}
.fall-bild { position: relative; margin: 0; }
.fall-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-gross); box-shadow: var(--sh-card); }
.fall-bild .ki-hinweis { position: absolute; top: 12px; left: 12px; }
.fall-text h3 { font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.fall-text .vorher { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--tinte-leise); }
.fall-text .nachher {
  margin-top: 16px; padding: 16px 0 16px 18px; border-left: 4px solid var(--lime);
  font-size: 18px; line-height: 1.6; color: var(--navy);
}
.fall-text b { font-family: var(--font-head); font-weight: 800; }
.fall-text .empfehlung { margin-top: 18px; font-family: var(--font-head); font-weight: 700; color: var(--lime-text); }

/* ── Der Tap: Demo-Video, Kennzahlen, Schritte ────────────────────────── */

.demo { position: relative; max-width: 960px; margin: 0 auto 48px; }
.demo video {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-gross); background: var(--navy-deep);
  box-shadow: 0 24px 60px rgba(35,38,83,.18), 0 2px 10px rgba(35,38,83,.08);
}
.demo figcaption { margin-top: 16px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--tinte-leise); }
/* oben rechts auf dem Video, unabhaengig von der Hoehe der Bildunterschrift */
#demoTon {
  position: absolute; right: 14px; top: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(26,29,62,.7); color: #fff;
  border: 1px solid rgba(248,249,244,.28); cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
#demoTon:hover { border-color: var(--lime); transform: scale(1.06); }
#demoTon:focus-visible { outline: 3px solid rgba(191,208,0,.7); outline-offset: 3px; }
#demoTon[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }
/* Hochformat: das 9:16-Video als schmale Karte, nicht bildschirmfuellend */
html.hochformat .demo { max-width: 320px; }

.kennzahlen {
  display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 960px; margin: 0 auto 64px;
  padding: 28px 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
@media (min-width: 768px) { .kennzahlen { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.kennzahl .zahl-label { max-width: 26ch; }

/* ── Explosionsansicht: Vollbild-Buehne mit Scroll-Steuerung ──────────── */

.zerlegt-lauf { position: relative; height: 260svh; }
.zerlegt-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--blackwidow); }
.zerlegt-buehne video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zerlegt-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px 24px calc(30px + env(safe-area-inset-bottom));
  text-align: center; pointer-events: none;
  background: linear-gradient(to top, rgba(12,14,17,.9) 0%, rgba(12,14,17,.5) 55%, transparent 100%);
}
.zt {
  position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(680px, 88vw);
  font-size: clamp(15px, 2vw, 19px); line-height: 1.55; color: var(--auf-dunkel);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.zt b { color: var(--cream); font-family: var(--font-head); }
.zt.da { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.zerlegt-buehne > .ki-hinweis { position: absolute; left: 16px; top: calc(var(--nav-h) + 56px); z-index: 3; }
.zerlegt-hinweis {
  position: absolute; top: calc(var(--nav-h) + 18px); left: 50%; transform: translateX(-50%);
  font-family: var(--font-head); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(248,249,244,.72);
  background: rgba(12,14,17,.45); border: 1px solid rgba(248,249,244,.16);
  border-radius: var(--r-pill); padding: 7px 16px;
  transition: opacity .5s var(--ease); white-space: nowrap;
}
.zerlegt-hinweis.weg { opacity: 0; }

/* ── Zwei Bauformen ──────────────────────────────────────────────────── */

.formen { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .formen { grid-template-columns: repeat(2, 1fr); } }
.form { margin: 0; background: var(--cream); border-radius: var(--r-gross); padding: 8px 8px 22px; }
.form img { width: 100%; height: auto; }
.form figcaption { padding: 0 18px; font-size: 15px; line-height: 1.6; color: var(--tinte-leise); }
.form figcaption b { color: var(--navy); font-family: var(--font-head); font-weight: 800; }

/* ── Referenzen ───────────────────────────────────────────────────────── */

.belege {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 28px 0; margin-bottom: 40px;
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}

/* ── Scroll-Animationen ───────────────────────────────────────────────── */

.auf { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.auf.da { opacity: 1; transform: none; }
.auf-links  { opacity: 0; transform: translateX(-30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.auf-rechts { opacity: 0; transform: translateX(30px);  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.auf-links.da, .auf-rechts.da { opacity: 1; transform: none; }
.auf-zoom { opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.auf-zoom.da { opacity: 1; transform: none; }

/* ── Raster und Karten ────────────────────────────────────────────────── */

.raster { display: grid; gap: 18px; }
.r2 { grid-template-columns: 1fr; }
.r3 { grid-template-columns: 1fr; }
.r4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .abschnitt { padding: 104px 32px; }
  .r2 { grid-template-columns: repeat(2, 1fr); }
  .r3 { grid-template-columns: repeat(3, 1fr); }
  .r4 { grid-template-columns: repeat(4, 1fr); }
  .raster { gap: 22px; }
}
/* Zwei Navy-Abschnitte hintereinander (Rechnung, Preise) als ein Block lesen */
.abschnitt-anschluss { padding-top: 24px; }

.karte-dunkel {
  background: var(--glas); border: 1px solid var(--linie-hell);
  border-radius: var(--r-card); padding: 26px; color: var(--cream);
}
.karte-dunkel p { font-size: 15px; line-height: 1.7; margin-top: 10px; color: var(--auf-dunkel); }

/* Symbol steht neben dem Kartentitel statt als Kaestchen darueber */
.symbol { color: var(--lime); margin: 2px 0 0; }
.symbol svg { width: 22px; height: 22px; display: block; }
.karte-dunkel:has(> .symbol) { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.karte-dunkel:has(> .symbol) > :not(.symbol, h3) { grid-column: 1 / -1; }

/* Kennzeichnung KI-erzeugter Bilder und Videos (AI Act Art. 50 Abs. 4, seit 02.08.2026) */
.ki-hinweis {
  display: inline-block; padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(26,29,62,.82); color: var(--cream);
  font: 600 11px/1.4 var(--font-body); letter-spacing: .02em; pointer-events: none;
}

/* Zahlen */
.zahl {
  font-family: var(--font-head); font-weight: 900; letter-spacing: -.04em;
  line-height: 1; font-size: clamp(38px, 6vw, 60px); color: var(--navy);
}
.dunkel .zahl { color: var(--lime); }
.zahl-klein { font-size: clamp(28px, 3.6vw, 38px); }
.zahl-label { font-size: 14px; margin-top: 8px; color: var(--tinte-leise); }
.dunkel .zahl-label { color: var(--auf-dunkel); }

/* ── Vergleichstabelle (auf hellem Grund) ─────────────────────────────── */

.vgl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vgl { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
table.vgl th, table.vgl td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--linie); }
table.vgl thead th {
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  letter-spacing: -.01em; color: var(--navy); vertical-align: bottom;
}
table.vgl thead th.uns { color: var(--lime-text); }
table.vgl tbody th { font-weight: 500; color: var(--tinte-leise); font-family: var(--font-body); }
table.vgl td { color: var(--tinte-leise); }
table.vgl td.uns { color: var(--navy); font-weight: 600; background: var(--lime-tint); }
table.vgl tbody tr:last-child th, table.vgl tbody tr:last-child td { border-bottom: none; }

/* Mobile Kartenansicht des Vergleichs */
.vgl-karten { display: grid; gap: 14px; }
.vgl-karte { border-radius: var(--r-card); padding: 22px; border: 1px solid var(--linie); background: var(--surface); }
.vgl-karte.uns { border-color: rgba(191,208,0,.6); background: var(--lime-tint); }
.vgl-karte h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.vgl-karte.uns h3 { color: var(--lime-text); }
.vgl-karte dl { display: grid; gap: 9px; font-size: 14px; }
.vgl-karte dt { color: var(--tinte-leise); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.vgl-karte dd { color: var(--navy); }
@media (min-width: 768px) { .vgl-karten { display: none; } }
@media (max-width: 767px) { .vgl-wrap { display: none; } }

/* ── Rechner (auf Navy) ───────────────────────────────────────────────── */

.rechner {
  background: rgba(248,249,244,.05); border: 1px solid rgba(248,249,244,.12);
  border-radius: var(--r-gross); padding: 28px;
}
.rechner label { display: block; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: rgba(248,249,244,.72); font-family: var(--font-head); font-weight: 700; }
.regler { width: 100%; margin: 18px 0 6px; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 4px; background: rgba(248,249,244,.18); outline: none; }
.regler::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); cursor: pointer; border: none; box-shadow: 0 3px 10px rgba(26,29,62,.4); }
.regler::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); cursor: pointer; border: none; }
.regler:focus-visible { outline: 3px solid rgba(191,208,0,.7); outline-offset: 4px; }
.schnellwahl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.schnellwahl button {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; cursor: pointer;
  padding: 7px 14px; min-height: 36px; border-radius: var(--r-pill); color: var(--auf-dunkel);
  background: transparent; border: 1px solid rgba(248,249,244,.2);
  transition: all .15s var(--ease);
}
.schnellwahl button:hover { border-color: var(--lime); color: var(--lime); }
.schnellwahl button[aria-pressed="true"] { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.ergebnis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(248,249,244,.12); }
.ergebnis .feld .wert { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.03em; color: var(--lime); line-height: 1.1; }
.ergebnis .feld .bez { font-size: 13px; color: rgba(248,249,244,.72); margin-top: 4px; }
.hinweis { font-size: 13px; color: rgba(248,249,244,.72); margin-top: 18px; line-height: 1.6; }

/* ── Preiskarten (auf Navy) ───────────────────────────────────────────── */

.preis-karte {
  background: rgba(248,249,244,.06); border: 1px solid rgba(248,249,244,.1);
  border-radius: var(--r-gross); padding: 28px 24px; text-align: center;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.preis-karte:hover { transform: translateY(-6px); border-color: rgba(191,208,0,.4); }
.preis-karte .stufe { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--auf-dunkel); }
.preis-karte .preis { font-family: var(--font-head); font-weight: 900; font-size: clamp(36px, 5vw, 44px); letter-spacing: -.04em; line-height: 1; margin: 14px 0 6px; }
.preis-karte .menge { font-size: 14px; color: rgba(248,249,244,.72); }
.preis-karte .summe { font-size: 13px; color: rgba(248,249,244,.72); margin-top: 10px; }
.preis-karte.beliebt { background: var(--lime); border-color: var(--lime); box-shadow: 0 16px 40px rgba(26,29,62,.35); color: var(--navy); }
.preis-karte.beliebt .stufe, .preis-karte.beliebt .menge, .preis-karte.beliebt .summe { color: rgba(35,38,83,.75); }
.preis-notiz { font-size: 14px; margin-top: 26px; }

/* ── Schritte (Tap und Ablauf) ────────────────────────────────────────── */

.ablauf { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ablauf { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.schritt { position: relative; padding-top: 18px; border-top: 2px solid var(--navy); }
.schritt .nr { font-family: var(--font-head); font-weight: 900; font-size: 44px; line-height: 1; color: var(--lime-text); }
.schritt h3 { font-size: 18px; font-weight: 800; margin: 10px 0 6px; letter-spacing: -.02em; }
.schritt p { font-size: 15px; line-height: 1.65; color: var(--tinte-leise); }
.schritt .dauer { display: inline-block; margin-top: 10px; font-size: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--lime-text); }

/* Absicherung: kompakte Liste statt sechs Karten */
.zusagen-titel { margin: 72px 0 24px; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; }
.zusagen { display: grid; gap: 22px 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .zusagen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .zusagen { grid-template-columns: repeat(3, 1fr); } }
.zusage { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.zusage svg { width: 22px; height: 22px; color: var(--lime-text); margin-top: 2px; }
.zusage p { font-size: 15px; line-height: 1.65; color: var(--tinte-leise); }
.zusage b { color: var(--navy); font-family: var(--font-head); font-weight: 700; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--linie);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card);
}
.faq summary {
  cursor: pointer; padding: 20px 22px; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--lime-text); flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .antwort { padding: 0 22px 20px; font-size: 15px; line-height: 1.75; color: var(--tinte-leise); max-width: 70ch; }

/* ── Kundenstimmen ────────────────────────────────────────────────────── */

.stimme { background: var(--surface); border: 1px solid var(--linie); border-radius: 22px 22px 22px 6px; padding: 26px; box-shadow: var(--sh-card); }
.stimme blockquote { font-size: 16px; line-height: 1.65; font-style: italic; }
.stimme .wer { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.stimme .kreis { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.stimme .name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.stimme .rolle { font-size: 13px; color: var(--tinte-leise); }

/* ── Link selbst aendern: Kurzanleitung NFC Tools in "So geht's" ──────── */

.link-aendern {
  margin-top: 48px; display: grid; gap: 22px; padding: 26px 22px;
  border-radius: var(--r-gross); background: var(--surface); box-shadow: var(--sh-card);
}
@media (min-width: 900px) { .link-aendern { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding: 32px 36px; } }
.link-aendern h3 { font-weight: 800; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.02em; line-height: 1.25; }
.link-schritte { margin: 14px 0 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 16px; line-height: 1.55; color: var(--tinte-leise); list-style: decimal; }
.link-schritte li::marker { color: var(--lime-text); font: 800 15px var(--font-head); }
.link-schritte b, .link-tipp b { color: var(--navy); font-weight: 700; }
.link-tipp { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--tinte-leise); }
.link-apps { display: flex; flex-wrap: wrap; gap: 10px; }
.link-apps .knopf { min-height: 48px; }

/* ── Angebot einholen: Formular im Dialog (Handy: ganzer Schirm) ────────── */

.angebot {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--r-gross); background: var(--surface); color: var(--navy);
  box-shadow: 0 30px 80px rgba(12, 14, 17, .35); overflow: auto; overscroll-behavior: contain;
}
.angebot::backdrop { background: rgba(26, 29, 62, .55); backdrop-filter: blur(4px); }
@media (max-width: 600px) { .angebot { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; } }
.angebot-form, .angebot-danke { padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 601px) { .angebot-form, .angebot-danke { padding: 30px 34px 30px; } }
.angebot-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.angebot-kopf h2, .angebot-danke h2 { font-weight: 900; font-size: clamp(24px, 4vw, 30px); letter-spacing: -.03em; line-height: 1.15; }
.angebot-zu {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--cream); color: var(--navy);
}
.angebot-zu svg { width: 20px; height: 20px; }
.angebot-vorspann { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--tinte-leise); }
.angebot-block { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.angebot-block legend, .feld-titel { display: block; margin-bottom: 8px; padding: 0; font: 700 14px/1.3 var(--font-head); color: var(--navy); }
.feld-titel em { font-style: normal; font-weight: 500; color: var(--tinte-leise); }
.wahl-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wahl-karte {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 10px 14px; cursor: pointer;
  border-radius: var(--r-card); border: 1.5px solid rgba(35, 38, 83, .18); background: var(--cream);
  text-align: center; font-size: 13px; line-height: 1.35; color: var(--tinte-leise);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.wahl-karte input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wahl-karte img { width: 100%; max-width: 150px; height: 84px; object-fit: contain; }
.wahl-karte b { display: block; font: 700 15px/1.3 var(--font-head); color: var(--navy); }
.wahl-karte:has(input:checked) { border-color: var(--lime); background: var(--surface); box-shadow: 0 0 0 3px var(--lime-tint); }
.wahl-karte:has(input:focus-visible) { outline: 3px solid rgba(191, 208, 0, .7); outline-offset: 2px; }
.mengen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mengen button {
  min-height: 40px; padding: 8px 14px; cursor: pointer; border-radius: var(--r-pill);
  border: 1.5px solid rgba(35, 38, 83, .22); background: transparent; font: 700 14px/1 var(--font-head); color: var(--navy);
}
.mengen button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.feld-eingabe {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(35, 38, 83, .22); background: var(--surface); font: 400 16px/1.4 var(--font-body); color: var(--navy);
}
textarea.feld-eingabe { resize: vertical; min-height: 92px; }
.feld-eingabe:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--lime-tint); }
.feld-eingabe:user-invalid { border-color: #b3261e; }
.angebot-preis { margin-top: 8px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--lime-text); }
.datei-paar { display: grid; gap: 12px; }
@media (min-width: 601px) { .datei-paar { grid-template-columns: 1fr 1fr; } }
.datei-feld { position: relative; display: block; cursor: pointer; }
.datei-feld input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.datei-flaeche {
  display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 116px; padding: 14px;
  border-radius: var(--r-card); border: 1.5px dashed rgba(35, 38, 83, .3); background: var(--cream); text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.datei-feld:hover .datei-flaeche, .datei-feld.zieht .datei-flaeche { border-color: var(--navy); background: var(--surface); }
.datei-feld input:focus-visible + .datei-flaeche { outline: 3px solid rgba(191, 208, 0, .7); outline-offset: 2px; }
.datei-feld input:user-invalid + .datei-flaeche { border-color: #b3261e; }
.datei-flaeche img { max-width: 100%; max-height: 64px; object-fit: contain; }
.datei-name { font: 700 14px/1.3 var(--font-head); color: var(--navy); overflow-wrap: anywhere; }
.datei-flaeche small { font-size: 12.5px; line-height: 1.4; color: var(--tinte-leise); }
/* Rueckseite: NFC-Zeichen (empfohlen) oder eigenes Logo; Pillen wie die Mengenknoepfe */
.rueckseite { margin: 0; padding: 0; border: 0; min-width: 0; }
.rueckseite-wahl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rueckseite-wahl label { position: relative; }
.rueckseite-wahl input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rueckseite-wahl span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; cursor: pointer; border-radius: var(--r-pill);
  border: 1.5px solid rgba(35, 38, 83, .22); font: 700 14px/1 var(--font-head); color: var(--navy);
}
.rueckseite-wahl input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.rueckseite-wahl input:focus-visible + span { outline: 3px solid rgba(191, 208, 0, .7); outline-offset: 2px; }
.rueckseite-nfc { border-style: solid; }
.rueckseite-nfc[hidden], .datei-feld[hidden] { display: none; }
.nfc-zeichen {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 8a6 6 0 0 1 0 8M11 5a10 10 0 0 1 0 14M15 2.5a13.5 13.5 0 0 1 0 19'/%3E%3C/svg%3E") center / 58% no-repeat;
}
.feld-raster { display: grid; gap: 12px; }
@media (min-width: 601px) { .feld-raster { grid-template-columns: 1fr 1fr; } .feld-breit { grid-column: 1 / -1; } }
.haken { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: var(--navy); }
.haken input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.angebot-klein { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--tinte-leise); }
.angebot-klein a, .angebot-status a { color: var(--navy); font-weight: 700; }
/* Falle fuer Formular-Roboter: unsichtbar, Menschen fuellen sie nie aus */
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.angebot-status { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #b3261e; }
.angebot-status:empty { display: none; }
.angebot-senden { width: 100%; margin-top: 16px; min-height: 52px; }
.angebot-senden[disabled] { opacity: .6; cursor: progress; }
.angebot-danke p { margin: 12px 0 22px; font-size: 16px; line-height: 1.6; color: var(--tinte-leise); }

/* ── Mitlaufende CTA-Leiste ───────────────────────────────────────────── */

#leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
  background: rgba(35,38,83,.96); backdrop-filter: blur(16px);
  border-top: 1px solid var(--linie-hell);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
#leiste.da { transform: translateY(0); }
#leiste .text { font-size: 13px; color: var(--auf-dunkel); line-height: 1.4; }
#leiste .text b { color: var(--cream); font-family: var(--font-head); display: block; font-size: 15px; }
#leiste .knopf { padding: 11px 20px; min-height: 44px; font-size: 14px; flex: none; }
@media (max-width: 520px) { #leiste .text { display: none; } #leiste { justify-content: center; } #leiste .knopf { width: 100%; } }

/* ── Fusszeile ────────────────────────────────────────────────────────── */

footer { background: var(--navy-deep); color: var(--auf-dunkel); padding: 56px 20px 90px; }
footer .mitte { display: grid; gap: 24px; }
footer a { color: var(--auf-dunkel); text-decoration: none; }
footer a:hover { color: var(--lime); }
footer .zeilen { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
footer .klein { font-size: 13px; color: rgba(248,249,244,.72); line-height: 1.7; }

/* ── Bewegung aus ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .auf, .auf-links, .auf-rechts, .auf-zoom { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.reiter-an .fall { animation: none; }
  .haenger-pendel, .haenger:hover .haenger-pendel, .haenger.dreht .haenger-karte { animation: none; }
  #flug { display: none; }
  #flugStandbild { display: block; }
  .hero-text h1 .w, .hero-satz, .hero-fakten, .hero-text .knoepfe { opacity: 1; transform: none; animation: none !important; }
  .hero-text h1 em { background-size: 100% .3em; }
}
