/*
 * Vetofix Startseite.
 * Leitidee „Tagesroute“: Der Tag einer Hausbesuch-Tierärztin ist eine Strecke von Hof zu Hof,
 * mit Funklöchern dazwischen. Die Route im Kopfbereich ist das einzige laute Element; alles
 * andere bleibt ruhig, flach und hält sich an das Markenhandbuch (docs/product/brand-guide.md).
 * Schrift: Inter, lokal ausgeliefert (fonts/, OFL-Lizenz liegt daneben). Keine fremden Server.
 */

@font-face {
  font-family: "Inter Vetofix";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Markenfarben (hell) */
  --petrol: #0A625C;
  --petrol-hover: #074B47;
  --petrol-tint: #E3EEEB;
  --blue: #243B53;
  --copper: #B86B3B;
  --offline: #7C3AED;
  --offline-ink: #6D28D9;
  --offline-tint: #F1EBFE;
  --success: #16A34A;

  /* Flächen und Text */
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --surface-sunk: #EEF1EC;
  --line: #E2E8F0;
  --line-strong: #CBD5D1;
  --text: #1F2937;
  --heading: #1B2A3A;
  --muted: #586474;
  --on-primary: #FFFFFF;
  --focus: #0A625C;

  /* Dunkle Bänder (Offline-Abschnitt, Fußzeile) */
  --band: #243B53;
  --band-text: #E2E8F0;
  --band-muted: #B8C6D6;
  --band-accent: #2DD4BF;
  --band-offline: #C4B5FD;

  --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 700' fill='none' stroke='%230A625C' stroke-opacity='.11' stroke-width='1.3'%3E%3Cpath d='M620 120c120 10 230 90 240 200s-80 230-220 250-300-40-330-160 30-210 120-260 120-35 190-30z'/%3E%3Cpath d='M615 175c95 8 175 70 182 150s-60 170-165 186-225-30-248-120 22-160 92-197 85-23 139-19z'/%3E%3Cpath d='M610 232c70 6 120 50 125 105s-45 118-118 128-155-22-170-85 18-110 66-135 60-16 97-13z'/%3E%3Cpath d='M606 290c42 4 70 30 72 62s-28 68-70 73-88-13-96-48 12-60 38-74 34-15 56-13z'/%3E%3Cpath d='M40 520c80-40 170-30 240 10s150 80 250 60 190-90 330-70'/%3E%3Cpath d='M20 590c90-35 190-25 270 15s160 75 260 55 200-80 340-62'/%3E%3Cpath d='M60 450c70-50 150-50 215-15s140 70 230 48'/%3E%3Cpath d='M-20 660c100-30 210-20 300 18s170 60 270 45 210-60 360-50'/%3E%3C/svg%3E");

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-space: clamp(72px, 9vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --petrol: #2DD4BF;
    --petrol-hover: #5EEAD4;
    --petrol-tint: #12343A;
    --blue: #8FB7DE;
    --copper: #F0B27A;
    --offline: #A78BFA;
    --offline-ink: #C4B5FD;
    --offline-tint: #2A2150;
    --success: #4ADE80;

    --bg: #0F172A;
    --surface: #1E293B;
    --surface-sunk: #162033;
    --line: #334155;
    --line-strong: #475569;
    --text: #E2E8F0;
    --heading: #F1F5F9;
    --muted: #94A3B8;
    --on-primary: #0F172A;
    --focus: #5EEAD4;

    --band: #1E293B;
    --band-text: #E2E8F0;
    --band-muted: #A9B8CA;
    --band-accent: #2DD4BF;
    --band-offline: #C4B5FD;

    --contour: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 700' fill='none' stroke='%232DD4BF' stroke-opacity='.09' stroke-width='1.3'%3E%3Cpath d='M620 120c120 10 230 90 240 200s-80 230-220 250-300-40-330-160 30-210 120-260 120-35 190-30z'/%3E%3Cpath d='M615 175c95 8 175 70 182 150s-60 170-165 186-225-30-248-120 22-160 92-197 85-23 139-19z'/%3E%3Cpath d='M610 232c70 6 120 50 125 105s-45 118-118 128-155-22-170-85 18-110 66-135 60-16 97-13z'/%3E%3Cpath d='M606 290c42 4 70 30 72 62s-28 68-70 73-88-13-96-48 12-60 38-74 34-15 56-13z'/%3E%3Cpath d='M40 520c80-40 170-30 240 10s150 80 250 60 190-90 330-70'/%3E%3Cpath d='M20 590c90-35 190-25 270 15s160 75 260 55 200-80 340-62'/%3E%3Cpath d='M60 450c70-50 150-50 215-15s140 70 230 48'/%3E%3Cpath d='M-20 660c100-30 210-20 300 18s170 60 270 45 210-60 360-50'/%3E%3C/svg%3E");
  }
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Vetofix", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
h1, h2, h3 { color: var(--heading); text-wrap: balance; }
p { text-wrap: pretty; }
button, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; }
time, .stop time, .billing-row, .invoice-lines, .receipt-lines, .dunning-summary, .stock-list b { font-variant-numeric: tabular-nums; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -120px; left: 10px; background: var(--heading); color: var(--bg); padding: 12px 18px; border-radius: var(--radius-s); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 10px; }

