/*
Theme Name: Dennis Burghart
Author: Dennis Burghart
Description: Eigene Fotografie-Website (statisch, ohne Plugins). Gebaut aus mockup/ mit theme-bauen.py.
Version: 2026.11.15.0946
Requires PHP: 7.4
Text Domain: dennisburghart
*/

/* =========================================================
   FARBEN & SCHRIFTEN – übernommen von deiner bisherigen Seite
   ========================================================= */
:root {
  --black: #000000;
  --ink: #0b0b0b;
  --grey: #222222;
  --paper: #f0f0f0;
  --bg: var(--black);           /* aktuelle Hintergrundfarbe (wechselt per JS) */
  --fg: var(--paper);           /* aktuelle Textfarbe */
  --accent: var(--fg);          /* kein Orange mehr: Akzente sind schwarz/weiß wie die Fotos */
  --muted: rgba(240, 240, 240, .55);
  --line: rgba(240, 240, 240, .18);

  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  transition: background-color .9s ease, color .9s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--black); }

/* Kleine Labels wie (01), (About) */
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ============ PRELOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--black);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter);
}
.loader__logo { width: min(320px, 60vw); opacity: .9; }
.loader__count { font-family: var(--serif); font-size: clamp(64px, 14vw, 200px); line-height: .8; color: var(--paper); }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; border: 1px solid #fff; mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s;
}
.cursor__label { font-family: var(--serif); font-style: italic; font-size: 13px; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  mix-blend-mode: difference; color: #fff;   /* auf hellem UND dunklem Grund lesbar */
}
.header__logo img { height: 22px; width: auto; }
.header__place { font-family: var(--serif); font-style: italic; font-size: 14px; white-space: nowrap; }
.header__dot { color: var(--accent); margin: 0 .3em; }
.clock { font-variant-numeric: tabular-nums; }
.header__nav { display: flex; gap: clamp(14px, 3vw, 40px); justify-content: flex-end; font-size: 13px; letter-spacing: .04em; }
.header__nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .header { grid-template-columns: auto 1fr; row-gap: 6px; padding-top: 16px; }
  .header__logo img { height: 17px; }
  .header__place { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .header__nav { gap: 14px; font-size: 12px; }
}

/* ============ 1. HERO ============ */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--black); }
.hero__stage { position: absolute; inset: 0; overflow: hidden; }
.hero__img { position: absolute; inset: -24px; will-change: transform; }     /* etwas größer für die Maus-Bewegung */
.hero__photo { width: 100%; height: 100%; object-fit: cover; will-change: transform, filter; }

