/* ==========================================================================
   KI für die Praxis · Designsystem
   Ein CSS für die ganze Website. Tokens aus CLAUDE.md, Abschnitt 5.
   Mobile first: Basisregeln gelten für schmale Bildschirme, @media hebt sie an.
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, kein Google-Aufruf) ---------- */

@font-face {
  font-family: "Noto Serif";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/NotoSerif-700-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/OpenSans-variable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --praxisblau: #1B96DB; /* Leitfarbe: Logo, Flächen, große Zahlen. Nicht für Fließtext/kleine Links */
  --tiefblau:   #0F6DA3; /* Buttons, Links, Icons auf Weiß (5,6:1) */
  --nachtblau:  #132237; /* dunkle Sektionen, Footer */
  --rose:       #E88B97; /* Logo-Funke, sparsame Hervorhebung, nie als Fläche */
  --papier:     #F1F4F8; /* „Nebel“: Sektionen mit Comics (Name historisch, früher Papierton #FBF6E9) */
  --himmel:     #EAF5FC; /* Karten, FAQ, Formular */
  --tinte:      #1A2433; /* Fließtext */
  --grau:       #5B6775; /* Nebentext */
  --linie:      #E3E6EA; /* Trennlinien, Rahmen */
  --weiss:      #FFFFFF;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:  "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:    12px;
  --radius-sm: 10px;
  --wrap:      1120px;
  --gutter:    20px;
  --kopf-hoehe: 76px;

  --schatten: 0 1px 2px rgba(19, 34, 55, .06), 0 8px 24px rgba(19, 34, 55, .06);
}

