/* =========================================================
   Autodoktor Hamm – Stylesheet
   Farbsystem, Typografie und Layout an einer Stelle.
   ========================================================= */

/* -------------------------------------------------------------------------
   Farbthemen
   Voreinstellung ist dunkel. Ohne eigene Wahl folgt die Seite dem
   Betriebssystem; ein Klick auf den Umschalter im Kopf setzt data-theme
   und gewinnt dann immer.
   ------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Flächen */
  --ink-900: #0a0b0d;   /* Seitengrund */
  --ink-850: #0e1013;   /* abgesetzte Abschnitte, Fußzeile */
  --ink-800: #121519;   /* Karten, Panels, Eingabefelder */
  --ink-700: #181c22;   /* Eingabefeld im Fokus */

  /* Text */
  --text: #e9ebee;
  --text-dim: #a3aab5;
  --text-faint: #8a929d;

  /* Akzent – Logogelb #FECC16.
     --accent ist die Füllfarbe, --accent-ink die lesbare Variante für
     Schrift und Symbole. Im hellen Thema laufen die beiden auseinander,
     weil Gelb auf Weiß nur 1,5:1 erreicht. */
  --accent: #fecc16;
  --accent-ink: #fecc16;   /* Schrift, muss lesbar bleiben */
  --accent-mark: #fecc16;  /* Symbole und Dekoration, bleibt immer Logogelb */
  --accent-hover: #ffd94f;
  --focus-ring: #ffd94f;
  --accent-soft: rgba(254, 204, 22, 0.11);
  --accent-line: rgba(254, 204, 22, 0.38);
  --on-accent: #0a0b0d;

  /* Linien und Flächen mit Transparenz */
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --chip-bg: rgba(255, 255, 255, 0.03);
  --header-bg: rgba(10, 11, 13, 0.72);
  --header-bg-solid: rgba(10, 11, 13, 0.92);
  --card-glass: rgba(18, 21, 25, 0.78);

  /* Statusfarben */
  --status-open: #4ade80;
  --status-closed: #a3aab5;
  --hinweis-fehler: #ff8a7e;
  --hinweis-ok: #7fd6a2;

  /* Maße */
  --shell: 1180px;
  --radius: 14px;
  --radius-sm: 9px;

  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Helles Thema – als Mixin einmal definiert und zweimal angewendet */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink-900: #f7f8f9;
    --ink-850: #eef0f3;
    --ink-800: #ffffff;
    --ink-700: #ffffff;
    --text: #14171b;
    --text-dim: #4b535e;
    --text-faint: #646d79;
    --accent-ink: #8a6a00;
    --accent-mark: #fecc16;
    --focus-ring: #8a6a00;
    --accent-soft: rgba(254, 204, 22, 0.22);
    --accent-line: rgba(138, 106, 0, 0.4);
    --line: rgba(10, 13, 20, 0.12);
    --line-strong: rgba(10, 13, 20, 0.2);
    --surface-hover: rgba(10, 13, 20, 0.05);
    --chip-bg: rgba(10, 13, 20, 0.035);
    --header-bg: rgba(247, 248, 249, 0.78);
    --header-bg-solid: rgba(247, 248, 249, 0.95);
    --card-glass: rgba(255, 255, 255, 0.85);
    --status-open: #15803d;
    --status-closed: #4b535e;
    --hinweis-fehler: #b42318;
    --hinweis-ok: #15803d;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink-900: #f7f8f9;
  --ink-850: #eef0f3;
  --ink-800: #ffffff;
  --ink-700: #ffffff;
  --text: #14171b;
  --text-dim: #4b535e;
  --text-faint: #646d79;
  --accent-ink: #8a6a00;   /* 5,1:1 auf Weiß */
  --accent-mark: #fecc16;  /* Symbole bleiben im Logogelb */
  --focus-ring: #8a6a00;
  --accent-soft: rgba(254, 204, 22, 0.22);
  --accent-line: rgba(138, 106, 0, 0.4);
  --line: rgba(10, 13, 20, 0.12);
  --line-strong: rgba(10, 13, 20, 0.2);
  --surface-hover: rgba(10, 13, 20, 0.05);
  --chip-bg: rgba(10, 13, 20, 0.035);
  --header-bg: rgba(247, 248, 249, 0.78);
  --header-bg-solid: rgba(247, 248, 249, 0.95);
  --card-glass: rgba(255, 255, 255, 0.85);
  --status-open: #15803d;  /* 5,0:1 auf Weiß */
  --status-closed: #4b535e;
  --hinweis-fehler: #b42318;
  --hinweis-ok: #15803d;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background-color: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img, svg { max-width: 100%; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ---------------- Layout ---------------- */
