/* =====================================================================
   MKG-Chirurgie Dr. Dr. Stamm — Haupt-Stylesheet
   ---------------------------------------------------------------------
   Diese Datei ist autark: Farben, Schriften und Reset aus variables.css,
   fonts.css und base.css sind hier übernommen, damit ein ProjektKit-Deploy
   die Gestaltung nicht überschreiben kann.

   Gliederung
     01  Schriften (@font-face)
     02  Design-Tokens: hell / dunkel / Barrierefreiheits-Modus
     03  Reset und Grundtypografie
     04  Hilfsklassen und Layout-Bausteine
     05  Buttons und Links
     06  Topbar, Kopf, Navigation
     07  Bausteine: Hero, Kacheln, Zitat, Zeiten, Kontakt
     08  Inhaltsseiten
     09  Formular
     10  Fuß und Nach-oben
     11  Animationen
     12  Druck
   ===================================================================== */

/* ── 01  Schriften ──────────────────────────────────────────────────── */
@font-face { font-family: 'Karla'; src: url('../fonts/karla-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('../fonts/karla-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('../fonts/karla-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('../fonts/karla-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('../fonts/karla-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Karla'; src: url('../fonts/karla-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* Outfit (SIL Open Font License 1.1, kommerziell frei) – Display-Schrift für
   Überschriften. Lokal eingebunden, kein CDN. Es gibt bewusst kein Gewicht 700:
   Überschriften laufen durchgehend in 600, damit nichts künstlich fett
   gerechnet werden muss. */
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: 'Inter'; src: url('../fonts/inter-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ── 02  Design-Tokens ──────────────────────────────────────────────── */
:root {
  /* Schriftrollen: Display für Überschriften, UI für Bedienelemente, Text für Fließtext */
  --schrift-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schrift-ui:      'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --schrift-text:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Markenfarben aus variables.css */
  --marke-primary:   #10266E;
  --marke-secondary: #1C3272;
  --marke-accent:    #34497C;
  --marke-neutral:   #5F6D88;
  --marke-block-1:   #f7f1e8;
  --marke-block-2:   #f5f7fb;

  /* Rollen — helles Design */
  --bg:            #ffffff;
  --bg-gedaempft:  var(--marke-block-2);
  --bg-warm:       var(--marke-block-1);
  --bg-invers:     var(--marke-primary);
  --flaeche:       #ffffff;
  --flaeche-hover: #fbfcfe;

  --text:          #14192b;
  --text-leise:    #4d5a74;
  --text-invers:   #ffffff;

  --akzent:        var(--marke-primary);
  --akzent-hover:  var(--marke-secondary);
  --akzent-sanft:  #e8edf9;
  --auf-akzent:    #ffffff;

  --linie:         #dde3ef;
  --linie-stark:   #c3ccdf;
  --fokus:         #1C3272;

  /* Mehrschichtig statt einer harten Kante – das erzeugt die Tiefe. */
  --schatten-s: 0 1px 2px rgba(16, 38, 110, .06);
  --schatten-m: 0 1px 2px rgba(16, 38, 110, .06), 0 6px 18px rgba(16, 38, 110, .07);
  --schatten-l: 0 2px 4px rgba(16, 38, 110, .05), 0 12px 28px rgba(16, 38, 110, .09),
                0 28px 64px rgba(16, 38, 110, .10);

  /* Maße */
  --breite:     1180px;
  --gutter:     20px;
  --radius-s:   8px;
  --radius:     14px;
  --radius-l:   20px;
  --abschnitt:  clamp(3.5rem, 7vw, 6rem);

  /* Typografie-Skala. Outfit ist eine geometrische Sans mit großer x-Höhe und
     wirkt dadurch bei gleicher Punktgröße größer – die Skala bleibt deshalb
     zurückhaltend, die Laufweite eng (siehe h1–h4). */
  --t-h1:  clamp(2.05rem, 1.3rem + 3vw, 3.2rem);
  --t-h2:  clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --t-h3:  clamp(1.15rem, 1.03rem + .5vw, 1.38rem);
  --t-lead: clamp(1.02rem, .97rem + .3vw, 1.18rem);

  --tempo: .22s;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:            #0b1020;
  --bg-gedaempft:  #111832;
  --bg-warm:       #16192b;
  --bg-invers:     #aebdf0;
  --flaeche:       #121a33;
  --flaeche-hover: #17203d;

  --text:          #e9edfa;
  --text-leise:    #9fadcd;
  --text-invers:   #0b1020;

  --akzent:        #aebdf0;
  --akzent-hover:  #c6d1f7;
  --akzent-sanft:  #1a2447;
  --auf-akzent:    #0b1020;

  --linie:         #253156;
  --linie-stark:   #35446f;
  --fokus:         #aebdf0;

  --schatten-s: 0 1px 2px rgba(0, 0, 0, .4);
  --schatten-m: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .4);
  --schatten-l: 0 2px 4px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .45),
                0 28px 64px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* Barrierefreiheits-Modus: maximaler Kontrast, größere Schrift, keine Bewegung.
   Wirkt unabhängig vom gewählten Hell/Dunkel-Design. */
:root[data-a11y="on"] {
  --bg:            #000000;
  --bg-gedaempft:  #000000;
  --bg-warm:       #000000;
  --bg-invers:     #ffe100;
  --flaeche:       #000000;
  --flaeche-hover: #161616;

  --text:          #ffffff;
  --text-leise:    #e6e6e6;
  --text-invers:   #000000;

  --akzent:        #ffe100;
  --akzent-hover:  #fff27a;
  --akzent-sanft:  #26220a;
  --auf-akzent:    #000000;

  --linie:         #ffffff;
  --linie-stark:   #ffffff;
  --fokus:         #ffe100;

  --schatten-s: none;
  --schatten-m: none;
  --schatten-l: none;

  --tempo: 0s;
  color-scheme: dark;
}

/* ── 03  Reset und Grundtypografie (aus base.css übernommen) ────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--schrift-text);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip statt hidden: hidden würde overflow-y implizit auf auto setzen und
     den Body zu einem eigenen Bildlauf-Container machen. */
  overflow-x: clip;
}

/* Messpunkt am Seitenanfang, siehe main.js */
.seitenanfang {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

:root[data-a11y="on"] body { font-size: 1.125rem; line-height: 1.8; letter-spacing: .01em; }

h1, h2, h3, h4 {
  font-family: var(--schrift-display);
  line-height: 1.14;
  font-weight: 600;
  font-feature-settings: 'liga' 1, 'kern' 1;
  color: var(--text);
  text-wrap: balance;
  /* Lange deutsche Komposita brechen sonst über den Rand hinaus */
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Geometrische Sans: je größer der Grad, desto enger die Laufweite –
   sonst fallen die Überschriften auseinander. */
h1 { font-size: var(--t-h1); letter-spacing: -.032em; }
h2 { font-size: var(--t-h2); letter-spacing: -.024em; }
h3 { font-size: var(--t-h3); letter-spacing: -.015em; }
h4 { font-size: 1.08rem; letter-spacing: -.015em; }

p, li, td, th, dd, dt, address, figcaption {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--bg-gedaempft); }

a { color: var(--akzent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--akzent-hover); }

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

::selection { background: var(--akzent); color: var(--auf-akzent); }

hr { border: 0; border-top: 1px solid var(--linie); margin: 2.5rem 0; }

/* ── 04  Hilfsklassen und Layout ────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--schmal { max-width: 760px; }

.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--gedaempft { background: var(--bg-gedaempft); }
.abschnitt--warm      { background: var(--bg-warm); }
.abschnitt--eng       { padding-block: calc(var(--abschnitt) * .62); }

.visuell-versteckt {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--gutter);
  z-index: 200;
  background: var(--akzent);
  color: var(--auf-akzent);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--tempo);
}
.skip-link:focus { top: 0; color: var(--auf-akzent); }

.icon { flex: none; vertical-align: middle; }

.augenbraue {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 1rem;
}

.lead {
  font-size: var(--t-lead);
  color: var(--text-leise);
  max-width: 62ch;
}

.abschnitt-kopf { margin-bottom: 2.5rem; }
.abschnitt-kopf__zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.abschnitt-kopf p { color: var(--text-leise); margin-top: .5rem; }

/* ── 05  Buttons ────────────────────────────────────────────────────── */
.btn {
  --btn-pad: .8rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--btn-pad);
  font-family: var(--schrift-ui);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background var(--tempo), color var(--tempo), border-color var(--tempo), transform var(--tempo);
}

.btn--voll {
  background: var(--akzent);
  color: var(--auf-akzent);
  border-color: var(--akzent);
}
.btn--voll:hover { background: var(--akzent-hover); border-color: var(--akzent-hover); color: var(--auf-akzent); transform: translateY(-1px); }

.btn--linie {
  background: transparent;
  color: var(--akzent);
  border-color: var(--akzent);
}
.btn--linie:hover { background: var(--akzent-sanft); color: var(--akzent-hover); transform: translateY(-1px); }

.btn--breit { width: 100%; }
.btn--klein { --btn-pad: .55rem 1rem; font-size: .92rem; }

.btn-reihe { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.weiter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.weiter .icon { transition: transform var(--tempo); }
.weiter:hover .icon { transform: translateX(4px); }

/* ── 06  Topbar, Kopf, Navigation ───────────────────────────────────── */
.topbar {
  background: var(--marke-primary);
  color: #dbe3fa;
  font-size: .82rem;
}
:root[data-theme="dark"] .topbar { background: #070b17; color: #9fadcd; }
:root[data-a11y="on"] .topbar { background: #ffe100; color: #000; border-bottom: 2px solid #000; }

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  min-height: 2.5rem;
  padding-block: .35rem;
}
.topbar__ort, .topbar__zeit, .topbar__tel {
  display: inline-flex; align-items: center; gap: .4rem;
}
.topbar__rechts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.topbar a { color: inherit; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
:root[data-a11y="on"] .topbar a:hover { color: #000; }

.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow var(--tempo);
}
.kopf.ist-gescrollt { box-shadow: var(--schatten-m); }
:root[data-a11y="on"] .kopf { border-bottom-width: 3px; }

.kopf__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}

.marke {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;          /* darf schrumpfen, statt den Kopf zu sprengen */
  margin-right: auto;
}
.marke__logo { width: 42px; height: auto; background: none; }
.marke__logo--dunkel { display: none; }
:root[data-theme="dark"] .marke__logo--hell,
:root[data-a11y="on"] .marke__logo--hell { display: none; }
:root[data-theme="dark"] .marke__logo--dunkel,
:root[data-a11y="on"] .marke__logo--dunkel { display: block; }

.marke__text { display: flex; flex-direction: column; }
.marke__text strong {
  font-family: var(--schrift-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.marke__text small { font-size: .74rem; color: var(--text-leise); line-height: 1.35; }

.nav__liste { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav__punkt { position: relative; }

.nav__link {
  display: block;
  padding: .55rem .7rem;
  font-family: var(--schrift-ui);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--tempo), border-color var(--tempo);
}
.nav__link:hover { color: var(--akzent); }
.nav__link.is-aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }

.nav__auf {
  display: none;
  background: none; border: 0; color: inherit; cursor: pointer;
}

/* Das letzte Untermenü nach rechts ausrichten – sonst ragt es über den
   rechten Seitenrand hinaus und erzeugt horizontales Scrollen. */
.nav__punkt:last-child > .nav__unter { left: auto; right: -.25rem; }

.nav__unter {
  position: absolute;
  top: 100%;
  left: -.25rem;
  min-width: 17rem;
  padding: .45rem;
  list-style: none;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--tempo), transform var(--tempo), visibility var(--tempo);
}
.nav__punkt:hover > .nav__unter,
.nav__punkt:focus-within > .nav__unter {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__unter a {
  display: block;
  padding: .5rem .7rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.nav__unter a:hover, .nav__unter a.is-aktiv { background: var(--akzent-sanft); color: var(--akzent); }

/* Termin-Knopf im aufgeklappten Mobilmenü; auf dem Desktop steht er im Kopf. */
.nav__cta { display: none; }

.kopf__aktionen { display: flex; align-items: center; gap: .4rem; flex: none; }

.ikonbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  background: transparent;
  color: var(--text-leise);
  border: 1px solid var(--linie);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background var(--tempo), color var(--tempo), border-color var(--tempo);
}
.ikonbtn:hover { background: var(--akzent-sanft); color: var(--akzent); border-color: var(--akzent); }
.ikonbtn[aria-pressed="true"] { background: var(--akzent); color: var(--auf-akzent); border-color: var(--akzent); }

.ikonbtn__dunkel { display: none; }
:root[data-theme="dark"] .ikonbtn__hell   { display: none; }
:root[data-theme="dark"] .ikonbtn__dunkel { display: inline-flex; }

.ikonbtn--menu { display: none; }
.menu-zu { display: none; }
.kopf.menu-offen .menu-auf { display: none; }
.kopf.menu-offen .menu-zu  { display: inline-flex; }

/* ── 07  Bausteine ─────────────────────────────────────────────────── */

/* Hero — asymmetrisches Raster, Bild als eigenständige Fläche, Kennzahlen
   als Karte, die über die Bildunterkante ragt. */
.hero {
  position: relative;
  /* Wie weit die Kennzahlen-Karte über die Bildunterkante ragt. An einer
     Stelle definiert, weil sonst drei Werte gegeneinander laufen: Der untere
     Innenabstand des Rasters und die negative Margin der Karte hoben sich
     exakt auf – die Knöpfe stießen dadurch ohne Abstand an die Karte. */
  --ueberlappung: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(1100px 520px at 12% -10%, var(--akzent-sanft) 0%, transparent 62%),
    var(--bg);
  overflow: hidden;
}

/* Feine Textur, damit die Fläche nicht tot wirkt. Inline-SVG, kein Request. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.hero > * { position: relative; z-index: 1; }

.hero__raster {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: var(--ueberlappung);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Hält die Textspalte über der Karte – das Bild darf sie ruhig berühren. */
  padding-bottom: clamp(2.5rem, 3.4vw, 3.25rem);
}
.hero__text h1 { margin-bottom: 1.25rem; }

.hero__bild { position: relative; }
.hero__bild img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-l);
}

/* Status: geöffnet / geschlossen */
.status-pille {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: .4rem .9rem .4rem .75rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: 999px;
  box-shadow: var(--schatten-s);
}
.status-pille__punkt {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--status-farbe, #6b7280);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-farbe, #6b7280) 25%, transparent);
}
.status-pille.ist-offen { --status-farbe: #1a7f45; }
.status-pille.ist-zu    { --status-farbe: #b4610d; }
:root[data-theme="dark"] .status-pille.ist-offen { --status-farbe: #4ade80; }
:root[data-theme="dark"] .status-pille.ist-zu    { --status-farbe: #fbbf24; }
:root[data-a11y="on"] .status-pille { border-width: 2px; }
:root[data-a11y="on"] .status-pille.ist-offen { --status-farbe: #7bed9f; }
:root[data-a11y="on"] .status-pille.ist-zu    { --status-farbe: #ffe100; }

/* Kennzahlen als überlappende Karte */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: calc(var(--ueberlappung) * -1);
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius-l);
  box-shadow: var(--schatten-l);
  overflow: hidden;
}
:root[data-a11y="on"] .kennzahlen { border-width: 2px; margin-top: 1.5rem; }

.kennzahl {
  padding: 1.6rem clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--linie);
}
.kennzahl:last-child { border-right: 0; }
.kennzahl strong {
  display: block;
  font-family: var(--schrift-display);
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
  font-weight: 600;
  color: var(--akzent);
  line-height: 1.1;
  margin-bottom: .3rem;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.02em;
}
.kennzahl span { font-size: .88rem; color: var(--text-leise); }

/* Leistungskacheln */
.kachel-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1.1rem;
}

.kachel {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.5rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-s);
  text-decoration: none;
  color: var(--text);
  transition: border-color .3s cubic-bezier(.2, .8, .2, 1),
              box-shadow .3s cubic-bezier(.2, .8, .2, 1),
              transform .3s cubic-bezier(.2, .8, .2, 1),
              background .3s cubic-bezier(.2, .8, .2, 1);
}
.kachel:hover {
  background: var(--flaeche-hover);
  border-color: color-mix(in srgb, var(--akzent) 45%, var(--linie));
  box-shadow: var(--schatten-l);
  transform: translateY(-4px);
  color: var(--text);
}
.kachel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: .35rem;
  color: var(--akzent);
  background: var(--akzent-sanft);
  border-radius: var(--radius-s);
}
.kachel h3 { font-size: 1.08rem; }
.kachel p { font-size: .93rem; color: var(--text-leise); margin: 0; }
.kachel__mehr {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--akzent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.kachel:hover .kachel__mehr .icon { transform: translateX(4px); }
.kachel__mehr .icon { transition: transform var(--tempo); }

/* Variante mit Bild – nur für die Leistungen. Die schlichte .kachel bleibt
   unverändert, damit Praxis-, Portal- und Fehlerseite gleich aussehen. */
.kachel--bild { padding: 0; overflow: hidden; }
.kachel--bild > :not(.kachel__medium) { margin-inline: 1.5rem; }
.kachel--bild > .kachel__mehr { margin-bottom: 1.5rem; }

.kachel__medium {
  position: relative;
  margin: 0 0 1.35rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-gedaempft);
}
.kachel__medium img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.kachel--bild:hover .kachel__medium img { transform: scale(1.04); }

/* Bei Bildkacheln trägt das Bild die Aussage – ein zusätzliches Icon
   würde nur mit ihm konkurrieren. Die schlichte .kachel behält ihres. */
.kachel--bild .kachel__icon { display: none; }

/* Zitat-Block mit Porträts */
.zitat-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.zitat-block blockquote {
  font-family: var(--schrift-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin-bottom: 1.25rem;
}
.zitat-block p { color: var(--text-leise); }
.portraits { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.portraits img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3 / 2; }

/* Öffnungszeiten-Tabelle */
.zeiten { width: 100%; border-collapse: collapse; }
.zeiten th, .zeiten td {
  padding: .75rem .25rem;
  border-bottom: 1px solid var(--linie);
  text-align: left;
  vertical-align: top;
}
.zeiten th { font-weight: 600; width: 40%; }
.zeiten td { text-align: right; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.zeiten tr.ist-heute th, .zeiten tr.ist-heute td { color: var(--akzent); font-weight: 700; }

/* Die Zeitspannen bleiben in sich geschlossen: Ist die Spalte breit genug,
   stehen sie nebeneinander, sonst rutschen sie als Ganzes untereinander –
   statt mitten in „13:00–17:00“ umzubrechen. */
.zeiten__spannen {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: .7rem;
  row-gap: .1rem;
}
.zeiten__spannen > span { white-space: nowrap; }

.zeiten__hinweis {
  display: block;
  margin-top: .1rem;
  font-size: .92em;
  opacity: .9;
}
.zeiten tr.ist-zu td { opacity: .75; }

/* Kontaktkarte */
.kontaktkarte {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--akzent-sanft);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
}
:root[data-a11y="on"] .kontaktkarte { border-width: 2px; }
.kontaktkarte h3 { margin-bottom: 1rem; }
.kontaktkarte address { font-style: normal; line-height: 1.9; }
.kontaktkarte img { border-radius: var(--radius-s); margin: 1.25rem 0; aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }

.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* ── 08  Inhaltsseiten ─────────────────────────────────────────────── */
.seitenkopf {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-gedaempft);
  border-bottom: 1px solid var(--linie);
}
.seitenkopf h1 { margin-bottom: .75rem; }
.seitenkopf .lead { margin: 0; }

.brotkrumen { font-size: .85rem; color: var(--text-leise); margin-bottom: 1.1rem; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.brotkrumen li::after { content: '›'; margin-left: .4rem; opacity: .6; }
.brotkrumen li:last-child::after { content: ''; }
.brotkrumen a { color: inherit; text-decoration: none; }
.brotkrumen a:hover { color: var(--akzent); text-decoration: underline; }

/* Fließtext-Bereich */
.text { max-width: 68ch; }
.text > * + * { margin-top: 1.15rem; }
.text h2 { margin-top: 2.75rem; }
.text h3 { margin-top: 2rem; }
.text ul, .text ol { padding-left: 1.3rem; }
.text li + li { margin-top: .45rem; }
.text ul { list-style: none; padding-left: 0; }
.text ul li {
  position: relative;
  padding-left: 1.75rem;
}
.text ul li::before {
  content: '';
  position: absolute;
  left: .35rem; top: .65em;
  width: .45rem; height: .45rem;
  background: var(--akzent);
  border-radius: 50%;
}
.text ol { padding-left: 1.4rem; }
.text figure { margin-block: 2rem; }
.text figure img { border-radius: var(--radius); }
.text figcaption { margin-top: .6rem; font-size: .86rem; color: var(--text-leise); }
.text strong { font-weight: 700; color: var(--text); }

.hinweis {
  display: flex;
  gap: .85rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-warm);
  border-left: 4px solid var(--akzent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .95rem;
}
.hinweis .icon { color: var(--akzent); margin-top: .15rem; }
:root[data-theme="dark"] .hinweis { background: var(--bg-gedaempft); }

/* Nummerierte Schrittliste (Verhaltensregeln) */
.schritte { list-style: none; counter-reset: schritt; padding: 0; }
.schritte > li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
  margin-top: 1.4rem;
  border-bottom: 1px solid var(--linie);
}
.schritte > li:last-child { border-bottom: 0; }
.schritte > li::before {
  content: counter(schritt);
  position: absolute;
  left: 0; top: .1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem; height: 2.3rem;
  font-family: var(--schrift-ui);
  font-weight: 700;
  color: var(--auf-akzent);
  background: var(--akzent);
  border-radius: 50%;
}

/* Drei-Schritt-Erklärung (Implantat). Die Renderings sind nur 211 px breit –
   sie werden bewusst nicht hochskaliert. */
.stufen {
  list-style: none;
  counter-reset: stufe;
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
  padding: 0;
}
.stufe {
  counter-increment: stufe;
  position: relative;
  padding-left: 0;
}
.stufe::before { content: none; }
.stufe__bild {
  position: relative;
  display: block;
  width: 100%;
  max-width: 211px;
  margin-bottom: .9rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gedaempft);
  border: 1px solid var(--linie);
}
.stufe__bild::after {
  content: counter(stufe);
  position: absolute;
  left: .5rem; top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem; height: 1.9rem;
  font-family: var(--schrift-ui);
  font-size: .95rem;
  font-weight: 700;
  color: var(--auf-akzent);
  background: var(--akzent);
  border-radius: 50%;
}
.stufe h3 { margin: 0 0 .35rem; }
.stufe p { margin: 0; font-size: .95rem; color: var(--text-leise); }

@media (min-width: 700px) {
  .stufen { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .stufe__bild { max-width: 100%; aspect-ratio: 1; }
  .stufe__bild img { width: 100%; height: 100%; object-fit: cover; }
  /* Feine Linie, die die Schritte verbindet */
  .stufe:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.45rem;
    right: -1.05rem;
    width: .6rem; height: 1px;
    background: var(--linie-stark);
  }
}

:root[data-a11y="on"] .stufe__bild { border-width: 2px; }

/* Team-Karten */
.team-raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1.5rem;
}
.person { text-align: left; }
.person img { width: 100%; border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 1rem; }
/* Kompakte Variante für das Praxisteam: nur Bild und Name. */
.person--kompakt img { margin-bottom: .7rem; }
.person--kompakt h3 { font-size: 1rem; margin: 0; }
.person h3 { margin-bottom: .2rem; }
.person__rolle { font-size: .85rem; font-weight: 600; color: var(--akzent); text-transform: uppercase; letter-spacing: .06em; }
.person p { font-size: .93rem; color: var(--text-leise); margin-top: .5rem; }

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem;
}
.galerie figure { margin: 0; }
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* 3:2 für Bildmaterial im Querformat, siehe .galerie--breit */
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--tempo);
}
.galerie--breit img { aspect-ratio: 3 / 2; }