/* ---------- Basis ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-hoehe) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 5.2vw, 52px); }
h2 { font-size: clamp(27px, 4vw, 36px); }
h3 { font-size: clamp(20px, 2.6vw, 24px); }
h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tiefblau);
  margin: 0 0 10px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--grau); max-width: 720px; }
.lead strong { color: var(--tinte); }
.klein { font-size: 14px; color: var(--grau); }
.nebentext { color: var(--grau); }

a { color: var(--tiefblau); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nachtblau); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--praxisblau);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--linie); margin: 0; }

.hl { background: linear-gradient(transparent 62%, rgba(232, 139, 151, .45) 62%); }
.zahl { font-family: var(--serif); font-style: italic; color: var(--praxisblau); }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--nachtblau); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.schmal { max-width: 800px; }

section { padding: 56px 0; }
section.papier { background: var(--papier); }
section.himmel { background: var(--himmel); }
section.nacht  { background: var(--nachtblau); color: #fff; }
section.nacht h2, section.nacht h3 { color: #fff; }
section.nacht .lead, section.nacht .nebentext { color: #C9D6E3; }
section.nacht a { color: #fff; }
section.linie { border-top: 1px solid var(--linie); }

.kopfzeile { max-width: 760px; margin-bottom: 32px; }
.kopfzeile.mitte { margin-left: auto; margin-right: auto; text-align: center; }
.kopfzeile.mitte .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  section { padding: 80px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Zwei Spalten: Text + Bild, wechselseitig */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .split.rechts > :first-child { order: 2; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 14px 22px; border-radius: var(--radius-sm);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.tel { white-space: nowrap; }

.btn.primaer { background: var(--tiefblau); color: #fff; border-color: var(--tiefblau); }
.btn.primaer:hover { background: var(--nachtblau); border-color: var(--nachtblau); color: #fff; }

.btn.sekundaer { background: transparent; color: var(--tiefblau); border-color: var(--tiefblau); }
.btn.sekundaer:hover { background: var(--himmel); color: var(--tiefblau); }

.btn.hell { background: #fff; color: var(--tiefblau); border-color: #fff; }
.btn.hell:hover { background: var(--himmel); border-color: var(--himmel); color: var(--nachtblau); }
.btn.hell-rahmen { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.hell-rahmen:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.btn.klein { padding: 10px 16px; font-size: 15px; }
.btn.breit { width: 100%; }

.cta-reihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-hinweis { font-size: 14px; color: var(--grau); margin-top: 10px; }
section.nacht .cta-hinweis { color: #C9D6E3; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--kopf-hoehe);
}
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 46px; width: auto; }
.logo .logo-voll { display: none; }
.logo .logo-kurz { display: block; }
@media (min-width: 480px) {
  .logo img { height: 64px; }
  .logo .logo-voll { display: block; }
  .logo .logo-kurz { display: none; }
}

.nav { display: none; }
.nav a {
  display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav a:hover { background: var(--himmel); color: var(--tiefblau); }
.nav a[aria-current="page"] { color: var(--tiefblau); box-shadow: inset 0 -2px 0 var(--praxisblau); border-radius: 0; }

.kopf-ctas { display: none; margin-left: auto; align-items: center; gap: 10px; }
.kopf-ctas .btn { white-space: nowrap; }
.kopf-tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--tiefblau); text-decoration: none; white-space: nowrap;
  padding: 10px 6px;
}
.kopf-tel svg { width: 18px; height: 18px; }

.burger {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--linie); color: var(--tinte); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger .zu { display: none; }
.burger[aria-expanded="true"] .auf { display: none; }
.burger[aria-expanded="true"] .zu { display: block; }

/* Mobiles Menü: klappt unter dem Kopf auf */
.kopf.offen .nav {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--linie);
  padding: 8px var(--gutter) 16px;
  box-shadow: var(--schatten);
}
.kopf.offen .nav a { padding: 12px 10px; font-size: 17px; }
.kopf.offen .nav .nav-ctas { display: grid; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--linie); }
.nav .nav-ctas { display: none; }

@media (min-width: 1000px) {
  .nav { display: flex; gap: 2px; margin-left: 8px; }
  .nav .nav-ctas { display: none !important; }
  .kopf-ctas { display: flex; }
  .kopf-tel { display: none; }
  .burger { display: none; }
}
@media (min-width: 1180px) {
  .kopf-tel { display: inline-flex; }
}

/* ---------- Mobiler Fix-CTA unten ---------- */

.mobil-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--linie);
  backdrop-filter: blur(8px);
}
.mobil-cta .btn { padding: 12px 16px; font-size: 15px; }
.mobil-cta[hidden] { display: none; }
body.hat-mobil-cta { padding-bottom: 76px; }
@media (min-width: 1000px) {
  .mobil-cta { display: none; }
  body.hat-mobil-cta { padding-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 56px; }
.hero .split { align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: clamp(18px, 2.2vw, 20px); }
.hero-oberzeile {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--tiefblau); margin-bottom: 14px;
}
@media (min-width: 900px) { .hero { padding: 64px 0 80px; } }

/* Hero-Raster (Produktseiten): oben Text 2/3 und Comic 1/3, darunter Zahlen mit Quelle 2/3 und Buttons 1/3 */
.hero-raster { display: grid; gap: 28px; }
.hero-raster .lead { margin-bottom: 0; }
.hero-raster .produktbild { padding-bottom: 0; }
.hero-raster .kpis { margin: 0; }
.hero-raster .hero-bild .hero-illu { width: auto; height: auto; max-width: 100%; max-height: 300px; margin: 0 auto; } /* Quer- und Hochformat-Comics gleich gewichtet */
@media (max-width: 899px) { .hero-raster .hero-bild .hero-illu { max-height: 220px; } }
.bild-schmal { max-width: 820px; margin: 0 auto; } /* hochformatige Screenshots nicht über die volle Breite */
@media (min-width: 900px) {
  .hero-raster { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 56px; row-gap: 44px; align-items: center; }
  .hero-raster .hero-ctas { flex-direction: column; align-items: stretch; } /* untereinander, gleich breit */
}