.section-inner, .hero-inner, .trust-inner, .pilot-inner, .footer-main, .footer-bottom {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section { padding-block: var(--section-space); }

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--petrol);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
}
h2 {
  margin: 0;
  font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.08;
  font-weight: 640;
  letter-spacing: -0.022em;
}
h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 620; letter-spacing: -0.01em; }
.section-heading { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading > p:not(.eyebrow), .section-heading > div + p { margin: 18px 0 0; color: var(--muted); max-width: 40rem; }
.section-lead { margin: 20px 0 0; color: var(--muted); font-size: 1.1rem; max-width: 38rem; }

/* ---------- Knöpfe und Links ---------- */

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: var(--radius-m);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--petrol); color: var(--on-primary); }
.button-primary:hover { background: var(--petrol-hover); }
.button-secondary { color: var(--heading); border-color: var(--line-strong); background: transparent; }
.button-secondary:hover { border-color: var(--petrol); color: var(--petrol); }
.button-small { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.button-light { background: #FFFFFF; color: #0A3F3B; }
.button-light:hover { background: #E3EEEB; }

.guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 18px;
  color: var(--petrol);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.guide-link:hover { text-decoration-thickness: 3px; }
.guide-link-light { color: var(--band-accent); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-wrap { width: min(100% - 2 * var(--gutter), var(--max)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 48px; color: var(--petrol); text-decoration: none; }
.brand-symbol { display: block; width: 30px; height: 30px; flex: 0 0 auto; transform: translateY(1px); }
.brand-word { margin-left: -3px; font-size: 26px; line-height: 1; font-weight: 650; letter-spacing: -0.01em; color: #0A625C; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a, .login-link { color: var(--text); font-size: 0.92rem; font-weight: 520; text-decoration: none; }
.main-nav a { padding: 12px 0; background: linear-gradient(var(--petrol), var(--petrol)) no-repeat left 100% / 0 2px; transition: background-size 160ms var(--ease); }
.main-nav a:hover { background-size: 100% 2px; color: var(--petrol); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.login-link { padding: 12px 4px; }
.login-link:hover { color: var(--petrol); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; padding: 12px; background: transparent; color: var(--heading); border-radius: var(--radius-s); }
.nav-toggle svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

/* Logo im Dunkelmodus: weiße Fassung (Markenhandbuch Abschnitt 2) */
@media (prefers-color-scheme: dark) {
  .brand-word { color: #F1F5F9; }
  .brand-symbol .mark-pin, .route-mark .mark-pin { fill: #FFFFFF; }
  .brand-symbol .mark-v { stroke: var(--bg); }
  .route-mark .mark-v { stroke: var(--surface); }
}

/* ---------- Kopfbereich mit Tagesroute ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  background: var(--contour) no-repeat right -120px top 40px / min(1100px, 120%) auto, var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1;
  font-weight: 660;
  letter-spacing: -0.035em;
}
.hero h1 .eyebrow { margin-bottom: 22px; font-size: 1rem; letter-spacing: 0; line-height: 1.4; font-weight: 600; }
.hero-lead { max-width: 34rem; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-visual { margin: 0; position: relative; }
.route-sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(15, 23, 42, 0.28);
}
.route-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.route-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.route-head strong { display: block; color: var(--heading); font-size: 1.02rem; font-weight: 620; }
.ui-kicker { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.route-today { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 16px 0 6px; }
.route-today .mock-title { margin: 0; font-size: 1.35rem; font-weight: 660; color: var(--heading); letter-spacing: -0.015em; }
.sync-copy { color: var(--muted); font-size: 0.875rem; }
.mock-title { font-weight: 620; }

/* Die Route: dicke Linie, Halte als Kreise, Funkloch als violette Strichlinie */
.route { list-style: none; margin: 10px 0 0; padding: 0; --time-w: 3.6rem; --rail-w: 2rem; --rail-x: calc(var(--time-w) + var(--rail-w) / 2); }
.route > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--time-w) var(--rail-w) minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0;
  padding: 10px 0;
}
.route > li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--rail-x) - 3px);
  width: 6px;
  background: var(--petrol);
  transform-origin: top;
  animation: rail-draw 520ms var(--ease) both;
}
.route > li:first-child::before { top: 22px; border-radius: 3px 3px 0 0; }
.route > li:last-child::before { bottom: auto; height: 22px; border-radius: 0 0 3px 3px; }
.route > li:nth-child(2)::before { animation-delay: 380ms; }
.route > li:nth-child(3)::before { animation-delay: 760ms; }
.route > li:nth-child(4)::before { animation-delay: 1140ms; }
.stop::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(var(--rail-x) - 9px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--petrol);
}
.stop-active::after { background: var(--petrol); box-shadow: 0 0 0 5px var(--petrol-tint); }
.stop time { grid-column: 1; padding-top: 6px; color: var(--heading); font-weight: 620; font-size: 1rem; }
.stop-body { grid-column: 3; padding: 4px 12px 4px 4px; min-width: 0; }
.stop-body p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.stop-body .stop-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--muted); }
.stop-title strong { color: var(--heading); font-size: 1.12rem; font-weight: 640; }
.stop-reason { margin-top: 2px !important; }
.stop-body .ui-kicker { color: var(--petrol); font-weight: 600; }
.stop > .tag { grid-column: 4; margin-top: 6px; }
.stop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.stop-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--petrol);
  color: var(--on-primary);
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: none;
}
.route-offline { padding: 14px 0 !important; }
.route-offline::before {
  background: repeating-linear-gradient(to bottom, var(--offline) 0 9px, transparent 9px 16px) !important;
}
.route-offline .status { grid-column: 3; justify-self: start; margin-left: 4px; }
.route-offline p { grid-column: 3 / 5; margin: 8px 0 0 4px; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }
.route-offline p strong { display: block; color: var(--offline-ink); font-weight: 620; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--petrol-tint);
  color: var(--petrol);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-planned { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 12px 2px 10px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; }
