:root {
  --bg: #0e0e0f;
  --flaeche: #19191b;
  --text: #e8e6e1;
  --text-leise: #8d8a84;
  --akzent: #d9a93a;
  --rand: #2a2a2d;
  --abstand: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--text); text-decoration-color: var(--text-leise); text-underline-offset: 3px; }
a:hover { color: var(--akzent); text-decoration-color: var(--akzent); }

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px var(--abstand);
}
.logo {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.kopf nav { display: flex; gap: 20px; font-size: 0.9rem; }
.kopf nav a { text-decoration: none; color: var(--text-leise); }
.kopf nav a:hover { color: var(--akzent); }

.einstieg { padding: 8vh var(--abstand) 4vh; }
.einstieg h1 { margin: 0; font-weight: 300; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: 0.01em; }
.einstieg p { margin: 8px 0 0; color: var(--text-leise); }

.filter { padding: 0 var(--abstand); display: grid; gap: 10px; margin-bottom: 24px; }
.filtergruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filtergruppe::before {
  content: attr(data-label);
  min-width: 56px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.chip {
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-leise);
  background: transparent;
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 4px 14px;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--text-leise); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--akzent); border-color: var(--akzent); }

.raster { columns: 3 280px; column-gap: 12px; padding: 0 var(--abstand); }
.kachel {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: var(--flaeche);
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
}
.kachel img { display: block; width: 100%; height: auto; transition: transform 0.4s ease, opacity 0.3s; }
.kachel:hover img { transform: scale(1.02); }
.kachel .platzhalter {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 16px;
  text-align: center;
  color: var(--text-leise);
  font-size: 0.85rem;
}
.kachel:focus-visible, .chip:focus-visible, .lightbox button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.leer { padding: 0 var(--abstand); color: var(--text-leise); }

.text { max-width: 640px; padding: 8vh var(--abstand) 0; }
.text h2 { margin: 0 0 8px; font-weight: 400; font-size: 1.1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-leise); }
.text p { margin: 0; }

.fuss { padding: 8vh var(--abstand) 32px; color: var(--text-leise); font-size: 0.8rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(8, 8, 9, 0.96);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; min-width: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; color: var(--text-leise); font-size: 0.9rem; }
.lightbox button { background: none; border: 0; color: var(--text); font-size: 2.4rem; cursor: pointer; padding: 8px 14px; }
.lightbox button:hover { color: var(--akzent); }
.lb-zu { position: absolute; top: 8px; right: 12px; }

@media (max-width: 560px) {
  .raster { columns: 2 140px; column-gap: 8px; }
  .kachel { margin-bottom: 8px; }
  .lb-pfeil { font-size: 1.8rem; padding: 4px 6px; }
  .lightbox { gap: 0; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kachel img { transition: none; }
}