.kpis { display: flex; flex-wrap: wrap; gap: 18px 28px; margin: 24px 0 28px; }
.kpis div { font-size: 14px; color: var(--grau); line-height: 1.3; max-width: 190px; }
@media (min-width: 640px) { /* alle Kennzahlen in einer Reihe, gleich breite Spalten */
  .kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; }
  .kpis div { max-width: none; }
  .kpis div b { font-size: 24px; white-space: nowrap; }
}
.kpis b {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 28px; color: var(--praxisblau); line-height: 1.1; margin-bottom: 2px;
}

/* Produkt-Screenshot mit Comic als Ergänzung */
.produktbild { position: relative; }
.produktbild .screenshot {
  border-radius: var(--radius); box-shadow: var(--schatten); border: 1px solid var(--linie);
  background: #fff; overflow: hidden;
}
.produktbild { padding-bottom: 24px; }
.produktbild .comic {
  position: absolute; right: 0; bottom: 0; width: 44%; max-width: 260px;
  pointer-events: none;
}
.produktbild .comic img { mix-blend-mode: multiply; }
@media (min-width: 900px) { .produktbild { padding-bottom: 0; } .produktbild .comic { right: -28px; bottom: -28px; } }

/* ---------- Karten ---------- */

.karte {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.karte.himmel { background: var(--himmel); border-color: transparent; }
.karte.papier { background: var(--papier); border-color: transparent; }
.karte h3 { margin-bottom: 0; }
.karte p { margin: 0; }
.karte .karte-fuss { margin-top: auto; padding-top: 8px; }
.karte .icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--himmel);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.karte .icon img, .karte .icon svg { width: 34px; height: 34px; }
.karte .comic-klein { width: 72px; height: 72px; object-fit: contain; }

.produktlogo { height: 28px; width: auto; }

/* Produktkarte mit Comic */
.produkt { display: grid; gap: 20px; align-items: center; padding: 28px 0; }
.produkt + .produkt { border-top: 1px solid var(--linie); }
.produkt .produkt-comic { max-width: 220px; margin: 0 auto; }
.produkt .produkt-comic img { width: 100%; height: 200px; object-fit: contain; aspect-ratio: auto; }
.produkt .produkt-comic img { mix-blend-mode: multiply; }
@media (min-width: 760px) {
  .produkt { grid-template-columns: 1fr 200px; gap: 40px; padding: 36px 0; }
  .produkt.links { grid-template-columns: 200px 1fr; }
  .produkt.links .produkt-comic { order: -1; }
}

/* ---------- Nutzen / Beweis ---------- */

.nutzen { display: grid; gap: 20px; }
@media (min-width: 640px) { .nutzen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .nutzen { grid-template-columns: repeat(4, 1fr); } }
.nutzen-punkt { display: flex; gap: 14px; align-items: flex-start; }
.nutzen-punkt img, .nutzen-punkt svg { width: 56px; height: 56px; flex: none; object-fit: contain; }
.nutzen-punkt img { mix-blend-mode: multiply; }
.nutzen-punkt b { display: block; font-size: 17px; margin-bottom: 2px; }
.nutzen-punkt span { font-size: 15px; color: var(--grau); }

