/* =========================================================
   FALSKROG – Fotografie
   Gestaltung: kühles Kalkgrau, Graphit, Dunkelkammer für Galerien
   ========================================================= */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --kalk: #e7e8e4;
  --kalk-tief: #d6d8d3;
  --graphit: #1d2023;
  --nebel: #6c7176;
  --dunkelkammer: #16181a;
  --dunkel-linie: #2c3034;
  --iris: #7d9fbf;

  --bg: var(--kalk);
  --fg: var(--graphit);
  --fg-leise: var(--nebel);
  --linie: #c4c7c2;

  --rand: clamp(16px, 3.2vw, 48px);
  --schrift: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --kurve: cubic-bezier(.2, .7, .1, 1);
}

body.dunkel {
  --bg: var(--dunkelkammer);
  --fg: #e4e5e1;
  --fg-leise: #8b9095;
  --linie: var(--dunkel-linie);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--schrift);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--iris); color: #fff; }

:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--rand);
  mix-blend-mode: difference; color: #fff;
  pointer-events: none;
}
.kopf a { pointer-events: auto; text-decoration: none; }
.marke { font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a { position: relative; font-size: 1rem; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--kurve);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Startseite: Bühne ---------- */
.buehne {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
.buehne-bild {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(72%, 1200px);
  overflow: hidden;
}
.buehne-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%;
  transform: scale(1.08); animation: entwickeln 2.4s var(--kurve) .1s forwards;
  filter: grayscale(1) contrast(1.05) brightness(.6);
}
@keyframes entwickeln {
  to { transform: scale(1); filter: grayscale(0) contrast(1) brightness(1); }
}
.wortmarke {
  position: absolute; left: 0; right: 0; bottom: -0.11em; z-index: 2;
  margin: 0; padding: 0 var(--rand);
  font-weight: 700; line-height: .8; letter-spacing: -.045em;
  font-size: 21.2vw; white-space: nowrap;
  color: #fff; mix-blend-mode: difference;
  user-select: none;
}
.buehne-text {
  position: relative; z-index: 3; align-self: center;
  padding: 0 var(--rand); max-width: 30ch; margin-top: -16vh;
}
.buehne-text p { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.35; }
.buehne-text p + p { margin-top: .9em; color: var(--fg-leise); font-size: 1rem; }

/* ---------- Startseite: zwei Wege ---------- */
.wege {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--rand);
  padding: clamp(80px, 12vw, 180px) var(--rand) clamp(60px, 8vw, 120px);
}
.weg { text-decoration: none; display: block; }
.weg:nth-child(2) { margin-top: clamp(60px, 14vw, 220px); }
.weg-bild { overflow: hidden; aspect-ratio: 4 / 5; background: var(--kalk-tief); }
.weg-bild img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--kurve), filter 1.2s var(--kurve);
}
.weg:hover .weg-bild img { transform: scale(1.045); }
.weg-zeile {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--fg); margin-top: 14px;
}
.weg-titel { font-size: clamp(2.4rem, 6vw, 6.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.weg-anzahl { color: var(--fg-leise); font-variant-numeric: tabular-nums; }

/* ---------- Über / Kontakt ---------- */
.ueber {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--rand);
  padding: clamp(60px, 8vw, 120px) var(--rand);
  border-top: 1px solid var(--linie);
}
.ueber h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.ueber-text { max-width: 58ch; }
.ueber-text p:first-child { margin-top: 0; font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.25; letter-spacing: -.01em; }
.kontakt-liste { list-style: none; margin: 2.2em 0 0; padding: 0; display: grid; gap: 6px; }
.kontakt-liste a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.knopf {
  display: inline-flex; align-items: center; gap: .6em;
  margin-top: 2em; padding: 14px 24px; border-radius: 999px;
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600;
  transition: background .3s, color .3s;
}
.knopf:hover { background: var(--iris); color: #fff; }

/* ---------- Fuß ---------- */
.fuss {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  padding: 28px var(--rand) 32px; color: var(--fg-leise); font-size: .9rem;
  border-top: 1px solid var(--linie);
}
.fuss nav { display: flex; gap: 24px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--fg); }

/* =========================================================
   Galerie
   ========================================================= */
.galerie-kopf {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: clamp(96px, 14vh, 150px) var(--rand) 22px;
}
.galerie-titel {
  margin: 0; font-weight: 700; letter-spacing: -.05em; line-height: .82;
  font-size: clamp(4.5rem, 15vw, 15rem);
}
.galerie-steuer { display: flex; align-items: center; gap: 18px; padding-bottom: .6em; }
.zaehler { font-variant-numeric: tabular-nums; color: var(--fg-leise); min-width: 5ch; text-align: right; }
.zaehler b { color: var(--fg); font-weight: 600; }
.umschalter {
  display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; padding: 3px;
}
.umschalter button {
  font: inherit; font-size: .92rem; color: var(--fg-leise); background: none; border: 0;
  padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s;
}
.umschalter button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Horizontaler Lauf (Desktop) */
.lauf { position: relative; }
.lauf-buehne {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.lauf-band {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--rand); will-change: transform;
}
.lauf-band .bild-knopf { height: min(70svh, 780px); flex: none; }
.lauf-band .bild-knopf img { height: 100%; width: auto; }
.lauf-fortschritt {
  position: absolute; left: var(--rand); right: var(--rand); bottom: 28px; height: 1px;
  background: var(--linie);
}
.lauf-fortschritt span {
  position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0);
}
.lauf-hinweis {
  position: absolute; left: var(--rand); bottom: 42px; font-size: .85rem; color: var(--fg-leise);
  transition: opacity .6s;
}

