/* =========================================================
   Auto Technik Sport – Stylesheet
   Farben und Schriften oben in :root anpassen.
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-v25-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-v25-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-v34-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-v34-latin-700.woff2") format("woff2"); }

:root {
  --gelb: #F3E600;        /* Signalgelb aus dem Logo */
  --gelb-hell: #FAF2A1;   /* zweiter Logo-Streifen */
  --schwarz: #000;
  --asphalt: #222;        /* dunkle Abschnitte */
  --asphalt-2: #2c2c2c;
  --hallenboden: #ececec; /* helle Abschnitte */
  --weiss: #fff;
  --text-hell: #c9c9c9;
  --text-dunkel: #1d1d1d;
  --grau: #5a5a5a;

  --kopf: "Montserrat", "Arial Black", Arial, sans-serif;
  --text: "Open Sans", Arial, sans-serif;

  --breite: 1180px;
  --rand: clamp(16px, 4vw, 40px);
  --schraeg: -18deg;      /* Winkel der Logo-Streifen */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--asphalt); color: var(--weiss);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--kopf); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.lesbar { max-width: 66ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo-Streifen: das wiederkehrende Markenzeichen ---------- */
.streifen { display: inline-flex; gap: 6px; height: 22px; vertical-align: middle; }
.streifen i { width: 8px; transform: skewX(var(--schraeg)); }
.streifen i:nth-child(1) { background: var(--weiss); }
.streifen i:nth-child(2) { background: var(--gelb-hell); }
.streifen i:nth-child(3) { background: var(--gelb); }
.hell .streifen i:nth-child(1) { background: #bdbdbd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 1rem/1 var(--kopf); text-decoration: none;
  padding: 1em 1.5em; border: 2px solid var(--gelb); cursor: pointer;
  background: var(--gelb); color: var(--schwarz);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--weiss); border-color: var(--weiss); }
.btn--rand { background: transparent; color: var(--gelb); }
.btn--rand:hover { background: var(--gelb); color: var(--schwarz); border-color: var(--gelb); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Kopfzeile ---------- */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--schwarz); border-bottom: 1px solid #1c1c1c; }
.kopf .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.kopf__logo img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { font: 500 .98rem var(--kopf); text-decoration: none; padding: .6em .85em; color: var(--weiss); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gelb); }
.kopf__tel { font: 700 .98rem var(--kopf); text-decoration: none; color: var(--schwarz); background: var(--gelb); padding: .65em 1.1em; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.nav .kopf__tel, .nav .kopf__tel:hover { color: var(--schwarz); }
.kopf__tel:hover { background: var(--weiss); }
.menue-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--weiss); padding: 10px; cursor: pointer; }
.menue-btn svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .menue-btn { display: block; }
  .kopf__tel { display: none; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--schwarz);
    flex-direction: column; align-items: stretch; padding: 8px var(--rand) 20px; border-bottom: 3px solid var(--gelb); }
  .nav.offen { display: flex; }
  .nav a { padding: .9em 0; border-bottom: 1px solid #222; font-size: 1.05rem; }
  .nav .kopf__tel { display: block; margin-top: 14px; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--schwarz); min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.hero__bild { position: absolute; inset: 0; }
.hero__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, rgba(0,0,0,.6), transparent 50%); }
/* die drei Logo-Streifen laufen groß durchs Bild */
.hero__streifen { position: absolute; z-index: 1; right: 8%; top: -10%; bottom: -10%; display: flex; gap: 22px; pointer-events: none; }
.hero__streifen i { width: 46px; transform: skewX(var(--schraeg)); opacity: .9; }
.hero__streifen i:nth-child(1) { background: var(--weiss); opacity: .14; }
.hero__streifen i:nth-child(2) { background: var(--gelb-hell); opacity: .22; }
.hero__streifen i:nth-child(3) { background: var(--gelb); opacity: .85; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 72px; }
.hero h1 { max-width: 13ch; margin-bottom: .35em; }
.hero__unter { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e4e4e4; max-width: 46ch; margin-bottom: 1.8em; }
.hero--klein { min-height: 46vh; }
@media (max-width: 700px) {
  .hero__streifen { right: -40px; gap: 14px; } .hero__streifen i { width: 26px; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.92) 20%, rgba(0,0,0,.45) 100%); }
}