.status > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-offline { background: var(--offline-tint); color: var(--offline-ink); }
.demo-label { margin: 12px 4px 0; color: var(--muted); font-size: 0.875rem; }

@keyframes rail-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Merkmalzeile ---------- */

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px; color: var(--heading); font-size: 0.95rem; font-weight: 560; }
.trust-inner span { display: inline-flex; align-items: center; gap: 10px; }
.trust-inner span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--petrol); }

/* ---------- Plattformen ---------- */

.platform-section { padding-block: clamp(56px, 7vw, 96px); }
.platform-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.platform-copy > p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); max-width: 32rem; }
.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.store-badge { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge-play img { height: 63px; margin: -7px -10px; }
.platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.platform-list li { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); }
.platform-list small { display: block; color: var(--muted); font-size: 0.875rem; }
.platform-list strong { display: block; color: var(--heading); font-size: 1.1rem; font-weight: 620; }
.platform-list .platform-web { grid-column: span 2; }

/* ---------- Praxisalltag ---------- */

.problem-section { background: var(--surface); border-block: 1px solid var(--line); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.problem-list { display: grid; gap: 0; margin-top: 36px; }
.problem-list article { padding: 18px 0 18px 20px; border-left: 3px solid var(--copper); }
.problem-list article + article { margin-top: 10px; }
.problem-list p { margin: 6px 0 0; color: var(--muted); max-width: 34rem; }
.before-after { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; align-self: center; }
.before-after > div { padding: 24px 26px; }
.before-column { background: var(--surface-sunk); }
.after-column { background: var(--surface); border-top: 1px solid var(--line); }
.comparison-label { margin: 0 0 10px; font-weight: 640; color: var(--heading); }
.before-after ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.before-after li { position: relative; padding-left: 26px; }
.before-column li { color: var(--muted); }
.before-column li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 12px; height: 1.5px; background: var(--muted); }
.after-column li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 6px; height: 11px; border: solid var(--petrol); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Arbeitsablauf ---------- */

