/* Schöffis Kfz Meisterbetrieb, Berstadt. Version 2
   Nachtblau, Weiß, Signalgelb. Systemschriften, keine externen Dateien. */

:root {
  --blau: #0f2a44;
  --blau-tief: #081726;
  --blau-mittel: #1d4064;
  --gelb: #f5b800;
  --gelb-dunkel: #dda600;
  --weiss: #ffffff;
  --hell: #f2f5f8;
  --linie: #dde3e9;
  --text: #13202d;
  --leise: #566676;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(8,23,38,.06), 0 8px 24px rgba(8,23,38,.08);

  --kopf: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --fliess: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--fliess); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--kopf); font-stretch: condensed; line-height: 1.04; margin: 0 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Warnstreifen: das wiederkehrende Erkennungszeichen */
.streifen { height: 8px; background: repeating-linear-gradient(-45deg, var(--gelb) 0 14px, var(--blau-tief) 14px 28px); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8,23,38,.86); color: var(--weiss);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.marke { display: flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.1; }
.marke svg { width: 36px; height: 36px; flex: none; }
.marke strong { display: block; font-family: var(--kopf); font-stretch: condensed; font-size: 1.35rem; font-weight: 800; }
.marke small { display: block; font-size: .78rem; color: #a9bacb; }
.navi { display: none; align-items: center; gap: 2px; }
.navi a { text-decoration: none; color: #d4dee8; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.navi a:hover { color: var(--weiss); background: rgba(255,255,255,.08); }
.navi .navi-tel {
  margin-left: 10px; background: var(--gelb); color: var(--blau-tief); font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
}
.navi .navi-tel:hover { background: var(--gelb-dunkel); color: var(--blau-tief); }
.navi-tel svg { width: 16px; height: 16px; }
@media (min-width: 960px) { .navi { display: flex; } }

/* ---------- Start ---------- */
.start { position: relative; color: var(--weiss); background: var(--blau-tief); overflow: hidden; isolation: isolate; }
.start-bild { position: absolute; inset: 0; z-index: -2; }
.start-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.start::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,23,38,.80) 0%, rgba(8,23,38,.88) 55%, rgba(8,23,38,.97) 100%);
}
@media (min-width: 960px) {
  .start::before { background: linear-gradient(90deg, rgba(8,23,38,.97) 0%, rgba(8,23,38,.90) 38%, rgba(8,23,38,.35) 72%, rgba(8,23,38,.15) 100%); }
}
.start .huelle { padding-top: 64px; padding-bottom: 120px; }
@media (min-width: 960px) { .start .huelle { padding-top: 112px; padding-bottom: 164px; } }