/* ---------- Gelbes Info-Band ---------- */
.band { background: var(--gelb); color: var(--schwarz); }
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.band__teil { padding: 30px 28px 28px 0; }
.band__teil + .band__teil { padding-left: 28px; border-left: 2px solid rgba(0,0,0,.14); }
.band h2 { font-size: 1.1rem; margin-bottom: .55em; }
.band p { margin: 0; font-size: 1rem; line-height: 1.55; }
.band a { font-weight: 700; }
@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; }
  .band__teil, .band__teil + .band__teil { padding: 22px 0; border-left: 0; }
  .band__teil + .band__teil { border-top: 2px solid rgba(0,0,0,.14); }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(64px, 9vw, 112px) 0; }
.hell { background: var(--hallenboden); color: var(--text-dunkel); }
.weiss { background: var(--weiss); color: var(--text-dunkel); }
.dunkel { background: var(--asphalt); }
.schwarz { background: var(--schwarz); }
.titel { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.titel h2 { margin: 0; }
.einleitung { font-size: 1.12rem; max-width: 60ch; margin-bottom: 44px; }
.dunkel .einleitung, .schwarz .einleitung { color: var(--text-hell); }
.hell .einleitung, .weiss .einleitung { color: var(--grau); }

/* ---------- Leistungen ---------- */
.leistungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin: 0; }
.leistung { padding: 22px 0 18px; border-top: 2px solid #cfcfcf; }
.leistung dt { font: 700 1.08rem/1.3 var(--kopf); margin-bottom: 6px; }
.leistung dd { margin: 0; color: #444; font-size: .98rem; line-height: 1.6; }
.leistung--top { border-top-color: var(--schwarz); }
@media (max-width: 960px) { .leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .leistungen { grid-template-columns: 1fr; } }

/* ---------- Geteilter Abschnitt (Bild + Text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rechts .split__bild { order: 2; }
.split__bild { position: relative; }
.split__bild img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__bild::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 38%; height: 12px; background: var(--gelb); transform: skewX(var(--schraeg)); }
.split--rechts .split__bild::after { left: auto; right: -14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rechts .split__bild { order: 0; } }

.haken { list-style: none; padding: 0; margin: 0 0 28px; }
.haken li { position: relative; padding: 7px 0 7px 30px; }
.haken li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 9px; background: var(--gelb); transform: skewX(var(--schraeg)); }
.hell .haken li::before, .weiss .haken li::before { background: var(--schwarz); }

/* ---------- Tuning-Stufen (echte Reihenfolge) ---------- */
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: stufe; }
.stufe { padding: 34px 32px 30px; background: var(--asphalt-2); border-top: 6px solid #555; }
.stufe:nth-child(2) { background: #333; border-top-color: var(--gelb-hell); }
.stufe:nth-child(3) { background: #3a3a3a; border-top-color: var(--gelb); }
.stufe__nr { font: 700 3.2rem/1 var(--kopf); color: var(--gelb); display: block; margin-bottom: 10px; }
.stufe h3 { font-size: 1.35rem; }
.stufe p { color: var(--text-hell); font-size: .98rem; }
.stufe .haken li { font-size: .95rem; padding-top: 5px; padding-bottom: 5px; }
.stufe .haken li::before { top: 13px; }
@media (max-width: 900px) { .stufen { grid-template-columns: 1fr; } }

/* ---------- Fahrzeuge / Instagram / Karte: erst nach Klick laden ---------- */
.extern { position: relative; background: #1a1a1a; border: 1px solid #333; min-height: 280px; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.hell .extern, .weiss .extern { background: #dedede; border-color: #c8c8c8; }
.extern p { max-width: 52ch; margin: 0 auto 20px; font-size: .95rem; }
.dunkel .extern p, .schwarz .extern p { color: var(--text-hell); }
.extern iframe { width: 100%; border: 0; display: block; }
.extern.geladen { padding: 0; display: block; min-height: 0; border: 0; background: none; }
.extern__merken { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .88rem; }
.mobile-hoehe iframe { height: 1400px; }
.karte iframe { height: 420px; }

/* ---------- Über uns ---------- */
.zitat { font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--kopf); margin: 0 0 24px; }
.presse { margin-top: 32px; padding: 22px 24px; border-left: 6px solid var(--gelb); background: rgba(255,255,255,.05); }
.presse h3 { margin-bottom: .35em; }
.presse p { color: var(--text-hell); font-size: .97rem; }
.presse a { color: var(--gelb); font-weight: 700; }

/* ---------- Formular ---------- */
.kontakt { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 900px) { .kontakt { grid-template-columns: 1fr; } }
.kontakt__daten dl { margin: 0 0 28px; }
.kontakt__daten dt { font: 700 1rem var(--kopf); margin-top: 18px; }
.kontakt__daten dd { margin: 4px 0 0; }
.kontakt__daten a { font-weight: 700; }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font: 700 .92rem var(--kopf); }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 2px solid #c4c4c4; background: var(--weiss); color: var(--text-dunkel); border-radius: 0; }
.feld textarea { min-height: 140px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--schwarz); box-shadow: 4px 4px 0 var(--gelb); }
.dunkel .feld input, .dunkel .feld select, .dunkel .feld textarea { border-color: #444; }
.zustimmung { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.zustimmung input { width: 20px; height: 20px; margin-top: 2px; accent-color: #000; flex: none; }
.honig { position: absolute; left: -9999px; }
.formular .btn { justify-self: start; }
@media (max-width: 560px) { .formular { grid-template-columns: 1fr; } }

.meldung { grid-column: 1 / -1; padding: 14px 18px; font-weight: 700; display: none; }
.meldung.ok { display: block; background: var(--gelb); color: var(--schwarz); }
.meldung.fehler { display: block; background: #b3261e; color: var(--weiss); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.textseite { padding: 64px 0 96px; }
.textseite h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8em; }
.textseite h2 { font-size: 1.5rem; margin-top: 1.8em; }
.textseite h3 { margin-top: 1.4em; }
.textseite .inhalt { max-width: 74ch; }
.textseite a { color: #000; font-weight: 700; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--schwarz); color: var(--text-hell); padding: 64px 0 28px; font-size: .95rem; }
.fuss__raster { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
.fuss h2 { font-size: 1rem; color: var(--weiss); margin-bottom: .9em; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--gelb); }
.fuss__logo img { height: 56px; width: auto; margin-bottom: 14px; }
.fuss__unten { margin-top: 48px; padding-top: 22px; border-top: 1px solid #222; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.sozial { display: flex; gap: 14px; }
.sozial a { color: var(--gelb); }
.sozial svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .fuss__raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss__raster { grid-template-columns: 1fr; } }

/* Handy: feste Anruf-Leiste unten */
.anrufleiste { display: none; }
@media (max-width: 900px) {
  .anrufleiste { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }
  .anrufleiste a { text-align: center; padding: 15px 8px; font: 700 1rem var(--kopf); text-decoration: none; }
  .anrufleiste a:first-child { background: var(--gelb); color: #000; }
  .anrufleiste a:last-child { background: #111; color: #fff; border-top: 1px solid #333; }
  body { padding-bottom: 54px; }
}

/* ---------- Hero mit Werkstattfoto rechts ---------- */
.hero--werkstatt { min-height: min(80vh, 700px); align-items: center; }
.hero--werkstatt::before { display: none; }
.hero--werkstatt .hero__foto { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; }
.hero--werkstatt .hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero--werkstatt .hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 28%, rgba(0,0,0,0) 60%); }
.hero--werkstatt .hero__streifen { right: auto; left: 50%; }
.hero--werkstatt .hero__streifen i:nth-child(1) { opacity: .5; }
.hero--werkstatt .hero__streifen i:nth-child(2) { opacity: .7; }
.hero--werkstatt .hero__streifen i:nth-child(3) { opacity: 1; }
.hero--werkstatt .wrap { padding-top: 80px; padding-bottom: 80px; }
.hero--werkstatt h1 { max-width: 12ch; }
.hero--werkstatt .hero__unter { max-width: 40ch; }
@media (max-width: 900px) {
  .hero--werkstatt { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero--werkstatt .hero__foto { position: relative; width: 100%; height: 300px; }
  .hero--werkstatt .hero__foto::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 55%); }
  .hero--werkstatt .hero__streifen { left: auto; right: -30px; top: 0; bottom: auto; height: 300px; }
  .hero--werkstatt .wrap { padding-top: 8px; padding-bottom: 48px; }
}

/* ---------- Gründe / Umbauten ---------- */
.gruende { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.gruende--zwei { grid-template-columns: 1fr 1fr; gap: 56px; }
.grund { border-top: 6px solid var(--gelb); padding-top: 22px; }
.weiss .grund { border-top-color: var(--schwarz); }
.grund h3 { font-size: 1.35rem; }
.weiss .grund p { color: #444; }
.dunkel .grund p { color: var(--text-hell); margin-bottom: 24px; }
@media (max-width: 860px) { .gruende, .gruende--zwei { grid-template-columns: 1fr; gap: 32px; } }
.leistung dd a { color: inherit; font-weight: 700; }

/* ---------- Kacheln Tuning / Fahrzeuge ---------- */
.abschnitt--kompakt { padding: 56px 0; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.extra { position: relative; display: block; overflow: hidden; text-decoration: none; background: #000; aspect-ratio: 16/7; }
.extra img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s, transform .3s; }
.extra:hover img { opacity: .75; transform: scale(1.03); }
.extra__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.extra__text strong { font: 700 1.35rem var(--kopf); color: var(--gelb); }
.extra__text span { color: #e4e4e4; font-size: .95rem; }
@media (max-width: 760px) { .extras { grid-template-columns: 1fr; } .extra { aspect-ratio: 16/9; } }

/* lange Auswahltexte dürfen das Raster nicht sprengen */
.kontakt > *, .formular > *, .split > *, .gruende > * { min-width: 0; }
.feld select { width: 100%; text-overflow: ellipsis; }

/* ---------- Fotoreihen ---------- */
.split--text { align-items: start; grid-template-columns: 1fr 1.1fr; }
.serie { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-top: 8px;
  scrollbar-color: var(--gelb) transparent; }
.gruende + .serie { margin-top: 44px; }
.serie__bild { flex: 0 0 clamp(200px, 24vw, 280px); aspect-ratio: 3/4; padding: 0; border: 0; background: #111; cursor: zoom-in; scroll-snap-align: start; overflow: hidden; }
.split .serie__bild { flex-basis: clamp(180px, 24vw, 215px); }
.serie__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.serie__bild:hover img { transform: scale(1.04); }
.serie::-webkit-scrollbar { height: 8px; }
.serie::-webkit-scrollbar-thumb { background: var(--gelb); }
.hell .serie::-webkit-scrollbar-thumb, .weiss .serie::-webkit-scrollbar-thumb { background: #000; }
.weiss .serie, .hell .serie { scrollbar-color: #000 transparent; }

/* ---------- Großansicht ---------- */
.lupe { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lupe::backdrop { background: rgba(0,0,0,.92); }
.lupe[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lupe img { max-width: min(92vw, 1200px); max-height: 82vh; width: auto; height: auto; object-fit: contain; }
.lupe__text { color: #ddd; margin: 14px 16px 0; text-align: center; font-size: .95rem; }
.lupe button { position: fixed; background: var(--gelb); color: #000; border: 0; font: 700 2rem/1 var(--kopf); width: 52px; height: 52px; cursor: pointer; }
.lupe__zu { top: 16px; right: 16px; }
.lupe__zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lupe__vor { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lupe__pfeil { top: auto; bottom: 16px; transform: none; } }

/* ---------- Ruhigere Farbblöcke: Folgeabschnitt gleicher Farbe ---------- */
.abschnitt--folge { padding-top: 0; }
.abschnitt--folge > .wrap { border-top: 1px solid #d6d6d6; padding-top: clamp(56px, 7vw, 88px); }
.dunkel.abschnitt--folge > .wrap { border-top-color: #3a3a3a; }
.hell.abschnitt--folge > .wrap { border-top-color: #cfcfcf; }
.split.wrap { }
.hell .presse { background: #fff; }
.hell .presse p { color: #555; }
.hell .presse a { color: #000; }
.hell .zitat { color: #000; }

/* ---------- Fakten im Titelbereich ---------- */
.fakten { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 560px; }
.fakten li { position: relative; padding-left: 20px; font: 500 .95rem var(--kopf); color: #eee; }
.fakten li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 14px; margin-top: -7px; background: var(--gelb); transform: skewX(var(--schraeg)); }

/* ---------- Leistungen: sechs große, Rest kompakt ---------- */
.top-leistungen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.top { padding: 26px 0 24px; border-top: 3px solid var(--schwarz); }
.top h3 { font-size: 1.2rem; margin-bottom: .4em; }
.top p { color: #444; margin: 0; font-size: .98rem; }
.top a { color: inherit; font-weight: 700; }
.mehr-titel { margin: 44px 0 16px; font-size: 1.05rem; }
.kompakt { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kompakt li { background: var(--hallenboden); padding: 9px 16px; font-size: .95rem; font-weight: 700; color: #222; }
@media (max-width: 900px) { .top-leistungen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .top-leistungen { grid-template-columns: 1fr; } }

/* ---------- Google-Bewertungen ---------- */
.bew-kopf { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 32px; }
.bew-kopf .titel { margin: 0; }
.bew-schnitt { display: flex; align-items: center; gap: 12px; }
.bew-schnitt[hidden] { display: none; }
.bew-zahl { font: 700 2.4rem/1 var(--kopf); }
.bew-sterne { color: #e0b400; font-size: 1.5rem; letter-spacing: 2px; }
.bew-anzahl { color: var(--grau); font-size: .95rem; }
.bew-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bew-liste:empty { display: none; }
.bew { background: var(--hallenboden); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 10px; border-left: 6px solid var(--gelb); }
.bew__sterne { color: #e0b400; letter-spacing: 2px; }
.bew__text { margin: 0; font-size: .98rem; color: #222; }
.bew__text.lang { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.bew__fuss { margin-top: auto; font-size: .88rem; color: var(--grau); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bew__fuss a { color: #000; font-weight: 700; }
.bew-links { margin-top: 32px; }
.bew-hinweis { margin: 18px 0 0; font-size: .85rem; color: var(--grau); }
.bew-hinweis[hidden], .bew-ersatz[hidden] { display: none; }
.btn--rand-dunkel { background: transparent; color: #000; border-color: #000; }
.btn--rand-dunkel:hover { background: #000; color: var(--gelb); border-color: #000; }
@media (max-width: 900px) { .bew-liste { grid-template-columns: 1fr; } }
.fakten { max-width: 470px; }
.abschnitt--folge > .wrap { border-top: 0; position: relative; }
.abschnitt--folge > .wrap::before { content: ""; position: absolute; top: 0; left: var(--rand); right: var(--rand); border-top: 1px solid #d6d6d6; }
.dunkel.abschnitt--folge > .wrap::before { border-top-color: #3a3a3a; }
.hell.abschnitt--folge > .wrap::before { border-top-color: #cfcfcf; }

/* ---------- Bilder bei den Hauptleistungen ---------- */
.top img { width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 18px; }
.top { border-top: 0; padding-top: 0; }
.top h3 { padding-top: 0; }
.top-leistungen { gap: 40px 32px; }

/* ---------- Instagram vom eigenen Server ---------- */
.ig-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-raster:empty { display: none; }
.ig-post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ig-post:hover img { transform: scale(1.05); }
.ig-post--video::after { content: "▶"; position: absolute; right: 8px; top: 6px; color: #fff; font-size: 1rem; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ig-links { margin-top: 24px; }
@media (max-width: 900px) { .ig-raster { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Karte als Bild ---------- */
.karte { position: relative; background: #ddd; }
.karte__bild { display: block; }
.karte__bild img { width: 100%; height: 460px; object-fit: cover; }
.karte__info { position: absolute; left: max(var(--rand), calc((100% - var(--breite)) / 2 + var(--rand))); top: 50%; transform: translateY(-50%);
  background: #000; color: #fff; padding: 26px 28px; max-width: 320px; border-left: 6px solid var(--gelb); }
.karte__info strong { font: 700 1.1rem var(--kopf); }
.karte__info p { margin: 8px 0 18px; color: #ddd; font-size: .95rem; }
.karte.ohne-bild .karte__bild { display: none; }
.karte.ohne-bild .karte__info { position: static; transform: none; max-width: none; }
@media (max-width: 700px) {
  .karte__bild img { height: 300px; }
  .karte__info { position: static; transform: none; max-width: none; border-left: 0; border-top: 6px solid var(--gelb); }
}
.bew-liste--vier { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .bew-liste--vier { grid-template-columns: 1fr; } }
.ig-raster { grid-template-columns: repeat(var(--anzahl, 6), 1fr); }
@media (max-width: 900px) { .ig-raster { grid-template-columns: repeat(3, 1fr); } }

/* acht Hauptleistungen: vier nebeneinander */
.top-leistungen { grid-template-columns: repeat(4, 1fr); gap: 36px 26px; }
.top h3 { font-size: 1.1rem; }
.top p { font-size: .95rem; }
@media (max-width: 1100px) { .top-leistungen { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .top-leistungen { grid-template-columns: 1fr; } }

/* Projekt mit Fotoreihe */
.projekt { margin-top: 56px; padding-top: 40px; border-top: 1px solid #3a3a3a; }
.projekt h3 { font-size: 1.35rem; }
.projekt p { color: var(--text-hell); max-width: 66ch; margin-bottom: 22px; }

/* Fahrzeugseite */
.fz-karte { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fz-karte__bild img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.fz-kontakt { margin-top: 64px; }
.fz-kontakt .btn { margin-top: 4px; }
@media (max-width: 860px) { .fz-karte { grid-template-columns: 1fr; } .fz-karte__bild { order: -1; } }

/* Fahrzeugliste (mobile.de) */
.fz-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.fz-liste:empty { display: none; }
.fz { display: flex; flex-direction: column; background: #2c2c2c; text-decoration: none; color: #fff; border-top: 4px solid var(--gelb); }
.fz:hover { background: #333; }
.fz__bild { aspect-ratio: 4/3; background: #1a1a1a; overflow: hidden; }
.fz__bild img { width: 100%; height: 100%; object-fit: cover; }
.fz__inhalt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fz__titel { font: 700 1.15rem/1.25 var(--kopf); }
.fz__zusatz { color: var(--text-hell); font-size: .9rem; }
.fz__daten { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: .9rem; color: #ddd; }
.fz__daten dt { color: #999; font-size: .78rem; }
.fz__daten dd { margin: 0 0 6px; }
.fz__preis { margin-top: auto; padding-top: 12px; font: 700 1.4rem var(--kopf); color: var(--gelb); }
@media (max-width: 960px) { .fz-liste { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fz-liste { grid-template-columns: 1fr; } }
.fz__bild:empty { background: #1a1a1a url("../img/logo.svg") center / 45% no-repeat; }

/* ===== Kopfbereich zweireihig ===== */
html { scroll-padding-top: 140px; }
.kopf { border-bottom: 0; }
.kopf .wrap { height: auto; }
.kopf__oben .wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.kopf__info { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.kopf__zeiten { color: #bbb; }
.kopf__wa { color: #fff; text-decoration: none; font: 500 .95rem var(--kopf); }
.kopf__wa:hover { color: var(--gelb); }
.kopf__info .kopf__tel { display: inline-block; color: var(--schwarz); }
.nav { margin: 0; display: block; background: #141414; border-top: 1px solid #262626; border-bottom: 3px solid var(--gelb); }
.nav__reihe { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 50px; }
.nav__reihe a { font: 500 .98rem var(--kopf); text-decoration: none; color: #fff; padding: .7em .2em; border-bottom: 3px solid transparent; }
.nav__reihe a:hover, .nav__reihe a[aria-current="page"] { color: var(--gelb); border-bottom-color: var(--gelb); }
.nav__tel { display: none !important; }
@media (max-width: 1080px) {
  html { scroll-padding-top: 90px; }
  .kopf__info { display: none; }
  .menue-btn { display: block; }
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 0; }
  .nav.offen { display: block; }
  .nav__reihe { flex-direction: column; align-items: stretch; height: auto; padding: 8px var(--rand) 20px; gap: 0; }
  .nav__reihe a { padding: .9em 0; border-bottom: 1px solid #262626; font-size: 1.05rem; }
  .nav__tel { display: block !important; margin-top: 14px; text-align: center; background: var(--gelb); color: #000 !important; border: 0 !important;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
}

/* ===== Leistungen als Karten ===== */
.top { background: #f4f4f4; border: 1px solid #e0e0e0; display: flex; flex-direction: column; padding: 0; }
.top img { margin: 0; }
.top__text { border-top: 4px solid var(--gelb); padding: 18px 20px 22px; flex: 1; }
.top__text h3 { margin-bottom: .45em; }

/* ===== Startseite: neueste Inserate ===== */
.fz-vorschau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fz-liste--start { display: contents; }
.fz-alle { position: relative; display: block; min-height: 320px; overflow: hidden; background: #000; text-decoration: none; border-top: 4px solid var(--gelb); }
.fz-alle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .2s; }
.fz-alle:hover img { opacity: .65; }
.fz-alle__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.fz-alle__text strong { font: 700 1.4rem var(--kopf); color: var(--gelb); }
.fz-alle__text span { color: #ddd; font-size: .95rem; }
.fz-vorschau:has(.fz-liste:empty) .fz-alle { grid-column: 1 / -1; min-height: 240px; }
#fahrzeuge-start .einleitung a { color: var(--gelb); font-weight: 700; }
@media (max-width: 960px) { .fz-vorschau { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fz-vorschau { grid-template-columns: 1fr; } }
@media (max-width: 1080px) {
  .nav__reihe > a { display: block; text-align: left; }
  .nav__reihe > a.nav__tel { display: block !important; text-align: center; padding: .9em 1em; }
}
@media (max-width: 1080px) { .kopf .nav__reihe { align-items: stretch; height: auto; } }
@media (min-width: 1081px) { .kopf .nav__reihe { height: 50px; } }

/* ===== WhatsApp ===== */
:root { --wa: #25D366; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #0b2e17; }
.btn--wa:hover { background: #fff; border-color: #fff; color: #0b2e17; }
.kopf__wa { display: inline-flex; align-items: center; gap: 6px; }
.kopf__wa svg { width: 18px; height: 18px; color: var(--wa); }
.kontakt__wege { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px !important; }
.kontakt__wege .btn { font-size: .95rem; }
.wa-knopf { position: fixed; right: 22px; bottom: 22px; z-index: 55; display: flex; align-items: center; gap: 8px;
  background: var(--wa); color: #0b2e17; text-decoration: none; font: 700 1rem var(--kopf); padding: 12px 18px 12px 14px;
  border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.wa-knopf svg { width: 26px; height: 26px; }
.wa-knopf:hover { background: #1ebe5a; }
.anrufleiste a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.anrufleiste svg { width: 20px; height: 20px; }
.anrufleiste a.anrufleiste__wa { background: var(--wa); color: #0b2e17; border-top: 0; }
@media (max-width: 1080px) {
  .nav__reihe > a.nav__wa { background: var(--wa); margin-top: 10px; }
}
@media (max-width: 900px) { .wa-knopf { display: none; } }
.hero--werkstatt .btns { max-width: 480px; }