/* Einzelnes, mittig gesetztes Gruppenbild unter einer Galerie */
.gruppenbild { margin: 3rem auto 0; max-width: 54rem; text-align: center; }
.gruppenbild img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.gruppenbild figcaption { margin-top: .6rem; font-size: .88rem; color: var(--text-leise); }
.galerie figure:hover img { transform: scale(1.02); }
.galerie figcaption { margin-top: .6rem; font-size: .88rem; color: var(--text-leise); }

/* Download-Karten */
.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--tempo), background var(--tempo), transform var(--tempo);
}
.download + .download { margin-top: .8rem; }
.download:hover { border-color: var(--akzent); background: var(--flaeche-hover); transform: translateY(-2px); color: var(--text); }
.download__icon { color: var(--akzent); flex: none; }
.download strong { display: block; font-family: var(--schrift-ui); }
.download span { font-size: .85rem; color: var(--text-leise); }

/* Karte / Anfahrt */
.karte-platzhalter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  min-height: 18rem;
  padding: 2rem;
  background: var(--bg-gedaempft);
  border: 1px dashed var(--linie-stark);
  border-radius: var(--radius);
  text-align: left;
}
.karte-platzhalter p { color: var(--text-leise); max-width: 46ch; font-size: .95rem; }
.karte-rahmen { border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); }