.ort { color: #c3d0dd; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .98rem; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 4px 12px; font-size: .9rem; color: var(--weiss);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8797a8; }
.status.offen::before { background: #45c46f; box-shadow: 0 0 0 4px rgba(69,196,111,.22); }
.status.zu::before { background: var(--gelb); }

.start h1 { font-size: clamp(2.6rem, 7.4vw, 4.8rem); font-weight: 800; max-width: 12ch; margin-bottom: .3em; }
.start-text { font-size: 1.18rem; color: #dbe4ec; max-width: 40ch; }

.nummer {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; text-decoration: none;
  background: var(--gelb); color: var(--blau-tief);
  padding: 14px 24px 14px 18px; border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(245,184,0,.25);
  transition: transform .15s ease, background .15s ease;
}
.nummer:hover { background: var(--gelb-dunkel); transform: translateY(-2px); }
.nummer-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--blau-tief); color: var(--gelb); display: grid; place-items: center; flex: none; }
.nummer-icon svg { width: 24px; height: 24px; }
.nummer small { display: block; font-size: .9rem; font-weight: 600; }
.nummer b {
  display: block; font-family: var(--kopf); font-stretch: condensed;
  font-size: clamp(1.9rem, 7vw, 2.8rem); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Einmalige Einblendung beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .start-inhalt > * { animation: rein .7s cubic-bezier(.2,.7,.2,1) both; }
  .start-inhalt > *:nth-child(2) { animation-delay: .06s; }
  .start-inhalt > *:nth-child(3) { animation-delay: .12s; }
  .start-inhalt > *:nth-child(4) { animation-delay: .18s; }
  @keyframes rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Vertrauensleiste, ragt in den Startbereich */
.fakten-band { position: relative; z-index: 5; margin-top: -64px; }
.fakten {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten);
  overflow: hidden;
}
@media (min-width: 720px) { .fakten { grid-template-columns: repeat(3, 1fr); } }
.fakten li { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.fakten li + li { border-top: 1px solid var(--linie); }
@media (min-width: 720px) { .fakten li + li { border-top: 0; border-left: 1px solid var(--linie); } }
.fakten-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff4cc; color: var(--blau); display: grid; place-items: center; flex: none; }
.fakten-icon svg { width: 24px; height: 24px; }
.fakten strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.fakten span span { color: var(--leise); font-size: .92rem; }
.fakten .sterne svg { width: 16px; height: 16px; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 88px 0; }
.abschnitt-hell { background: var(--hell); }
.kopfzeile { margin-bottom: 40px; max-width: 660px; }
.kopfzeile p { color: var(--leise); font-size: 1.12rem; }

/* ---------- Leistungen ---------- */
.leistung-raster { display: grid; gap: 20px; }
@media (min-width: 960px) { .leistung-raster { grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; } }
.leistungen { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .leistungen { grid-template-columns: 1fr 1fr; } }
.leistungen li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 18px;
}
.leistung-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blau); color: var(--gelb); display: grid; place-items: center; flex: none; }
.leistung-icon svg { width: 26px; height: 26px; }
.leistungen strong { display: block; font-size: 1.05rem; line-height: 1.3; margin-top: 2px; }
.leistungen span { color: var(--leise); font-size: .94rem; line-height: 1.45; }

.bild-karte { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--blau-mittel); }
.bild-karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bild-karte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,23,38,0) 45%, rgba(8,23,38,.88) 100%); }
.bild-karte figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: var(--weiss); }
.bild-karte figcaption strong { display: block; font-family: var(--kopf); font-stretch: condensed; font-size: 1.6rem; line-height: 1.1; }
.bild-karte figcaption span { color: #d4dee8; font-size: .95rem; }

/* ---------- Panne ---------- */
.panne { position: relative; color: var(--weiss); overflow: hidden; isolation: isolate; background: var(--blau-tief); }
.panne-bild { position: absolute; inset: 0; z-index: -2; }
.panne-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.panne::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,23,38,.96) 0%, rgba(8,23,38,.85) 50%, rgba(8,23,38,.55) 100%); }
.panne .huelle { padding-top: 96px; padding-bottom: 96px; }
.panne h2 { max-width: 14ch; }
.panne p { color: #d7e1ea; font-size: 1.12rem; max-width: 46ch; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: background .15s ease, transform .15s ease;
}
.knopf:hover { transform: translateY(-1px); }
.knopf svg { width: 20px; height: 20px; }
.knopf-gelb { background: var(--gelb); color: var(--blau-tief); }
.knopf-gelb:hover { background: var(--gelb-dunkel); }
.knopf-blau { background: var(--blau); color: var(--weiss); }
.knopf-blau:hover { background: var(--blau-tief); }
.knopf-rand { border-color: rgba(255,255,255,.55); color: var(--weiss); }
.knopf-rand:hover { background: rgba(255,255,255,.08); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Über uns ---------- */
.ueber { display: grid; gap: 44px; }
@media (min-width: 960px) { .ueber { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: center; } }
.werte { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.werte li { display: flex; gap: 14px; align-items: flex-start; }
.werte-zahl {
  width: 34px; height: 34px; border-radius: 50%; flex: none; margin-top: 2px;
  background: var(--gelb); color: var(--blau-tief); display: grid; place-items: center;
}
.werte-zahl svg { width: 18px; height: 18px; }
.werte strong { display: block; }
.werte span { color: var(--leise); font-size: .98rem; }
.team { list-style: none; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 16px 36px; }
.team li { display: flex; align-items: center; gap: 12px; }
.kuerzel { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--blau); color: var(--gelb); display: grid; place-items: center; font-family: var(--kopf); font-weight: 800; font-size: 1.05rem; }
.team strong { display: block; line-height: 1.2; }
.team small { font-size: .9rem; color: var(--leise); }
.team-foto {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--hell) 0 18px, #e8edf2 18px 36px);
  border: 2px dashed #c9d3dd; display: grid; place-items: center; text-align: center;
}
.team-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-foto figcaption { max-width: 22ch; color: var(--leise); font-weight: 600; padding: 20px; }

