/* ==========================================================================
   KFZ-Meisterbetrieb Martin Holzmann
   Dunkles Premium-Design. Farben: Rot #DB0000 · Dunkel #091017 · Hellgrau #F3F3F3
   Schriften: Archivo (variabel, Expanded für Überschriften) · IBM Plex Mono für Daten
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: dunkle Flächen in drei Stufen, Haarlinien statt Kästen, Rot nur als Signal */
:root {
  /* Markenfarben, fest */
  --red: #db0000;
  --red-press: #b80000;
  --ink: #091017;
  --ink-0: #060b10;
  --paper: #f3f3f3;
  --white: #ffffff;
  --ok: #1fa855;

  /* Heller Kontext (Standard): Weiß mit schwarzer Schrift */
  --bg: #ffffff;
  --bg-2: #f3f3f3;
  --surface: #f6f7f8;
  --surface-2: #eceef0;
  --line: rgba(9, 16, 23, .1);
  --line-2: rgba(9, 16, 23, .22);
  --text: #091017;
  --muted: #4f5a65;
  --dim: #7c8792;
  --bar: #c9ced4;

  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-lg: 14px;
  --container: 1240px;
  --gutter: max(16px, min(4.5vw, 44px));
  --section: clamp(5rem, 11vw, 9rem);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* Dunkler Kontext: schwarze Bereiche und Akzente */
.ink {
  --bg: #091017;
  --bg-2: #0d1720;
  --surface: #111c26;
  --surface-2: #162330;
  --line: rgba(243, 243, 243, .09);
  --line-2: rgba(243, 243, 243, .2);
  --text: #f3f3f3;
  --muted: #9aa5b0;
  --dim: #6d7985;
  --bar: #3a4754;
  --ok: #22c55e;
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--white); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--white); }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--text); text-wrap: balance; overflow-wrap: break-word; }
.display { font-stretch: 125%; font-weight: 750; text-transform: uppercase; letter-spacing: -.012em; line-height: .95; }
h1.display { font-size: clamp(2.3rem, 6.6vw, 5.8rem); }
h2.display { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 115%; line-height: 1.15; }
.red { color: var(--red); }
.nocase { text-transform: none; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 44ch; }

