/* Hausarztpraxis Nazari
   Aufbau und Gestaltung nach dem Vorbild von monad.com: große Serifen-Überschriften, Schreibmaschinen-Schrift
   für Text und Beschriftungen, Pillen-Knöpfe, abgerundete Kästchen mit dünnem Rand und weichem Farbschimmer,
   Hinweisleiste ganz oben. Farben aus dem Praxislogo (Blau #265878, Türkis #6cadb5) auf Weiß, Schrift schwarz;
   im Dunkelmodus des Geräts dunkles Navy mit heller Schrift.
   Schriften: Newsreader für Überschriften und IBM Plex Mono für Beschriftungen und Uhrzeiten (SIL Open Font License,
   Lizenzen in fonts/, lokal eingebunden, damit beim Laden keine Daten an Google gehen). Fließtext in der
   Systemschrift des Geräts (San Francisco auf Apple-Geräten, Segoe auf Windows): gut lesbar, ohne Download.
   Schriftgrößen in rem (1rem = 16px), damit eine größere Standardschrift im Browser mitwächst. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Newsreader-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }

:root {
  --paper: #ffffff;        /* Seitenfläche */
  --ink: #000000;          /* Schrift */
  --navy: #16324a;         /* dunkles Logo-Blau: Hinweisleiste, dunkle Knöpfe, Rahmen der Kästchen */
  --blue: #265878;         /* Logo-Blau */
  --teal: #6cadb5;         /* Logo-Türkis */
  --glow-1: #a9d8dd;       /* Schimmer in den Kästchen (Türkis, heller) */
  --glow-2: #b8cfe3;       /* Schimmer in den Kästchen (Blau, heller) */
  --wash: #e3f1f2;         /* helles Türkis: heutiger Tag */
  --line: #d6dee2;         /* feine Trennlinien */
  /* Rollen: hell und dunkel verschieden belegt (Dunkelmodus unten) */
  --frame: var(--navy);    /* Rahmen der Kästchen, Linien über Abschnitten */
  --btn: var(--navy);      /* dunkle Pillen-Knöpfe */
  --btn-ink: #ffffff;      /* Schrift auf den Pillen-Knöpfen */
  --btn-hover: var(--blue);
  --accent-ink: var(--navy); /* Symbole, Sterne */
  --bar: #16324a;          /* Hinweisleiste (in beiden Modi dunkles Navy) */
  --on-bar: #ffffff;
  --focus: var(--blue);
  --muted-word: #6b7f8e;   /* Überschriften-Wörter vor dem Einfärben (4,1:1 auf Weiß) */
  --control-line: #8394a3; /* Rahmen heller Knöpfe (3,1:1 auf Weiß) */
  --nav-bg: rgba(255,255,255,.94);
  --band-mid: #eef6f7;
  --photo-bg: #eef2f3;
  --glow-fade: rgba(169,216,221,.5);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* ausgeblendete Elemente bleiben immer unsichtbar */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nobr { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 60; background: var(--btn); color: var(--btn-ink); padding: 10px 18px; border-radius: 100px; text-decoration: none; }
.skip:focus { top: 16px; }

/* Beschriftungen in Großbuchstaben, wie bei Monad */
.label, .nav-links a, .pill, .bar-btn, .rules .row.head, .foot-grid h2, .soon-note { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.label { font-size: 0.8125rem; color: var(--ink); }

/* Hinweisleiste ganz oben */
.bar { background: var(--bar); color: var(--on-bar); }
.bar-inner { display: flex; align-items: center; justify-content: center; gap: 12px 20px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; position: relative; padding-right: 64px; padding-left: 64px; text-align: center; flex-wrap: wrap; }
.bar p { font-family: var(--mono); font-size: 0.9375rem; line-height: 1.45; }
.bar-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 100px; background: var(--on-bar); color: var(--bar); font-size: 0.75rem; text-decoration: none; position: relative; }
.bar-btn::before { content: ""; position: absolute; inset: -6px -4px; } /* Tippfläche 44 px hoch, Knopf sichtbar 32 px */
.bar-btn:hover { background: #e3f1f2; }
.bar-close { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--on-bar); cursor: pointer; border-radius: 100px; }
.bar-close:hover { background: rgba(255,255,255,.12); }