.bild-knopf {
  position: relative; display: block; padding: 0; margin: 0; border: 0; background: var(--dunkel-linie);
  cursor: zoom-in; overflow: hidden;
}
.bild-knopf img {
  transition: transform 1s var(--kurve), opacity .8s;
  opacity: 0;
}
.bild-knopf img.geladen { opacity: 1; }
.bild-knopf:hover img { transform: scale(1.025); }
.bild-nr {
  position: absolute; left: 12px; bottom: 10px; font-size: .8rem; color: #fff;
  mix-blend-mode: difference; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .4s;
}
.bild-knopf:hover .bild-nr, .bild-knopf:focus-visible .bild-nr { opacity: 1; }

/* Raster-Übersicht */
.raster {
  columns: 3 320px; column-gap: clamp(12px, 1.6vw, 24px);
  padding: 20px var(--rand) clamp(60px, 8vw, 120px);
}
.raster .bild-knopf { width: 100%; margin-bottom: clamp(12px, 1.6vw, 24px); break-inside: avoid; }
.raster .bild-knopf img { width: 100%; height: auto; }

[hidden] { display: none !important; }

.galerie-text {
  max-width: 56ch; padding: 0 var(--rand) clamp(40px, 6vw, 80px); color: var(--fg-leise);
}

/* Mobil: senkrechte Folge statt horizontalem Lauf */
@media (max-width: 820px), (pointer: coarse) {
  .lauf { height: auto !important; }
  .lauf-buehne { position: static; height: auto; display: block; overflow: visible; }
  .lauf-band { flex-direction: column; transform: none !important; gap: 14px; padding: 8px var(--rand) 64px; }
  .lauf-band .bild-knopf { height: auto; width: 100%; }
  .lauf-band .bild-knopf img { width: 100%; height: auto; }
  .lauf-fortschritt, .lauf-hinweis { display: none; }
  .bild-nr { opacity: 1; }
}

/* =========================================================
   Lightbox mit Zoom
   ========================================================= */