.kicker { display: inline-block; margin-bottom: 1.4rem; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 2px; margin: -2px .8rem 0 0; background: var(--red); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; padding: .7rem 1rem; background: var(--white); color: var(--ink); font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico { --ac: var(--red); width: 56px; height: 56px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; max-width: 100%; padding: .85em 1.45em;
  border: 1px solid transparent; border-radius: var(--radius); background-color: transparent;
  font-family: var(--display); font-weight: 700; font-stretch: 115%; font-size: .9rem; line-height: 1.1;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 26px -12px rgba(219, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--red:hover { background: var(--red-press); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.link { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-stretch: 115%; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.link .icon { color: var(--red); transition: transform .25s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--ink-0); color: var(--dim); font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 38px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--text); }
.topbar__links { display: flex; gap: 2rem; }
.status { display: inline-flex; align-items: center; gap: .6em; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.status.is-open { color: var(--text); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.status.is-closed::before { background: var(--red); }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 2.5rem; min-height: var(--header-h); }
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2.1rem; list-style: none; }
.nav li > a {
  position: relative; display: block; padding: .5rem 0;
  font-family: var(--display); font-weight: 600; font-stretch: 112%; font-size: .86rem;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav li > a:hover { color: var(--text); }
.nav li > a[aria-current="page"] { color: var(--text); }
.nav li > a[aria-current="page"]::after, .nav li > a:hover::after { transform: scaleX(1); }
.nav__call { display: none; }
.header__call { min-height: 44px; padding: .7em 1.1em; font-size: .82rem; }
.nav-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .25s var(--ease), background-color .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sektionen ---------- */
.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head > div { max-width: 760px; }
.head .lead { margin: 1.25rem 0 0; }

/* ---------- Hero Startseite ----------
   Teamfoto als abgedunkeltes Hintergrundbild, Text weiß darauf.
   Handy/Tablet: Foto oben in voller Breite, der Text liegt auf dem dunkel auslaufenden unteren Teil.
   Desktop (ab 1180px): Foto füllt den ganzen Bereich, Text unten links, Gesichter bleiben frei. */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); padding-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.hero__bg { position: relative; z-index: -1; margin: 0; overflow: hidden; }
.hero__bg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 100%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 16, 23, .3) 0%, rgba(9, 16, 23, .35) 45%, rgba(9, 16, 23, .82) 78%, var(--ink) 100%); }
.hero__bg figcaption { display: none; }
.hero .container { position: relative; margin-top: -20vw; }
.hero h1 { margin-bottom: 1.6rem; font-size: clamp(2rem, 4.9vw, 4.15rem); color: var(--white); text-shadow: 0 2px 28px rgba(6, 11, 16, .45); }
.hero .kicker { color: rgba(243, 243, 243, .85); }
.hero .lead { margin-bottom: 2.2rem; color: rgba(243, 243, 243, .88); }
.hero .btn--ghost { border-color: rgba(243, 243, 243, .55); background: rgba(9, 16, 23, .28); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .btn--ghost:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.hero .status { margin-top: 1.75rem; font-family: var(--mono); font-size: .8rem; color: rgba(243, 243, 243, .78); }
.hero .status.is-open { color: var(--white); }

@media (max-width: 760px) {
  .hero__bg img { aspect-ratio: 6 / 5; }
}
@media (min-width: 900px) and (max-width: 1179px) {
  .hero__bg img { aspect-ratio: 2 / 1; }
}
@media (min-width: 1180px) {
  .hero { display: flex; align-items: flex-end; min-height: clamp(600px, 50vw, 960px); padding-block: 6rem clamp(3.5rem, 4.5vw, 4.75rem); }
  .hero__bg { position: absolute; inset: 0; }
  .hero__bg img { height: 100%; aspect-ratio: auto; }
  .hero__bg::after { background: linear-gradient(0deg, rgba(9, 16, 23, .94) 0%, rgba(9, 16, 23, .74) 28%, rgba(9, 16, 23, .38) 58%, rgba(9, 16, 23, .42) 100%), linear-gradient(90deg, rgba(9, 16, 23, .6) 0%, rgba(9, 16, 23, 0) 55%); }
  .hero__bg figcaption {
    position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: clamp(3.5rem, 4.5vw, 4.75rem);
    display: flex; gap: 1.5rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper);
  }
  .hero__bg figcaption span:last-child { color: rgba(243, 243, 243, .65); }
  .hero .container { margin-top: 0; }
  .hero .lead { max-width: 50ch; }
}
@media (min-width: 1800px) {
  .hero__bg img { object-position: 50% 80%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__intro > * { animation: rise .9s var(--ease) both; }
  .hero__intro > *:nth-child(2) { animation-delay: .08s; }
  .hero__intro > *:nth-child(3) { animation-delay: .16s; }
  .hero__intro > *:nth-child(4) { animation-delay: .24s; }
  .hero__intro > *:nth-child(5) { animation-delay: .32s; }
  .hero__bg img { animation: settle 1.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
.stats li + li { border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; }
.stats b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 750; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.01em; }
.stats b i { font-style: normal; }
.stats b .star { margin-left: .12em; font-size: .55em; vertical-align: .55em; color: var(--red); }
.stats span { display: block; margin-top: .65rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Leistungs-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; list-style: none; }
.tile { position: relative; display: flex; flex-direction: column; gap: 2.6rem; min-height: 250px; padding: clamp(1.5rem, 2.6vw, 2.2rem); text-decoration: none; transition: background-color .35s var(--ease); background-color: var(--bg); }
.tile:hover { background: var(--surface); }
.tile .ico { width: 64px; height: 64px; transition: transform .45s var(--ease); }
.tile:hover .ico { transform: translateY(-3px) rotate(-6deg); }
.tile h3 { margin-top: auto; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 750; font-stretch: 125%; text-transform: uppercase; }
.tile p { margin: .45rem 0 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted); }
.tile__arrow { position: absolute; top: clamp(1.5rem, 2.6vw, 2.2rem); right: clamp(1.5rem, 2.6vw, 2.2rem); width: 22px; height: 22px; color: var(--dim); transition: color .3s, transform .35s var(--ease); }
.tile:hover .tile__arrow { color: var(--red); transform: translate(3px, -3px); }

/* ---------- Pickerl-Teaser ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(120% 120% at 0% 0%, var(--surface-2), var(--bg) 60%); }
.feature .lead { margin: 1.25rem 0 2rem; }

.plakette { width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.plakette .disc { fill: var(--paper); }
.plakette .ring { fill: none; stroke: var(--ink); }
.plakette text { font-family: var(--display); fill: var(--ink); }
.plakette .month { font-size: 21px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.plakette .year { font-size: 64px; font-weight: 800; font-stretch: 125%; text-anchor: middle; dominant-baseline: central; }
.plakette .small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-anchor: middle; fill: #56616b; }
.plakette .hole { fill: var(--ink); stroke: var(--red); stroke-width: 3; }

/* ---------- Bildband mit Zitat ---------- */
.band { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(420px, 62vw, 640px); padding-block: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.band__img { position: absolute; inset: 0; z-index: -2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(.85) brightness(.85); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0%, rgba(9, 16, 23, .72) 38%, rgba(9, 16, 23, .2) 75%, var(--ink) 100%), linear-gradient(90deg, rgba(9, 16, 23, .7), rgba(9, 16, 23, 0) 70%); }
.band blockquote { margin: 0; max-width: 18ch; font-family: var(--display); font-stretch: 125%; font-weight: 750; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.band figcaption { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kundenstimmen ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; }
.quote { display: flex; flex-direction: column; gap: 1.75rem; padding: clamp(1.5rem, 2.6vw, 2.1rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }
.stars { display: flex; gap: 3px; color: var(--red); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.quote footer { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quote b { display: block; font-family: var(--display); font-stretch: 115%; font-weight: 700; }
.quote small { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Besuch: Wochenplan + Karte ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.visit__info .actions { margin-top: 2rem; }
.address { margin: 0 0 2.25rem; font-size: 1.15rem; line-height: 1.5; color: var(--muted); }
.address strong { display: block; color: var(--text); font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 1.25rem; }

.week__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.1rem; }
.week__head h3 { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.week__head .status { font-family: var(--mono); font-size: .76rem; }
.week__rows { display: grid; gap: 7px; }
.week__row { display: grid; grid-template-columns: 2.5rem 1fr 6.4rem; align-items: center; gap: .85rem; font-family: var(--mono); font-size: .8rem; color: var(--dim); }
.week__row b { font-weight: 500; color: var(--muted); }
.week__track { position: relative; height: 24px; border-radius: 3px; background: var(--surface); }
.week__bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--bar); }
.week__row span:last-child { text-align: right; }
.week__row.is-today b, .week__row.is-today span:last-child { color: var(--text); }
.week__row.is-today .week__bar { background: var(--text); }
.week__row.is-today .week__track { box-shadow: inset 0 0 0 1px var(--line-2); }
.week__now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--red); z-index: 1; box-shadow: 0 0 12px rgba(219, 0, 0, .8); }
.week__now::before { content: attr(data-time); position: absolute; top: 50%; left: 7px; transform: translateY(-50%); padding: .1rem .4rem; border-radius: 3px; background: var(--red); color: var(--white); font-size: .68rem; white-space: nowrap; }
.week__axis { display: grid; grid-template-columns: 2.5rem 1fr 6.4rem; gap: .85rem; margin-top: .55rem; font-family: var(--mono); font-size: .66rem; color: var(--dim); }
.week__ticks { position: relative; height: 1em; }
.week__ticks span { position: absolute; transform: translateX(-50%); }
.week__note { margin: 1rem 0 0; font-size: .9rem; color: var(--dim); }

.map { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #111c26; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.92) contrast(.95); }
.map__pin { position: absolute; right: 1rem; top: 1rem; z-index: 1; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: var(--radius); background: rgba(9, 16, 23, .9); border: 1px solid rgba(243, 243, 243, .2); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); text-decoration: none; }
.map__pin::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(219, 0, 0, .25); }
.map--tall { min-height: clamp(380px, 48vw, 560px); }

.map iframe[hidden] { display: none; }
.map__off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .45rem; padding: 2rem; text-align: center; color: var(--paper); background-color: #0d1720; background-image: linear-gradient(rgba(243, 243, 243, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 243, 243, .05) 1px, transparent 1px); background-size: 40px 40px; }
.map__off[hidden] { display: none; }
.map__off b { font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.map__off small { margin-bottom: .9rem; color: #9aa5b0; }
.map__off-pin { width: 16px; height: 16px; margin-bottom: .6rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 7px rgba(219, 0, 0, .25), 0 0 36px rgba(219, 0, 0, .6); }

/* ---------- Hinweis-Banner Google Maps ---------- */
.consent {
  position: fixed; z-index: 80; left: max(24px, env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 48px)); padding: 1.4rem 1.5rem 1.2rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.consent[hidden] { display: none; }
.consent__title { margin: 0 0 .5rem; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: 1.05rem; }
.consent__text { margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.consent .actions { gap: .5rem; }
.consent .btn { min-height: 44px; padding: .7em 1.1em; font-size: .8rem; }
.consent__links { display: flex; gap: 1.25rem; margin: 1rem 0 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.consent__links a { color: var(--muted); }
.consent__links a:hover { color: var(--text); }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; text-align: left; }
.linkbtn:hover { color: var(--text); }

/* ---------- Partner ---------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; list-style: none; }
.partners li { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; background: var(--bg); }
.partners img { width: 76px; height: 54px; object-fit: contain; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; flex: none; }
.partners b { display: block; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: .9rem; text-transform: uppercase; line-height: 1.2; }
.partners small { font-family: var(--mono); font-size: .7rem; color: var(--dim); }

/* ---------- Rotes Abschlussband ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: var(--white); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 140% at 100% 0%, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 22px); pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta .kicker { color: rgba(255, 255, 255, .8); }
.cta .kicker::before { background: var(--white); }
.cta h2 { color: var(--white); }
.cta__phone { display: block; margin-top: .9rem; font-family: var(--display); font-stretch: 125%; font-weight: 750; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; color: var(--white); text-decoration: none; letter-spacing: -.01em; }

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-hero.ink::before { content: ""; position: absolute; width: 760px; height: 760px; right: -240px; top: -420px; background: radial-gradient(closest-side, rgba(219, 0, 0, .18), rgba(219, 0, 0, 0)); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 1.4rem; }
.page-hero .lead { margin: 0; }
.crumbs { display: flex; gap: .6rem; margin-bottom: 1.25rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--red); }

.page-hero--photo { min-height: clamp(460px, 56vw, 640px); display: flex; align-items: flex-end; isolation: isolate; border-bottom: 0; }
.page-hero--photo::before { display: none; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.page-hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0%, rgba(9, 16, 23, .6) 45%, rgba(9, 16, 23, .25) 100%), linear-gradient(90deg, rgba(9, 16, 23, .75), rgba(9, 16, 23, 0) 65%); }

/* ---------- Leistungen (Unterseite) ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc .ico { width: 80px; height: 80px; }
.svc h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; font-stretch: 125%; text-transform: uppercase; line-height: 1; }
.svc h2 + span { display: block; margin-top: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.chips li { padding: .45rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--text); white-space: nowrap; }
.chips li.more { border-style: dashed; color: var(--dim); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.also .kicker { margin: 0; }
.also .chips a { text-decoration: none; }

/* ---------- Pickerl-Check ---------- */
.pickerl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pk-form { display: grid; gap: 1.25rem; }
.segmented { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); justify-self: start; max-width: 100%; }
.segmented button { padding: .6rem 1rem; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { display: block; margin-bottom: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field select {
  width: 100%; min-height: 54px; padding: .7rem 2.5rem .7rem .95rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3f3f3' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
  color: var(--text); font-family: var(--display); font-weight: 650; font-size: 1.05rem;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.field select:hover { border-color: var(--muted); }
.result { padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.result__state { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 4px; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); color: var(--text); }
.result__state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.result[data-state="ok"] .result__state::before { background: var(--ok); }
.result[data-state="due"] .result__state { background: var(--text); color: var(--bg); }
.result[data-state="due"] .result__state::before { background: var(--red); }
.result[data-state="grace"] .result__state, .result[data-state="late"] .result__state { background: var(--red); color: var(--white); }
.result[data-state="grace"] .result__state::before, .result[data-state="late"] .result__state::before { background: var(--white); }
.result__headline { margin: 1rem 0 .4rem; font-family: var(--display); font-stretch: 115%; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
.result__window { margin: 0; font-family: var(--mono); font-size: .86rem; color: var(--muted); }
.result .actions { margin-top: 1.4rem; }
.fineprint { margin: 0; font-size: .82rem; color: var(--dim); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; list-style: none; counter-reset: step; }
.steps li { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--bg); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 2rem; font-family: var(--mono); font-size: .8rem; color: var(--red); letter-spacing: .1em; }
.steps h3 { font-size: 1.2rem; font-stretch: 125%; text-transform: uppercase; }
.steps p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.5rem); list-style: none; }
.member__photo { position: relative; aspect-ratio: 4 / 4.8; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.035); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 16, 23, 0) 60%, rgba(9, 16, 23, .55) 100%); }
.member__role { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: .35rem .65rem; border-radius: 4px; background: rgba(9, 16, 23, .85); border: 1px solid rgba(243, 243, 243, .2); color: var(--paper); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.member h2 { margin: 1.1rem 0 .35rem; font-size: 1.35rem; font-weight: 750; font-stretch: 125%; text-transform: uppercase; }
.member p { margin: 0; color: var(--muted); font-size: .97rem; }
.member details { margin-top: .7rem; }
.member summary { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; list-style: none; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.member summary::-webkit-details-marker { display: none; }
.member summary::after { content: "+"; color: var(--red); font-size: 1rem; line-height: 1; }
.member details[open] summary::after { content: "–"; }
.member details p { margin-top: .7rem; }

.team-hint { display: none; margin: -1.5rem 0 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bigphone { display: inline-block; margin-bottom: 2rem; font-family: var(--display); font-stretch: 125%; font-weight: 750; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.bigphone:hover { color: var(--red); }
.clist { list-style: none; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.clist li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.clist span:first-child { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: .2rem; }
.clist a { color: var(--text); text-decoration: none; }
.clist a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-2); }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none; font-family: var(--display); font-stretch: 112%; font-weight: 650; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.3; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat, linear-gradient(var(--red), var(--red)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list .answer { padding-bottom: 1.4rem; color: var(--muted); max-width: 62ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1fr); gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__brand img { width: 210px; height: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 34ch; margin: 0; color: var(--dim); }
.footer h2 { margin-bottom: 1rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--dim); }

.callbar { display: none; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 760px; color: var(--muted); }
.prose h2 { margin: 3rem 0 1rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 750; font-stretch: 125%; text-transform: uppercase; line-height: 1.1; -webkit-hyphens: auto; hyphens: auto; }
.prose > h2:first-child, .prose > .lead + h2 { margin-top: 0; }
.prose h3 { margin: 2.2rem 0 .7rem; font-size: 1.15rem; }
.prose h4 { margin: 1.6rem 0 .5rem; font-size: 1rem; font-weight: 700; color: var(--text); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--text); text-decoration-color: var(--red); overflow-wrap: anywhere; }
.prose .caps { font-size: .88rem; }
.legal-card { padding: 1.4rem 1.6rem; margin: 0 0 2rem; background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: var(--radius); color: var(--text); }
.legal-card p:last-child { margin: 0; }
.legal-dl { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: .7rem 1.5rem; margin: 0; }
.legal-dl dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: .2rem; }
.legal-dl dd { margin: 0; color: var(--text); }
.table-scroll { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0 1.5rem; }
.cookie-table th, .cookie-table td { padding: .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cookie-table thead th { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line-2); }
.cookie-table code { font-family: var(--mono); font-size: .85em; color: var(--text); overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header__call { display: none; }
  .header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h)); z-index: 49;
    margin: 0; padding: 1rem max(var(--gutter), env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li > a { padding: 1.2rem 0; font-size: 1.6rem; font-weight: 750; font-stretch: 125%; color: var(--text); }
  .nav li > a::after { display: none; }
  .nav li > a[aria-current="page"] { color: var(--red); }
  .nav__call { display: flex; width: 100%; margin-top: 1.75rem; }
  body.nav-open { overflow: hidden; }
  .feature, .visit, .contact, .pickerl, .faq { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: 72px minmax(0, 1fr); }
  .svc .ico { width: 64px; height: 64px; }
  .svc .chips, .svc > .actions { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand img { height: 34px; }
  .topbar__inner { justify-content: center; }
  .topbar__links { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats li:nth-child(even) { padding-right: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.25rem 1.25rem; }
  .tile .ico { width: 48px; height: 48px; }
  .tile h3 { margin: 0; font-size: 1.1rem; }
  .tile p { margin-top: .25rem; }
  .tile__arrow { position: static; order: 3; margin-left: auto; }
  .feature { padding: 1.75rem 1.25rem; }
  .plakette { width: min(80%, 300px); }
  .fields { grid-template-columns: 1fr; }
  .segmented { grid-auto-flow: row; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: .9rem; }
  .team {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px))); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); padding-bottom: .75rem;
    scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent;
  }
  .member { scroll-snap-align: start; }
  .team-hint { display: block; }
  .partners { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 1rem; }
  .svc .ico { width: 52px; height: 52px; }
  .svc .chips, .svc > .actions { grid-column: auto; }
  .clist li { grid-template-columns: 1fr; gap: .25rem; }
  .week__row, .week__axis { grid-template-columns: 2.2rem 1fr 5.6rem; gap: .55rem; }
  .map { min-height: 340px; }
  .legal-dl { grid-template-columns: 1fr; gap: .15rem; }
  .legal-dl dd { margin-bottom: .9rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: rgba(6, 11, 16, .94); border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 48px; }
  body.nav-open .callbar { display: none; }
  body.nav-open .consent { display: none; }
  .consent { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 1.1rem 1.1rem 1rem; }
  .consent .actions .btn { flex: 1 1 auto; }
}

@media print {
  .topbar, .header, .callbar, .map, .nav-toggle { display: none !important; }
}