.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.shell.narrow { width: min(100% - 40px, 820px); }

.section { padding: 104px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------------- Typografie ---------------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); text-transform: uppercase; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; line-height: 1.22; } /* Karten-Titel brechen oft um */

/* Hervorhebung in der Überschrift.
   Dunkel: gelbe Schrift auf Schwarz, 13:1 – funktioniert.
   Hell: gelbe Schrift auf Weiß wäre 1,5:1. Deshalb dort dieselbe Behandlung
   wie beim WhatsApp-Button, also gelbe Fläche mit dunkler Schrift. */
.hl { color: var(--accent-ink); }

:root[data-theme="light"] .hl {
  color: var(--on-accent);
  background: var(--accent);
  padding: 0 0.1em 0.04em;
  border-radius: 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hl {
    color: var(--on-accent);
    background: var(--accent);
    padding: 0 0.1em 0.04em;
    border-radius: 0.08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow.center { text-align: center; }

.lede { font-size: 1.14rem; color: var(--text-dim); max-width: 56ch; }
.section-lede { color: var(--text-dim); max-width: 60ch; margin: 16px 0 0; }

.section-head { margin-bottom: 52px; }

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--text);
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* Dunkle Schrift auf Logogelb: 13:1. Weiß auf Gelb wäre 1,3:1 und unlesbar. */
.btn-primary {
  --btn-bg: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { --btn-bg: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--header-bg-solid); }

.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }

/* Logo: Originaldatei ist 2000x331, Breite ergibt sich aus der Höhe */
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { display: block; height: 34px; width: auto; }

/* Das Logo ist gelb auf transparent und wäre auf hellem Grund kaum zu sehen.
   Im hellen Thema bekommt es deshalb ein dunkles Plättchen. */
:root[data-theme="light"] .brand,
:root[data-theme="light"] .footer-brand img { --logo-plate: #0a0b0d; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand,
  :root:not([data-theme="dark"]) .footer-brand img { --logo-plate: #0a0b0d; }
}
.brand, .footer-brand img {
  background: var(--logo-plate, transparent);
  border-radius: 10px;
  padding: var(--logo-plate-pad, 0);
}
:root[data-theme="light"] .brand,
:root[data-theme="light"] .footer-brand img { --logo-plate-pad: 7px 12px; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand,
  :root:not([data-theme="dark"]) .footer-brand img { --logo-plate-pad: 7px 12px; }
}

/* ---------------- Umschalter hell / dunkel ---------------- */
.theme-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.theme-toggle .ico { width: 19px; height: 19px; }
/* Gezeigt wird das Symbol des Modus, in den der Klick führt:
   im dunklen Thema die Sonne, im hellen der Mond. */
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .ico-moon { display: block; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.93rem; font-weight: 500; color: var(--text-dim);
  text-decoration: none; transition: color .2s ease, background-color .2s ease;
}
.nav > a:hover { color: var(--text); background: var(--surface-hover); }
.nav > a.is-active { color: var(--text); }
.nav > a.is-active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 4px auto -6px;
  background: var(--accent-mark); border-radius: 2px;
}
.nav-cta { margin-left: 10px; color: var(--on-accent) !important; }
.nav-cta.is-active::after { display: none; }