/* Pillen-Knöpfe */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 100px; border: 1px solid transparent; font-size: 0.9375rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.pill .icon { width: 17px; height: 17px; }
.pill .chev { width: 14px; height: 14px; }
.pill-dark { background: var(--btn); color: var(--btn-ink); }
.pill-dark:hover { background: var(--btn-hover); }
.pill-ghost { background: var(--paper); color: var(--ink); border-color: var(--control-line); }
.pill-ghost:hover { border-color: var(--frame); }
.pill-lg { min-height: 60px; padding: 0 32px; font-size: 1.25rem; }

/* Kopfzeile */
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 24px; } /* wie bei Monad: Logo links, Menü in der Mitte, Telefon rechts */
.nav .logo { grid-column: 1; justify-self: start; white-space: nowrap; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--ink); font: 400 1.625rem/1 var(--serif); letter-spacing: -0.02em; }
.logo picture { display: flex; } /* im Dunkelmodus das Logo mit hellblauem Stethoskop (logo-dunkel-96.png) */
.logo img { width: 36px; height: 36px; }
.nav-links { grid-column: 2; display: flex; gap: 8px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.875rem; text-decoration: none; color: var(--ink); }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { grid-column: 3; justify-self: end; display: flex; gap: 8px; align-items: center; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 100px; border: 1px solid var(--control-line); background: var(--paper); color: var(--ink); place-items: center; cursor: pointer; padding: 0; }

/* Sprachauswahl oben (Knopf „DE“ mit Weltkugel, Liste klappt darunter auf) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--control-line); background: var(--paper); color: var(--ink); font: 500 0.8125rem/1 var(--mono); letter-spacing: .04em; cursor: pointer; }
.lang-btn .icon { width: 17px; height: 17px; }
.lang-btn:hover { border-color: var(--frame); }
.lang-list { position: absolute; z-index: 50; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--frame); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 25, 38, .14); }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 1rem; }
.lang-list a:hover { background: var(--wash); }
.lang-list a[aria-current="page"] { font-weight: 600; }
.lang-list a[dir] { direction: inherit; } /* „فارسی“ bündig mit den anderen Sprachen */
.lang-list a[aria-current="page"]::after { content: "✓"; color: var(--accent-ink); }