.workflow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 20px;
  position: relative;
}
.workflow-track::before { content: ""; position: absolute; top: 19px; left: 20px; right: calc((100% - 100px) / 6 - 20px); height: 2px; background: var(--petrol); opacity: 0.45; }
.workflow-track li { position: relative; }
.step-number {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--petrol);
  color: var(--petrol);
  font-weight: 660;
  font-variant-numeric: tabular-nums;
}
.workflow-track h3 { margin-top: 16px; font-size: 1.05rem; }
.workflow-track p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.step-visual {
  margin-top: 18px;
  min-height: 122px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
  display: grid;
  align-content: center;
  gap: 2px;
}
.step-visual strong { color: var(--heading); font-weight: 640; font-size: 0.98rem; }
.step-calendar strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.step-patient { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.step-patient > span, .patient-avatar, .stock-initial {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--petrol-tint); color: var(--petrol); font-weight: 660;
}
.step-patient small, .step-got small, .step-invoice small, .step-payment small { display: block; font-size: 0.875rem; }
.step-note i { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; }
.step-note i:nth-child(3) { width: 80%; }
.step-note i:nth-child(4) { width: 55%; }
.step-got > span, .step-invoice > span { color: var(--petrol); font-weight: 620; }
.step-payment { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.step-payment > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--petrol); color: var(--on-primary); font-weight: 700; }

/* ---------- Produktansichten ---------- */

.product-section { background: var(--surface); border-block: 1px solid var(--line); }
.product-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 56px; align-items: end; max-width: none; }
.product-heading > p { margin: 0 !important; }
.product-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  width: fit-content;
  max-width: 100%;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.product-tabs button:hover { color: var(--heading); }
.product-tabs button[aria-selected="true"] { background: var(--surface); color: var(--petrol); box-shadow: 0 0 0 1px var(--line); font-weight: 620; }
.product-tabs button:focus-visible { outline-offset: -3px; }
.product-panels { margin-top: 32px; }
.product-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-panel[hidden] { display: none; }
.panel-copy h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.018em; }
.panel-copy p { margin: 14px 0 0; color: var(--muted); }
.panel-copy ul, .capability-copy ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.panel-copy li, .capability-copy li { position: relative; padding-left: 24px; }
.panel-copy li::before, .capability-copy li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--petrol); }
.legal-note { display: block; margin-top: 16px; color: var(--muted); font-size: 0.875rem; }

.ui-window, .operations-window {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  font-size: 0.92rem;
}
.window-bar { padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.window-bar small { color: var(--muted); font-size: 0.875rem; }
.ui-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; }
.ui-toolbar small { display: block; color: var(--muted); }
.ui-toolbar strong { font-size: 1.15rem; color: var(--heading); }
.day-list { padding: 0 12px 14px; display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.day-row.current { border-color: var(--petrol); box-shadow: inset 4px 0 0 var(--petrol); }
.day-row time { font-weight: 640; color: var(--heading); }
.day-row strong { display: block; color: var(--heading); }
.day-row span { display: block; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.day-row b { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.day-row.current b { color: var(--petrol); }

.patient-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; }
.patient-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
.patient-header small { color: var(--muted); }
.patient-header .mock-title { margin: 0; font-size: 1.25rem; color: var(--heading); }
.patient-header p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.patient-header button, .billing-ui button, .receipt-actions button, .dunning-list button {
  min-height: 40px; padding: 0 14px; border: 1.5px solid var(--petrol); border-radius: var(--radius-s);
  background: transparent; color: var(--petrol); font-size: 0.875rem; font-weight: 600; pointer-events: none;
}
.patient-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); background: var(--surface); }
.patient-meta span { padding: 12px 18px; color: var(--heading); font-weight: 560; }
.patient-meta span + span { border-left: 1px solid var(--line); }
.patient-meta small, .record-list time { display: block; color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.record-list { padding: 16px 18px 18px; }
.record-list > .mock-title { margin: 0 0 8px; color: var(--heading); }
.record-list > div { display: grid; grid-template-columns: 4rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.record-list p { margin: 0; }
.record-list strong, .record-list span { display: block; }
.record-list span { color: var(--muted); font-size: 0.875rem; }

.exam-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; }
.exam-head small { display: block; color: var(--muted); }
.exam-head strong { font-size: 1.15rem; color: var(--heading); }
.exam-head > span { color: var(--petrol); font-size: 0.875rem; font-weight: 600; }
.exam-grid { display: grid; gap: 12px; padding: 0 18px 18px; }
.exam-grid label, .phone-content label { display: grid; gap: 4px; color: var(--muted); font-size: 0.875rem; font-weight: 560; }
.exam-grid textarea, .phone-content textarea {
  width: 100%; min-height: 58px; resize: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--text); font-size: 0.92rem; line-height: 1.45; pointer-events: none;
}
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vitals span { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); color: var(--heading); font-weight: 620; }
.vitals small { display: block; color: var(--muted); font-weight: 400; }