/* Verschluss: zwei schwarze Lamellen schließen sich kurz */
.shutter { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.shutter i { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transform: scaleY(0); }
.shutter__top { top: 0; transform-origin: top; }
.shutter__bottom { bottom: 0; transform-origin: bottom; }

/* Sucher-Anzeigen */
.viewfinder {
  position: absolute; z-index: 3; pointer-events: none;
  inset: 84px var(--gutter) clamp(96px, 14vh, 140px);
  font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(240,240,240,.85); font-variant-numeric: tabular-nums;
}
.vf-corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(240,240,240,.7); }
.vf-corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.vf-corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.vf-corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.vf-corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.vf-focus {
  position: absolute; top: 0; left: 0; width: 76px; height: 56px; margin: -28px 0 0 -38px;
  border: 1px solid rgba(240,240,240,.9); transition: border-color .3s;
}
.vf-focus i { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: #fff; border-radius: 50%; opacity: 0; }
.vf-focus.is-locked i { opacity: 1; }
.vf-frame { position: absolute; top: 14px; left: 40px; }
.vf-meter { position: absolute; top: 14px; right: 40px; display: flex; align-items: center; gap: 10px; }
.vf-meter__scale {
  position: relative; width: 120px; height: 8px;
  background: repeating-linear-gradient(90deg, rgba(240,240,240,.6) 0 1px, transparent 1px 20px);
}
.vf-meter__scale::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #fff; }
.vf-meter__needle { position: absolute; left: 50%; bottom: -8px; width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-bottom-color: #fff; }
.vf-readout { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 28px; white-space: nowrap; }
@media (max-width: 760px) {
  .viewfinder { inset: 96px 16px 46%; }
  .vf-meter { display: none; }
  .vf-readout { gap: 16px; font-size: 10px; }
}

.hero__stage::after {           /* Verlauf unten für Lesbarkeit */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.7) 100%);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 7vh, 72px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
/* Nur für Screenreader sichtbar */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Unsichtbare Klickfläche über dem Bild */
.hero__trigger { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

.hero__content { z-index: 4; }

/* Bildauswahl 01–05 */
.frames { display: flex; gap: 6px; font-size: 12px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.frames button { position: relative; padding: 10px 8px; color: rgba(240,240,240,.45); transition: color .3s; }
.frames button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.frames button:hover { color: #fff; }
.frames button.is-active { color: #fff; }
.frames button.is-active::after { transform: scaleX(1); }

.hud { width: min(300px, 32vw); font-size: 13px; padding-bottom: .6em; }
.hud__caption { display: flex; gap: 10px; align-items: baseline; }
.hud__cat { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; }
.hud__place { color: var(--muted); margin-top: 2px; }
.hud__timer { display: block; height: 1px; margin-top: 16px; background: var(--line); position: relative; overflow: hidden; }
.hud__timer i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: var(--paper); transform-origin: top; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) {
  .hero__content { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .hud { width: 100%; }
  .hero__scroll { display: none; }
}

/* Text, der per JS zerlegt wird */
.split .char { display: inline-block; will-change: transform; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }

/* ============ 2. ABOUT ============ */
.statement { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 12vh var(--gutter); }
.statement__quote { margin: 0; max-width: 1400px; }
.statement__sign { margin-top: 40px; }
.statement .eyebrow { margin-bottom: 32px; }
.statement__text { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 68px); line-height: 1.18; letter-spacing: -.01em; }
.statement__text .w { opacity: .14; }

/* ============ 3. JOURNAL (Magazin) ============ */
.journal { padding: 18vh var(--gutter) 10vh; }
.journal__head {
  display: grid; grid-template-columns: 60px 1fr minmax(220px, 340px); align-items: end; gap: 24px;
  padding-bottom: 28px; border-bottom: 1px solid currentColor; margin-bottom: 18vh;
}
.journal__head .eyebrow { color: inherit; opacity: .55; padding-bottom: 1.2em; }
.journal__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(64px, 13vw, 230px); line-height: .85; letter-spacing: -.035em; }
.journal__issue { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.5; opacity: .75; padding-bottom: .8em; }

.feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 32px); margin-bottom: 26vh; align-items: center; }
.feature__media { position: relative; overflow: hidden; background: var(--grey); cursor: pointer; }
.feature__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.feature__meta { display: flex; gap: 18px; align-items: baseline; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
.feature__meta span { opacity: .55; }
.feature__meta b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; text-transform: none; letter-spacing: 0; }
.feature__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 26px; }
.feature__excerpt { font-family: var(--serif); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; max-width: 30em; opacity: .8; }
.feature__excerpt::first-letter { font-size: 3.2em; float: left; line-height: .9; padding: .06em .1em 0 0; font-style: italic; }

/* Layout-Varianten */
.feature--left  .feature__media { grid-column: 1 / span 6; aspect-ratio: 2 / 3; }
.feature--left  .feature__text  { grid-column: 8 / span 5; }
.feature--right .feature__media { grid-column: 7 / span 5; aspect-ratio: 2 / 3; grid-row: 1; }
.feature--right .feature__text  { grid-column: 2 / span 4; grid-row: 1; }
.feature--wide  .feature__media { grid-column: 1 / -1; aspect-ratio: 16 / 9; margin-bottom: 48px; }
.feature--wide  .feature__text  { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: inherit; align-items: start; }
.feature--wide  .feature__meta  { grid-column: 1 / span 3; flex-direction: column; gap: 6px; }
.feature--wide  .feature__title { grid-column: 4 / span 5; }
.feature--wide  .feature__excerpt { grid-column: 9 / span 4; }
.feature--spread { align-items: start; row-gap: 8vh; }
.feature--spread .feature__media--a { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.feature--spread .feature__quote { grid-column: 2 / span 7; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 64px); line-height: 1.15; letter-spacing: -.01em; }
.feature--spread .feature__text { grid-column: 9 / span 4; margin-top: -10vh; }