/* Russisch: Newsreader und IBM Plex Mono haben keine kyrillischen Buchstaben, daher Schriften, die jedes Gerät mitbringt */
html[lang="ru"] {
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
/* Persisch: von rechts nach links, Systemschrift mit persischen Buchstaben. Kein Sperrsatz und keine Großbuchstaben,
   sonst reißen die verbundenen Buchstaben auseinander. */
html:lang(fa) {
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --mono: var(--serif);
  --sans: var(--serif);
}
html:lang(fa) body { line-height: 1.85; }
html:lang(fa) h1, html:lang(fa) h2, html:lang(fa) h3, html:lang(fa) .logo, html:lang(fa) .rating-score { letter-spacing: 0; line-height: 1.35; }
html:lang(fa) .label, html:lang(fa) .nav-links a, html:lang(fa) .pill, html:lang(fa) .bar-btn, html:lang(fa) .rules .row.head,
html:lang(fa) .foot-grid h2, html:lang(fa) .soon-note, html:lang(fa) .lang-btn, html:lang(fa) .callbar { letter-spacing: 0; text-transform: none; }
html:lang(fa) .label, html:lang(fa) .rules .row.head, html:lang(fa) .foot-grid h2 { font-size: 0.875rem; }
[dir="rtl"] .chev { transform: scaleX(-1); } /* Pfeil zeigt in Leserichtung */
.ltr { direction: ltr; unicode-bidi: isolate; } /* Telefonnummern und Uhrzeiten im persischen Text nicht umdrehen */

/* Startbereich: wie bei Monad mittig, darunter groß das Bild */
.hero { padding: 88px 0 0; text-align: center; overflow-x: clip; } /* Schimmer hinter dem Foto nicht über den Seitenrand */
.hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.15; letter-spacing: -0.02em; }
.hero .sub { max-width: 640px; margin: 28px auto 36px; font-size: 1.125rem; line-height: 1.6; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stage { position: relative; margin: 64px auto 0; max-width: 1040px; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; z-index: -1; inset: -40px -80px -60px; background: radial-gradient(40% 50% at 20% 60%, var(--glow-1), transparent 70%), radial-gradient(35% 45% at 85% 30%, var(--glow-2), transparent 70%); filter: blur(30px); opacity: .7; }
.photo { position: relative; margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--frame); background: var(--photo-bg); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { aspect-ratio: 2400 / 1450; } /* oben etwas Wand, unten mehr von Hosen und Händen weggeschnitten; Köpfe bleiben frei */
.hero-photo img { object-position: 50% 28%; }
.photo.missing { display: grid; place-items: center; min-height: 320px; }
.photo.missing::after { content: attr(data-placeholder); font-size: 0.9375rem; padding: 24px; text-align: center; }
html:not(.entwurf) .photo.missing { display: none; }

/* Öffnungsstatus in der Hinweisleiste: Punkt grün = geöffnet, grau = geschlossen */
.status-punkt { display: inline-block; width: 9px; height: 9px; margin-inline-end: 10px; border-radius: 100px; background: #9aa3aa; vertical-align: 1px; }
.status-punkt.offen { background: #3cc47c; }

/* Abschnitte */
section { padding: 140px 0 0; }
[id] { scroll-margin-top: 100px; }
/* Sprung über das Menü: Überschrift landet knapp unter der Menüleiste statt hinter dem ganzen Abschnittsabstand */
section[id] { scroll-margin-top: -36px; }   /* 84 px Menü + 20 px − 140 px Abstand */
section.band[id] { scroll-margin-top: -16px; } /* 84 px Menü + 20 px − 120 px Abstand */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.sec-title { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.12; }
.sec-sub { font-size: 1rem; line-height: 1.65; max-width: 34em; }
.split-words .w { color: var(--muted-word); transition: color .2s linear; }
.split-words .w.on { color: var(--ink); }

/* Kästchen: dünner dunkler Rand, abgerundet, weicher Farbschimmer in der Ecke (wie bei Monad) */
.card { position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--frame); border-radius: 16px; background: var(--paper); padding: 32px; }
.card::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; left: -140px; top: -150px; border-radius: 50%; background: var(--glow-1); filter: blur(60px); opacity: .55; }
.card:nth-child(even)::before { background: var(--glow-2); left: auto; right: -140px; }
.card h3 { font-size: 1.75rem; line-height: 1.2; }

/* Team */
.team-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 24px; }
.team-photo { aspect-ratio: 4 / 5; border-radius: 12px; }
.team-photo img { object-position: 50% 20%; }
.team-text { padding-block: 16px; padding-inline: 0 24px; }
.team-text h3 { font-size: clamp(2.125rem, 3.4vw, 2.875rem); line-height: 1.1; margin-top: 12px; }
.team-text .role { margin: 8px 0 24px; }
.team-text p:not(.label):not(.role) { font-size: 1rem; line-height: 1.7; max-width: 36em; }
.team-text p + p:not(.role) { margin-top: 14px; }
/* Fachangestellte: offen nebeneinander, nur eine feine Linie oben */
.mfa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.mfa li { padding-top: 20px; border-top: 1px solid var(--frame); }
.mfa h3 { font-size: 1.875rem; margin-top: 10px; }
.mfa-note { font-size: 0.875rem; margin-top: 8px; }

/* Leistungen: Liste mit Trennlinien (wie die Fragen bei Monad) */
.svc-list { border-top: 1px solid var(--frame); }
.svc { display: grid; grid-template-columns: 48px minmax(0, 4fr) minmax(0, 6fr); gap: 0 32px; align-items: start; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.svc-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--frame); border-radius: 12px; background: var(--paper); color: var(--accent-ink); }
.svc-icon .icon { width: 22px; height: 22px; }
.svc h3 { font-size: 1.875rem; line-height: 1.2; padding-top: 4px; }
.svc p { font-size: 1rem; line-height: 1.7; max-width: 40em; padding-top: 6px; }

