/* TraktorSim - gemeinsames Aussehen aller Seiten.
   Die Farben sind die des Spielmenues (MenuTheme.cs): warmes Dunkelbraun,
   Bernstein als Akzent, cremefarbene Schrift. Nichts wird von aussen geladen -
   keine Schrift von einem CDN, kein Skript, kein Zaehler. */

:root {
  --base: #0c0a09;
  --panel: #120f0d;
  --raised: #1e1914;
  --hover: #2a231b;
  --border: rgba(255, 237, 204, 0.09);
  --text: #f2ebde;
  --muted: #beb09c;
  --dim: #8b7f70;
  --accent: #f1a423;
  --green: #6fa646;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.weit { max-width: 1600px; }

h1, h2, h3 { letter-spacing: 0.03em; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; }
h3 { font-size: 20px; }

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

.lead { color: var(--muted); font-size: clamp(17px, 2.1vw, 20px); max-width: 66ch; }
.klein { color: var(--dim); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* --- Kopfleiste ----------------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 10, 9, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.kopf .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.marke {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.marke:hover { text-decoration: none; }
.marke span { color: var(--accent); }

.kopf nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.kopf nav a { color: var(--muted); font-size: 15px; }
.kopf nav a:hover, .kopf nav a[aria-current="page"] { color: var(--accent); text-decoration: none; }

/* --- Buehne --------------------------------------------------------------- */

.buehne { position: relative; border-bottom: 1px solid var(--border); }

.buehne .bild {
  position: absolute;
  inset: 0;
  background: var(--raised) center/cover no-repeat;
  opacity: 0.55;
}

.buehne .schleier {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,10,9,0.55), rgba(12,10,9,0.35) 45%, var(--base));
}

.buehne .inhalt {
  position: relative;
  /* Nur oben und unten: die Kurzform haette das seitliche Padding der .wrap
     ueberschrieben, und Ueberschrift und Zeile klebten am Bildrand. */
  padding-top: clamp(70px, 13vw, 150px);
  padding-bottom: clamp(50px, 8vw, 90px);
}

.buehne h1 {
  font-size: clamp(38px, 8vw, 78px);
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.75);
}

.buehne h1 span { color: var(--accent); }

.buehne .unterzeile {
  margin-top: 16px;
  font-size: clamp(18px, 2.6vw, 25px);
  color: var(--text);
  max-width: 28ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.knoepfe { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.knopf {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 15px;
}

.knopf:hover { background: rgba(241, 164, 35, 0.14); text-decoration: none; }
.knopf.voll { background: var(--accent); color: #1a1206; }
.knopf.voll:hover { background: #ffb63c; }

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

section { padding: clamp(48px, 7vw, 84px) 0; }
section + section { border-top: 1px solid var(--border); }

.kopfzeile { margin-bottom: 34px; }
.kopfzeile .klein { margin-bottom: 8px; }

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.karte {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}

.karte h3 { color: var(--accent); margin-bottom: 10px; }
.karte p { color: var(--muted); font-size: 16px; }

.karte ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.karte li { margin-bottom: 4px; }

/* --- Bilderstreifen ------------------------------------------------------- */

.streifen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.streifen a {
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--raised);
}

.streifen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.streifen a:hover img { transform: scale(1.04); }

/* --- Textseiten (Impressum, Datenschutz) ---------------------------------- */

.text { max-width: 78ch; }
.text h2 { margin-bottom: 20px; }
.text h3 { margin: 32px 0 8px; color: var(--accent); }
.text p, .text li { color: var(--muted); }
.text ul { padding-left: 20px; }

.hinweis {
  border: 1px solid rgba(241, 164, 35, 0.4);
  background: rgba(241, 164, 35, 0.08);
  border-radius: 6px;
  padding: 16px 20px;
  color: var(--text);
  margin-bottom: 28px;
}

/* --- Fuss ----------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--dim);
  font-size: 14px;
}

footer .zeilen { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .kopf .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .kopf nav { width: 100%; margin-left: 0; gap: 16px; }
  .streifen { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