@media (max-width: 760px) {
  .journal__head { grid-template-columns: 1fr; margin-bottom: 10vh; }
  .feature { margin-bottom: 14vh; row-gap: 28px; }
  .feature > * , .feature--wide .feature__text > * { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .feature--wide .feature__text { row-gap: 16px; }
}

/* ============ 4. GALERIE (horizontaler Scroll) ============ */
.gallery { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery__head {
  position: absolute; top: 96px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: baseline; gap: 24px;
}
.gallery__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.01em; }
.gallery__count { margin-left: auto; font-family: var(--serif); font-size: 15px; font-variant-numeric: tabular-nums; }
.gallery__count .gallery__all { opacity: .5; }
.gallery__skip { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 0 8px 12px; transition: color .3s; }
.gallery__skip:hover { color: var(--fg); }
.gallery__track {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 72px);
  width: max-content; padding: 0 50vw;           /* erstes und letztes Bild können in die Mitte */
  will-change: transform;
}
.g-item { flex: none; cursor: pointer; transform-origin: center; }
.g-item__img { overflow: hidden; background: var(--grey); height: 52vh; aspect-ratio: 16 / 10; }
.g-item--tall .g-item__img { height: 62vh; aspect-ratio: 2 / 3; }
.g-item__img img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 14px; font-size: 13px; }
.g-item figcaption b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; }
.g-item figcaption span { opacity: .55; }
.gallery__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--line); }
.gallery__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }
@media (max-width: 700px) {
  .g-item__img { height: 34vh; }
  .g-item--tall .g-item__img { height: 46vh; }
}

/* ============ FOOTER ============ */
.footer { padding: 10vh var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 10vh; font-size: 14px; }
.footer__grid a { display: block; margin-top: 8px; }
.footer__grid a:hover { color: var(--accent); }
.footer__right { text-align: right; }
.footer__bottom { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.footer__logo { width: 150px; height: auto; opacity: .9; }
.footer__claim { font-family: var(--serif); font-style: italic; font-size: 14px; opacity: .55; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__right { text-align: left; } }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: #050505; color: var(--paper);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 70px var(--gutter) 40px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; justify-content: center; }
.lightbox__img { max-height: calc(100vh - 170px); max-width: 100%; object-fit: contain; }
.lightbox__caption { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(240,240,240,.8); }
.lightbox__close { position: absolute; top: 22px; right: var(--gutter); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lightbox__nav { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; justify-self: start; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox button:hover { color: var(--accent); }
@media (max-width: 700px) { .lightbox { grid-template-columns: 1fr 1fr; } .lightbox__figure { grid-column: 1 / -1; } .lightbox__nav { grid-row: 2; } .lightbox__nav--next { grid-column: 2; } }

/* ============ FILMKORN ============ */
.grain {
  position: fixed; inset: -20%; z-index: 80; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); }
  60% { transform: translate(-3%,5%); } 80% { transform: translate(6%,2%); } 100% { transform: translate(0,0); }
}

/* ============ WENIGER BEWEGUNG ============ */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll::after { animation: none; }
  .loader, .vf-focus { display: none; }
  .statement__text .w { opacity: 1; }
  .feature__media img { height: 100%; }
}

/* ============ RECHTLICHE SEITEN (Impressum, Datenschutz) ============ */
.legal-page .header { mix-blend-mode: normal; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); }
.legal { max-width: 760px; padding: 18vh var(--gutter) 12vh; }
.legal .eyebrow { margin-bottom: 20px; }
.legal__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -.02em; margin-bottom: 8vh; hyphens: manual; }
.legal__body { font-size: 15px; line-height: 1.7; color: rgba(240,240,240,.82); }
.legal__body h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--paper); margin: 56px 0 18px; }
.legal__body h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; color: var(--paper); margin: 32px 0 10px; }
.legal__body h4 { font-weight: 500; font-size: 15px; color: var(--paper); margin: 22px 0 6px; }
.legal__body p, .legal__body ul { margin: 0 0 14px; }
.legal__body ul { padding-left: 1.2em; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal__body a:hover { color: #fff; }