/* Sprechzeiten: hell-türkises Farbband über die ganze Breite (wie „Connect Everything“ bei Monad) */
section.band { margin-top: 140px; padding: 120px 0 128px; background: linear-gradient(180deg, var(--wash) 0%, var(--band-mid) 55%, var(--paper) 100%); }
.hours { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.hours-col { display: flex; flex-direction: column; gap: 12px; }
.hours-col h3 { margin-top: 12px; font-size: 1.875rem; line-height: 1.2; }
.hours-col > p { font-size: 0.9375rem; line-height: 1.6; max-width: 34em; }
.rules { margin-top: 12px; border-top: 1px solid var(--frame); font-family: var(--mono); }
.rules .row { display: grid; grid-template-columns: 12em 1fr 1fr; gap: 12px; padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; align-items: center; font-variant-numeric: tabular-nums; }
.rules .row.head { font-size: 0.75rem; }
.rules b { font-weight: 500; }
.rules.akut .row { grid-template-columns: 12em 1fr; } /* Tag-Spalte breit genug für „Donnerstag (heute)“ */
html[lang="ru"] .rules .row { grid-template-columns: 13.5em 1fr 1fr; } /* „Понедельник (сегодня)“ */
html[lang="ru"] .rules.akut .row { grid-template-columns: 13.5em 1fr; }
/* heutiger Tag: helltürkise Zeile mit „(heute)“ (setzt das Skript) */
.rules .row.is-today { background: var(--wash); border-radius: 10px; border-bottom-color: transparent; margin: -1px -8px 0; padding-left: 16px; padding-right: 16px; }
.band .rules .row.is-today { background: var(--paper); box-shadow: 0 0 0 1px var(--teal) inset; } /* auf dem türkisen Band weiß hervorgehoben */
.today-tag { margin-inline-start: 8px; font-weight: 500; }
.today-tag::before { content: "("; }
.today-tag::after { content: ")"; }

/* Termine: großer Kasten mit Schimmer von unten */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; border: 1px solid var(--frame); border-radius: 32px; padding: 104px 32px 112px; }
.cta::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -260px; width: 1100px; height: 440px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, var(--glow-1) 0%, var(--glow-fade) 40%, transparent 72%); filter: blur(24px); }
.cta h2 { font-size: clamp(2.375rem, 4.6vw, 4rem); line-height: 1.1; }
.cta p { max-width: 600px; margin: 22px auto 36px; font-size: 1.0625rem; line-height: 1.6; }
.cta .soon-note { margin: 22px auto 0; font-size: 0.75rem; }

/* Kontakt */
.contact-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--frame); margin-bottom: 40px; }
.contact-facts .label { margin-bottom: 10px; }
.contact-facts .label.mt { margin-top: 24px; }
.contact-facts p:not(.label) { font-size: 1rem; }
.contact-facts p:not(.label) + p:not(.label) { margin-top: 10px; }
.map { margin: 0; }
.map > a { display: block; overflow: hidden; border: 1px solid var(--frame); border-radius: 16px; }
.map picture { display: block; }
.map img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
.map figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 24px; margin-top: 4px; font-size: 0.875rem; }
.map figcaption > a, .map figcaption span a { display: inline-flex; align-items: center; min-height: 44px; }

/* Bewertungen */
.rating-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.rating-score { display: flex; align-items: baseline; gap: 14px; font: 400 3.5rem/1 var(--serif); }
.stars { font-size: 1.375rem; letter-spacing: .1em; color: var(--accent-ink); }
.rating-count { font-size: 0.9375rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews:empty { display: none; }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 28px; border: 1px solid var(--frame); border-radius: 16px; }
.review blockquote { margin: 0; font: 400 1.3125rem/1.45 var(--serif); }
.review figcaption { display: grid; gap: 4px; font-size: 0.875rem; }