/* ---------- Bewertungen ---------- */
.bewertung-karte {
  display: grid; gap: 22px; align-items: center;
  background: var(--blau); color: var(--weiss); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
}
@media (min-width: 760px) { .bewertung-karte { grid-template-columns: auto 1fr auto; gap: 32px; padding: 32px 40px; } }
.bewertung-karte::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--gelb) 0 12px, var(--blau-tief) 12px 24px); }
.note { font-family: var(--kopf); font-stretch: condensed; font-size: 5rem; font-weight: 800; line-height: .9; color: var(--gelb); }
.sterne { display: flex; gap: 3px; }
.sterne svg { width: 22px; height: 22px; color: var(--gelb); }
.bewertung-karte p { margin: 6px 0 0; color: #d4dee8; }
.bewertung-karte strong { color: var(--weiss); }
.stimmen { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 760px) { .stimmen { grid-template-columns: repeat(3, 1fr); } }
.stimme { background: var(--weiss); padding: 24px; border-radius: var(--radius); border: 1px solid var(--linie); }
.stimme blockquote { margin: 0 0 12px; font-style: italic; color: var(--leise); }
.stimme figcaption { font-weight: 600; font-size: .9rem; }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; gap: 20px; }
@media (min-width: 960px) { .kontakt-raster { grid-template-columns: 1fr 1fr; gap: 24px; } }
.kasten { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; }
.kasten h3 { margin-bottom: 14px; }
.zeiten { width: 100%; border-collapse: collapse; }
.zeiten th, .zeiten td { padding: 11px 0; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.zeiten tr:last-child th, .zeiten tr:last-child td { border-bottom: 0; }
.zeiten th { font-weight: 600; }
.zeiten td { text-align: right; font-variant-numeric: tabular-nums; color: var(--leise); }
.zeiten tr.heute th, .zeiten tr.heute td { color: var(--blau); font-weight: 700; }
.zeiten tr.heute th::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gelb); margin-right: 8px; vertical-align: 2px; }
.hinweis-klein { font-size: .95rem; color: var(--leise); margin: 12px 0 0; }
address { font-style: normal; font-size: 1.15rem; line-height: 1.55; margin-bottom: 16px; }
.kontakt-zeilen { list-style: none; margin: 0; padding: 0; }
.kontakt-zeilen li { padding: 4px 0; }
.kontakt-zeilen a { font-weight: 700; }

/* ---------- Fuß ---------- */
.fuss { background: var(--blau-tief); color: #a9bacb; font-size: .95rem; padding: 36px 0 112px; }
.fuss .huelle { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { color: #e3eaf1; }
@media (min-width: 960px) { .fuss { padding-bottom: 36px; } }

/* ---------- Anrufleiste Handy ---------- */
.anrufleiste {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px;
  background: rgba(8,23,38,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.anrufleiste .knopf { min-height: 48px; padding: 0 12px; }
@media (min-width: 960px) { .anrufleiste { display: none; } }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding: 56px 0 72px; }
.rechtstext h1 { font-size: clamp(2rem, 5vw, 3rem); }
.rechtstext h2 { font-size: 1.5rem; margin-top: 1.6em; }
.rechtstext .hinweis { background: #fff7db; border-left: 4px solid var(--gelb); padding: 14px 18px; margin-bottom: 28px; max-width: 64ch; border-radius: 0 8px 8px 0; }

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

/* Telefonnummer bleibt auf kleinen Handys in einer Zeile */
.nummer b { white-space: nowrap; }
@media (max-width: 480px) {
  .nummer { gap: 12px; padding: 12px 18px 12px 12px; }
  .nummer-icon { width: 42px; height: 42px; }
  .nummer-icon svg { width: 20px; height: 20px; }
  .nummer b { font-size: clamp(1.45rem, 7.4vw, 1.9rem); }
}