.billing-search { margin: 16px 18px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--muted); display: flex; justify-content: space-between; }
kbd { font: inherit; font-size: 0.875rem; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; }
.billing-head, .billing-row { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem 3.4rem 5.4rem; gap: 8px; padding: 10px 18px; align-items: center; }
.billing-head { color: var(--muted); font-size: 0.875rem; }
.billing-row { border-top: 1px solid var(--line); background: var(--surface); }
.billing-row strong { font-weight: 560; color: var(--heading); overflow-wrap: anywhere; }
.billing-row b, .billing-head span:last-child { text-align: right; }
.billing-row b { font-weight: 620; }
.billing-total { display: flex; justify-content: space-between; padding: 14px 18px; border-top: 2px solid var(--heading); font-weight: 620; color: var(--heading); }

.invoice-ui { background: var(--surface-sunk); }
.invoice-paper { margin: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.invoice-brand { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 0.875rem; }
.compact-wordmark { display: inline-flex; align-items: center; color: #0A625C; font-size: 1.15rem; font-weight: 650; }
.compact-wordmark svg { width: 22px; height: 22px; }
.compact-wordmark span { margin-left: -2px; }
@media (prefers-color-scheme: dark) { .compact-wordmark { color: var(--heading); } }
.invoice-to { margin-top: 18px; display: grid; }
.invoice-to small, .invoice-to span { color: var(--muted); font-size: 0.875rem; }
.invoice-to strong { color: var(--heading); }
.invoice-lines, .receipt-lines { margin-top: 14px; }
.invoice-lines p, .receipt-lines p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); }
.invoice-lines b, .receipt-lines b { font-weight: 600; }
.invoice-sum, .receipt-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 2px solid var(--heading); font-weight: 640; color: var(--heading); }
.invoice-status { margin-top: 14px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-sunk); color: var(--muted); font-size: 0.875rem; }

.sync-summary { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px; align-items: start; }
.sync-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--offline-tint); color: var(--offline-ink); font-size: 1.3rem; }
.sync-summary small { display: block; color: var(--muted); }
.sync-summary strong { color: var(--heading); font-size: 1.1rem; }
.sync-summary p { margin: 4px 0 0; color: var(--muted); }
.sync-states { display: grid; gap: 8px; padding: 0 18px 18px; }
.sync-states > div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.sync-states > div > span { width: 12px; height: 12px; border-radius: 50%; }
.sync-states .offline > span { background: var(--offline); }
.sync-states .pending > span { background: var(--copper); }
.sync-states .synced > span { background: var(--success); }
.sync-states p { margin: 0; }
.sync-states strong, .sync-states small { display: block; }
.sync-states small { color: var(--muted); font-size: 0.875rem; }

/* ---------- Offline (dunkles Band) ---------- */

.offline-section { background: var(--band); color: var(--band-text); --focus: #FFFFFF; }
.offline-section h2 { color: #FFFFFF; }
.offline-section .eyebrow-light { color: var(--band-accent); }
.offline-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.offline-copy > p:not(.eyebrow) { color: var(--band-muted); max-width: 38rem; }
.offline-copy h2 + p { margin-top: 20px; font-size: 1.08rem; }
.offline-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; max-width: 32rem; }
.offline-steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; color: var(--band-text); }
.offline-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: -2px; width: 2px; background: repeating-linear-gradient(to bottom, var(--band-offline) 0 4px, transparent 4px 7px); }
.offline-steps span { flex: 0 0 auto; margin-top: -4px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--band-offline); color: var(--band-offline); font-weight: 660; font-size: 0.92rem; }
.offline-steps li:last-child span { border-color: var(--band-accent); color: var(--band-accent); }
.offline-clarity { margin-top: 22px; font-size: 0.95rem; }