.zahlen { display: grid; gap: 20px; text-align: center; }
@media (min-width: 640px) { .zahlen { grid-template-columns: repeat(3, 1fr); } }
.zahlen b { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(32px, 4vw, 44px); color: var(--praxisblau); line-height: 1; margin-bottom: 8px; white-space: nowrap; }
.zahlen span { color: var(--grau); font-size: 15px; }
section.nacht .zahlen span { color: #C9D6E3; }
section.nacht .zahlen b { color: #fff; }

/* ---------- Ablauf (4 Schritte) ---------- */

.schritte { display: grid; gap: 18px; counter-reset: schritt; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
.schritte li {
  counter-increment: schritt; margin: 0;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px;
}
.schritte li::before {
  content: counter(schritt);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--praxisblau); color: #fff;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 20px;
  margin-bottom: 12px;
}
.schritte li b { display: block; font-size: 17px; margin-bottom: 4px; }
.schritte li p { margin: 0; font-size: 15px; color: var(--grau); }
.schritte li.cta { background: var(--nachtblau); border-color: var(--nachtblau); color: #fff; }
.schritte li.cta::before { background: #fff; color: var(--nachtblau); }
.schritte li.cta p { color: #C9D6E3; }
.schritte li.cta .btn { margin-top: 14px; }

/* ---------- Zitate / Erfahrungsbericht ---------- */

.zitat {
  background: var(--himmel); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 16px;
}
.zitat blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(17px, 2vw, 19px); line-height: 1.4; }
.zitat blockquote::before { content: "„"; color: var(--praxisblau); }
.zitat blockquote::after { content: "“"; color: var(--praxisblau); }
.zitat figcaption { font-size: 15px; color: var(--grau); }
.zitat figcaption b { display: block; color: var(--tinte); font-size: 16px; }

.logoleiste { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center; text-align: center; }
.logoleiste span, .logoleiste a {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px;
  color: var(--grau); text-decoration: none;
}
@media (min-width: 640px) { .logoleiste span, .logoleiste a { font-size: 17px; white-space: nowrap; } }
.logoleiste img { width: auto; max-width: 100%; }
@media (max-width: 639px) { .logoleiste { gap: 16px 24px; } .logoleiste img { height: auto !important; max-height: 44px; max-width: 42%; } }

/* ---------- FAQ ---------- */

/* FAQ steht immer in section.himmel: zugeklappt nur Text, aufgeklappt weiße Karte mit Rand */
.faq { display: grid; gap: 10px; }
.faq details {
  background: transparent; border-radius: var(--radius); padding: 0 20px;
  border: 1px solid transparent;
}
.faq details[open] { background: #fff; border-color: var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--tiefblau); border-bottom: 2px solid var(--tiefblau);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-antwort { padding: 0 0 20px; color: var(--tinte); }
.faq .faq-antwort p:last-child { margin-bottom: 0; }

/* ---------- Preise ---------- */

.preise { display: grid; gap: 20px; }
@media (min-width: 640px) { .preise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .preise { grid-template-columns: repeat(4, 1fr); } }
.preis {
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.preis.hervor { border-color: var(--praxisblau); box-shadow: 0 0 0 3px rgba(27,150,219,.15); }
.preis .badge, .preis .produktlogo { align-self: flex-start; }
.preis .betrag { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 34px; color: var(--praxisblau); line-height: 1; }
.preis .betrag small { display: block; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 14px; color: var(--grau); margin-top: 6px; line-height: 1.3; }
.preis ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; }
.preis li { margin: 0; padding-left: 26px; position: relative; }
.preis li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--tiefblau); border-bottom: 2px solid var(--tiefblau); transform: rotate(-45deg);
}
.preis .karte-fuss { margin-top: auto; padding-top: 6px; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; background: var(--himmel); color: var(--tiefblau);
}
.badge.rose { background: rgba(232,139,151,.25); color: #8A2432; }
.badge.offen { background: #FFF1C9; color: #6B4E00; }

/* ---------- Facade (Video, Calendly): lädt erst nach Klick ---------- */

.facade {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--nachtblau); color: #fff; border: 1px solid var(--linie);
}
.facade.video { aspect-ratio: 16 / 9; }
.facade.kalender { min-height: 420px; background: var(--himmel); color: var(--tinte); }
/* Geladener Kalender: hoch genug für Kalender plus Uhrzeiten, damit im Fenster nichts gescrollt werden muss */
.facade.kalender.geladen { min-height: 900px; }
@media (min-width: 1000px) { .facade.kalender.geladen { min-height: 800px; } }
@media (min-width: 1120px) { .facade.kalender.geladen { min-height: 720px; } }
/* Sobald Calendly seine Höhe meldet (app.js), gilt die gemeldete Höhe statt der Schätzung */
.facade.kalender.geladen.hoehe-bekannt { min-height: 0; }
/* Solange Calendly lädt (app.js): eigener Lader in der Mitte statt Calendlys Punkten am oberen Rand */
.facade.kalender iframe { transition: opacity .2s; }
.facade.kalender.laedt iframe { opacity: 0; }
.facade.kalender.laedt::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 3px solid var(--linie); border-top-color: var(--tiefblau); border-radius: 50%;
  animation: drehen .8s linear infinite;
}
@keyframes drehen { to { transform: rotate(360deg); } }
.facade .facade-inhalt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px;
}
.facade .facade-inhalt p { max-width: 460px; font-size: 15px; margin: 0; }
.facade.video .facade-inhalt p { color: #C9D6E3; }
.facade .vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade.geladen .facade-inhalt, .facade.geladen .vorschau { display: none; }
/* Video mit gestaltetem Vorschaubild: Bild voll sichtbar, nur der Play-Knopf liegt darüber */
.facade.video.mit-bild .vorschau { opacity: 1; }
.facade.video.mit-bild .play { box-shadow: 0 4px 24px rgba(19, 34, 55, .35); }
.video-hinweis { font-size: 14px; line-height: 1.4; margin: 10px 0 0; opacity: .85; }
.facade .play {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--tiefblau);
  display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer;
}
.facade .play svg { width: 28px; height: 28px; margin-left: 4px; }

/* ---------- Formular ---------- */

.formular { background: var(--himmel); border-radius: var(--radius); padding: 24px; }
@media (min-width: 640px) { .formular { padding: 32px; } }
.feld { margin-bottom: 16px; }
.feld label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.feld label small { font-weight: 400; color: var(--grau); }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinte);
  padding: 12px 14px; border: 1px solid #C7D3DD; border-radius: var(--radius-sm); background: #fff;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-color: var(--praxisblau); outline: 3px solid rgba(27,150,219,.25); outline-offset: 0; }
.feld.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feld.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.feld.check label { font-weight: 400; margin: 0; }
.formular .btn { margin-top: 6px; }
.formular .hinweis { font-size: 14px; color: var(--grau); margin-top: 12px; }

/* ---------- Kontaktleiste ---------- */

.kontaktzeile { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.kontaktzeile a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.kontaktzeile svg { width: 18px; height: 18px; }

/* ---------- CTA-Block ---------- */

.cta-block {
  background: var(--nachtblau); color: #fff; border-radius: 16px;
  padding: 32px 24px; display: grid; gap: 20px; align-items: center;
}
.cta-block h2 { color: #fff; margin-bottom: .3em; }
.cta-block p { color: #C9D6E3; margin: 0; }
.cta-block .comic { max-width: 180px; margin: 0 auto; }
.cta-block .comic img { filter: brightness(0) invert(1); opacity: .85; }
@media (min-width: 800px) {
  .cta-block { grid-template-columns: 1fr auto; padding: 44px 48px; gap: 40px; }
}
.cta-block.papier { background: var(--papier); color: var(--tinte); }
.cta-block.papier h2 { color: var(--tinte); }
.cta-block.papier p { color: var(--grau); }
.cta-block.papier .comic img { filter: none; opacity: 1; mix-blend-mode: multiply; }

/* ---------- Tabellen ---------- */

.tabelle { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabelle th, .tabelle td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-weight: 700; color: var(--tiefblau); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tabelle-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Fließtext-Seiten (Erfahrungsbericht, Ratgeber, Rechtliches) ---------- */

.prosa { max-width: 760px; }
.prosa.breit { max-width: none; }
.prosa h2 { margin-top: 1.6em; font-size: clamp(24px, 3vw, 30px); }
.prosa h3 { margin-top: 1.4em; }
.prosa p, .prosa ul, .prosa ol { margin-bottom: 1.1em; }
.prosa figure { margin: 1.5em 0; }
.prosa .kasten { background: var(--himmel); border-radius: var(--radius); padding: 20px 24px; margin: 1.5em 0; }
.prosa .kasten.papier { background: var(--papier); }

/* ---------- Fuß ---------- */

.fuss { background: var(--nachtblau); color: #C9D6E3; padding: 48px 0 32px; font-size: 15px; }
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss .fuss-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .fuss .fuss-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fuss .fuss-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.fuss .fuss-logo img { height: 66px; width: auto; margin-bottom: 14px; }
.fuss h4 { color: #fff; margin-bottom: 12px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss li { margin: 0; }
.fuss .fuss-kontakt { display: grid; gap: 8px; }
.fuss .fuss-kontakt a { display: inline-flex; align-items: center; gap: 8px; }
.fuss .fuss-kontakt svg { width: 16px; height: 16px; }
.fuss .fuss-unten {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 14px;
}
.fuss .fuss-unten .absender { color: #C9D6E3; }
.fuss .fuss-unten .absender b { color: #fff; font-weight: 600; }

/* ---------- Hilfsklassen ---------- */

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.mitte { text-align: center; }
.max-720 { max-width: 720px; }
.nur-mobil { display: block; }
.nur-desktop { display: none; }
@media (min-width: 900px) {
  .nur-mobil { display: none; }
  .nur-desktop { display: block; }
}

/* ---------- Produktansicht (UI-Mockup als Stand-in, bis echte Screenshots da sind) ---------- */

.ui {
  border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; overflow: hidden;
  font-size: 14px; box-shadow: var(--schatten); text-align: left;
}
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--himmel); border-bottom: 1px solid var(--linie); }
.ui-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #C7D3DD; }
.ui-bar .ui-titel { margin-left: 6px; font-weight: 700; color: var(--grau); font-size: 13px; }
.ui-body { padding: 14px 16px; }
.ui-feld { border-bottom: 1px solid var(--linie); padding: 9px 0; }
.ui-feld:last-child { border-bottom: 0; }
.ui-k { font-weight: 700; color: var(--tiefblau); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ui-v { color: var(--tinte); line-height: 1.5; margin-top: 3px; }
.ui-fuss { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--linie); background: var(--himmel); flex-wrap: wrap; }
.ui-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #DDF1E4; color: #155C33; }
.ui-chip.blau { background: #fff; color: var(--tiefblau); border: 1px solid #BFDDF0; }
.ui-chip.warn { background: #FFF1C9; color: #6B4E00; }
.ui-btn { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--tiefblau); color: #fff; border: 0; border-radius: 6px; padding: 8px 12px; cursor: default; font-family: var(--sans); }
.ui-zeile { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.ui-zeile:last-child { border-bottom: 0; }
.ui-doc { flex: 1; color: var(--grau); font-family: ui-monospace, Menlo, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-pfeil { color: #9AA7B4; }
.ui-pat { font-weight: 700; white-space: nowrap; }
.ui-caption { font-size: 14px; color: var(--grau); margin-top: 10px; }

/* Produktwähler (Startseite, Abschnitt Produkte)
   Mobil und ohne JS: alle Anwendungen untereinander (Text, Screenshot, Buttons), keine Reiter.
   Ab 900 px mit JS (.aktiv): Reiter. Alle Panels liegen in derselben Grid-Zelle, nicht gewählte sind
   unsichtbar; über subgrid teilen sie die Zeilenhöhen, dadurch springen Text, Buttons und alles
   darunter beim Umschalten nicht. */
.ptabs { display: none; }
.ptabs a {
  display: flex; flex-direction: column; gap: 4px; text-align: left; text-decoration: none;
  border: 2px solid var(--linie); background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; color: var(--tinte);
}
.ptabs a b { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.2; }
.ptabs a span { font-size: 14px; color: var(--grau); line-height: 1.35; }
.ptabs a:hover { border-color: var(--praxisblau); color: var(--tinte); }
.ptabs a[aria-selected="true"] { border-color: var(--tiefblau); background: var(--himmel); }
.ptabs a[aria-selected="true"] span { color: var(--tiefblau); }
.ppanel { display: flex; flex-direction: column; padding-top: 36px; scroll-margin-top: calc(var(--kopf-hoehe) + 16px); }
.ppanel + .ppanel { margin-top: 36px; border-top: 1px solid var(--linie); }
.ppanel-text p { max-width: 720px; margin-bottom: 0; }
.ppanel .cta-reihe { order: 3; margin-top: 20px; } /* mobil: Buttons unter dem Screenshot */
.ppanel-bild { margin: 24px 0 0; }
.ppanel-bild .screenshot-breit { margin: 0 auto; }
.ppanel-bild figcaption { max-width: 760px; }
@media (min-width: 900px) {
  .ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } /* minmax(0, …): gleich breite Flächen auch bei langen Wörtern */
  .ppanel { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: start; }
  .ppanel .cta-reihe { order: 0; margin-top: 0; flex-direction: column; align-items: stretch; } /* rechts neben dem Text, untereinander, gleich breit */
  .ppanel-bild { grid-column: 1 / -1; margin-top: 32px; }
  /* feste Höhe, Breite folgt dem Seitenverhältnis (aus width/height im HTML, steht schon vor dem Laden fest) */
  .ppanel-bild .screenshot-breit { width: fit-content; max-width: 100%; }
  .ppanel-bild .screenshot-breit img { height: 460px; width: auto; }
  .ppanel-bild figcaption { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
  .pwahl.aktiv { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; }
  .pwahl.aktiv .ptabs { grid-column: 1 / -1; }
  .pwahl.aktiv .ppanel {
    grid-column: 1 / -1; grid-row: 2 / span 2; margin-top: 0; border-top: 0;
    grid-template-columns: subgrid; grid-template-rows: subgrid;
  }
  .pwahl.aktiv .ppanel:not(.on) { visibility: hidden; }
}

/* Hero nur mit Text (Startseite) */
.hero.nur-text .wrap { text-align: center; }
.hero.nur-text h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero.nur-text .lead { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Zahlenband ---------- */

.zahlenband { background: var(--nachtblau); color: #fff; }
.zahlenband h2 { color: #fff; }
.zahlenband .zahlen { text-align: left; grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
.zahlenband .zahlen span { white-space: nowrap; } /* „weniger Dokumentationszeit pro Tag“ in einer Zeile */
.zahlenband .zahlen b { color: #8FC8EE; font-size: clamp(30px, 3.6vw, 40px); }
.zahlenband .zahlen span { color: #C9D6E3; }
.zahlenband .quelle { font-size: 14px; color: #8FA6B8; margin-top: 24px; }
.zahlenband .quelle b { color: #fff; font-weight: 600; }

/* ---------- Screenshots und Bildstrecken ---------- */

.produktbild .screenshot img { display: block; width: 100%; height: auto; }
.bildstrecke { display: grid; gap: 18px; }
@media (min-width: 760px) { .bildstrecke { grid-template-columns: repeat(3, 1fr); } }
.bildstrecke figure { margin: 0; }
.bildstrecke img { display: block; width: 100%; height: auto; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); background: #fff; }
.bildstrecke figcaption { font-size: 14px; color: var(--grau); margin-top: 10px; line-height: 1.45; }
.bildstrecke figcaption b { color: var(--tinte); }
/* Drei Bilder nebeneinander: gemeinsame Bildzeile (subgrid), Bilder stehen unten auf einer Linie,
   alle Unterschriften beginnen auf gleicher Höhe */
@media (min-width: 760px) {
  .bildstrecke:not(.untereinander):not(.zwei) { grid-template-rows: auto auto; row-gap: 0; }
  .bildstrecke:not(.untereinander):not(.zwei) figure { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .bildstrecke:not(.untereinander):not(.zwei) img { align-self: end; }
}
/* Große Screenshots untereinander (KI Scan, KI Mail), damit Details lesbar sind; Breite nicht über die Originalgröße */
.bildstrecke.untereinander { grid-template-columns: 1fr; max-width: 920px; margin-left: auto; margin-right: auto; gap: 36px; }
.screenshot-breit { border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; background: #fff; }
.screenshot-breit img { display: block; width: 100%; height: auto; }
.bildunterschrift { font-size: 14px; color: var(--grau); margin-top: 10px; }

/* Lokales Video (Animation): Poster, lädt und spielt erst nach Klick */
.facade.animation { aspect-ratio: 16 / 9; background: var(--papier); color: var(--tinte); }
.facade.animation .vorschau { opacity: 1; }
.facade.animation .facade-inhalt { background: linear-gradient(to top, rgba(241,244,248,.95), rgba(241,244,248,.35)); justify-content: flex-end; padding-bottom: 20px; }
.facade.animation .facade-inhalt p { color: var(--tinte); }
.facade.animation .play { background: var(--tiefblau); color: #fff; }
.facade video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.facade.geladen .vorschau { display: none; }

/* ---------- Porträts ---------- */

.portrait { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; background: var(--himmel); }
.zitat figcaption { display: flex; align-items: center; gap: 14px; }
.zitat figcaption .portrait { width: 56px; height: 56px; flex: none; }
.zitat figcaption b { margin-bottom: 2px; }
@media (min-width: 760px) { .bildstrecke.zwei { grid-template-columns: repeat(2, 1fr); } }
.produktbild .bildunterschrift { margin-top: 12px; }

/* ---------- Illustrationen, optisch gleich groß (Höhe je Motiv nach Fläche) ---------- */

.illu { display: flex; align-items: flex-end; justify-content: flex-start; }
.illu img { width: auto; max-width: 100%; mix-blend-mode: multiply; }
.illu-klein { height: 180px; margin-bottom: 14px; }
.illu-klein .illu-doku { height: 150px; }
.illu-klein .illu-scan { height: 150px; }
.illu-klein .illu-mail { height: 135px; }
.illu-klein .illu-box  { height: 150px; }

/* ---------- Dropdown „Produkte“ ---------- */

.nav-gruppe { position: relative; }
.nav-gruppe > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-gruppe > a .pfeil { width: 12px; height: 12px; flex: none; opacity: .7; transition: transform .15s; }
.nav-unter { display: none; }
.nav-unter a { display: block; padding: 9px 14px; border-radius: 8px; text-decoration: none; color: var(--tinte); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav-unter a:hover { background: var(--himmel); color: var(--tiefblau); }

/* Mobil: Unterpunkte im aufgeklappten Menü sichtbar, eingerückt */
.kopf.offen .nav-unter { display: block; margin: 0 0 4px 16px; padding-left: 12px; border-left: 2px solid var(--linie); }
.kopf.offen .nav-unter a { padding: 9px 10px; font-size: 16px; }
.kopf.offen .nav-gruppe > a .pfeil { display: none; }

/* Desktop: aufklappen bei Hover oder Tastaturfokus */
@media (min-width: 1000px) {
  .nav-unter {
    position: absolute; left: 0; top: calc(100% + 4px); min-width: 160px; z-index: 110;
    background: #fff; border: 1px solid var(--linie); border-radius: var(--radius-sm); box-shadow: var(--schatten); padding: 6px;
  }
  .nav-gruppe::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
  .nav-gruppe:hover .nav-unter, .nav-gruppe:focus-within .nav-unter { display: block; }
  .nav-gruppe:hover > a .pfeil, .nav-gruppe:focus-within > a .pfeil { transform: rotate(180deg); }
}

/* Hero der Produktseiten: Illustration über der Produktansicht, rechts ausgerichtet */
.produktbild .hero-illu { display: block; width: auto; margin: 0 8px 14px auto; mix-blend-mode: multiply; }
.hero-illu.illu-doku { height: auto; width: 100%; max-width: 520px; margin: 0 auto; } /* KI-Doku-Hero: Comic allein, groß */
.hero-illu.illu-box  { height: 300px; margin-bottom: 0; }
.hero-illu.illu-scan { height: 170px; }
.hero-illu.illu-mail { height: 160px; }
.hero-illu.illu-klinik { height: auto; width: 100%; max-width: 480px; margin: 0 auto; }
@media (max-width: 479px) { .hero-illu.illu-box { height: 200px; } .hero-illu.illu-scan { height: 130px; } .hero-illu.illu-mail { height: 120px; } }