/* Außerhalb der Sprechzeiten */
.sos-sec { padding-top: 120px; }
.sos { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
.sos h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.15; }
.sos-item { padding-top: 20px; border-top: 1px solid var(--frame); }
.sos-item a { display: inline-flex; align-items: center; min-height: 48px; margin: 10px 0 4px; font: 400 3rem/1 var(--serif); text-decoration: none; letter-spacing: -0.02em; }
.sos-item p:not(.label) { font-size: 0.9375rem; }

/* Fußzeile */
footer { padding: 120px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; border-top: 1px solid var(--frame); }
.foot-grid .logo { font-size: 2.125rem; }
.foot-grid .logo img { width: 48px; height: 48px; }
.foot-brand p { margin-top: 20px; font-size: 0.9375rem; }
.foot-grid h2 { font-size: 0.8125rem; margin-bottom: 14px; }
.foot-grid ul { display: grid; font-size: 0.9375rem; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-bottom { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; font-size: 0.875rem; }
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-links { display: flex; gap: 20px; }

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding: 64px 0 0; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 12px; }
.legal h2 { font-size: 1.875rem; margin: 44px 0 10px; }
.legal h1, .legal h2, .legal h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; } /* lange Wörter wie „Berufshaftpflichtversicherung“ am Handy trennen */
.legal h3 { font-size: 1.375rem; margin: 24px 0 8px; }
.legal h4 { font: 500 1rem/1.4 var(--mono); margin: 18px 0 6px; }
.legal p { margin: 0 0 12px; font-size: 1rem; }
.legal ul { padding-inline-start: 20px; margin: 0 0 12px; list-style: disc; font-size: 1rem; }
.legal .meta { font-size: 0.875rem; }
.toc { border: 1px solid var(--frame); border-radius: 16px; padding: 24px 28px; margin-top: 28px; }
.toc ul { columns: 2; margin: 8px 0 0; }
.nav-cta .btn-ghost.btn-back, .btn-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--control-line); color: var(--ink); font: 400 0.875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }

/* Anruf-Leiste: am Handy unten fest, mit dem Daumen erreichbar (Termine gibt es nur telefonisch) */
.callbar { display: none; }

/* Offene Punkte: nur lokal sichtbar (Klasse "entwurf" setzt das Skript im Kopf) */
.todo { display: none; }
.entwurf .todo { display: block; margin: 16px 0 0; padding: 10px 14px; border: 1px dashed var(--frame); border-radius: 12px; font-size: 0.875rem; line-height: 1.5; }

/* Scroll-Animationen: Inhalte gleiten beim Hoch- und Runterscrollen jedes Mal sanft ein,
   Überschriften färben sich Wort für Wort von hell zu dunkel (Klassen setzt das Skript). */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.25,.46,.45,.94), transform .8s cubic-bezier(.25,.46,.45,.94); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Breiten */
