/* Gilbert Photography – Dunkelmodus, fotografisch. Keine externen Schriften, keine Tracker. */
:root {
  --bg: #000;
  --ink: #ebe8e2;
  --muted: #98948c;
  --line: rgba(255, 255, 255, .14);
  --veil: rgba(255, 255, 255, .05);
  --lock: #f0b45a;              /* Schärfe-Anzeige im Sucher, einziger Akzent */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4.5vw, 64px);
  --head-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--lock); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #000; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* Typografie */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 6.2rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--gutter); max-width: 1500px; margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 120px); }

/* Kopfbereich */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter); transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.head.is-solid { background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .01em; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; flex: none; }
.nav { display: none; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-size: .95rem; padding: 8px 0; color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--lock); }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { display: grid; place-items: center; color: var(--muted); font: 600 .78rem/1 var(--sans); letter-spacing: .06em; padding: 9px 12px; min-width: 44px; min-height: 36px; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #000; }
.burger { width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s, background .3s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 960px) { .nav { display: flex; } .burger { display: none; } }

.sheet {
  position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 20px) var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
}
.sheet.is-open { visibility: visible; opacity: 1; }
.sheet a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.2rem); text-decoration: none; padding: 6px 0; line-height: 1.15; }
.sheet .small { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.sheet .small a { font: 400 1rem var(--sans); color: var(--muted); }
body.is-locked { overflow: hidden; }
@media (min-width: 960px) { .sheet { display: none; } }

/* Sucher-Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.7); transform: scale(1.06); animation: pull 2.4s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0) 55%), linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 22%); }
@keyframes pull { to { filter: blur(0) brightness(.9); transform: scale(1); } }
.vf { position: absolute; inset: calc(var(--head-h) + 12px) var(--gutter) clamp(20px, 4vh, 44px); z-index: 2; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .75); }
.vf i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; } .vf i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; } .vf i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.vf__af { position: absolute; top: 46%; left: 50%; width: 92px; height: 66px; margin: -33px 0 0 -46px; border: 1.5px solid rgba(255, 255, 255, .85); animation: lock 2.4s cubic-bezier(.2, .7, .2, 1) .2s forwards; opacity: 0; }
@keyframes lock { 0% { opacity: 1; transform: scale(3.4); } 70% { opacity: 1; transform: scale(1); border-color: rgba(255,255,255,.85); } 85% { border-color: var(--lock); } 100% { opacity: 0; transform: scale(1); border-color: var(--lock); } }
.hero__copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(64px, 12vh, 120px); width: 100%; max-width: 1500px; margin-inline: auto; }
.hero__copy h1 { text-shadow: 0 2px 40px rgba(0, 0, 0, .5); }
.hero__copy p { margin: 16px 0 0; font-size: clamp(1rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
@media (max-width: 600px) { .vf__af { width: 64px; height: 46px; margin: -23px 0 0 -32px; } }
/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 .98rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: #000; }
.btn--solid { background: var(--ink); color: #000; } .btn--solid:hover { background: transparent; color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Abschnittskopf */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 4vw, 44px); flex-wrap: wrap; }

/* Neueste Bilder: horizontal wischbar */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.strip { --sh: clamp(240px, 42vw, 460px); }
.strip button { flex: none; height: var(--sh); width: calc(var(--sh) * var(--r, 1.5)); max-width: none; padding: 0; border: 0; background: var(--veil); cursor: zoom-in; scroll-snap-align: start; overflow: hidden; }
.strip button img { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Kategorie-Kacheln */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } .tiles .tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; } }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; background: var(--veil); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 60%); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); }
.tile__t { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile__t h3 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.tile__t span { color: var(--muted); font-size: .9rem; }

/* Photo-Prints / fotocommunity Band */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.frame { position: relative; padding: 14px; border: 1px solid var(--line); }
.frame img { width: 100%; }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--lock); }
.frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; } .frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Seiten-Titel */
.page-top { padding-top: calc(var(--head-h) + clamp(40px, 8vw, 100px)); }