/* Online-Terminkalender des externen Anbieters.
   Der Anbieter sendet seine Höhe nicht, deshalb bekommt das Fenster eine
   mitwachsende feste Höhe. Sein Layout füllt aus, was es bekommt; reicht es
   bei einem Schritt nicht, scrollt es innerhalb des Rahmens. */
.termin-tool {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten-s);
  overflow: hidden;
}

.termin-tool__hinweis {
  max-width: 44rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.termin-tool__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem; height: 3.25rem;
  margin-bottom: 1.25rem;
  color: var(--akzent);
  background: var(--akzent-sanft);
  border-radius: var(--radius-s);
}
.termin-tool__hinweis h2 { margin-bottom: .75rem; }
.termin-tool__hinweis p { color: var(--text-leise); }

.termin-tool__rahmen {
  height: clamp(560px, calc(100vh - 240px), 860px);
  /* dvh berücksichtigt die ein- und ausfahrende Leiste mobiler Browser */
  height: clamp(560px, calc(100dvh - 240px), 860px);
}
.termin-tool__rahmen iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
}

/* Ausweg, wenn der Browser den eingebetteten Kalender nicht zulässt */
.termin-tool__stoerung {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-warm);
  border-bottom: 1px solid var(--linie);
}
:root[data-theme="dark"] .termin-tool__stoerung { background: var(--bg-gedaempft); }
.termin-tool__stoerung p { margin-bottom: 1rem; font-size: .95rem; }
:root[data-a11y="on"] .termin-tool__stoerung { border-bottom-width: 2px; }