@media (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 8px; }
  /* Platz für den Sprachknopf: Telefon nur als Symbol statt mit ganzer Nummer */
  .nav-phone { display: none; }
  .nav-call { display: grid; }
}
@media (max-width: 1080px) {
  .sec-head { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 24px; }
  .svc p { grid-column: 2; padding-top: 0; }
  .hours { gap: 56px; }
  .hours, .contact-facts, .team-card { grid-template-columns: 1fr; }
  .team-card { gap: 28px; }
  .team-photo { aspect-ratio: 4 / 3; }
  .team-text { padding: 0 8px 8px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; } /* ohne Menü in der Mitte: Logo links ganz, Knöpfe rechts */
  .nav-cta { grid-column: 2; }
  .nav-phone { display: none; }
  .icon-btn { display: grid; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 84px; left: 16px; right: 16px; margin: 0; background: var(--paper); border: 1px solid var(--frame); border-radius: 16px; padding: 8px 20px; }
  .nav.open .nav-links a { min-height: 48px; padding: 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border: 0; }
  .mfa, .sos, .reviews { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 20px; }
  /* Hinweisleiste am Handy: Text oben (X rechts daneben), Knopf darunter, mit Luft zum Rand und zur Menüleiste.
     „.bar .bar-inner“, damit die Handy-Regel für .wrap die Abstände oben und unten nicht auf null setzt. */
  .bar .bar-inner { padding-block: 12px 14px; padding-inline: 20px 56px; gap: 10px 16px; justify-content: flex-start; text-align: start; }
  .bar p { font-size: 0.875rem; line-height: 1.5; }
  .bar-close { inset-inline-end: 8px; top: 8px; transform: none; }
  .nav .wrap { height: 72px; }
  .nav.open .nav-links { top: 72px; }
  .logo { font-size: 1.375rem; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.75rem); }
  .hero .sub { font-size: 1rem; margin: 20px auto 28px; }
  .actions .pill { flex: 1 1 100%; }
  .hero-stage { margin-top: 40px; }
  section { padding-top: 96px; }
  .sec-head { margin-bottom: 32px; }
  .card { padding: 24px; }
  .svc { padding: 28px 0 30px; gap: 14px 16px; align-items: center; }
  .svc h3 { font-size: 1.625rem; padding-top: 0; }
  .svc p { grid-column: 1 / -1; font-size: 0.9375rem; }
  section.band { margin-top: 96px; padding: 80px 0 88px; }
  section[id] { scroll-margin-top: -8px; }     /* 72 px Menü + 16 px − 96 px Abstand */
  section.band[id] { scroll-margin-top: 8px; }
  .mfa { margin-top: 48px; gap: 24px; }
  .team-card { padding: 16px; }
  .rules .row, html[lang="ru"] .rules .row, html[lang="ru"] .rules.akut .row { grid-template-columns: 1fr 1fr; }
  .rules .row > :first-child { grid-column: 1 / -1; }
  .rules .row.head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; border: 0; } /* unsichtbar, aber für Screenreader als Spaltenköpfe da */
  .cta { padding: 64px 22px 72px; border-radius: 24px; }
  .pill-lg { font-size: 1.0625rem; padding: 0 24px; }
  .map img { aspect-ratio: 4 / 3; object-position: 40% 50%; }
  .sos-item a { font-size: 2.5rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .legal h1 { font-size: 2.75rem; }
  .callbar { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; z-index: 45; left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 52px; border-radius: 100px; background: var(--btn); color: var(--btn-ink); font: 500 0.9375rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; box-shadow: 0 6px 24px rgba(10, 25, 38, .25); }
  .callbar:active { background: var(--btn-hover); }
  .has-callbar { padding-bottom: 84px; } /* Fußzeile nicht unter der Anruf-Leiste verstecken */
  .nav-call { display: none !important; } /* Telefon steckt am Handy in der Anruf-Leiste unten */
}

/* Sehr schmale Handys (bis 400 px): Logo und Sprachknopf etwas kleiner, damit oben alles in eine Zeile passt */
@media (max-width: 400px) {
  .nav .logo { font-size: 1.25rem; gap: 8px; }
  .nav .logo img { width: 30px; height: 30px; }
  .lang-btn { padding: 0 10px; }
  .lang-btn .icon { display: none; }
}

/* „Bewegung reduzieren“ im Gerät eingeschaltet: Inhalte stehen sofort da, Überschriften gleich dunkel.
   Für alle anderen laufen die Animationen unverändert. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .split-words .w, .split-words .w.on { color: var(--ink); transition: none; }
  .pill { transition: none; }
}

/* Dunkelmodus: folgt der Einstellung des Geräts (kein eigener Schalter) */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1a23;
    --ink: #e9eff3;
    --line: #2a3c49;
    --frame: #4f6b7f;
    --btn: #b9d5e3;
    --btn-ink: #0e1a23;
    --btn-hover: #d7e8f0;
    --accent-ink: #a9cbdc;
    --focus: #8fc8d2;
    --glow-1: #1b4850;
    --glow-2: #203d58;
    --wash: #13303a;
    --muted-word: #7f93a1;
    --control-line: #6c8496;
    --nav-bg: rgba(14, 26, 35, .92);
    --band-mid: #10252e;
    --photo-bg: #1a2a35;
    --glow-fade: rgba(27, 72, 80, .5);
  }
  .bar { border-bottom: 1px solid var(--line); }
  .photo img { filter: brightness(.94); }
  .band .rules .row.is-today { box-shadow: 0 0 0 1px var(--teal) inset; }
  .callbar { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
}
