/* ==========================================================================
   praxenguru – Design System
   Ruhig, geometrisch, vertrauenswürdig. Gebaut für Heilmittelerbringer.
   ========================================================================== */

/* Markenfarben Zerer ITS / Thera-π-Produktlinie: Schwarz/Weiß fuehrend + neutrales Grau
   (oklch(0.556 0 0)) als einziger Akzent statt Orange/Rot.
   Variablennamen teal-Skala und amber-Skala aus historischen Gruenden beibehalten, Werte auf
   Schwarz/Weiss/Grau umgestellt statt eines eigenen Blautons. */
:root {
  /* Farben */
  --ink:        #16181B;
  --ink-soft:   #5B6169;
  --paper:      #FFFFFF;
  --paper-dim:  #F8F9FA;
  --card:       #FFFFFF;
  --line:       #E5E7EB;

  --teal-900:   #0E0F11;
  --teal-800:   #17181B;
  --teal-700:   #212529;
  --teal-600:   #3A3F44;
  --teal-500:   #5B6169;
  --teal-100:   #ECEDEE;
  --teal-050:   #F8F9FA;

  --amber-600:  oklch(0.439 0 0);
  --amber-500:  oklch(0.556 0 0);
  --amber-100:  oklch(0.922 0 0);

  /* Blauton (bislang nur auf terminal.php/willkommen.php als Seiten-Akzent, siehe
     unten): sitweit als zweiter, zurückhaltend eingesetzter Akzent neben dem
     neutralen Grau, damit die Seite nicht komplett monochrom wirkt. */
  --blue-600:   #154573;
  --blue-500:   #1D5FA0;
  --blue-200:   #BFE0FA;
  --blue-100:   #E1ECF7;

  --focus:      #1D5FA0;

  /* Typo: Euclid (Marken-Schrift Zerer ITS, self-hosted, nur Bold verfügbar) durchgängig für
     Fließtext und Überschriften – wie auf jonaszerer/src/styles/custom.css (`body { font-family:
     'Euclid' !important }`). */
  --font-body:    'Euclid', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Euclid', ui-sans-serif, system-ui, sans-serif;

  /* Radien & Schatten */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 27, .07), 0 1px 1px rgba(22, 24, 27, .05);
  --shadow-md: 0 12px 32px -12px rgba(22, 24, 27, .22);
  --shadow-lg: 0 24px 60px -20px rgba(22, 24, 27, .35);

  --container: 1180px;

  /* Tatsächliche Höhe von Header und (falls vorhanden) .subnav – per JS exakt
     gemessen statt geraten, damit sich die Sprungmarken-Leiste lückenlos unter
     den Header legt und Anker-Sprünge nicht darunter verschwinden. */
  --header-h: 68px;
  --subnav-h: 0px;
}

/* Marken-Schrift Zerer ITS, self-hosted (siehe assets/fonts/euclidB.ttf) */
@font-face {
  font-family: 'Euclid';
  src: url('../fonts/euclidB.woff2') format('woff2'),
       url('../fonts/euclidB.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* funktionen.php hat zusätzlich die sticky .subnav unterhalb des Headers –
   Sprungziele brauchen dort mehr Abstand, sonst verdecken Header+Leiste
   zusammen die Abschnittsüberschrift beim Anker-Sprung. --header-h/--subnav-h
   werden in main.js exakt aus der gerenderten Höhe gesetzt (kein Rätselwert). */
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + var(--subnav-h)); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-800);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--teal-900); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .4rem .9rem;
  border-radius: var(--radius-pill);
}
.eyebrow .icon { width: 14px; height: 14px; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

.hero__tagline {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: var(--teal-600);
}

/* ---- Icons -------------------------------------------------------------*/
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 30px; height: 30px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--amber-500); color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-600); background: var(--teal-050); }
.btn--ghost-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-invert:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,36,30,.5); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 26px; width: auto; }
.brand__logo--invert { filter: brightness(0) invert(1); } /* schwarzes Logo für dunklen Footer-Hintergrund */