.termin-tool__fussnote {
  margin-top: 1.1rem;
  font-size: .88rem;
  color: var(--text-leise);
}

:root[data-a11y="on"] .termin-tool { border-width: 2px; }

@media (max-width: 620px) {
  /* Auf kleinen Geräten zählt jede Zeile Höhe */
  .termin-tool__rahmen {
    height: clamp(520px, calc(100vh - 150px), 760px);
    height: clamp(520px, calc(100dvh - 150px), 760px);
  }
}

/* ── 09  Formular ──────────────────────────────────────────────────── */
.formular { display: grid; gap: 1.15rem; }
.feld { display: grid; gap: .4rem; }
.feld--paar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.feld label, .feld > .feld-label {
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--schrift-ui);
}
.feld .pflicht { color: var(--akzent); }
.feld input, .feld textarea, .feld select {
  width: 100%;
  padding: .7rem .85rem;
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--flaeche);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-s);
  transition: border-color var(--tempo), box-shadow var(--tempo);
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px var(--akzent-sanft);
  outline: none;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld__hilfe { font-size: .82rem; color: var(--text-leise); }
.feld--kasten { display: flex; align-items: flex-start; gap: .65rem; }
.feld--kasten input { width: auto; margin-top: .25rem; flex: none; }
.feld--kasten label { font-weight: 400; font-size: .9rem; }

