/* =========================================================================
   Classic Cars Peine – style.css (Etappe 1, Überarbeitung)

   Änderungen ggü. der ersten Fassung:
   - Papier-Töne entwärmt (weniger cremig/braun), --papier-3 deutlich heller
   - Header liegt jetzt im selben Wrap wie der Inhalt (fluchtet mit Hero)
   - Logo größer, Kontaktzeile füllt die vormals leere Header-Mitte
   - Buttons kräftiger (3px Kontur + harter Versatz-Schatten), Nav-Button
     nicht mehr vollflächig gefüllt
   - Headline-Zeilenhöhe gelockert (Markierung überlappte vorher)
   - Mehr Inhaltsbreite auf großen Bildschirmen

   KONTRASTE (selbst nachgerechnet, alle AAA ≥7:1):
     --blau         auf papier / -2 / -3 : 10.89 / 10.14 / 9.15
     --gruen-dunkel auf papier / -2 / -3 : 12.10 / 11.27 / 10.18
     --text         auf papier / -2 / -3 : 12.65 / 11.78 / 10.64
     --papier auf --gruen-dunkel (gefuellter Button/Sticky) : 12.10
     --papier auf --blau (gefuellter Ghost-Button)          : 10.89
   ========================================================================= */

@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald-latin-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #243657;         /* Überschriften, Links, Navigation */
  --papier: #F5F3EF;       /* primärer Hintergrund (hell, R-B 6) */
  --papier-2: #EEEBE4;     /* sekundäre Fläche (R-B 10) */
  --papier-3: #E4E0D6;     /* tertiäre Fläche (R-B 14) */
  --gruen-dunkel: #003800; /* Buttons, Marker, aktive Zustände */
  --gruen-hell: #79BB01;   /* NUR dekorative Rahmen/Akzente – nie als Textfarbe */
  --text: #2c2c28;         /* Fließtext */

  --maxw: 1240px;
}
@media (min-width: 1700px) { :root { --maxw: 1360px; } }

/* ---- Basis ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papier); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace; }
.headline {
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; color: var(--blau);
  line-height: 1.12;   /* vorher 1.05 – zu eng, Textmarkierung überlappte */
  margin: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--blau); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gruen-dunkel); color: var(--papier);
  padding: 10px 16px; border-radius: 0 0 4px 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---- Header ------------------------------------------------------------ */
header.site { background: var(--papier); border-bottom: 3px solid var(--blau); position: relative; }
.headbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img.logo { height: 120px; width: auto; }

.headright { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* Kontaktzeile: Icon + Angabe (füllt die vorher leere Header-Mitte) */
.contact { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.contact-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blau); text-decoration: none; font-weight: 700;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.9rem; letter-spacing: 0.01em;
}
.contact-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.contact-item:hover, .contact-item:focus-visible { text-decoration: underline; }

nav.main { display: flex; align-items: center; }
nav.main a {
  color: var(--blau); text-decoration: none; margin-left: 22px; font-size: 0.92rem;
  border-bottom: 3px solid transparent; padding-bottom: 3px; font-weight: 600;
}
nav.main a:first-child { margin-left: 0; }
nav.main a:hover, nav.main a:focus-visible { border-bottom-color: var(--gruen-dunkel); outline: none; }
nav.main a[aria-current="page"] { border-bottom-color: var(--gruen-dunkel); }

.navtoggle {
  display: none; background: transparent; border: 2px solid var(--blau);
  border-radius: 4px; padding: 9px 11px; cursor: pointer; line-height: 0;
}
.navtoggle .bar { display: block; width: 22px; height: 2px; background: var(--blau); margin: 4px 0; }

/* ---- Eyebrow / Feature-Liste ------------------------------------------- */
.eyebrow {
  color: var(--blau); font-size: 0.85rem; letter-spacing: 0.08em;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gruen-dunkel); display: inline-block; border-radius: 2px; }

.feature-list { list-style: none; margin: 14px 0 26px; padding: 0; }
.feature-list li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 0.92rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
  background: var(--gruen-dunkel); border-radius: 50%;
}

/* ---- Buttons -----------------------------------------------------------
   Kontur-Stil bleibt (Kundenvorgabe: nicht gefüllt außer bei Hover).
   Auffälliger gemacht über: 3px Kontur, mehr Innenabstand, größere Schrift
   und einen harten Versatz-Schatten – passt zum Werkstatt-/Stempel-Charakter
   und braucht keine Farbfüllung.                                            */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gruen-dunkel); color: var(--papier);   /* 12.10:1 */
  font-weight: 700; padding: 14px 26px; border-radius: 4px; text-decoration: none;
  border: 2px solid var(--gruen-dunkel); font-size: 1.02rem;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover, .btn:focus-visible {
  background: transparent; color: var(--gruen-dunkel); outline: none;   /* 12.10:1 */
}
.btn.ghost { background: var(--blau); color: var(--papier); border-color: var(--blau); }  /* 10.89:1 */
.btn.ghost:hover, .btn.ghost:focus-visible { background: transparent; color: var(--blau); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 58px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 18px; }
.hero .lead { font-size: 1.08rem; max-width: 48ch; margin: 0 0 8px; }