.burger {
  display: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
}
.burger span {
  display: block; width: 18px; height: 1.6px; margin: 3.5px auto;
  background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(80px, 13vw, 150px) 0 clamp(22px, 2.4vw, 28px); overflow: hidden; }
/* Übergang Hero → erste Sektion enger als der Abstand zwischen zwei Sektionen */
.hero + .section { padding-top: 38px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(70% 55% at 18% 0%, rgba(254, 204, 22, 0.16), transparent 62%),
    radial-gradient(60% 50% at 88% 12%, rgba(70, 120, 255, 0.10), transparent 60%);
}
/* Werkstatt-Motiv: schräge Markierungsstreifen wie Bodenmarkierung im Hallentor */
.hero-bg::after {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: min(46vw, 560px);
  background-image: repeating-linear-gradient(
    115deg,
    rgba(254, 204, 22, 0.05) 0 14px,
    transparent 14px 46px
  );
  mask-image: radial-gradient(115% 95% at 95% 22%, #000 5%, transparent 68%);
  -webkit-mask-image: radial-gradient(115% 95% at 95% 22%, #000 5%, transparent 68%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  column-gap: 56px;
  align-items: center;
}
.hero-text { grid-column: 1; grid-row: 1; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Statuskarte im Hero */
.hero-card {
  grid-column: 2; grid-row: 1;
  padding: 26px 26px 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card-glass);
  backdrop-filter: blur(10px);
}
.hero-card .status { padding-bottom: 20px; margin-bottom: 20px; }
.hero-card-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 4px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero-card-title .ico { width: 15px; height: 15px; color: var(--accent-mark); }

/* Raster statt Flex-Umbruch: sonst landen bei zehn Punkten acht in der ersten
   und zwei in der zweiten Zeile. */
.hero-facts {
  grid-column: 1 / -1; grid-row: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 11px 22px;
  margin: 46px 0 0; padding: 22px 0 0;
  list-style: none; border-top: 1px solid var(--line);
}
.hero-facts li {
  position: relative; padding-left: 20px;
  font-size: 0.9rem; color: var(--text-dim);
}
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent-mark); transform: rotate(45deg);
}

/* ---------------- Grid & Karten ---------------- */
.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); }

.card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, var(--accent-soft), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
}
.card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

/* Icon steht neben der Überschrift, nicht in einer Kachel darüber */
.card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}
.card-ico { grid-column: 1; grid-row: 1; color: var(--accent-mark); line-height: 0; }
.card-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { grid-column: 2; grid-row: 1; }
.card p { grid-column: 1 / -1; margin: 16px 0 0; font-size: 0.93rem; color: var(--text-dim); }
.card .chips { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--chip-bg);
  font-size: 0.76rem; color: var(--text-faint); letter-spacing: .01em;
}

.grid-note { margin: 30px 0 0; color: var(--text-faint); font-size: 0.95rem; }
.grid-note a { color: var(--accent-ink); text-underline-offset: 3px; }

/* ---------------- Marken ---------------- */
.brands { background: var(--ink-850); }
.brand-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  margin-top: 6px;
}
.brand-row span {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-head); font-size: 1.08rem; letter-spacing: .01em;
  color: var(--text-dim);
  transition: color .2s ease, border-color .2s ease;
}
.brand-row span:hover { color: var(--text); border-color: var(--line-strong); }
.brand-note { margin: 22px 0 0; text-align: center; color: var(--text-faint); font-size: 0.9rem; }

/* ---------------- Ablauf ---------------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.step { padding: 30px 26px 30px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 26px; } /* Abstand zur Trennlinie links */
.step:last-child { border-right: 0; }
.step-num {
  display: block; margin-bottom: 14px;
  font-family: var(--font-head); font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--accent-line);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.93rem; color: var(--text-dim); }

