/* nknueppel – photos · dunkles, schlichtes Design ohne externe Schriften oder Dienste */
:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --line: #262626;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
img { max-width: 100%; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px var(--gutter); background: rgba(11, 11, 11, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.site-header.overlay { position: absolute; inset: 0 0 auto 0; background: transparent; backdrop-filter: none;
  border-bottom: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.logo { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px;
  margin: 0; padding: 0; font-size: 14px; font-weight: 600; }
.site-header nav a { opacity: .85; transition: opacity .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { opacity: 1; }
.site-header nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; font: 600 14px var(--font);
  letter-spacing: .08em; cursor: pointer; padding: 8px 0; text-shadow: inherit; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-header nav { position: fixed; inset: 0; z-index: 1; display: none; background: rgba(5, 5, 5, .97);
    padding: 96px var(--gutter) 40px; overflow-y: auto; }
  .site-header nav ul { flex-direction: column; align-items: flex-start; gap: 18px; font-size: 22px; font-weight: 400; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { backdrop-filter: none; }
  body.menu-open .site-header nav { display: block; }
}

/* ---------- Startseite ---------- */
.cover { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--img) center / cover no-repeat fixed; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 160px),
              linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 45%); }
.cover h1 { position: relative; z-index: 1; margin: 0; padding: 0 var(--gutter) clamp(40px, 8vh, 80px);
  font-weight: 300; font-size: clamp(42px, 8vw, 104px); letter-spacing: .01em; line-height: 1; }
.cover h1 span { display: block; margin-top: 14px; font-size: .26em; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; opacity: .9; }
.scroll-hint { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(40px, 8vh, 80px);
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.cover-second { min-height: 70vh; }
.cover-second::after { background: none; }
/* Handys und Tablets können keinen festen Hintergrund: dort scrollt das Bild normal mit */
@media (hover: none), (max-width: 860px) { .cover { background-attachment: scroll; } .cover-second { min-height: 45vh; } }

.quote { max-width: 780px; margin: 0 auto; padding: clamp(72px, 12vw, 150px) 16px; text-align: center; }
.quote p { margin: 0 0 26px; font-size: clamp(21px, 2.7vw, 31px); font-weight: 300; line-height: 1.45; }
.quote p.fr { color: var(--muted); font-size: clamp(17px, 2vw, 22px); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted); }

.tiles { padding: clamp(56px, 8vw, 100px) var(--gutter); }
.tiles h2, .eyebrow { margin: 0 0 28px; font-size: 13px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.tile:hover img { transform: scale(1.04); }
/* Kachel-Vorschau: weitere Fotos der Galerie blenden nacheinander über das Titelbild */
.tile img.pv { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, transform .7s ease; }
.tile img.pv.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tile img.pv { transition: none; } }
.tile span { z-index: 1; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px; font-weight: 600; font-size: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }

/* ---------- Unterseiten ---------- */
.page main { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.page-title { margin: 0; padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
  font-weight: 300; font-size: clamp(32px, 5vw, 60px); line-height: 1.1; }
.narrow { max-width: 760px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); margin: 0 0 8px; }
.mail { font-size: clamp(22px, 3vw, 34px); font-weight: 300; margin: 0; }
.mail a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.mail a:hover { border-color: currentColor; }
.lead a { border-bottom: 1px solid currentColor; }

.legal h2 { margin: 40px 0 10px; font-size: 18px; font-weight: 600; }
.legal p { color: #cfcfcf; margin: 0 0 14px; }
.legal a { border-bottom: 1px solid var(--line); word-break: break-word; }

/* ---------- Galerie (gleich hohe Reihen, Reihenfolge bleibt erhalten) ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery::after { content: ""; flex-grow: 1000000; }
.g-item { position: relative; display: block; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 280px);
  background: var(--surface); overflow: hidden; cursor: zoom-in; }
.g-item img { display: block; width: 100%; height: auto; transition: opacity .3s, transform .6s ease; }
.g-item:hover img { opacity: .88; transform: scale(1.015); }
@media (max-width: 600px) { .g-item { flex-basis: calc(var(--r) * 150px); } .gallery { gap: 4px; } }

/* ---------- Bildbetrachter ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .96); touch-action: pan-y; }
.lb.open { display: flex; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); max-height: calc(100svh - 110px);
  object-fit: contain; user-select: none; transition: opacity .2s; }
.lb img.loading { opacity: .25; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .75;
  font: 300 34px/1 var(--font); padding: 16px; }
.lb button:hover { opacity: 1; }
.lb .lb-close { top: 8px; right: 8px; font-size: 30px; }
.lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px;
  letter-spacing: .15em; color: var(--muted); }
@media (max-width: 600px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 4px; transform: none; } }
body.lb-open { overflow: hidden; }

/* ---------- Fußzeile ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding: 32px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a:hover { color: var(--text); }