.offline-device { display: grid; grid-template-columns: minmax(0, 280px) auto; gap: 24px; justify-content: center; align-items: center; }
.phone-shell { padding: 10px; border-radius: 36px; background: #0B1220; border: 1px solid rgba(255, 255, 255, 0.12); }
.phone-screen { border-radius: 28px; overflow: hidden; background: #F6F7F4; color: #1F2937; min-height: 460px; }
.phone-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 12px; font-size: 0.95rem; }
.phone-header span { color: #586474; }
.offline-banner { display: flex; gap: 10px; align-items: center; margin: 0 12px; padding: 10px 12px; border-radius: 12px; background: #F1EBFE; color: #4C1D95; }
.offline-banner > span { width: 10px; height: 10px; border-radius: 50%; background: #7C3AED; flex: 0 0 auto; }
.offline-banner strong, .offline-banner small { display: block; }
.offline-banner small { font-size: 0.875rem; }
.phone-content { padding: 16px 14px; display: grid; gap: 10px; }
.phone-content > small { color: #586474; font-size: 0.875rem; }
.phone-content .mock-title { margin: -6px 0 2px; font-size: 1.1rem; color: #1B2A3A; }
.phone-content label { color: #586474; }
.phone-content textarea { background: #FFFFFF; color: #1F2937; border-color: #E2E8F0; }
.local-save { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E2E8F0; }
.local-save > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FBEFE6; color: #8C4A22; font-weight: 700; }
.local-save p { margin: 0; }
.local-save strong, .local-save small { display: block; }
.local-save small { color: #586474; font-size: 0.875rem; }
.sync-rail { display: grid; gap: 20px; }
.sync-rail > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.sync-rail strong { color: #FFFFFF; font-size: 0.95rem; }
.sync-rail small { grid-column: 2; color: var(--band-muted); font-size: 0.875rem; }
.dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; }
.dot.violet { background: #A78BFA; }
.dot.copper { background: #F0B27A; }
.dot.green { background: #4ADE80; }

/* ---------- GOT und Rechnung ---------- */

.billing-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.visit-side, .receipt-side { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); }
.composition-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 620; color: var(--heading); }
.saved-badge { padding: 3px 10px; border-radius: 999px; background: #FBEFE6; color: #8C4A22; font-size: 0.875rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .saved-badge { background: #3A2617; color: #F0B27A; } }
.visit-block { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-m); border: 1px solid var(--line); margin-bottom: 10px; }
.visit-block small { color: var(--muted); font-size: 0.875rem; }
.visit-block strong { color: var(--heading); }
.visit-block span { color: var(--muted); font-size: 0.92rem; }
.visit-block.selected { border-color: var(--petrol); box-shadow: inset 4px 0 0 var(--petrol); }
.factor-row { display: flex; gap: 18px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mock-add { min-height: 44px; width: 100%; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); background: transparent; color: var(--petrol); font-weight: 600; pointer-events: none; }
.flow-arrow { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; }
.flow-arrow span { position: relative; display: block; width: 56px; height: 2px; background: var(--petrol); }
.flow-arrow span::after { content: ""; position: absolute; right: 0; top: -5px; width: 10px; height: 10px; border: solid var(--petrol); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.receipt-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.receipt-head small { display: block; color: var(--muted); font-size: 0.875rem; }
.receipt-head strong { color: var(--heading); font-size: 1.1rem; }
.receipt-head > span { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.receipt-patient { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.receipt-actions button:first-child { background: var(--petrol); color: var(--on-primary); }
.demo-disclaimer { display: block; margin-top: 12px; color: var(--muted); font-size: 0.875rem; }

.billing-flow { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.billing-flow li { display: inline-flex; align-items: center; color: var(--heading); font-weight: 560; font-size: 0.95rem; }
.billing-flow li:not(:last-child)::after { content: ""; width: 8px; height: 8px; margin: 0 18px 0 14px; border: solid var(--petrol); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.billing-note { margin: 32px 0 0; max-width: 46rem; padding: 4px 0 4px 20px; border-left: 3px solid var(--copper); color: var(--muted); }
.billing-note strong { color: var(--heading); }

/* ---------- Praxisbetrieb ---------- */

.practice-section { background: var(--surface); border-block: 1px solid var(--line); }
.practice-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px 56px; align-items: end; max-width: none; }
.practice-heading > p { margin: 0 !important; }
.practice-capabilities { display: grid; gap: clamp(56px, 7vw, 96px); }
.capability-row { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.capability-row-reverse .capability-copy { order: 2; }
.capability-index { display: block; margin-bottom: 10px; color: var(--petrol); font-size: 0.95rem; font-weight: 600; }
.capability-copy h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.018em; }
.capability-copy > p { margin: 14px 0 0; color: var(--muted); }
.operations-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.operations-bar small { display: block; color: var(--muted); font-size: 0.875rem; }
.operations-bar strong { color: var(--heading); font-size: 1.1rem; }
.operations-bar > span { padding: 3px 10px; border-radius: 999px; background: #FBEFE6; color: #8C4A22; font-size: 0.875rem; font-weight: 600; }
.operations-bar > .stock-ok { background: var(--petrol-tint); color: var(--petrol); }
@media (prefers-color-scheme: dark) { .operations-bar > span { background: #3A2617; color: #F0B27A; } }
.dunning-summary { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--surface); }
.dunning-summary span { padding: 14px 18px; }
.dunning-summary span + span { border-left: 1px solid var(--line); }
.dunning-summary small { display: block; color: var(--muted); font-size: 0.875rem; }
.dunning-summary strong { color: var(--heading); font-size: 1.2rem; }
.dunning-list, .stock-list { display: grid; gap: 8px; padding: 14px; }
.dunning-list > div, .stock-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.dunning-list p, .stock-list p { margin: 0; min-width: 0; }
.dunning-list strong, .stock-list strong { display: block; color: var(--heading); }
.dunning-list small, .stock-list small { display: block; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.level { padding: 3px 8px; border-radius: var(--radius-s); font-size: 0.875rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--heading); }
.level-one { border-color: var(--copper); }
.level-two { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.stock-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 14px 0; }
.stock-toolbar span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.875rem; color: var(--heading); }
.stock-toolbar span:first-child { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.stock-list b { color: var(--heading); font-weight: 620; white-space: nowrap; }
.stock-low { border-color: var(--copper) !important; box-shadow: inset 4px 0 0 var(--copper); }
.stock-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.stock-actions span { padding: 6px 12px; border-radius: var(--radius-s); border: 1.5px solid var(--petrol); color: var(--petrol); font-size: 0.875rem; font-weight: 600; }
.operations-note { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.team-grid article { padding-top: 22px; border-top: 2px solid var(--heading); }
.team-grid h3 { font-size: 1.3rem; }
.team-grid p { margin: 12px 0 0; color: var(--muted); max-width: 36rem; }

/* ---------- Zielgruppe ---------- */

.audience-section { background: var(--surface); border-block: 1px solid var(--line); }
.audience-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.audience-intro > p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); }
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.audience-grid article { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.audience-grid p { margin: 8px 0 0; color: var(--muted); }
.audience-grid .audience-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px; }
.audience-grid .audience-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--petrol); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.audience-grid .audience-links a:hover { text-decoration-thickness: 3px; }

/* ---------- Pilotphase ---------- */

.pilot-section { padding-block: clamp(32px, 5vw, 64px); }
.pilot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  background: #0A625C;
  color: #E7F3F1;
  --focus: #FFFFFF;
}
.pilot-inner h2 { color: #FFFFFF; }
.pilot-inner .eyebrow-light { color: #A7F3E7; }
.pilot-inner p:not(.eyebrow) { margin: 18px 0 0; max-width: 38rem; }
.pilot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.plain-mail { display: inline-flex; align-items: center; min-height: 48px; color: #FFFFFF; font-weight: 600; text-underline-offset: 5px; }
.pilot-facts { display: grid; align-content: center; gap: 0; }
.pilot-facts div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.pilot-facts strong { display: block; color: #FFFFFF; }
.pilot-facts span { display: block; color: #D3EAE6; font-size: 0.95rem; }

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

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-heading > a { display: inline-flex; align-items: center; min-height: 48px; margin-top: 18px; color: var(--petrol); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.faq-heading > a:hover { text-decoration-thickness: 3px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: 56px;
  padding: 16px 48px 16px 0;
  color: var(--heading);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; background: var(--petrol); transition: transform 180ms var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:focus-visible { outline-offset: 2px; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 42rem; }

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

.site-footer { background: var(--band); color: var(--band-muted); padding-top: 56px; --focus: #FFFFFF; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; padding-bottom: 40px; }
.footer-brand span { display: block; margin-top: 10px; max-width: 22rem; }
.footer-wordmark { display: inline-flex !important; align-items: center; color: #FFFFFF; font-size: 1.5rem; font-weight: 650; }
.footer-wordmark svg { width: 28px; height: 28px; }
.footer-wordmark span { display: inline !important; margin: 0 0 0 -3px !important; }
.footer-wordmark path:last-child { stroke: var(--band); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links strong { display: block; margin-bottom: 6px; color: #FFFFFF; font-weight: 620; }
.footer-links a, .footer-bottom a { display: flex; align-items: center; min-height: 40px; color: var(--band-text); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 16px 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.92rem; }
.footer-bottom div { display: flex; gap: 20px; }

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
  .workflow-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .workflow-track::before { display: none; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-wrap { gap: 12px; }
  .nav-actions { order: 0; }
  .nav-toggle { order: 1; margin-left: 0; }
  .brand { margin-right: auto; }
}

@media (max-width: 900px) {
  .hero-inner, .platform-inner, .split-layout, .product-panel, .offline-layout, .capability-row,
  .audience-layout, .faq-layout, .pilot-inner, .footer-main, .product-heading, .practice-heading {
    grid-template-columns: minmax(0, 1fr);
  }
  .capability-row-reverse .capability-copy { order: 0; }
  .hero { background-position: right -260px top 80px; }
  .billing-composition { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { padding: 4px 0; }
  .flow-arrow span { width: 2px; height: 36px; }
  .flow-arrow span::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-list .platform-web { grid-column: span 3; }
}

@media (max-width: 640px) {
  .nav-actions .button-small { display: none; }
  .product-tabs { flex-wrap: wrap; width: 100%; }
  .product-tabs button { flex: 1 1 auto; }
  .route { --time-w: 3.1rem; --rail-w: 1.75rem; }
  .route > li { grid-template-columns: var(--time-w) var(--rail-w) minmax(0, 1fr); }
  .stop > .tag { grid-column: 3; grid-row: 2; justify-self: start; margin: 6px 0 0 4px; }
  .route-offline p { grid-column: 3; }
  .workflow-track { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .workflow-track li { padding: 0 0 32px 60px; }
  .workflow-track li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--petrol); opacity: 0.45; }
  .workflow-track li:last-child::before { display: none; }
  .step-number { position: absolute; left: 0; top: 0; }
  .workflow-track .step-visual { margin-top: 0; min-height: 0; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-list .platform-web { grid-column: span 2; }
  .audience-grid, .team-grid, .footer-links { grid-template-columns: minmax(0, 1fr); }
  .offline-device { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .phone-shell { width: min(100%, 300px); }
  .sync-rail { width: min(100%, 300px); gap: 14px; }
  .billing-head, .billing-row { grid-template-columns: minmax(0, 1fr) 2.8rem 2.6rem 4.6rem; padding-inline: 12px; font-size: 0.875rem; }
  .patient-header { grid-template-columns: auto minmax(0, 1fr); }
  .patient-header button { grid-column: 1 / -1; justify-self: start; }
  .patient-meta { grid-template-columns: minmax(0, 1fr); }
  .patient-meta span + span { border-left: 0; border-top: 1px solid var(--line); }
  .day-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .day-row b { grid-column: 2; }
  .dunning-list > div, .stock-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .dunning-list .level, .stock-list .stock-initial { grid-column: 1 / -1; justify-self: start; }
  .stock-list .stock-initial { display: none; }
  .trust-inner { justify-content: flex-start; }
  .before-after > div { padding: 20px; }
  .invoice-paper { margin: 12px; padding: 16px; }
}

@media (max-width: 360px) {
  .brand-word { font-size: 22px; }
  .brand-symbol { width: 26px; height: 26px; }
  .login-link { font-size: 0.875rem; }
  .route { --time-w: 2.9rem; --rail-w: 1.5rem; }
  .route-sheet { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