/* ---------------- Split & Panel ---------------- */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.split-contact { grid-template-columns: 1fr 380px; align-items: stretch; }
.split-text .check-list { margin: 26px 0 28px; padding: 0; list-style: none; }
.check-list li {
  position: relative; padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 0.95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 1.05em;
  width: 11px; height: 6px; border-left: 1.8px solid var(--accent-mark); border-bottom: 1.8px solid var(--accent-mark);
  transform: rotate(-45deg);
}

/* Definierte Kante statt Kante + diffusem Schatten */
.panel {
  padding: 26px 26px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--ink-800);
}
.panel-title {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.panel-title .ico { width: 18px; height: 18px; color: var(--accent-mark); }
.panel-title.mt { margin-top: 26px; }
.panel-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--text-faint); }

.facts { margin: 0; }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.facts dd { margin: 4px 0 0; font-size: 0.95rem; }

/* ---------------- Öffnungsstatus ---------------- */
.status {
  --status-color: var(--text-faint);
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.status.is-open { --status-color: var(--status-open); }
.status.is-soon { --status-color: var(--accent-ink); }
.status.is-closed { --status-color: var(--status-closed); }

.status-line { display: flex; align-items: center; gap: 11px; margin: 0; }
.status-dot {
  position: relative; flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--status-color);
}
.status.is-open .status-dot::after {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid var(--status-color); border-radius: 50%;
  animation: status-puls 2.6s ease-out infinite;
}
@keyframes status-puls {
  from { transform: scale(.65); opacity: .6; }
  to   { transform: scale(1.5); opacity: 0; }
}
.status-label { font-size: 0.95rem; font-weight: 600; color: var(--status-color); }
.status-sub { margin: 7px 0 0; font-size: 0.88rem; color: var(--text-dim); }

.status-tel {
  display: inline-block; margin-top: 15px;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 2.4rem); line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--text); text-decoration: none;
  transition: color .2s ease;
}
.status-tel:hover { color: var(--accent-ink); }

.contact-list { margin: 18px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 0.96rem; }
.contact-list .ico { color: var(--accent-mark); flex: none; margin-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-ink); }

/* Adresse verlinkt auf die Routenplanung bei Google Maps */
.route-hinweis {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 3px;
  font-size: 0.82rem; font-weight: 500; color: var(--accent-ink);
}
.route-hinweis .ico { width: 14px; height: 14px; transition: transform .2s ease; }
.adresse:hover .route-hinweis .ico { transform: translateX(3px); }

.hours { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.93rem; }
.hours th { text-align: left; font-weight: 500; color: var(--text-dim); padding: 6px 0; }
.hours td { text-align: right; padding: 6px 0; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours .closed { color: var(--text-faint); }
/* Heutiger Tag wird von script.js markiert */
.hours tr.is-today th { color: var(--text); font-weight: 600; }
.hours tr.is-today td:not(.closed) { color: var(--text); font-weight: 500; }

/* ---------------- Anfahrt / Karte ---------------- */
.karte {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--ink-800);
  overflow: hidden;
}
.karte-flaeche { position: relative; height: clamp(300px, 30vw, 400px); background: var(--ink-850); }
.karte-flaeche iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Zustand vor dem Laden – kommt vollständig vom eigenen Server */
.karte-platzhalter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 26px 24px; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--ink-850);
}
/* Angedeutetes Straßenraster, damit die Fläche nicht leer wirkt */
.karte-platzhalter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 85%);
}
.karte-platzhalter > * { position: relative; }

