/* ==========================================================================
   lookatpicture.de – Stylesheet
   Tokens: warmes Graphit, Elfenbein, ein Hauch Champagner. Zwei Schriften:
   Instrument Serif (Display) und Manrope (Text).
   ========================================================================== */

:root {
  --bg: #fafafa;
  --bg-2: #f1f1f0;
  --bg-3: #e4e4e2;
  --ink: #0a0a0a;
  --mist: #6a6a68;
  --faint: #a3a3a0;
  --line: rgba(10, 10, 10, .12);
  --gold: #0a0a0a;
  --danger: #b4453a;

  --serif: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1600px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: inherit; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: .92; margin: 0; text-transform: uppercase; letter-spacing: .005em; }
h2 { font-size: clamp(52px, 7vw, 104px); }
p { margin: 0 0 1em; }
em { font-style: italic; }
mark { background: #fff3a8; color: var(--ink); padding: 0 .25em; border-radius: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Körnung über der ganzen Seite, sehr dezent */
.grain-defs { position: absolute; }
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 50;
  opacity: .05; filter: url(#grain); mix-blend-mode: multiply;
  background: #fff;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,1%)} 50%{transform:translate(1%,-2%)} 75%{transform:translate(-1%,-1%)} 100%{transform:translate(2%,2%)} }

/* --------------------------------------------------------------------------
   Preloader: deckt die Seite beim ersten Aufruf ab, bis die Hero-Bilder da sind
   -------------------------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--bg); display: grid; place-items: center; align-content: center; gap: 28px; }
.preloader .brand-word { font-size: clamp(28px, 4vw, 44px); }
.pre-count { font-family: var(--serif); font-weight: 800; font-size: clamp(64px, 12vw, 160px); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pre-count i { font-style: normal; font-weight: 300; font-size: .4em; margin-left: .1em; opacity: .6; }
.pre-bar { width: min(60vw, 420px); height: 1px; background: rgba(250,250,250,.2); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; background: var(--bg); transition: width .25s ease-out; }
.preloader.is-done { pointer-events: none; }
html:not(.js) .preloader { display: none; }   /* ohne JavaScript nie blockieren */

/* --------------------------------------------------------------------------
   Kopf
   -------------------------------------------------------------------------- */
.site-head {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s;
}
.site-head.is-scrolled {
  padding: 12px var(--gutter);
  background: rgba(250, 250, 250, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 14px; height: 14px; background: var(--ink); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; background: var(--bg); }
.brand-word { font-family: var(--serif); font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.brand-word em { font-style: normal; font-weight: 400; }
.brand-word.small { font-size: 24px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); position: relative; padding: 4px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; } .nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobilenav {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 0 var(--gutter); transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobilenav.is-open { transform: none; visibility: visible; }
.mobilenav a { font-family: var(--serif); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 16vw, 96px); line-height: 1; }
.mobilenav a:nth-child(n+4) { font-family: var(--sans); font-size: 16px; color: var(--mist); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Buttons, Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 0; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--bg); color: var(--ink); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.grey { background: var(--bg-3); color: var(--ink); border-color: var(--bg-3); }
.btn.grey:hover { background: var(--mist); color: var(--bg); border-color: var(--mist); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.small { padding: 9px 16px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(208,138,122,.4); }
.btn.danger:hover { background: var(--danger); color: var(--bg); border-color: var(--danger); }
.textlink { color: var(--mist); font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.textlink:hover { color: var(--ink); border-color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

/* --------------------------------------------------------------------------
   Hero – das eine große Element: Schrift links, schwebender Bildstapel rechts
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  padding: 120px var(--gutter) 80px; gap: 40px; max-width: var(--max); margin: 0 auto; overflow: visible;
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 1; }
.hero-text { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(88px, 12vw, 210px); line-height: .98; letter-spacing: .015em; letter-spacing: 0; margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; padding: .16em 0 .08em; margin: -.16em 0 -.08em; }
.hero-title em { font-style: normal; font-weight: 300; letter-spacing: .04em; }
.hero-sub { max-width: 40ch; font-size: clamp(17px, 1.4vw, 21px); color: var(--mist); font-weight: 400; margin-bottom: 36px; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.deck-wrap { position: relative; }
.deck { position: relative; height: clamp(360px, 60vh, 640px); perspective: 1400px; transform-style: preserve-3d; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.deck.is-dragging { cursor: grabbing; }
.deck-card {
  position: absolute; inset: 0; margin: auto; width: 68%; aspect-ratio: 3 / 4; transform-style: preserve-3d;
  --rot: calc(var(--i) * 7deg - 7deg); --z: calc(var(--i) * -70px); --x: calc(var(--i) * 10% - 10%);
  transform: translate3d(var(--x), 0, var(--z)) rotateZ(var(--rot));
}
.deck-face {
  position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.08);
}
.deck-front { background: var(--bg-3); }
.deck-front img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-front::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 6px #fff; pointer-events: none; }
.deck-back {
  transform: rotateY(180deg); background: var(--ink); color: var(--bg); padding: 8%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.deck-no { position: absolute; top: 8%; left: 8%; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 48px); opacity: .5; }
.deck-title { font-family: var(--serif); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 52px); line-height: .95; }
.deck-meta { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.deck-hint { position: absolute; left: 0; right: 0; bottom: -30px; margin: 0; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }


/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 56px; }
.count { color: var(--mist); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.filter { background: none; border: 1px solid var(--line); border-radius: 0; padding: 9px 16px; color: var(--mist); cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; transition: all .3s var(--ease); }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { color: var(--mist); }

.grid { columns: 2; column-gap: 40px; padding-top: 100px; } /* Puffer für das Spalten-Parallax (Bilder starten nach oben versetzt) */
.tile { break-inside: avoid; margin: 0 0 40px; position: relative; perspective: 900px; }
.tile.is-hidden { display: none; }
.tile-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2); border-radius: 0; overflow: hidden; cursor: zoom-in;
  aspect-ratio: var(--ratio); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: none;
}
.tile-btn img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s var(--ease), filter .5s; }
.tile:hover .tile-btn { box-shadow: 0 40px 70px -40px rgba(0,0,0,.45); }
.tile:hover .tile-btn img { transform: scale(1.04); }
.tile-btn::after { /* Lichtreflex, folgt dem Cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 45%);
}
.tile:hover .tile-btn::after { opacity: 1; }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; font-size: 14px; }
.tile figcaption .t { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 24px; letter-spacing: .02em; }
.tile figcaption .m { color: var(--faint); white-space: nowrap; }

/* Hinweis auf eine Geschichte zum Bild */
.has-story { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; border-bottom: 1px solid transparent; }
.has-story:hover { border-bottom-color: var(--ink); }
.tile-teaser { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 16px 14px; color: #fff; font-size: 14px; line-height: 1.45; text-align: left; font-family: var(--sans); text-transform: none; letter-spacing: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; }
.tile-teaser::before { content: "„"; font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 0; margin-right: 6px; vertical-align: -8px; }
.tile:hover .tile-teaser { opacity: 1; transform: none; }
@media (hover: none) { .tile-teaser { display: none; } }

/* Serien: gestapelte Ränder hinter der Kachel, Zähler unten rechts */
.tile.is-series .tile-btn { overflow: visible; background: transparent; }
.tile.is-series .tile-btn img { border-radius: 0; }
.tile.is-series .tile-btn::before { content: ""; position: absolute; inset: 0; background: var(--bg-3); border: 1px solid var(--line); z-index: -1;
  transform: translate(10px, -10px) rotate(1.5deg); box-shadow: 14px -14px 0 -1px var(--bg-2), 14px -14px 0 0 var(--line); transition: transform .5s var(--ease); }
.tile.is-series:hover .tile-btn::before { transform: translate(14px, -14px) rotate(2.5deg); }
.tile.is-series .tile-btn > img { position: relative; z-index: 1; }
.tile-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: var(--ink); color: var(--bg); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding: 6px 10px; pointer-events: none; }
.lb-counter { color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-fig figcaption { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(70ch, 92vw); text-align: center; }
.lb-line { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lb-counter:empty { display: none; }
.lb-desc { margin: 0; color: var(--mist); font-size: 15px; line-height: 1.5; }
.lb-desc:empty { display: none; }

/* Scroll-Reveal: Kacheln kommen aus einer Maske heraus (wird per JS animiert) */
.js .tile { clip-path: inset(0 0 100% 0); }
.js .tile.is-in { clip-path: none; }

/* --------------------------------------------------------------------------
   Übergänge zwischen den Bereichen: schwarze Fläche mit flüssigen Kanten,
   ein Wort läuft quer durch, die Kanten verformen sich beim Scrollen
   -------------------------------------------------------------------------- */
.divider { position: relative; background: var(--ink); color: var(--bg); margin: 60px 0; overflow: visible; isolation: isolate; }
.div-edge { position: absolute; left: 0; width: 100%; height: clamp(50px, 9vw, 120px); display: block; fill: var(--bg); z-index: 2; }
.div-top { top: -1px; } .div-bottom { bottom: -1px; }
.div-inner { position: relative; padding: clamp(80px, 16vw, 200px) 0; overflow: hidden; }
.div-track { display: flex; justify-content: center; width: 100%; will-change: transform; }
.div-word { display: inline-flex; font-family: var(--serif); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 12vw, 220px); line-height: .9; letter-spacing: .03em; white-space: nowrap; max-width: 100%; }
.div-word i { font-style: normal; display: inline-block; will-change: transform, opacity; }

/* --------------------------------------------------------------------------
   Über mich
   -------------------------------------------------------------------------- */
.about { background: var(--bg); }
.about-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 120px; display: grid; grid-template-columns: 2fr 3fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.about-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.about-portrait img { width: 100%; height: 115%; object-fit: cover; filter: none; margin-top: -7.5%; will-change: transform; }
.portrait-placeholder { height: 100%; border: 1px dashed var(--faint); border-radius: 4px; display: grid; place-items: center; text-align: center; color: var(--faint); font-size: 14px; padding: 20px; }
.about h2 { margin-bottom: 24px; }
.lede { font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin-bottom: 24px; }
.about-text p:not(.lede) { color: var(--mist); max-width: 60ch; }
.about-facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
.about-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 15px; }
.about-facts span { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }

/* Warum lookatpicture */
.why-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 110px); align-items: start; border-bottom: 1px solid var(--line); }
.why h2 { position: sticky; top: 110px; font-size: clamp(44px, 5.5vw, 84px); overflow-wrap: anywhere; }
.why-text p:not(.lede) { color: var(--mist); max-width: 62ch; }
.why-cta { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; color: var(--ink) !important; max-width: 24ch !important; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 140px; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 110px); }
.contact-text p { color: var(--mist); max-width: 40ch; margin-top: 20px; }
.contact-form { display: grid; gap: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
  padding: 22px 0 10px; font: inherit; resize: vertical; transition: border-color .3s; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field label {
  position: absolute; left: 0; top: 22px; color: var(--mist); pointer-events: none; transition: all .25s var(--ease); font-size: 16px;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.select label { top: 0; font-size: 12px; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--mist); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ink); }
.check a { color: var(--ink); border-bottom: 1px solid var(--line); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 14px; color: var(--mist); }
.form-status.ok { color: var(--ink); } .form-status.err { color: var(--danger); }
.contact-form.is-sent .form-status { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 26px; color: var(--ink); }

/* --------------------------------------------------------------------------
   Fuß
   -------------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 40px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-left p { color: var(--faint); font-size: 14px; max-width: 42ch; margin: 10px 0 0; }
.foot-right { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--mist); }
.foot-right a:hover, .foot-right button:hover { color: var(--ink); }
.foot-right .copy { color: var(--faint); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(250, 250, 250, .96); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-fig { margin: 0; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px clamp(44px, 6vw, 80px) 28px; gap: 14px; }
.lb-stage { flex: none; position: relative; max-width: 100%; overflow: hidden; line-height: 0; cursor: zoom-in; box-shadow: 0 50px 100px -40px rgba(0,0,0,.4); touch-action: pan-y pinch-zoom; }
.lb-stage.is-zoomed { cursor: zoom-out; touch-action: none; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100svh - 150px); width: auto; object-fit: contain; transform-origin: 50% 50%; transition: opacity .3s, transform .35s var(--ease); will-change: transform; }
.lb-stage.is-zoomed img { transition: opacity .3s; }
.lb-zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(10,10,10,.75); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; pointer-events: none; opacity: 0; transition: opacity .3s; line-height: 1.2; }
.lb-stage:hover .lb-zoom-hint { opacity: 1; }
.lb-stage.is-zoomed .lb-zoom-hint { opacity: 0; }
.lb-fig.is-switching img { opacity: 0; }
.lb-title { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; } .lb-meta { color: var(--mist); font-size: 14px; }
.lb-close, .lb-prev, .lb-next { background: none; border: 0; color: var(--ink); font-size: 44px; cursor: pointer; opacity: .6; transition: opacity .25s; line-height: 1; font-family: var(--sans); font-weight: 300; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: 40px; }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 80px; z-index: 2; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }

/* --------------------------------------------------------------------------
   Cookie-Hinweis
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 22px 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.3); transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.cookie[hidden] { display: none; }
.cookie.is-open { transform: none; opacity: 1; }
.cookie p { font-size: 14px; color: var(--mist); margin-bottom: 10px; }
.cookie strong { color: var(--ink); }
.cookie details { font-size: 13px; color: var(--mist); margin-bottom: 14px; }
.cookie summary { cursor: pointer; color: var(--ink); }
.cookie ul { padding-left: 18px; margin: 8px 0; }
.cookie a { color: var(--ink); border-bottom: 1px solid var(--line); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum, Datenschutz) und Admin
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 160px var(--gutter) 120px; }
.legal h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 20px; }
.legal h2 { font-size: 32px; margin: 44px 0 10px; }
.legal p, .legal li { color: var(--mist); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal-date { color: var(--faint); font-size: 14px; margin-top: 48px; }

.admin { max-width: 1100px; margin: 0 auto; padding: 150px var(--gutter) 120px; }
.admin h1 { font-size: 48px; }
.admin h2 { font-size: 28px; margin: 48px 0 18px; }
.admin-login { max-width: 420px; }
.admin-login p { color: var(--mist); margin: 12px 0 28px; }
.admin-login form { display: grid; gap: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; }
.msg { padding: 12px 16px; border-radius: 6px; border: 1px solid; font-size: 14px; margin-top: 20px; }
.msg.ok { border-color: var(--line); color: var(--ink); background: #fff; }
.msg.err { border-color: rgba(208,138,122,.4); color: var(--danger); }
.upload { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.upload h2 { margin-top: 0; }
.drop { display: block; border: 1px dashed var(--faint); border-radius: 6px; padding: 40px 20px; text-align: center; cursor: pointer; position: relative; transition: border-color .3s, background .3s; }
.drop:hover, .drop.is-over { border-color: var(--ink); background: #fff; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-text { color: var(--mist); } .drop-text small { display: block; margin-top: 8px; color: var(--faint); font-size: 13px; }
.drop-list { display: block; margin-top: 12px; font-size: 13px; color: var(--ink); }
.upload-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 24px 0 28px; }
.upload-meta .wide { grid-column: 1 / -1; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.admin-tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; }
.admin-tile img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.admin-tile .path { font-size: 11px; color: var(--faint); word-break: break-all; }
.admin-tile textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; border-radius: 4px; font: inherit; font-size: 13px; resize: vertical; }
.admin-tile input, .admin-tile select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; border-radius: 4px; font-size: 14px; }
.admin-tile .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* --------------------------------------------------------------------------
   Responsiv & Bewegung
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) { .grid { columns: 2; column-gap: 22px; } .tile { margin-bottom: 22px; } }
@media (max-width: 880px) {
  .nav { display: none; } .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 24px; min-height: auto; }
  .hero-title { font-size: clamp(64px, 19vw, 150px); }
  .hero-title .line { overflow-wrap: anywhere; }
  .deck-wrap { order: -1; margin-bottom: 24px; }
  .deck-hint { position: static; margin-top: 14px; }
  .deck { height: clamp(300px, 55vw, 440px); }
  .deck-card { width: 52%; }
  .about-inner, .contact-inner, .why-inner { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .about-portrait { max-width: 360px; }
  .why h2 { position: static; }
  .gallery { padding-top: 80px; }
  .lb-fig { padding: 56px 20px 20px; }
  .lb-desc { font-size: 14px; }
  .lb-title { font-size: 22px; }
  .lb-prev, .lb-next { font-size: 34px; }
  .upload-meta { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .grain { display: none; }                       /* animierter SVG-Filter ist auf Handys zu teuer */
  .site-head.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 250, 250, .96); }
  .flow { display: none; }
  .tile-btn img { transform: none; }
  .div-inner { padding: clamp(60px, 14vw, 120px) 0; }
}
@media (max-width: 560px) {
  .grid { columns: 1; }
  .deck-card { width: 62%; }
  .cookie { left: 12px; right: 12px; padding: 18px; }
  .cookie-actions { flex-direction: column-reverse; } .cookie-actions .btn { width: 100%; }
}
@media (hover: none) { .tile-btn::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .grain { animation: none; }
  .js .tile { clip-path: none; }
  .deck-card, .tile-btn, .tile-btn img { transition: none; }
  .deck-hint { display: none; }
}