.lupe {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 13, 14, .97);
  color: #e9eae6; display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  touch-action: none; overscroll-behavior: contain;
}
.lupe.offen { opacity: 1; visibility: visible; transition: opacity .35s; }
.lupe-leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--rand); position: relative; z-index: 2;
}
.lupe-zaehler { font-variant-numeric: tabular-nums; font-size: .95rem; color: #a7acb0; }
.lupe-knoepfe { display: flex; gap: 6px; }
.lupe button {
  font: inherit; color: inherit; background: rgba(255,255,255,.07); border: 0; border-radius: 999px;
  width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.lupe button:hover { background: rgba(255,255,255,.18); }
.lupe button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.lupe-flaeche { position: relative; overflow: hidden; cursor: grab; }
.lupe-flaeche.zieht { cursor: grabbing; }
.lupe-flaeche img {
  position: absolute; left: 50%; top: 50%;
  max-width: calc(100vw - 2 * var(--rand)); max-height: calc(100% - 16px);
  transform-origin: 0 0; user-select: none; -webkit-user-drag: none;
  transition: opacity .3s;
}
.lupe-flaeche img.wechsel { opacity: 0; }
.lupe-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
}
.lupe-pfeil.zurueck { left: var(--rand); }
.lupe-pfeil.vor { right: var(--rand); }
.lupe-fuss {
  padding: 10px var(--rand) 18px; text-align: center; font-size: .85rem; color: #8b9095;
}
.lupe-stufe { font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; align-self: center; font-size: .9rem; color: #a7acb0; }
@media (max-width: 820px) {
  .lupe-pfeil { display: none !important; }
  .lupe-stufe { display: none; }
}

/* ---------- Hinweis Aktfotografie ---------- */
.schleier {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(22, 24, 26, .9); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: var(--rand);
}
.schleier-box { max-width: 34rem; }
.schleier h2 { margin: 0 0 .5em; font-size: clamp(1.7rem, 3.5vw, 2.6rem); letter-spacing: -.02em; line-height: 1.1; }
.schleier p { color: #a7acb0; margin: 0 0 1.8em; }
.schleier-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.schleier .knopf { margin: 0; background: #e9eae6; color: var(--dunkelkammer); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.schleier .knopf:hover { background: var(--iris); color: #fff; }
.schleier a.zurueck { color: #a7acb0; text-underline-offset: 4px; }

/* ---------- Rechtstexte ---------- */
.recht { padding: clamp(110px, 16vh, 170px) var(--rand) 80px; max-width: 76ch; }
.recht h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.04em; line-height: .95; margin: 0 0 .8em; }
.recht h2 { font-size: 1.15rem; margin: 2.2em 0 .5em; }
.recht p, .recht li { color: var(--fg); }
.recht .platzhalter { background: #f3e3a6; color: #3a3000; padding: 0 .25em; border-radius: 2px; }

/* ---------- Fehlerseite ---------- */
.fehler { min-height: 100svh; display: grid; place-content: center; padding: var(--rand); text-align: left; }
.fehler h1 { font-size: clamp(5rem, 20vw, 16rem); margin: 0; letter-spacing: -.06em; line-height: .8; }

/* ---------- Startseite mobil ---------- */
@media (max-width: 820px) {
  .buehne-bild { width: 100%; }
  .buehne-bild::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%);
  }
  .buehne-text { color: #fff; align-self: end; margin: 0 0 30vw; }
  .buehne-text p + p { color: rgba(255,255,255,.8); }
  .wege { grid-template-columns: 1fr; gap: 56px; }
  .weg:nth-child(2) { margin-top: 0; }
  .ueber { grid-template-columns: 1fr; }
  .galerie-kopf { flex-direction: column; align-items: flex-start; }
  .galerie-steuer { width: 100%; justify-content: space-between; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .buehne-bild img { animation: none; transform: none; filter: none; }
}

/* Kopfzeile ausblenden, solange die Lupe offen ist */
html.lupe-an .kopf { opacity: 0; pointer-events: none; }
html.lupe-an .kopf a { pointer-events: none; }