.karte-pin {
  width: 34px; height: 34px; margin-bottom: 4px; color: var(--accent-mark);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.karte-name { margin: 0; font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .02em; }
.karte-adresse { margin: 0 0 16px; font-size: 0.93rem; color: var(--text-dim); }
.karte-hinweis { margin: 14px 0 0; max-width: 46ch; font-size: 0.78rem; color: var(--text-faint); }
.karte-hinweis a { color: var(--accent-ink); }
/* Ohne JavaScript bewirkt die Schaltfläche nichts, dann bleibt sie weg */
.karte-laden { display: none; }
.js .karte-laden { display: inline-flex; }
.karte-aktionen {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 18px; border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .karte-flaeche { height: 340px; }
  .karte-aktionen { padding: 14px; }
  .karte-aktionen .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 46px 20px 0;
  font-family: var(--font-head); font-size: 1.28rem; letter-spacing: .005em;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after,
.faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 1.8px; background: var(--accent-mark); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq summary::before { transform: translateY(-50%) rotate(90deg); }
.faq summary::after { transform: translateY(-50%); }
.faq details[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq-body { padding: 0 40px 22px 0; }
.faq-body p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }

/* ---------------- Formular ---------------- */
.form { margin-top: 30px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }

.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--ink-800); color: var(--text);
  font: 400 0.96rem/1.5 var(--font-body);
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #79818d; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent-line); background: var(--ink-700); outline: none;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
                    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field select option { background: var(--ink-800); }
.field .invalid, .field input.invalid { border-color: #e0483c; }

.form .btn { justify-self: start; }
.form-hint { margin: 0; min-height: 1.4em; font-size: 0.88rem; color: var(--text-faint); }
.form-hint.error { color: var(--hinweis-fehler); }
.form-hint.ok { color: var(--hinweis-ok); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-850); padding: 48px 0 40px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-brand img { display: block; height: 34px; width: auto; }
.footer-brand p { margin: 0; font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { font-size: 0.9rem; color: var(--text-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); }
.copyright { margin: 0; font-size: 0.8rem; color: var(--text-faint); border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------------- Rechtstexte (Impressum / Datenschutz) ---------------- */
.legal-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal-lede { margin-top: 26px; font-size: 1.05rem; }
.legal-stand { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-faint); }
.legal h2 { font-size: 1.5rem; margin-top: 44px; }
.legal h3 { font-size: 1.08rem; margin-top: 30px; color: var(--text); }
.legal h2:first-of-type { margin-top: 32px; }
.legal p, .legal li { color: var(--text-dim); font-size: 0.97rem; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--text); }
.legal .todo {
  display: block; margin: 26px 0; padding: 16px 18px;
  border: 1px dashed var(--accent-line); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-size: 0.9rem;
}

/* ---------------- Reveal-Animation ----------------
   Nur aktiv, wenn JavaScript läuft – ohne JS bleibt alles sichtbar. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1040px) {
  /* Statuskarte rutscht unter den Hero-Text */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text, .hero-card { grid-column: 1; }
  .hero-text { grid-row: 1; }
  .hero-card { grid-row: 2; margin-top: 38px; max-width: 420px; }
  .hero-facts { grid-row: 3; margin-top: 38px; }
}

@media (max-width: 960px) {
  .split, .split-contact { grid-template-columns: 1fr; gap: 40px; }
  /* Einspaltig, damit die Trennlinien durchgehend sitzen */
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .step:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px 20px 26px;
    background: var(--ink-850); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { padding: 13px 14px; font-size: 1.02rem; border-radius: var(--radius-sm); }
  .nav > a.is-active::after { display: none; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
  /* Rechtsseiten haben nur einen Zurück-Link und keinen Burger – der bleibt sichtbar */
  .nav.nav-simple {
    position: static; inset: auto; flex-direction: row;
    padding: 0; background: none; border: 0;
    transform: none; opacity: 1; pointer-events: auto;
  }
  .nav.nav-simple > a { padding: 8px 0 8px 12px; font-size: 0.9rem; }
  .section { padding: 76px 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  /* Zwei feste Spalten – einspaltig wären es zehn Zeilen */
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 0.84rem; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .brand img { height: 24px; }
  .services { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .status.is-open .status-dot::after { display: none; } /* statt 1-ms-Flackern lieber gar nicht */
}

/* ---------------- Druck ---------------- */
@media print {
  .site-header, .burger, .hero-bg, .form, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { border-color: #ccc; background: #fff; }
}