/* --------------------------------------------------------------------------
   Freigabe-Bereich (Personen) und dessen Verwaltung
   -------------------------------------------------------------------------- */
.release { max-width: 1100px; }
.release h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 20px; }
.release-login { display: grid; gap: 24px; max-width: 420px; margin: 28px 0 20px; }
.release-note { color: var(--faint); font-size: 14px; }
.release-head { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.release-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding-top: 12px; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin: 32px 0; }
.release-tile { margin: 0; border: 1px solid var(--line); background: #fff; padding: 10px; transition: border-color .3s, box-shadow .3s; }
.release-tile.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.release-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.release-img img { width: 100%; height: 100%; object-fit: cover; }
.release-tile figcaption { display: grid; gap: 8px; padding: 12px 2px 4px; font-size: 14px; }
.release-check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.release-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.release-dl { color: var(--mist); border-bottom: 1px solid var(--line); width: max-content; }
.release-dl:hover { color: var(--ink); }
.release-tile small { color: var(--faint); font-size: 12px; }
.release-consent { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 18px; }
.release-consent p { color: var(--mist); max-width: 70ch; margin: 0; font-size: 15px; }
.release-form { position: relative; }
.release-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.msg a { color: inherit; text-decoration: underline; }
.person { border: 1px solid var(--line); padding: 24px; margin-top: 28px; background: #fff; }
.person-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.person-head h2 { margin: 0 0 8px; font-size: 32px; }
.person-meta { color: var(--mist); font-size: 14px; margin: 0; line-height: 1.7; }
.person-meta code { background: var(--bg-2); padding: 2px 6px; font-size: 13px; user-select: all; }
.person-tools { display: flex; gap: 8px; }
.person-upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.admin-tile.is-released { border-color: var(--ink); }
.admin-tile .status { font-size: 12px; color: var(--mist); }
@media (max-width: 560px) { .release-grid { grid-template-columns: 1fr; } }