.main-nav { margin-left: 1rem; }
.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav a { font-weight: 600; font-size: .96rem; color: var(--ink-soft); padding: .3rem 0; position: relative; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--amber-500); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--teal-900); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.site-header__actions { margin-left: auto; display: flex; gap: .7rem; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: .5rem; color: var(--teal-900);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 68px; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1.25rem clamp(1.25rem,4vw,2.5rem) 1.75rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 1.1rem; }
  .site-header__actions { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---- Funktionen: sticky Sprungmarken-Leiste unterhalb des Hauptheaders ----
   Lockert die sehr inhaltsreiche Funktionen-Seite auf: statt nur zu scrollen,
   springt man direkt zum gewünschten Modul. Blauton (statt Grau) hebt sie
   bewusst vom restlichen, zurückhaltenden Seitendesign ab. */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--blue-600);
}
.subnav__inner {
  display: flex;
  gap: .2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto;
  color: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: .86rem;
  white-space: nowrap;
  padding: .8rem .9rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.subnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.subnav a.is-active { color: #fff; border-bottom-color: #fff; }

/* ---- Hero ---------------------------------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: .55;
}
.hero__blob--1 { width: 520px; height: 520px; top: -220px; right: -140px; background: radial-gradient(circle at 30% 30%, var(--blue-100), transparent 70%); }
.hero__blob--2 { width: 420px; height: 420px; bottom: -220px; left: -160px; background: radial-gradient(circle at 60% 40%, var(--amber-100), transparent 70%); }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__content > * + * { margin-top: 1.4rem; }
.hero__title .accent { color: var(--blue-600); text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .08em; text-decoration-color: var(--blue-100); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__note { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); font-size: .9rem; margin-top: 1.1rem; }
.hero__note .icon { color: var(--teal-600); }

.hero__panel {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.hero__panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.hero__panel-head span { font-size: .82rem; color: rgba(255,255,255,.65); }
.hero__dot-row { display: flex; gap: .35rem; }
.hero__dot-row span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }

.slot-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  margin-bottom: .6rem;
}
.slot-row:last-child { margin-bottom: 0; }
.slot-row__who { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.slot-row__avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--amber-500); color: var(--teal-900); font-weight: 700; font-size: .82rem;
}
.slot-row__time { font-weight: 700; font-size: .92rem; }
.slot-row__tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(244,162,106,.18); color: var(--amber-500); padding: .25rem .55rem; border-radius: var(--radius-pill);
}
.slot-row__tag--ok { background: rgba(34,125,103,.28); color: #8FE0C4; }

.hero__shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--paper-dim);
}
.hero__shot img { width: 100%; height: auto; display: block; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ---- Section scaffolding -------------------------------------------------*/
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-head { max-width: 700px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head > * + * { margin-top: .9rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section--tint { background: var(--paper-dim); }
.section--dark { background: var(--teal-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(255,255,255,.72); }

/* ---- Problem / Lösung -----------------------------------------------------*/
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pain-list li, .gain-list li { display: flex; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.pain-list li:last-child, .gain-list li:last-child { border-bottom: none; }
.pain-list .icon { color: var(--amber-600); }
.gain-list .icon { color: var(--blue-600); }
.pain-list p, .gain-list p { color: var(--ink-soft); }
.pain-list strong, .gain-list strong { display: block; color: var(--teal-900); margin-bottom: .15rem; }

/* ---- Feature grid ----------------------------------------------------------*/
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }

.feature-card__icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-card h3 { color: var(--blue-600); margin-bottom: .5rem; }
.feature-card p { color: var(--ink-soft); font-size: .96rem; }
.feature-card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--blue-600); }
.feature-card__link .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .feature-card__link .icon { transform: translateX(3px); }

/* ---- Module deep-dive (funktionen.php): zwei Feature-Karten nebeneinander,
   Text oben, Screenshot/Icon darunter – kompakter als eine Zeile pro Feature,
   mit dünnen Trennlinien statt Kästen (passt zum Zeilen-Look der Punktlisten
   unten). ------------------------------------------------------------------ */
.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .module-grid { grid-template-columns: 1fr; } }

.module-card { padding: clamp(2.2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
.module-grid > .module-card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: clamp(1.6rem, 3vw, 2.5rem); }
.module-grid > .module-card:nth-child(even) { padding-left: clamp(1.6rem, 3vw, 2.5rem); }
@media (max-width: 860px) {
  .module-grid > .module-card:nth-child(odd) { border-right: none; padding-right: 0; }
  .module-grid > .module-card:nth-child(even) { padding-left: 0; }
}

/* Sprungmarken-Leiste als Tab-Filter (siehe main.js): ausgeblendete Panels/
   Wrapper-Sections komplett aus dem Fluss nehmen. Sobald gefiltert wird,
   bleibt oft nur eine Karte pro Raster übrig – dann die 2-Spalten-Optik samt
   Trennstrich abschalten, damit die einzelne Karte nicht schief/halb leer
   wirkt, sondern zentriert und in voller Breite lesbar ist. */
.is-panel-hidden { display: none !important; }
body:has(.module-card.is-panel-hidden) .module-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
body:has(.module-card.is-panel-hidden) .module-grid > .module-card:nth-child(odd),
body:has(.module-card.is-panel-hidden) .module-grid > .module-card:nth-child(even) {
  border-right: none;
  padding-right: 0;
  padding-left: 0;
}

.module__badge {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--blue-600); color: var(--blue-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.module-card h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.22; }
.module-card .lede { font-size: 1rem; margin-top: .5rem; }

/* Feature-Punkte als offene, tabellenartige Zeilenliste statt Kästen: dünne
   Trennlinie, ein blauer Akzentstrich links, der beim Hover einblendet, dazu ein
   zarter Zeilen-Wash – wirkt wie eine strukturierte Protokoll-/Checklisten-Zeile,
   nicht wie eine Karten-Sammlung. */
.module__points { margin-top: 1.4rem; display: grid; }
.module__points li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .8rem .3rem .8rem 1rem;
  margin-left: -1rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.45;
  transition: border-color .18s ease, background-color .18s ease;
}
.module__points li:hover { border-left-color: var(--blue-500); background-color: var(--blue-100); }
.module__points .icon {
  flex: 0 0 auto; margin-top: .05rem;
  width: 22px; height: 22px; padding: 4px; box-sizing: border-box;
  border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.module__points li:hover .icon { background: var(--blue-600); color: #fff; transform: scale(1.1); }

.module-card__visual {
  margin-top: 1.6rem;
  background: linear-gradient(155deg, var(--teal-050), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.module-card__visual .icon { width: 64px; height: 64px; color: var(--teal-700); opacity: .85; }
.module-card__visual--shot { padding: 0; box-shadow: var(--shadow-md); }
.module-card__visual--shot img { width: 100%; height: auto; display: block; }
.module__extra-shot {
  margin: 1.4rem 0 0; padding: .7rem .7rem 0; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper-dim);
}
.module__extra-shot img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.module__extra-shot figcaption { font-size: .82rem; color: var(--ink-soft); padding: .6rem .1rem .8rem; }

/* ---- Steps ("So funktioniert's") ---------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: .5rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--amber-500); color: var(--teal-900);
  font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ---- Fachbereiche / Zielgruppen chips ------------------------------------ */
.chip-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .6rem 1.1rem; font-weight: 600; font-size: .92rem; color: var(--teal-800);
}
.chip .icon { color: var(--blue-600); width: 17px; height: 17px; }

/* ---- Betrieb & Sicherheit --------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); padding: 1.4rem; }
.trust-card .icon { color: var(--blue-200); margin-bottom: .9rem; }
.trust-card h3 { font-size: 1.05rem; }
.trust-card p { color: rgba(255,255,255,.68); font-size: .92rem; margin-top: .5rem; }

/* ---- Pricing --------------------------------------------------------------*/
.price-toggle {
  display: inline-flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .35rem; margin: 0 auto 3rem; position: relative;
}
.price-toggle button {
  border: none; background: transparent; padding: .55rem 1.2rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .92rem; color: var(--ink-soft); position: relative; z-index: 1;
  transition: color .2s ease;
}
.price-toggle button.is-active { color: #fff; }
.price-toggle__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--teal-800); border-radius: var(--radius-pill);
  transition: transform .25s cubic-bezier(.4,0,.2,1); z-index: 0;
}
.price-toggle[data-period="yearly"] .price-toggle__thumb { transform: translateX(100%); }
.price-toggle__save {
  font-size: .74rem; font-weight: 700; color: var(--teal-700); background: var(--teal-100);
  padding: .15rem .5rem; border-radius: var(--radius-pill); margin-left: -.4rem;
}

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; position: relative;
}
.price-card--highlight { border-color: var(--blue-500); border-width: 2px; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
@media (max-width: 980px) { .price-card--highlight { transform: none; } }
.price-card__badge {
  position: absolute; top: -14px; left: 2rem; background: var(--blue-500); color: #fff;
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: .4rem .8rem; border-radius: var(--radius-pill);
}
.price-card__target { color: var(--ink-soft); font-size: .9rem; margin-top: .3rem; }
.price-card__amount { display: flex; align-items: baseline; gap: .3rem; margin: 1.4rem 0 .3rem; font-family: var(--font-display); }
.price-card__amount .num { font-size: 2.6rem; color: var(--teal-900); }
.price-card__amount .per { color: var(--ink-soft); font-size: .95rem; }
.price-card__desc { color: var(--ink-soft); font-size: .92rem; min-height: 2.6em; }
.price-card__list { margin: 1.4rem 0 1.7rem; display: grid; gap: .65rem; flex: 1; }
.price-card__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.price-card__list .icon { color: var(--teal-600); width: 18px; height: 18px; margin-top: .1rem; }

.price-footnote { text-align: center; color: var(--ink-soft); font-size: .88rem; margin-top: 2.2rem; }

/* Comparison table */
.compare-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.compare {
  width: 100%; border-collapse: collapse; background: #fff; min-width: 680px;
}
.compare th, .compare td { text-align: left; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.compare thead th { background: var(--paper-dim); font-family: var(--font-display); font-weight: 500; color: var(--teal-900); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .icon { color: var(--teal-600); margin: 0 auto; }
.compare .icon.is-no { color: #C8BFA9; }
.compare td:first-child { color: var(--ink-soft); }

/* ---- FAQ --------------------------------------------------------------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; text-align: left; background: none; border: none; font-weight: 700; color: var(--teal-900);
}
.faq-item__q .icon { transition: transform .2s ease; color: var(--teal-600); flex-shrink: 0; }
.faq-item.is-open .faq-item__q .icon { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  padding: 0 1.4rem;
}
.faq-item__a p { color: var(--ink-soft); padding-bottom: 1.2rem; font-size: .95rem; }
.faq-item.is-open .faq-item__a { max-height: 320px; }

/* ---- Pre-footer CTA ------------------------------------------------------*/
.pre-footer {
  background: radial-gradient(120% 160% at 20% 0%, var(--teal-700), var(--teal-900));
  color: #fff;
}
.pre-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.pre-footer__text h2 { color: #fff; }
.pre-footer__text p { color: rgba(255,255,255,.75); margin-top: .6rem; max-width: 46ch; }
.pre-footer__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Footer -------------------------------------------------------------*/
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.85); }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem;
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
.site-footer__brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .8rem; max-width: 32ch; }
.site-footer__muted { color: rgba(255,255,255,.45) !important; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .65rem; }
.site-footer a { color: rgba(255,255,255,.68); font-size: .93rem; display: inline-flex; align-items: center; gap: .4rem; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---- Page header (Unterseiten) ------------------------------------------*/
.page-hero { padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-hero .section-head { margin-bottom: 0; }

/* ---- Forms (Kontakt) ------------------------------------------------------*/
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: .45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .88rem; color: var(--teal-900); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .9rem;
  background: #fff; color: var(--ink); font-size: .96rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-hint { font-size: .82rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert { border-radius: var(--radius-md); padding: 1.1rem 1.3rem; display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.8rem; }
.alert--success { background: var(--teal-050); border: 1px solid var(--teal-100); color: var(--teal-800); }
.alert--error { background: var(--teal-100); border: 1px solid var(--teal-500); color: var(--teal-900); }
.alert .icon { flex-shrink: 0; margin-top: .1rem; }

.contact-info { display: grid; gap: 1.4rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__item .icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--teal-050); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info__item h3 { font-size: 1rem; }
.contact-info__item p, .contact-info__item a { color: var(--ink-soft); font-size: .93rem; }

/* ---- Legal pages ----------------------------------------------------------*/
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: .97rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal > * + * { margin-top: 1rem; }
.legal-note {
  background: var(--teal-050); border: 1px solid var(--teal-100); border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; color: var(--teal-800); font-size: .9rem;
}

/* ---- Scroll reveal --------------------------------------------------------*/
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Seiten-Akzent: Anmeldeterminal (Blauton) ----------------------------
   Eigener Akzent nur für terminal.php: ein ruhiger Blauton (angelehnt an
   --focus) statt des sonst neutralen Grau-Akzents, für etwas mehr Stimmung
   auf dem Gerät. Wirkt nur innerhalb .page-terminal, alle anderen Seiten
   bleiben unverändert. */
.page-terminal {
  --amber-500: #1D5FA0;
  --amber-600: #154573;
  --amber-100: #E1ECF7;
}
.page-terminal .btn--primary { color: #fff; }
.page-terminal .eyebrow { color: var(--amber-600); background: var(--amber-100); }
.page-terminal .feature-card__icon { background: var(--amber-100); color: var(--amber-600); }

/* "So checken sich Patienten selbst ein": Karten statt reiner Text-Spalten,
   mit Riesen-Nummer im Hintergrund, Verbindungspfeilen und Hover-Effekt –
   etwas mehr Bewegung statt drei statischer Spalten. */
.page-terminal .steps { counter-reset: step; }
.page-terminal .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem 1.7rem;
  transition: opacity .3s ease, transform .3s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-terminal .step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--amber-100); }
.page-terminal .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--amber-500);
  margin-bottom: .7rem;
}
.page-terminal .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 1.4rem;
  height: 1.4rem;
  border-top: 2.5px solid var(--amber-500);
  border-right: 2.5px solid var(--amber-500);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.page-terminal .step:nth-child(2) { transition-delay: .06s; }
.page-terminal .step:nth-child(3) { transition-delay: .12s; }
@media (max-width: 860px) {
  .page-terminal .step:not(:last-child)::after { display: none; }
}

/* Horizontal ziehbare Karten-Kette statt festem, mehrzeiligem Raster – genutzt
   von terminal.php ("Vorteile") und funktionen.php ("Module im Überblick",
   dort sonst sehr dominant/hoch). Generisch (nicht mehr .page-terminal-
   gebunden), siehe main.js für die Dragging-Logik. */
.feature-grid--drag {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.4rem;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 clamp(-1.25rem, -4vw, -2.5rem);
  padding: .3rem clamp(1.25rem, 4vw, 2.5rem) .3rem;
}
.feature-grid--drag::-webkit-scrollbar { display: none; height: 0; }
.feature-grid--drag.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Eigene Scrollbar (dick, farbig, ohne Pfeile) statt der Browser-eigenen –
   native Scrollbar-Pfeile lassen sich in aktuellem Chrome/Windows per CSS
   nicht zuverlässig entfernen. */
.drag-scrollbar {
  position: relative;
  height: 5px;
  margin: 0 clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  overflow: hidden;
}
.drag-scrollbar__thumb {
  position: absolute;
  top: 0; left: 0; height: 100%;
  border-radius: var(--radius-pill);
  background: var(--blue-500);
  cursor: grab;
}
.drag-scrollbar__thumb:hover { background: var(--blue-600); }
.drag-scrollbar__thumb.is-dragging { cursor: grabbing; background: var(--blue-600); }
.feature-grid--drag.is-dragging .feature-card { pointer-events: none; }
.feature-grid--drag .feature-card {
  flex: 0 0 clamp(260px, 30vw, 320px);
  scroll-snap-align: start;
  user-select: none;
}

/* Hero-Produktbild größer und freigestellt (kein Rahmen, kein 3D-Schatten),
   grauer Balken dahinter bleibt als dezenter Farbeffekt. */
.page-terminal .hero__inner { grid-template-columns: .8fr 1.25fr; }
.page-terminal .hero__inner .hero__shot {
  position: relative;
  overflow: visible;
  background: none;
  border: none;
  box-shadow: none;
}
.page-terminal .hero__inner .hero__shot::before {
  content: '';
  position: absolute;
  top: 9%;
  bottom: -7%;
  left: -8%;
  right: 12%;
  background: var(--teal-100);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.page-terminal .hero__inner .hero__shot img {
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

/* ---- Seiten-Akzent: Willkommen/Brief-Aktion (Blauton) ---------------------
   Eigener Akzent nur für willkommen.php, gleicher Blauton wie beim
   Anmeldeterminal (--focus), für eine etwas wärmere, bildlastigere Landingpage
   aus der Direktmarketing-Aktion. Wirkt nur innerhalb .page-willkommen. */
.page-willkommen {
  --amber-500: #1D5FA0;
  --amber-600: #154573;
  --amber-100: #E1ECF7;
}
.page-willkommen .btn--primary { color: #fff; }
.page-willkommen .eyebrow { color: var(--amber-600); background: var(--amber-100); }
.page-willkommen .feature-card__icon { background: var(--amber-100); color: var(--amber-600); }
.page-willkommen .gain-list .icon { color: var(--amber-600); }

/* Bildlastige Split-Sektionen (Nutzen-Beleg, Kennenlerngespräch): Foto +
   Text nebeneinander, gleiches Kartenbild wie das Hero-Foto. */
.page-willkommen .split-photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.page-willkommen .split-photo--reverse .split-photo__shot { order: 2; }
@media (max-width: 860px) {
  .page-willkommen .split-photo { grid-template-columns: 1fr; }
  .page-willkommen .split-photo--reverse .split-photo__shot { order: 0; }
}
.page-willkommen .split-photo__shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.page-willkommen .split-photo__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-willkommen .step-list { display: grid; gap: 1.5rem; }
.page-willkommen .step-list li { display: flex; gap: 1.1rem; }
.page-willkommen .step-list .step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-600);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.page-willkommen .step-list strong { display: block; color: var(--teal-900); margin-bottom: .2rem; }
.page-willkommen .step-list p { color: var(--ink-soft); font-size: .96rem; }

/* Vollflächiger Bild-Hero statt der zweispaltigen Standard-Hero: Foto füllt
   die gesamte Breite, Text liegt als Scrim-Overlay darüber. */
.page-willkommen .hero-full {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 800px);
  padding: clamp(3rem, 8vw, 5rem) 0;
  color: #fff;
}
.page-willkommen .hero-full__media { position: absolute; inset: 0; z-index: 0; }
.page-willkommen .hero-full__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.page-willkommen .hero-full__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,15,17,.90) 0%, rgba(14,15,17,.68) 40%, rgba(14,15,17,.28) 68%, rgba(14,15,17,.08) 100%);
}
.page-willkommen .hero-full__inner { position: relative; z-index: 1; width: 100%; }
.page-willkommen .hero-full__content { max-width: 640px; }
.page-willkommen .hero-full__content > * + * { margin-top: 1.4rem; }
.page-willkommen .hero-full .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.page-willkommen .hero-full h1 { color: #fff; }
.page-willkommen .hero-full h1 .accent { color: var(--amber-100); text-decoration-color: rgba(255,255,255,.4); }
.page-willkommen .hero-full .hero__tagline { color: #fff; }
.page-willkommen .hero-full .lede { color: rgba(255,255,255,.86); }
.page-willkommen .hero-full .hero__note { color: rgba(255,255,255,.8); }
.page-willkommen .hero-full .hero__note .icon { color: #fff; }

@media (max-width: 700px) {
  .page-willkommen .hero-full { min-height: clamp(520px, 78vh, 640px); align-items: flex-end; }
  .page-willkommen .hero-full__media::after {
    background: linear-gradient(190deg, rgba(14,15,17,.25) 0%, rgba(14,15,17,.55) 45%, rgba(14,15,17,.94) 100%);
  }
}

/* Etwas kräftigere Headline und ein paar Karten mit dezentem Blau-Tint statt
   reinem Weiß – Anregung von capterra.com/vendors (klare, farbig akzentuierte
   Flächen statt rein neutralem Grau). Nur auf dieser Seite wirksam. */
.page-willkommen .hero-full h1 { font-weight: 700; }
.page-willkommen .chip { background: var(--amber-100); border-color: transparent; color: var(--amber-600); }
.page-willkommen .chip .icon { color: var(--amber-600); }
.page-willkommen section.section--tint .card:not(.feature-card) {
  background: linear-gradient(160deg, var(--amber-100) 0%, #fff 60%);
  border-color: rgba(29, 95, 160, .14);
}

/* Header hat auf dieser Seite keine Hauptnavigation und damit auch keinen
   Burger-Toggle für < 900px – der CTA-Button darf hier also nie per
   .site-header__actions{display:none} verschwinden. Bei sehr schmalen
   Screens bricht der Header stattdessen zweizeilig um (Logo oben, Button
   darunter volle Breite), statt zu überlaufen. */
.page-willkommen .site-header__actions { display: flex; }
@media (max-width: 640px) {
  .page-willkommen .site-header__inner { flex-wrap: wrap; row-gap: .6rem; }
  .page-willkommen .site-header__actions { margin-left: 0; width: 100%; }
  .page-willkommen .site-header__actions .btn { width: 100%; font-size: .88rem; padding: .7rem 1.1rem; }
}

/* Betrieb & Sicherheit: dunkles Navy-Blau statt neutralem Schwarzgrau. */
.page-willkommen .trust-section {
  background: linear-gradient(165deg, var(--amber-600) 0%, #0B1E33 55%, #081522 100%);
}
.page-willkommen .trust-section .trust-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}
.page-willkommen .trust-section .trust-card .icon { color: #BFE0FA; }
.page-willkommen .trust-section .trust-card:hover { border-color: rgba(191, 224, 250, .4); }
