:root {
  --bg: #0f0f11;
  --fg: #e8e8ea;
  --muted: #8b8b93;
  --accent: #d9b26f;
  --gap: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 14px 24px;
  background: rgba(15, 15, 17, .85);
  backdrop-filter: blur(8px);
}
nav a { margin-left: 20px; color: var(--muted); }
nav a:hover { color: var(--fg); }

.hero { padding: 12vh 24px 6vh; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); font-weight: 300; letter-spacing: .08em; }
.hero-logo { display: block; width: min(700px, 100%); height: auto; margin: 0 auto 1.2rem; }
.hero p { color: var(--muted); letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 24px 24px; }
.filters button {
  background: none; border: 1px solid #2a2a30; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .85rem;
}
.filters button:hover, .filters button.active { color: var(--fg); border-color: var(--accent); }

/* Masonry mit CSS-Spalten */
.grid { columns: 3 280px; column-gap: var(--gap); padding: 0 var(--gap); max-width: 1600px; margin: 0 auto; }
.tile {
  display: block; width: 100%; margin: 0 0 var(--gap); padding: 0; border: 0;
  break-inside: avoid; cursor: zoom-in; background: #1a1a1e; overflow: hidden; border-radius: 4px;
}
.tile img { display: block; width: 100%; height: auto; transition: transform .35s ease, opacity .35s ease; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); opacity: .9; }
.tile:focus-visible { outline: 2px solid var(--accent); }

.narrow { max-width: 680px; margin: 0 auto; padding: 80px 24px 0; }
.narrow h2 { font-weight: 300; letter-spacing: .08em; }
.about { max-width: 880px; display: flex; gap: 40px; align-items: center; }
.about h2 { margin-top: 0; }
.portrait { flex: 0 0 240px; width: 240px; height: auto; border-radius: 4px; }
.links a { margin-right: 18px; color: var(--accent); }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 80px 24px 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 12px 18px; opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .grid { columns: 1; }
  .about { flex-direction: column; align-items: flex-start; gap: 24px; }
  .portrait { flex-basis: auto; width: 200px; }
  nav a { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