.feld--honig { position: absolute; left: -9999px; }

.meldung {
  display: flex;
  gap: .8rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  border: 1px solid;
  margin-bottom: 1.75rem;
  font-size: .95rem;
}
.meldung--ok    { background: var(--akzent-sanft); border-color: var(--akzent); color: var(--text); }
.meldung--fehler{ background: #fdecec; border-color: #c0392b; color: #7d2019; }
:root[data-theme="dark"] .meldung--fehler { background: #2c1414; color: #f3b5ae; }
:root[data-a11y="on"] .meldung--fehler { background: #000; color: #ff8a80; border-color: #ff8a80; }
.meldung ul { margin: .4rem 0 0 1.1rem; }

.feld-fehler { border-color: #c0392b !important; }

/* ── 10  Fuß ───────────────────────────────────────────────────────── */
.fuss {
  background: var(--marke-primary);
  color: #cfd9f5;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-top: 0;
}
:root[data-theme="dark"] .fuss { background: #070b17; border-top: 1px solid var(--linie); }
:root[data-a11y="on"] .fuss { background: #ffe100; color: #000; border-top: 3px solid #fff; }

.fuss__raster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.fuss__name {
  font-family: var(--schrift-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .6rem;
  letter-spacing: -.015em;
}
:root[data-a11y="on"] .fuss__name { color: #000; }
.fuss__adresse { font-style: normal; font-size: .92rem; line-height: 1.85; }

/* Verweis auf das Google-Unternehmensprofil. Bewusst ohne Google-Logo –
   dessen Verwendung unterliegt den Markenrichtlinien. */
.fuss a.fuss__google {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .55rem 1rem;
  font-size: .86rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  transition: background var(--tempo), border-color var(--tempo);
}
.fuss a.fuss__google:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
}
.fuss a.fuss__google .icon { color: #ffd76a; }

:root[data-a11y="on"] .fuss a.fuss__google {
  color: #000;
  background: transparent;
  border: 2px solid #000;
}
:root[data-a11y="on"] .fuss a.fuss__google:hover { color: #000; background: rgba(0, 0, 0, .1); }
:root[data-a11y="on"] .fuss a.fuss__google .icon { color: #000; }
.fuss__titel {
  font-family: var(--schrift-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}
:root[data-a11y="on"] .fuss__titel { color: #000; }
.fuss ul { list-style: none; }
.fuss li + li { margin-top: .5rem; }
.fuss a { color: inherit; font-size: .92rem; text-decoration: none; border-bottom: 1px solid transparent; }
.fuss a:hover { color: #fff; border-bottom-color: currentColor; }
:root[data-a11y="on"] .fuss a:hover { color: #000; }

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .82rem;
  opacity: .85;
}
:root[data-a11y="on"] .fuss__unten { border-top-color: #000; opacity: 1; }

.nach-oben {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem; height: 2.9rem;
  background: var(--akzent);
  color: var(--auf-akzent);
  border: 2px solid var(--akzent);
  border-radius: 50%;
  box-shadow: var(--schatten-m);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--tempo), transform var(--tempo), visibility var(--tempo);
}
.nach-oben .icon { transform: rotate(180deg); }
.nach-oben.ist-sichtbar { opacity: 1; visibility: visible; transform: translateY(0); }
.nach-oben:hover { background: var(--akzent-hover); color: var(--auf-akzent); }

/* ── 11  Animationen ───────────────────────────────────────────────── */
/* Nur wenn JavaScript läuft, darf etwas zunächst unsichtbar sein –
   sonst bliebe der Inhalt ohne JS dauerhaft verborgen. */
:root[data-js="1"] .auftritt {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1),
              transform .6s cubic-bezier(.2, .8, .2, 1);
}
:root[data-js="1"] .auftritt.ist-da { opacity: 1; transform: none; }

/* Gestaffelter Auftritt der Kacheln innerhalb eines Rasters – rein über CSS,
   damit kein zusätzliches JavaScript nötig ist. */
:root[data-js="1"] .kachel-raster.ist-da > *,
:root[data-js="1"] .galerie.ist-da > *,
:root[data-js="1"] .team-raster.ist-da > * {
  animation: einblenden .55s cubic-bezier(.2, .8, .2, 1) both;
}
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(1) { animation-delay: 0s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(2) { animation-delay: .07s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(3) { animation-delay: .14s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(4) { animation-delay: .21s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(5) { animation-delay: .28s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(6) { animation-delay: .35s }
:root[data-js="1"] .kachel-raster.ist-da > :nth-child(n+7) { animation-delay: .42s }
:root[data-js="1"] .galerie.ist-da > :nth-child(2),
:root[data-js="1"] .team-raster.ist-da > :nth-child(2) { animation-delay: .1s }
:root[data-js="1"] .galerie.ist-da > :nth-child(n+3) { animation-delay: .2s }

@keyframes einblenden {
  from { opacity: 0; transform: translateY(14px) }
  to   { opacity: 1; transform: none }
}

/* Weiche Seitenwechsel. Die auslösende Regel @view-transition wird bewusst
   erst per JavaScript gesetzt (siehe header.php) – nur dann lässt sie sich im
   Barrierefreiheits-Modus und bei „Bewegung reduzieren“ zuverlässig weglassen. */
::view-transition-old(root) { animation: vt-raus .18s ease both }
::view-transition-new(root) { animation: vt-rein .28s cubic-bezier(.2, .8, .2, 1) both }

@keyframes vt-raus { to { opacity: 0 } }
@keyframes vt-rein { from { opacity: 0; transform: translateY(8px) } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  :root[data-js="1"] .auftritt,
  .auftritt { opacity: 1 !important; transform: none !important; }
  .kachel--bild:hover .kachel__medium img { transform: none }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important }
}

:root[data-a11y="on"] * {
  animation: none !important;
  transition: none !important;
}
:root[data-a11y="on"] .auftritt,
:root[data-a11y="on"][data-js="1"] .auftritt { opacity: 1 !important; transform: none !important; }
:root[data-a11y="on"] .kachel-raster > *,
:root[data-a11y="on"] .galerie > *,
:root[data-a11y="on"] .team-raster > * { opacity: 1 !important; transform: none !important; }
:root[data-a11y="on"] .hero::before { display: none; }   /* keine Textur */
:root[data-a11y="on"] html { scroll-behavior: auto; }
:root[data-a11y="on"] a:not(.btn):not(.ikonbtn) { text-decoration: underline; }
:root[data-a11y="on"] .kachel,
:root[data-a11y="on"] .download,
:root[data-a11y="on"] .nav__unter { border-width: 2px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
/* Zwischen Mobilmenü und breitem Desktop wird es im Kopf eng:
   zuerst fällt der Termin-Knopf weg, dann die Unterzeile der Marke. */
@media (max-width: 1260px) {
  .kopf__cta { display: none; }
}

@media (max-width: 1080px) {
  .marke__text small { display: none; }
  .nav__link { padding-inline: .5rem; font-size: .9rem; }
}

@media (max-width: 980px) {
  .marke__text strong { font-size: .92rem; }
  .nav__link { padding-inline: .35rem; font-size: .86rem; }
}

@media (max-width: 960px) {
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .kennzahl:nth-child(2) { border-right: 0; }
  .kennzahl:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
  /* Wie im Mockup: auf schmalen Schirmen steht das Bild oben. */
  .hero__raster { grid-template-columns: 1fr; }
  /* Gestapelt überlappt nichts mehr – der Ausgleich unter dem Text entfällt. */
  .hero__text { order: 2; padding-bottom: 0; }
  .hero__bild { order: 1; }
  .hero__bild img { aspect-ratio: 16 / 10; max-height: 20rem; }
  .kennzahlen { margin-top: 1.5rem; }
  .zitat-block, .zweispaltig { grid-template-columns: 1fr; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .fuss__raster { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .ikonbtn--menu { display: inline-flex; }
  .kopf__cta { display: none; }

  .nav {
    position: fixed;
    inset: auto 0 0 0;
    top: var(--kopf-hoehe, 7.25rem);
    z-index: 99;
    padding: 1rem var(--gutter) 2rem;
    background: var(--bg);
    border-top: 1px solid var(--linie);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--tempo), transform var(--tempo), visibility var(--tempo);
  }
  .nav.ist-offen { opacity: 1; visibility: visible; transform: none; }

  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__punkt { border-bottom: 1px solid var(--linie); }
  .nav__punkt--hat-kinder {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .nav__link { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 0; }
  .nav__link.is-aktiv { border-bottom: 0; }

  .nav__auf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem; height: 2.75rem;
    color: var(--text-leise);
  }
  .nav__auf[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__auf .icon { transition: transform var(--tempo); }

  .nav__unter {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    padding: 0 0 .75rem .75rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav__unter.ist-offen { display: block; }
  .nav__unter a { padding: .6rem .5rem; font-size: .98rem; }

  .nav__cta { display: grid; gap: .6rem; margin-top: 1.5rem; }

  /* Sticky-Kopf beim offenen Menü nicht mitscrollen lassen */
  body.menu-sperre { overflow: hidden; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .topbar__ort { display: none; }
  .topbar__inner { justify-content: center; }
  .kennzahlen { grid-template-columns: 1fr; }
  .kennzahl { border-right: 0; border-bottom: 1px solid var(--linie); }
  .kennzahl:last-child { border-bottom: 0; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .feld--paar { grid-template-columns: 1fr; }
  .fuss__raster { grid-template-columns: 1fr; gap: 1.75rem; }
  .btn-reihe .btn { width: 100%; }
  .marke__text strong { font-size: .92rem; }
  .marke__logo { width: 34px; }
}

/* ── 12  Druck ─────────────────────────────────────────────────────── */
@media print {
  .topbar, .kopf__aktionen, .nav, .nach-oben, .fuss__raster, .skip-link, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .kopf { position: static; border-bottom: 1px solid #000; }
  .abschnitt { padding-block: 1rem; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; word-break: break-all; }
  .kachel, .download, .kontaktkarte { border: 1px solid #999; break-inside: avoid; }
}