/* Portfolio */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 28px 0 0; }
.filters button { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font: 500 .95rem var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filters button:hover { color: var(--ink); border-color: var(--muted); }
.filters button[aria-pressed="true"] { color: #000; background: var(--ink); border-color: var(--ink); }
.grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.grid::after { content: ""; flex-grow: 999999; }
.grid > .g { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * 260px); margin: 0; display: block; padding: 0; border: 0; background: var(--veil); cursor: zoom-in; position: relative; overflow: hidden; }
.grid > .g img { width: 100%; height: auto; }
.g img { width: 100%; transition: filter .5s, transform 1s cubic-bezier(.2, .7, .2, 1); }
.g:hover img { transform: scale(1.025); }
@media (max-width: 640px) { .grid { gap: 8px; } .grid > .g { flex-basis: calc(var(--r, 1.5) * 140px); } }
.prints { margin-top: clamp(34px, 5vw, 60px); padding-top: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); }
.prints[hidden] { display: none; }
.prints { margin-bottom: 34px; }
.prints h2 { margin-bottom: 22px; }
.prints .split { grid-template-columns: 1fr; }
.count { color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: #000; display: none; grid-template-rows: minmax(0, 1fr) auto; }
.lb.is-open { display: grid; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 56px 12px 8px; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: contain; width: auto; height: auto; animation: lbin .35s ease; }
@keyframes lbin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.lb__bar { display: flex; justify-content: flex-end; align-items: flex-end; gap: 20px; padding: 10px var(--gutter) max(18px, env(safe-area-inset-bottom)); flex-wrap: wrap; }
.lb button.ic { position: absolute; z-index: 2; background: none; border: 0; color: var(--ink); width: 48px; height: 48px; font-size: 1.7rem; cursor: pointer; display: grid; place-items: center; }
.lb .close { top: 6px; right: 6px; } .lb .prev { left: 4px; top: 50%; margin-top: -24px; } .lb .next { right: 4px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) { .lb .prev, .lb .next { top: auto; bottom: 8px; margin: 0; } .lb__stage { padding-inline: 0; } }

/* Über mich */
.about { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; align-items: start; } .about .frame { position: sticky; top: calc(var(--head-h) + 24px); } }
.note { border-left: 2px solid var(--lock); padding: 4px 0 4px 18px; margin: 1.6em 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; max-width: 60ch; }
.tag { font-size: .95rem; color: var(--muted); margin: 14px 0 28px; letter-spacing: .03em; }

/* Kontakt */
.form { max-width: 640px; margin-top: 34px; display: grid; gap: 22px; }
.field label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--muted); padding: 12px 0; font: inherit; border-radius: 0; }
.field textarea { min-height: 170px; resize: vertical; border: 1px solid var(--muted); padding: 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lock); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { min-height: 1.6em; font-size: .98rem; }
.msg.ok { color: #9ad9a6; } .msg.err { color: #f0a08a; }

/* Textseiten */
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2em 0 .6em; }
.prose p, .prose li { max-width: 68ch; }

/* Fuss */
.foot { border-top: 1px solid var(--line); padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom)); margin-top: 0; }
.foot__in { max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot a:hover { color: var(--ink); }
.foot small { color: var(--muted); display: block; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; filter: brightness(.9); transform: none; }
  .vf__af { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Bildschutz: nicht markierbar, kein Halten-zum-Speichern auf dem Handy */
img, .g, .lb, .tile, .frame { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lb__stage { position: relative; }
.lb__shield { position: absolute; inset: 56px 0 8px; z-index: 1; }
.lb__img { position: relative; z-index: 0; }
.g[hidden], .prints[hidden], #empty[hidden] { display: none !important; }
.tiles .tile--wide { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .tiles .tile--wide { aspect-ratio: 21 / 8; } }
.lb .prev, .lb .next { z-index: 3; } .lb .close { z-index: 3; }

.intro-h { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: 0 0 20px; color: var(--ink); }

.cat-intro { margin: 28px 0 0; max-width: 40em; padding-left: 20px; border-left: 2px solid var(--accent, #f0b45a); font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.cat-intro p { margin: 0; }
.cat-intro[hidden] { display: none; }
