/* Bildformat.sport – Schwarz, starker Kontrast. Schriften lokal (OFL). */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #000; --surface: #0e0e0e; --surface-2: #181818;
  --ink: #fff; --muted: #b8b8b8;              /* muted auf Schwarz: 10:1 */
  --line: rgb(255 255 255 / .16);
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Figtree", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gut: 20px; --max: 1360px; --r: 14px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gut: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-family: var(--display); font-weight: 800; font-stretch: 75%; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: #fff; color: #000; padding: 12px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knöpfe – Gefühl wie bei naim-sabani: 48 px hoch, hebt sich beim Zeigen, drückt beim Klick */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 2px;
  font: 600 16px/1 var(--text); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: #fff; color: #000; }
.btn--primary:hover { background: #d9d9d9; }
.btn--secondary { border-color: rgb(255 255 255 / .45); color: var(--ink); background: transparent; }
.btn--secondary:hover { border-color: #fff; }
.btn[aria-current="page"] { box-shadow: inset 0 -3px 0 currentColor; }

/* Kopfzeile: Logo links, Portfolio + Vorstellung rechts */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(0 0 0 / .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .topbar { background: rgb(0 0 0 / .78); backdrop-filter: blur(8px); } }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; min-height: 48px; }
.brand svg { width: 46px; height: 46px; flex: none; transition: transform .4s var(--ease); }
.brand:hover svg { transform: rotate(-12deg); }
.brand__name { display: none; }
.brand__name span { font-weight: 400; color: var(--muted); }
.actions { display: flex; gap: 8px; }
.actions .btn { height: 44px; padding: 0 14px; font-size: 15px; }
@media (min-width: 560px) { .brand__name { display: inline; } }
@media (min-width: 768px) { .actions { gap: 12px; } .actions .btn { height: 48px; padding: 0 22px; font-size: 16px; } }

/* Titel */
.hero { padding: 36px 0 28px; }
.hero__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero__head svg { width: clamp(84px, 13vw, 176px); height: auto; flex: none; }
.hero h1 { font-size: clamp(50px, 13.5vw, 150px); text-transform: uppercase; letter-spacing: -0.02em; line-height: .9; overflow-wrap: anywhere; hyphens: manual; }
.hero__rule { border: 0; border-top: 1px solid #fff; margin: 22px 0 16px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
@media (min-width: 768px) { .hero { padding: 64px 0 40px; } .hero__lead { font-size: 21px; } }

/* Seitenleiste mit Reitern + Bildflächen */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 64px; }
.layout > * { min-width: 0; }
.rail { position: sticky; top: 68px; z-index: 20; background: var(--bg); margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut); border-bottom: 1px solid var(--line); }
.rail h2 { font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rail li { flex: none; }
.rail a { display: flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background-color .18s, border-color .18s, color .18s; }
.rail a:hover { border-color: #fff; }
.rail a[aria-current="page"], .rail a.is-active { background: #fff; color: #000; border-color: #fff; }
.rail .rail__h { display: none; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
  .rail { top: 92px; margin: 0; padding: 18px 14px; border: 1px solid var(--line); border-radius: var(--r); }
  .rail ul { flex-direction: column; gap: 4px; overflow: visible; }
  .rail a { border: 0; border-radius: 8px; height: 46px; padding: 0 14px; font-size: 16px; justify-content: space-between; }
  .rail a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); }
  .rail a:hover { background: var(--surface-2); }
  .rail a:hover::after { opacity: 1; transform: none; }
  .rail .rail__h { display: block; }
}

/* Bildflächen (bis echte Fotos da sind: Platzhalter) */
.shots { display: grid; gap: 20px; }
@media (min-width: 768px) { .shots { gap: 28px; } }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 3 / 2; background: var(--surface); text-decoration: none; }
@media (min-width: 768px) { .shot { aspect-ratio: 21 / 9; } }
.shot > img, .shot > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot:hover > img, .shot:hover > .ph { transform: scale(1.025); }
.shot__more { position: absolute; right: 14px; bottom: 14px; background: #fff; color: #000; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 2px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.shot:hover .shot__more, .shot:focus-visible .shot__more { opacity: 1; transform: none; }

.ph { display: grid; place-items: center; text-align: center; padding: 16px; color: #d0d0d0; font-size: 15px; line-height: 1.4;
  background: url(bilder/platzhalter.svg) center / cover no-repeat, radial-gradient(120% 90% at 50% 30%, #1c1c1c, #070707); border: 1px dashed rgb(255 255 255 / .28); border-radius: inherit; }
.ph b { display: block; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

/* Portfolio */
.page-head { padding: 36px 0 24px; }
.page-head h1 { font-size: clamp(44px, 10vw, 112px); text-transform: uppercase; line-height: .92; }
.page-head p { color: var(--muted); margin-top: 14px; max-width: 60ch; font-size: 18px; }
@media (min-width: 768px) { .page-head { padding: 56px 0 32px; } }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none; }
.filter button { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 15px/1 var(--text); cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease); }
.filter button:hover { border-color: #fff; transform: translateY(-1px); }
.filter button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0 0 72px; list-style: none; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li[hidden] { display: none; }
.tile { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--surface); cursor: zoom-in; color: inherit; font: inherit; }
.tile--hoch { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery li.hoch { grid-row: span 2; }
.tile > img, .tile > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover > img, .tile:hover > .ph { transform: scale(1.03); }
.tile .ph { font-size: 13px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gut); gap: 12px; }
.lightbox__count { color: var(--muted); font-size: 15px; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; }
.lightbox__stage > * { max-width: 100%; max-height: 100%; width: min(1400px, 100%); aspect-ratio: 3 / 2; border-radius: 6px; object-fit: contain; }
.lightbox__stage > .ph { font-size: 18px; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; padding: 14px var(--gut) calc(14px + env(safe-area-inset-bottom)); }

/* Vorstellung */
.about { display: grid; gap: 32px; padding-bottom: 72px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; }
.portrait .ph { width: 100%; height: 100%; }
.prose h2 { font-size: clamp(30px, 5vw, 44px); text-transform: uppercase; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; max-width: 62ch; }
.todo { color: #fff; background: #262626; padding: 0 4px; border-radius: 2px; font-weight: 600; }
.contact { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 560px) { .contact { display: flex; flex-wrap: wrap; } }

/* Rechtstexte */
.legal { max-width: 72ch; padding-bottom: 72px; }
.legal h1 { font-size: clamp(40px, 8vw, 80px); text-transform: uppercase; margin: 36px 0 28px; }
.legal h2 { font: 700 20px/1.3 var(--text); margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.hint { border-left: 3px solid #fff; padding-left: 14px; color: var(--muted); }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: grid; gap: 16px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.foot nav a:hover { background-size: 100% 1px; }
@media (min-width: 768px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Einstieg einmal beim Laden, sonst nichts in Bewegung */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] > * { animation: rise .8s var(--ease) both; }
  [data-enter] > *:nth-child(2) { animation-delay: .08s; }
  [data-enter] > *:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.hero__rule-gap { margin-top: 24px; }

/* Beispielfotos (Wikimedia Commons) klar kennzeichnen, bis Stefans Fotos da sind */
.shot, .tile { position: relative; }
.badge { position: absolute; left: 10px; top: 10px; background: rgb(0 0 0 / .72); color: #fff; font: 600 12px/1 var(--text); letter-spacing: .04em; padding: 6px 8px; border-radius: 2px; pointer-events: none; }
.entwurf { display: inline-block; vertical-align: middle; font: 700 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #000; background: #e6e6e6; padding: 4px 6px; border-radius: 2px; margin-right: 6px; }
.gallery li.breit { grid-column: span 2; }
.gallery li.breit .tile { aspect-ratio: auto; height: 100%; }
@media (max-width: 767px) { .gallery li.breit .tile { aspect-ratio: 8 / 3; } }
.lightbox__stage > img { width: auto; height: auto; aspect-ratio: auto; max-height: calc(100dvh - 160px); }
.credits { padding-left: 1.2em; }
.credits li { margin-bottom: 10px; overflow-wrap: anywhere; }
