/* Camperpass: Website. Farben aus marke/LOGO.md und src/ui/theme.ts der App.
   Orange (#E8833A) kommt nur im Logo vor. Pro Bildschirm eine Fläche in Petrol. */

:root {
  --creme: #F4EDE1;
  --weiss: #FFFFFF;
  --petrol: #12423F;
  --anthrazit: #1F2A2B;
  --neben: #46514F;
  --linie: #DDD4C4;
  --linie-stark: #BDB3A1;
  --platzhalter: #E9E0D0;
  --rahmen: 1120px;
  --radius: 14px;
  --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--anthrazit);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 650; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.rahmen {
  max-width: var(--rahmen);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 237, 225, 0.92);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: saturate(140%) blur(8px);
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 64px;
}
.kopf-logo img { width: 174px; height: auto; }
.kopf-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.kopf-nav a {
  color: var(--anthrazit); text-decoration: none; font-weight: 550;
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.kopf-nav a:hover { border-bottom-color: var(--petrol); }

/* ---------- Bühne ---------- */

.buehne { padding: 72px 0 56px; }
.buehne-innen {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: center;
}
.vorzeile {
  font-size: 0.875rem; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--petrol); margin-bottom: 18px;
}
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.einleitung { font-size: 1.2rem; line-height: 1.5; margin-bottom: 18px; }
.herz {
  font-size: 1.2rem; line-height: 1.5;
  color: var(--petrol);
  border-left: 3px solid var(--petrol);
  padding-left: 18px;
  margin-bottom: 30px;
}
.laden { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store { display: inline-block; line-height: 0; }
.store img { width: 150px; height: auto; }
.laden-hinweis { color: var(--neben); font-size: 0.95rem; }

.buehne-foto { margin: 0; }
.buehne-foto figcaption, .foto-gross figcaption {
  color: var(--neben); font-size: 0.9rem; margin-top: 10px;
}

/* ---------- Fotos (Platzhalter in Beige, bis echte Fotos da sind) ---------- */

.foto {
  width: 100%;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, #EFE6D6 0%, var(--platzhalter) 55%, #E2D8C5 100%);
  border: 1px solid var(--linie);
  position: relative; overflow: hidden;
}
.foto::after {
  /* Horizont und Sonne, Anspielung auf die Bildmarke, als stille Andeutung */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 34%;
  height: 2px; background: var(--linie-stark); opacity: 0.6;
}
.foto-hoch { aspect-ratio: 4 / 5; }
.foto-breit { aspect-ratio: 16 / 9; }
.foto-quadrat { aspect-ratio: 1; }
.foto.klein { width: 160px; height: 160px; flex: none; }

/* ---------- Abschnitte ---------- */

section { padding: 64px 0; }
section h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.abschnitt-einleitung { font-size: 1.15rem; max-width: 720px; color: var(--neben); margin-bottom: 32px; }

.band { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.band h2 { margin-bottom: 32px; max-width: 760px; }

.karten { display: grid; gap: 20px; }
.karten.vier { grid-template-columns: repeat(4, 1fr); }
.karten.drei { grid-template-columns: repeat(3, 1fr); }
.karte {
  background: var(--creme);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.band .karte { background: var(--creme); }
.app .karte { background: var(--weiss); }
.karte h3 { font-size: 1.2rem; margin: 0 0 10px; }
.karte p { color: var(--neben); font-size: 1rem; }
.symbol { width: 34px; height: 34px; color: var(--petrol); margin-bottom: 16px; }

/* ---------- Das ist Emma ---------- */

.vorstellung { padding-bottom: 24px; }
.fahrzeug {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 28px;
}
.fahrzeug h2 { font-size: 1.9rem; margin-bottom: 4px; }
.fahrzeug-meta { color: var(--neben); font-size: 0.95rem; margin-bottom: 10px; }
.zahlen { display: grid; grid-auto-flow: column; gap: 28px; margin: 0; }
.zahlen dt { font-size: 0.8rem; color: var(--neben); letter-spacing: 0.06em; text-transform: uppercase; }
.zahlen dd { margin: 2px 0 0; font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }

/* ---------- Verlauf ---------- */

.verlauf { padding-top: 40px; }
.verlauf-titel { margin-bottom: 8px; }
.verlauf-unter { color: var(--neben); max-width: 640px; margin-bottom: 48px; }

.jahr {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 260px;
  gap: 32px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--linie-stark);
}
.jahr-kopf { position: sticky; top: 84px; align-self: start; }
.jahr-titel { display: flex; flex-direction: column; gap: 4px; }
.jahr-zahl {
  font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--petrol); font-variant-numeric: tabular-nums;
}
.jahr-name { font-size: 1.1rem; font-weight: 650; color: var(--anthrazit); }
.jahr-satz { color: var(--neben); font-size: 0.95rem; margin-top: 10px; line-height: 1.4; }

.foto-gross { margin: 0 0 20px; }

.eintraege {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden;
}
.eintrag {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center;
  gap: 16px; padding: 14px 18px; min-height: 76px;
  border-top: 1px solid var(--linie);
}
.eintrag:first-child { border-top: 0; }
.vorschau {
  width: 56px; height: 56px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.vorschau.pdf { background: var(--creme); border: 1.5px solid var(--linie-stark); color: var(--petrol); }
.vorschau.bild { background: linear-gradient(150deg, #EADFCB, #D9CDB6); }
.eintrag-text { display: flex; flex-direction: column; min-width: 0; }
.eintrag-text strong { font-weight: 650; }
.eintrag-meta { color: var(--neben); font-size: 0.9rem; margin-top: 2px; }
.eintrag-rechts { font-variant-numeric: tabular-nums; color: var(--anthrazit); font-weight: 550; white-space: nowrap; }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 650; white-space: nowrap;
  background: var(--petrol); color: var(--creme);
}
.pill.offen { background: transparent; color: var(--anthrazit); border: 1.5px solid var(--anthrazit); }

.jahr-app {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 22px 22px 20px; align-self: start; position: sticky; top: 84px;
}
.app-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--petrol); margin-bottom: 8px;
}
.jahr-app p:last-child { color: var(--anthrazit); font-size: 0.98rem; line-height: 1.5; }

/* ---------- Übergabemappe: die eine Fläche in Petrol ---------- */

.mappe { background: var(--petrol); color: var(--creme); padding: 80px 0; }
.mappe-innen { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mappe .jahr-zahl.hell { color: var(--creme); opacity: 0.85; }
.mappe .jahr-name { color: var(--creme); font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.mappe h2 { margin-bottom: 18px; }
.mappe-satz { font-size: 1.35rem; line-height: 1.4; font-weight: 550; margin-bottom: 18px; }
.mappe-text p:last-child { opacity: 0.9; }

.mappe-blatt {
  background: var(--weiss); color: var(--anthrazit); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.blatt-titel { font-weight: 700; font-size: 1.25rem; margin-bottom: 2px; }
.blatt-unter { color: var(--neben); font-size: 0.9rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--linie); }
.blatt-liste li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: 0.98rem;
}
.blatt-liste li:last-child { border-bottom: 0; }
.blatt-liste strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Wissen ---------- */

.fragen { max-width: 760px; margin-bottom: 24px; }
.fragen li {
  padding: 16px 0; border-top: 1px solid var(--linie); font-size: 1.1rem; font-weight: 550;
}
.fragen li:last-child { border-bottom: 1px solid var(--linie); }
.textlink { font-weight: 650; }

/* ---------- Die App ---------- */

.app { background: var(--weiss); border-top: 1px solid var(--linie); }
.so-geht-es { margin-top: 44px; max-width: 760px; }
.so-geht-es h3 { font-size: 1.3rem; margin-bottom: 16px; }
.schritte { counter-reset: schritt; }
.schritte li {
  counter-increment: schritt; position: relative;
  padding: 10px 0 10px 52px; color: var(--neben);
}
.schritte li strong { color: var(--anthrazit); }
.schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--creme); border: 1.5px solid var(--linie-stark);
  font-weight: 700; color: var(--petrol); font-size: 0.95rem;
}
.laden-unten { margin-top: 36px; }

