:root {
  --bg: #0b0b0b;
  --flaeche: #161616;
  --rand: #2a2a2a;
  --text: #f2f2f2;
  --leise: #a8a8a8;
  --rot: #ff2a2a;
  --gelb: #ffd400;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
}
a { color: inherit; }

.kopf {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px;
  background: var(--gelb); color: #000;
}
.logo { font-weight: 900; font-size: 22px; letter-spacing: 3px; text-decoration: none; }
.logo span { color: #b00000; }
.claim { font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

main { max-width: 1400px; margin: 0 auto; padding: 16px; }
h1 { font-size: clamp(26px, 4vw, 42px); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: -0.5px; }
.intro { color: var(--leise); margin: 0 0 16px; }

.krumen { font-size: 14px; color: var(--leise); }
.krumen a { color: var(--rot); text-decoration: none; }

#suche {
  width: 100%; max-width: 520px; padding: 12px 14px; margin-bottom: 16px;
  background: var(--flaeche); color: var(--text);
  border: 2px solid var(--rand); border-radius: 8px; font-size: 16px;
}
#suche:focus { outline: none; border-color: var(--rot); }
.treffer { list-style: none; padding: 0; margin: 0 0 24px; max-width: 720px; }
.treffer li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rand); }
.treffer li[hidden], .treffer[hidden] { display: none; }
.treffer li span { color: var(--leise); font-size: 14px; white-space: nowrap; }
.treffer a { text-decoration: none; font-weight: 600; }
.treffer a:hover { color: var(--rot); }

.raster {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.jahre { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.karte {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--flaeche); border: 1px solid var(--rand); border-radius: 8px; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.karte:hover { transform: translateY(-3px); border-color: var(--rot); }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #222; display: block; }
.k-titel { padding: 10px 12px 2px; font-weight: 800; }
.jahre .k-titel { font-size: 28px; font-weight: 900; }
.k-info { padding: 0 12px 12px; color: var(--leise); font-size: 13px; }

.bilder {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.bild { display: block; border-radius: 4px; overflow: hidden; background: #222; }
.bild img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: opacity .15s; }
.bild:hover img { opacity: .8; }

.blaettern { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0; }
.blaettern a { color: var(--rot); text-decoration: none; font-weight: 700; }

.fuss { text-align: center; color: var(--leise); font-size: 13px; padding: 24px 16px; border-top: 1px solid var(--rand); margin-top: 24px; }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.95); display: none; z-index: 10;
      align-items: center; justify-content: center; }
.lb.offen { display: flex; }
.lb img { max-width: 96vw; max-height: 86vh; object-fit: contain; }
.lb-text { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: var(--leise); font-size: 14px; padding: 0 60px; }
.lb button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0;
  font-size: 32px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
}
.lb button:hover { background: var(--rot); }
.lb-zu { top: 12px; right: 12px; font-size: 26px !important; }
.lb-vor { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-nach { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .raster { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bilder { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .lb button { width: 44px; height: 44px; font-size: 26px; }
}
