/* =========================================================
   SK Automobile – Stylesheet
   Farben hier zentral ändern:
   ========================================================= */
:root {
  --blau-dunkel: #0f2a4a;   /* Hauptfarbe (Kopf, Fuß, Überschriften) */
  --blau: #1e5fa8;          /* Buttons, Links */
  --blau-hell: #e8f0fa;     /* helle Hintergründe */
  --weiss: #ffffff;
  --grau: #5b6675;
  --text: #1b2430;
  --rand: #d9e1ec;
  --radius: 10px;
  --max: 1100px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blau); }

h1, h2, h3 { color: var(--blau-dunkel); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blau-dunkel); color: var(--weiss); padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--blau-dunkel);
  color: var(--weiss);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px; flex-wrap: wrap;
}
.logo {
  color: var(--weiss); text-decoration: none; font-weight: 800;
  font-size: 1.25rem; letter-spacing: .02em;
}
.logo span { color: #8fb8ea; }

.nav-toggle {
  background: none; border: 1px solid rgba(255,255,255,.4); color: var(--weiss);
  border-radius: 6px; padding: .45rem .8rem; font-size: 1rem; cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; color: var(--weiss); text-decoration: none;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.main-nav a[aria-current="page"] { color: #8fb8ea; font-weight: 600; }

/* Mobil: Menü eingeklappt, wenn JavaScript aktiv ist */
.js .main-nav { display: none; width: 100%; padding-bottom: .75rem; }
.js .main-nav.offen { display: block; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .js .main-nav, .main-nav { display: block; width: auto; padding: 0; }
  .main-nav ul { display: flex; gap: 1.5rem; }
  .main-nav a { border: 0; padding: .5rem 0; }
  .main-nav a:hover { color: #8fb8ea; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--blau); color: var(--weiss);
  text-decoration: none; font-weight: 600; padding: .85rem 1.5rem;
  border-radius: var(--radius); border: 2px solid var(--blau);
  cursor: pointer; font-size: 1rem; text-align: center;
}
.btn:hover { background: #174d8a; border-color: #174d8a; }
.btn-hell { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.btn-hell:hover { background: var(--weiss); color: var(--blau-dunkel); }
.btn-gruppe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blau-dunkel) 0%, #1a4170 100%);
  color: var(--weiss); padding: 3.5rem 0 4rem;
}
.hero h1 { color: var(--weiss); }
.hero p.lead { font-size: 1.2rem; max-width: 40rem; color: #dbe6f4; }
.hero-punkte { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .4rem; }
.hero-punkte li::before { content: "✓ "; color: #8fb8ea; font-weight: 700; }

.seiten-kopf {
  background: var(--blau-dunkel); color: var(--weiss); padding: 2.5rem 0;
}
.seiten-kopf h1 { color: var(--weiss); margin: 0; }
.seiten-kopf p { color: #dbe6f4; margin: .5rem 0 0; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: 3.5rem 0; }
.abschnitt-hell { background: var(--blau-hell); }
.abschnitt-intro { max-width: 46rem; margin-bottom: 2rem; color: var(--grau); }

.karten { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .karten-4 { grid-template-columns: repeat(4, 1fr); } }

.karte {
  background: var(--weiss); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem;
}
.karte .icon { font-size: 2rem; line-height: 1; margin-bottom: .75rem; }
.karte p:last-child { margin-bottom: 0; }

.leistung { padding: 2rem 0; border-bottom: 1px solid var(--rand); }
.leistung:last-child { border-bottom: 0; }
.leistung ul { padding-left: 1.2rem; }

.zwei-spalten { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }

.platzhalter-bild {
  background: var(--blau-hell); border: 2px dashed #9fb6d3; border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  color: var(--grau); text-align: center; padding: 1rem;
}

.cta-band { background: var(--blau-dunkel); color: var(--weiss); padding: 3rem 0; text-align: center; }
.cta-band h2 { color: var(--weiss); }
.cta-band p { color: #dbe6f4; }
.cta-band .btn-gruppe { justify-content: center; }

/* ---------- Galerie ---------- */
.galerie { display: grid; gap: 2rem; }
.vorher-nachher { margin: 0; }
.vn-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.vn-bild { position: relative; }
.vn-bild img { border-radius: 8px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--blau-hell); }
.vn-label {
  position: absolute; top: .5rem; left: .5rem; background: rgba(160,40,40,.9);
  color: var(--weiss); font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px;
}
.vorher-nachher figcaption { margin-top: .5rem; color: var(--grau); font-size: .95rem; }
@media (min-width: 860px) { .galerie { grid-template-columns: 1fr 1fr; } }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .3rem; }
.feld .hinweis { font-weight: 400; color: var(--grau); font-size: .9rem; }
.feld input, .feld textarea {
  width: 100%; padding: .75rem; font: inherit; border: 1px solid #b8c4d4;
  border-radius: 8px; background: var(--weiss);
}
.feld input:focus, .feld textarea:focus { outline: 3px solid #8fb8ea; border-color: var(--blau); }
.feld textarea { min-height: 140px; resize: vertical; }
.feld-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.feld-check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.versteckt { position: absolute; left: -9999px; }

.kontakt-liste { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.kontakt-liste strong { display: block; color: var(--blau-dunkel); }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 48rem; }
.rechtstext h2 { font-size: 1.3rem; margin-top: 2rem; }
.platzhalter-hinweis {
  background: #fff6dd; border: 1px solid #f0d48a; border-radius: 8px; padding: 1rem; margin-bottom: 2rem;
}

/* ---------- Fußbereich ---------- */
.site-footer { background: #0a1d33; color: #c5d3e4; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #c5d3e4; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: var(--weiss); font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.footer-unten { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }

/* ---------- Mobile Anruf-Leiste ---------- */
.mobil-leiste {
  position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr 1fr;
  z-index: 60; box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.mobil-leiste a { padding: .9rem; text-align: center; color: var(--weiss); text-decoration: none; font-weight: 600; }
.mobil-leiste a:first-child { background: var(--blau); }
.mobil-leiste a:last-child { background: var(--blau-dunkel); }
body { padding-bottom: 3.2rem; }
@media (min-width: 860px) { .mobil-leiste { display: none; } body { padding-bottom: 0; } }

/* ---------- Öffnungszeiten ---------- */
.zeiten {
  margin-top: .5rem; background: var(--blau-hell); border-left: 4px solid var(--blau);
  border-radius: 8px; padding: .9rem 1rem; max-width: 26rem;
}
.zeiten-zeile {
  display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0;
  border-bottom: 1px solid var(--rand);
}
.zeiten-zeile span:first-child { font-weight: 600; color: var(--blau-dunkel); }
.zeiten-zeile span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zeiten-extra { margin: .6rem 0 0; font-size: .93rem; color: var(--grau); }
.offen-status { margin: .6rem 0 0; font-weight: 600; font-size: .93rem; }
.offen-status::before {
  content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%;
  margin-right: .45rem; background: #9aa5b4;
}
.offen-status.ist-offen { color: #1d7a3a; }
.offen-status.ist-offen::before { background: #22a04b; }
.fuss-zeiten span { display: inline-block; min-width: 4rem; color: var(--weiss); font-weight: 600; }
.rechtstext .quelle { margin-top: 2.5rem; font-size: .85rem; color: var(--grau); }
.rechtstext .quelle a { color: var(--grau); }
.mobil-leiste a:nth-child(2) { background: #1f8f4e; }
.mobil-leiste a { padding: .9rem .4rem; font-size: .95rem; }
.rechtstext h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.rechtstext h4 { font-size: 1rem; margin: 1.2rem 0 .4rem; color: var(--blau-dunkel); }
.rechtstext ul { padding-left: 1.2rem; }

/* ---------- Bilder ---------- */
/* Großes Bild oben auf der Startseite: bilder/hero.jpg (wird abgedunkelt, damit der Text lesbar bleibt) */
.hero {
  background:
    linear-gradient(100deg, rgba(10,29,51,.92) 0%, rgba(15,42,74,.78) 55%, rgba(15,42,74,.45) 100%),
    url(../bilder/hero.jpg) center / cover no-repeat,
    linear-gradient(135deg, var(--blau-dunkel) 0%, #1a4170 100%);
  padding: 4.5rem 0 5rem;
}
@media (min-width: 860px) { .hero { padding: 7rem 0 7.5rem; } }
/* Kopfbereich der Unterseiten: gleiches Bild, stärker abgedunkelt */
.seiten-kopf {
  background:
    linear-gradient(rgba(10,29,51,.88), rgba(10,29,51,.88)),
    url(../bilder/hero.jpg) center / cover no-repeat,
    var(--blau-dunkel);
  padding: 3rem 0;
}
/* Foto-Rahmen in Textabschnitten: bilder/werkstatt.jpg */
.foto {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--blau-hell) center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(15,42,74,.18);
}
/* Karten etwas lebendiger */
.karte { transition: transform .15s ease, box-shadow .15s ease; border-top: 4px solid var(--blau); }
.karte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,42,74,.12); }
.leistung-mit-bild { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 860px) {
  .leistung-mit-bild { grid-template-columns: 3fr 2fr; gap: 2.5rem; }
  .leistung-mit-bild:nth-of-type(even) > .foto { order: -1; }
  .leistung-mit-bild:nth-of-type(even) { grid-template-columns: 2fr 3fr; }
}
.foto-breit { aspect-ratio: 16 / 9; background-position: 30% center; }
.foto-hoch { aspect-ratio: 4 / 5; background-position: center 30%; max-height: 520px; width: 100%; }

/* ---------- Fahrzeuge (mobile.de) ---------- */
.btn-weiss { background: var(--weiss); color: var(--blau-dunkel); border-color: var(--weiss); }
.btn-weiss:hover { background: #dbe6f4; border-color: #dbe6f4; }
.abschnitt-fahrzeuge { padding-top: 0; }
.fahrzeuge-teaser {
  color: var(--weiss); border-radius: var(--radius); padding: 2.5rem 1.5rem;
  background: linear-gradient(rgba(10,29,51,.88), rgba(10,29,51,.88)), url(../bilder/autohandel.jpg) center / cover no-repeat, var(--blau-dunkel);
  box-shadow: 0 10px 30px rgba(15,42,74,.18);
}
.fahrzeuge-teaser h2 { color: var(--weiss); margin-top: 0; }
.fahrzeuge-teaser p { color: #dbe6f4; max-width: 34rem; }
.fahrzeuge-teaser .hero-punkte { margin: 1.25rem 0 1.75rem; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; margin: 0 0 .5rem; color: #8fb8ea !important; }
@media (min-width: 860px) {
  .fahrzeuge-teaser {
    padding: 3.5rem 3rem;
    background: linear-gradient(90deg, rgba(10,29,51,.96) 0%, rgba(15,42,74,.88) 50%, rgba(15,42,74,.25) 100%), url(../bilder/autohandel.jpg) center / cover no-repeat, var(--blau-dunkel);
  }
}

/* ---------- Vorher/Nachher (Startseite & Galerie) ---------- */
.vn-label-nachher { background: rgba(31,143,78,.95); }
.vn-bild img { box-shadow: 0 10px 30px rgba(15,42,74,.18); }
.vn-start { max-width: 520px; width: 100%; justify-self: center; }
.kicker-dunkel { color: var(--blau) !important; }
.galerie-folgt {
  border: 2px dashed #b9cde6; border-radius: var(--radius); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--grau); min-height: 220px;
}
.galerie-folgt p { margin: .25rem 0; }
.galerie-folgt-icon { font-size: 2rem; }

/* ---------- Logo ---------- */
.logo { display: block; line-height: 0; padding: .35rem 0; }
.logo img { height: 36px; width: auto; }
@media (min-width: 860px) { .logo img { height: 42px; } }
.fuss-logo { margin: 0 0 1rem; line-height: 0; }
.fuss-logo img { width: 230px; height: auto; }

/* ---------- Geschichte (Über uns) ---------- */
.geschichte { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .geschichte { grid-template-columns: 1fr 1fr; } }
.geschichte-logo {
  background: var(--weiss); border-radius: var(--radius); padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(15,42,74,.12); display: flex; justify-content: center;
}
.geschichte-logo img { width: 100%; max-width: 420px; height: auto; }
.geschichte-jahr { font-size: 3.5rem; font-weight: 800; line-height: 1; margin: 0 0 .25rem; color: #c8102e; }

/* ---------- Google-Bewertung (Startseite) ---------- */
.bewertung {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem;
  margin-top: 1.75rem; padding: .7rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: var(--weiss); text-decoration: none; font-size: .98rem;
  backdrop-filter: blur(4px);
}
.bewertung:hover { background: rgba(255,255,255,.18); }
.sterne {
  font-size: 1.2rem; letter-spacing: .1em; line-height: 1;
  background: linear-gradient(90deg, #f5b301 var(--wert, 100%), rgba(255,255,255,.35) var(--wert, 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bewertung-link { color: #8fb8ea; font-weight: 600; }