/* ---------- Unterseiten ---------- */

.seite { padding: 40px 0 72px; }
.seite-innen { max-width: 760px; }
.pfad { font-size: 0.9rem; color: var(--neben); margin-bottom: 28px; }
.pfad a { color: var(--neben); }
.seite-innen h1 { margin-bottom: 24px; }
.seite-innen h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.seite-innen h2:first-of-type { margin-top: 32px; }
.seite-innen p { margin: 0 0 16px; }
.seite-innen .einleitung { margin-bottom: 8px; }
.seite-innen .erinnerung { margin-top: 48px; }

@media (max-width: 600px) {
  .seite { padding: 28px 0 56px; }
  .seite-innen h2 { margin-top: 36px; }
}

/* ---------- Fuß ---------- */

.fuss { background: var(--anthrazit); color: var(--creme); padding: 48px 0; }
.fuss-innen { display: grid; gap: 20px; }
.fuss-logo img { width: 180px; height: auto; }
.fuss-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.fuss-nav a { color: var(--creme); text-decoration: none; font-weight: 550; }
.fuss-nav a:hover { text-decoration: underline; }
.anbieter { font-style: normal; line-height: 1.6; margin: 0 0 16px; }
.fuss-zeile { color: var(--creme); opacity: 0.8; font-size: 0.9rem; }

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 960px) {
  .buehne-innen, .mappe-innen { grid-template-columns: 1fr; gap: 36px; }
  .karten.vier { grid-template-columns: 1fr 1fr; }
  .jahr { grid-template-columns: 120px minmax(0, 1fr); }
  .jahr-app { grid-column: 2; position: static; }
  .fahrzeug { grid-template-columns: auto 1fr; }
  .zahlen { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  section { padding: 48px 0; }
  .buehne { padding-top: 40px; }
  .kopf-innen { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 6px; }
  .kopf-nav { gap: 18px; }
  .kopf-nav a { padding: 6px 0; font-size: 0.95rem; }
  .karten.vier, .karten.drei { grid-template-columns: 1fr; }
  .fahrzeug { grid-template-columns: 1fr; padding: 22px; }
  .foto.klein { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .zahlen { grid-auto-flow: row; grid-template-columns: auto auto auto; justify-content: space-between; gap: 12px; }
  .zahlen dd { font-size: 1.35rem; }
  .jahr { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 36px; }
  .jahr-kopf { position: static; }
  .jahr-titel { flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .jahr-zahl { font-size: 2rem; }
  .jahr-app { grid-column: auto; }
  .eintrag { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .vorschau { width: 48px; height: 48px; }
  .mappe { padding: 56px 0; }
  .mappe-blatt { padding: 22px 20px; }
  .fuss-nav { flex-direction: column; gap: 12px; }
}

/* ---------- Symbole in Einträgen und Skizze in Platzhaltern ---------- */

.vorschau.sym { background: var(--creme); border: 1.5px solid var(--linie); color: var(--petrol); }
.vorschau.sym svg { width: 28px; height: 28px; }
.foto { display: grid; place-items: center; color: var(--petrol); }
.skizze { width: 38%; max-width: 220px; opacity: 0.55; }
.foto.klein .skizze { width: 60%; }
.foto-hinweis {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--neben); opacity: 0.8;
}
.foto::after { display: none; }

/* Echte Fotos */
img.foto { object-fit: cover; display: block; border: 1px solid var(--linie); }
img.foto.klein { width: 160px; height: 160px; }
@media (max-width: 640px) { img.foto.klein { width: 100%; height: auto; aspect-ratio: 16 / 9; } }