/* ---- Foto-Platzhalter --------------------------------------------------- */
.photo {
  position: relative; background: var(--papier-2);
  border: 2px dashed var(--gruen-dunkel);
  border-radius: 8px; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.photo span {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.78rem; color: var(--blau);      /* 9.14:1 */
  text-align: center; letter-spacing: 0.02em;
}
.photo.wide { aspect-ratio: 16 / 10; }

/* Echte Bilder im Foto-Slot (Platzhalterfotos von der Vorgängerseite).
   Der gestrichelte Rahmen entfällt, sobald ein echtes Bild drinsteckt. */
.photo.has-img { border: 1px solid var(--papier-3); padding: 0; overflow: hidden; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; }
.card .photo.has-img { border-left: 0; border-right: 0; border-top: 0; }

/* ---- Einzugsgebiet als Fließtext (ersetzt die Pillen-Tags) -------------- */
.region {
  border-top: 1px solid var(--gruen-hell); border-bottom: 1px solid var(--gruen-hell);
  padding: 22px 0; margin-bottom: 8px;
}
.region p { margin: 0; max-width: 88ch; font-size: 1rem; }
.region strong { color: var(--blau); font-weight: 700; }

/* ---- Sektionen ---------------------------------------------------------- */
section { padding: 46px 0; }
.section-alt { background: var(--papier-2); }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 10px; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.split p { margin: 0 0 12px; }

/* ---- Leistungs-Karten --------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.card {
  background: var(--papier); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--papier-3); display: flex; flex-direction: column;
}
.card .photo { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; aspect-ratio: 16 / 9; }
.card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  margin: 0 0 6px; font-size: 1.2rem; color: var(--blau);
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.12;
}
.card .feature-list { margin: 8px 0 18px; }
.card .more { margin-top: auto; margin-bottom: 0; }
.card a.more { color: var(--blau); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.card a.more::after { content: " →"; color: var(--gruen-dunkel); }
.card a.more:hover, .card a.more:focus-visible { text-decoration: underline; }

/* ---- CTA-Band ----------------------------------------------------------- */
.ctaband {
  background: var(--papier-3); color: var(--text); padding: 52px 28px; text-align: center;
  border-top: 1px solid var(--gruen-hell); border-bottom: 1px solid var(--gruen-hell);
}
.ctaband h2 { margin: 0 0 10px; color: var(--blau); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.ctaband p { margin: 0 auto 26px; max-width: 52ch; }
.ctaband .btn-row { justify-content: center; }

/* ---- Footer ------------------------------------------------------------- */
footer.site {
  background: var(--papier-3); color: var(--blau); padding: 38px 28px 44px; font-size: 0.86rem;
  border-top: 3px solid var(--blau);
}
footer.site .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--maxw); margin: 0 auto; }
footer.site h4 {
  font-family: "Oswald", "Arial Narrow", system-ui, sans-serif; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 1rem; margin: 0 0 12px; color: var(--blau); line-height: 1.12;
}
footer.site a { color: var(--blau); text-decoration: none; }
footer.site a:hover, footer.site a:focus-visible { text-decoration: underline; }
footer.site address { font-style: normal; line-height: 1.7; }
footer.site .contact { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 10px; }
footer.site .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 14px; }
footer.site .cookie-note { color: var(--text); max-width: 34ch; }   /* 9.45:1 */
footer.site .baseline {
  max-width: var(--maxw); margin: 26px auto 0; padding-top: 16px;
  border-top: 1px solid var(--gruen-hell); color: var(--text);
}

/* ---- Sticky Mobile CTA -------------------------------------------------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--gruen-dunkel);
  color: var(--papier); text-align: center; padding: 13px; font-weight: 700;   /* 11.14:1 */
  text-decoration: none; display: none; font-size: 0.98rem; z-index: 50;
}

/* ---- Responsiv ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid, .split, .card-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 38px 0 30px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .navtoggle { display: inline-flex; flex-direction: column; }
  .brand img.logo { height: 76px; }

  /* Kontakt + Navigation klappen gemeinsam auf */
  .headright {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 3px solid var(--blau);
    padding: 10px 28px 18px; box-shadow: 0 8px 16px rgba(36,54,87,0.12);
  }
  .headright.open { display: flex; }
  .contact { flex-direction: column; align-items: flex-start; gap: 12px; justify-content: flex-start;
             padding-bottom: 12px; border-bottom: 1px solid var(--papier-3); margin-bottom: 4px; }
  nav.main { flex-direction: column; align-items: stretch; }
  nav.main a { margin-left: 0; padding: 12px 0; border-bottom: 1px solid var(--papier-3); }

  .sticky-cta { display: block; }
  body { padding-bottom: 50px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
