:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --muted: #6b6b68;
  --line: #e4e3df;
  --star: #1a1a1a;
  --star-off: #cfcdc7;
  --overlay: #fafaf8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #ecebe8;
    --muted: #9a9994;
    --line: #2a2a29;
    --star: #ecebe8;
    --star-off: #4a4a48;
    --overlay: #121212;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.site-header { padding: 48px 0 40px; }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; font-weight: 500; }
.site-header nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--fg); }

.intro { margin: 0 0 48px; max-width: 640px; }
.intro h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 300; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 12px; }
.intro p { color: var(--muted); margin: 0; }
.back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.back:hover { color: var(--fg); }

/* Kategorien */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 48px 32px;
  margin-bottom: 96px;
}
.cat { text-decoration: none; display: block; }
.cat-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s; }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat h2 { font-size: 18px; font-weight: 500; margin: 16px 0 2px; display: flex; justify-content: space-between; gap: 12px; }
.cat h2 span { font-weight: 400; color: var(--muted); font-size: 14px; }
.cat p { margin: 0; color: var(--muted); font-size: 14px; }

/* Fotos */
.photos { columns: 3 340px; column-gap: 32px; margin-bottom: 96px; }
.photo { break-inside: avoid; margin: 0 0 48px; }
.photo button.open { all: unset; cursor: zoom-in; display: block; width: 100%; }
.photo button.open:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.photo img { width: 100%; background: var(--line); }
.photo figcaption { padding-top: 14px; }
.photo h3 { font-size: 16px; font-weight: 500; margin: 0 0 2px; }
.photo p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

/* Bewertung */
.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.stars { display: inline-flex; }
.stars button {
  all: unset; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 2px; color: var(--star-off);
  transition: color 0.15s;
}
.stars button.on { color: var(--star); }
.stars button:focus-visible { outline: 1px solid var(--fg); }
.stars.voted button { cursor: default; }
.stars:not(.voted):hover button { color: var(--star); }
.stars:not(.voted) button:hover ~ button { color: var(--star-off); }
.rating .avg { font-variant-numeric: tabular-nums; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh; background: var(--overlay); color: var(--fg);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-caption { padding: 12px 24px 28px; text-align: center; }
.lb-caption h3 { margin: 0; font-size: 16px; font-weight: 500; }
.lb-caption p { margin: 2px 0 10px; font-size: 14px; color: var(--muted); }
.lb-caption .rating { justify-content: center; }
.lb-btn {
  all: unset; position: absolute; cursor: pointer; color: var(--muted); font-size: 28px; line-height: 1;
  padding: 12px; user-select: none;
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--fg); }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* Textseiten */
.text { max-width: 680px; margin-bottom: 96px; }
.text h1 { font-size: 32px; font-weight: 300; margin: 0 0 32px; }
.text h2 { font-size: 17px; font-weight: 500; margin: 36px 0 8px; }
.text p, .text li { color: var(--fg); font-size: 15px; }
.text address { font-style: normal; }

/* Fuß */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 28px 0 28px; }
  .photos { column-gap: 0; }
}
