
/* Layout: Sucher-Konzept. Fokusrahmen, EXIF-Daten als Typo-Detail, ein großer Moment im Hero, danach ruhige Galerie. Bewusst dunkel (Dunkelkammer). */
/* Schriften: liegen im Ordner fonts, damit beim Öffnen keine Daten an Google gehen (Lizenz: fonts/OFL.txt) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  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 {
  --bg: #0d0f12;
  --bg-2: #15181d;
  --line: #2a2f37;
  --fg: #ece8e0;
  --muted: #8d939c;
  --accent: #f0a94b;      /* Rotlicht-Bernstein der Dunkelkammer */
  --accent-ink: #1a1206;
  --f-display: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: .95; }

/* Filmkorn über allem */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-2%,3%)} 80%{transform:translate(3%,1%)} 100%{transform:translate(0,0)} }

/* Scroll-Fortschritt */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 70; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: rec 2s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 2.4vw, 32px); margin: 0; padding: 0; flex-wrap: wrap; }
.nav a.l { text-decoration: none; font-size: 14px; color: var(--muted); position: relative; transition: color .3s; }
.nav a.l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a.l:hover { color: var(--fg); }
.nav a.l:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) { .nav ul li:nth-child(-n+2) { display: none; } }

/* Hero: Sucher */
.hero { position: relative;
  /* Sucher + Name passen beim Öffnen immer ganz in das Fenster */
  --pt: clamp(16px, 3vw, 40px);
  --fs: clamp(56px, min(17vw, 22svh), 240px);
  --ov: min(9vw, 110px, calc(var(--fs) * .45));
  /* Startbild füllt genau ein Fenster: Sucher + Name, der Rest beginnt darunter */
  height: calc(100svh - var(--nav, 65px)); min-height: 280px;
  display: flex; flex-direction: column;
  padding-block: var(--pt) max(16px, calc(var(--fs) * .12)); }
.hero-after { padding-block: clamp(56px, 7vw, 104px); }
.viewfinder { position: relative; border-radius: 4px; overflow: hidden; max-width: 100%; flex: 1 1 auto; min-height: 0; width: 100%; isolation: isolate; }
.viewfinder .scene { position: absolute; inset: -1.5%; transition: transform 1.2s var(--ease); will-change: transform; }
.scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.65) 100%); }
.viewfinder .scene { opacity: 0; transition: opacity .35s ease, translate .8s var(--ease); }
.viewfinder .scene.on { opacity: 1; animation: kenburns 12s linear both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.03); } }

.vf-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.corner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.85); }
.corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.af { position: absolute; width: 74px; height: 54px; border: 1.5px solid rgba(255,255,255,.9); left: 50%; top: 46%; transform: translate(-50%,-50%); transition: left 1.4s var(--ease), top 1.4s var(--ease), border-color .2s; }
.af.lock { border-color: var(--accent); animation: lock .35s steps(2) 2; }
@keyframes lock { 50% { opacity: .2; } }
.vf-top, .vf-bottom { position: absolute; left: 58px; right: 58px; display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.88); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.vf-top { top: 22px; }
.vf-bottom { bottom: 22px; justify-content: flex-end; gap: clamp(12px, 2vw, 28px); }
@media (max-width: 560px) { .vf-bottom .meter { display: none; } }
.vf-bottom span b { color: var(--accent); font-weight: 500; }
.meter { display: flex; gap: 3px; align-items: center; }
.meter i { width: 2px; height: 8px; background: rgba(255,255,255,.6); }
.meter i.c { height: 12px; background: var(--accent); }

.shutter { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: grid; }
/* Lamellen liegen im Ruhezustand außerhalb des Bildes (overflow: hidden am Sucher) */
.shutter i { grid-area: 1/1; background: #000; will-change: transform; }
.shutter i:nth-child(1) { clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); transform: translateY(-50%); }
.shutter i:nth-child(2) { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); transform: translateY(50%); }
.shutter.intro i:nth-child(1) { animation: introUp 1s var(--ease) .15s both; }
.shutter.intro i:nth-child(2) { animation: introDown 1s var(--ease) .15s both; }
.shutter.snap i:nth-child(1) { animation: snapUp .6s ease-in-out; }
.shutter.snap i:nth-child(2) { animation: snapDown .6s ease-in-out; }
@keyframes introUp { from { transform: none; } }
@keyframes introDown { from { transform: none; } }
@keyframes snapUp { 50% { transform: none; } }
@keyframes snapDown { 50% { transform: none; } }

.hero-title { flex: none; position: relative; z-index: 4; margin-top: calc(var(--ov) * -1); display: grid; gap: 18px; pointer-events: none; }
.hero-title h1 { font-size: var(--fs); font-weight: 800; letter-spacing: -.04em; line-height: .82; mix-blend-mode: difference; color: #fff; }
.hero-title h1 .ch { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .5s); }
@keyframes rise { from { transform: translateY(-.4em) rotate(-6deg); filter: blur(8px); } }
.hero-sub { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; pointer-events: auto; }
.hero-sub p { max-width: 34ch; font-size: clamp(17px, 1.6vw, 21px); margin: 0; color: var(--fg); }
.hero-sub p em { font-style: normal; color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: 600 15px var(--f-body); position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }

/* Laufband */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 4vw, 56px); white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--muted); }
.marquee span:nth-child(odd) { color: var(--fg); -webkit-text-stroke: 0; }
.marquee span.dot { color: var(--accent); -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Abschnittsköpfe */
section { padding-block: clamp(72px, 10vw, 140px); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.head h2 { font-size: clamp(40px, 7vw, 104px); font-weight: 800; letter-spacing: -.03em; }
.head p { max-width: 42ch; color: var(--muted); margin: 0; }

/* Reveal per Scroll-Timeline: Ruhezustand ist sichtbar */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { transform: translateY(48px) scale(.97); } to { transform: none; } }
}

/* Themen-Index mit Cursor-Vorschau */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding-block: clamp(18px, 2.6vw, 32px); text-decoration: none; position: relative; }
.index a::before { content: ""; position: absolute; inset: 0; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index .name { font-family: var(--f-display); font-size: clamp(36px, 7.5vw, 112px); font-weight: 700; letter-spacing: -.03em; line-height: 1; transition: transform .5s var(--ease), color .3s; }
.index a:hover .name { transform: translateX(clamp(8px, 2vw, 32px)); color: var(--accent); }
.index .count { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index .desc { color: var(--muted); max-width: 26ch; text-align: right; font-size: 14px; }
@media (max-width: 720px) { .index a { grid-template-columns: 1fr auto; } .index .desc { display: none; } }
.peek { position: fixed; left: 0; top: 0; width: 272px; height: 340px; border-radius: 6px; pointer-events: none; z-index: 60; overflow: hidden; background: #000; opacity: 0; transform: translate(-50%,-50%) scale(.6) rotate(-6deg); transition: opacity .3s, transform .5s var(--ease), width .8s var(--ease), height .8s var(--ease); }
.peek.show { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-3deg); }
.peek .scene { position: absolute; inset: 0; transition: opacity 1.2s ease; }
.peek .scene.img { background-size: contain; background-repeat: no-repeat; }
.peek .scene::after { display: none; }
@media (hover: none) { .peek { display: none; } }

/* Galerie */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font: 500 14px var(--f-body); color: var(--fg); background: transparent; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip sup { font-family: var(--f-mono); font-size: 10px; margin-left: 4px; opacity: .7; }
/* Mauerwerk-Layout: jedes Bild behält sein Seitenverhältnis und wird nie beschnitten */
.grid { display: flex; align-items: flex-start; column-gap: clamp(10px, 1.4vw, 20px); }
.grid .col { flex: 1 1 0; min-width: 0; }
.item { margin: 0 0 clamp(14px, 1.8vw, 26px); }
[hidden] { display: none !important; }
.item.hide, .item.weg { display: none; }
.shot { margin: 0; padding: 9px 2px 0; font-family: var(--f-mono); font-size: 11px; line-height: 1.55; letter-spacing: .04em; color: var(--muted); }
.shot b { color: var(--fg); font-weight: 500; }
.tile { display: block; width: 100%; margin: 0; aspect-ratio: 4/5; position: relative; border-radius: 4px; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: var(--bg-2); color: inherit; text-align: left; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.tile .scene { position: absolute; inset: -4%; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.tile:hover .scene { transform: scale(1.08); filter: saturate(1.1); }
/* Eigene Fotos: Kachel hat exakt das Format des Fotos, kein Zoom beim Überfahren */
.tile .scene.img { inset: 0; filter: none; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile:hover .scene.img { transform: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); background: rgba(5,6,8,.94); overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.lb.open { opacity: 1; }
.lb[hidden] { display: none !important; }
.lb-ambient { position: absolute; inset: -15%; background-size: cover; background-position: center; filter: blur(40px) saturate(1.3); opacity: .35; transform: translateZ(0); transition: opacity .6s ease; pointer-events: none; }
.lb-fig { position: relative; margin: 0; display: grid; gap: 16px; z-index: 1; }
.lb .frame { position: relative; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.6); transform-origin: 0 0; transition: width .55s var(--ease), height .55s var(--ease); }
.lb .frame .scene { position: absolute; inset: 0; }
.lb .frame .scene.img { background-size: contain; background-repeat: no-repeat; }
.lb .frame .scene.img::after { display: none; }
.lb .frame .corner { width: 18px; height: 18px; border-width: 1.5px; border-color: rgba(255,255,255,.7); z-index: 1; }
.lb .frame .corner.tl, .lb .frame .corner.tr { top: 12px; }
.lb .frame .corner.bl, .lb .frame .corner.br { bottom: 12px; }
.lb .frame .corner.tl, .lb .frame .corner.bl { left: 12px; }
.lb .frame .corner.tr, .lb .frame .corner.br { right: 12px; }
.lb figcaption { display: flex; justify-content: space-between; align-items: end; gap: 8px 24px; flex-wrap: wrap; color: var(--fg); min-width: 0; }
.lb figcaption strong { display: block; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.lb figcaption #lb-cat { color: var(--accent); }
.lb figcaption #lb-exif { text-align: right; line-height: 1.6; text-transform: none; }
.lb figcaption #lb-exif b { color: var(--fg); font-weight: 500; }
.lb-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); left: var(--gutter); right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; transform: translateY(-50%); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 640px) {
  .lb-nav { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: none; }
  .lb-nav:hover { transform: scale(1.06); }
}
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); cursor: pointer; font-size: 18px; display: grid; place-items: center; transition: border-color .3s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--accent); transform: scale(1.06); }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; max-width: 100%; }
.portrait .scene { position: absolute; inset: 0; }
/* Über-mich-Foto in Schwarzweiß, ganz sichtbar */
.portrait .scene.img { filter: grayscale(1) contrast(1.05); background-size: contain; background-repeat: no-repeat; }
.portrait .scene.img::after { display: none; }
.about-text { min-width: 0; }
.about-text .lead { font-family: var(--f-display); font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 28px; text-wrap: balance; }
.about-text .lead em { font-style: normal; color: var(--accent); }
.about-text p { max-width: 62ch; color: var(--muted); }

/* Kontakt */
.contact { border-top: 1px solid var(--line); }
.big-cta { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 11vw, 180px); letter-spacing: -.04em; line-height: .88; margin: 0 0 48px; }
.big-cta span { display: inline-block; background: linear-gradient(90deg, var(--fg) 0 50%, var(--accent) 50% 100%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position .8s var(--ease); }
.big-cta:hover span { background-position: -100% 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea, select { font: 16px var(--f-body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; transition: border-color .3s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.note { font-size: 13px; color: var(--muted); min-height: 1.5em; }
.mail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 16px; margin-top: 8px; }
.links { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.links a:hover { padding-inline: 12px; color: var(--accent); }
footer { padding-block: 32px calc(env(safe-area-inset-bottom, 0px) + 88px); color: var(--muted); font-size: 13px; } /* unten Platz, damit der Nach-oben-Pfeil nichts verdeckt */
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .3s; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--fg); }

/* Impressum und Datenschutz */
.legal { padding-block: clamp(48px, 8vw, 110px); }
.legal-in { max-width: 760px; animation: legal-in .8s var(--ease) both; }
@keyframes legal-in { from { opacity: 0; transform: translateY(18px); } }
.legal h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 800; letter-spacing: -.03em; margin-bottom: clamp(28px, 4vw, 48px); }
.legal h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 40px 0 10px; }
.legal p { color: var(--muted); max-width: 68ch; }
.legal address { font-style: normal; line-height: 1.7; }
.legal a { text-decoration-color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { color: var(--accent); }
.legal-stand { margin-top: 48px; }

/* Bilderschutz: kein Markieren, Ziehen oder Langdrücken-Speichern */
.tile, .tile img, .scene, .viewfinder, .portrait, .peek, .lb .frame { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.tile img { pointer-events: none; }
@media print { .viewfinder, .grid, .portrait, .peek, .lb { visibility: hidden !important; } }

/* Nach-oben-Pfeil */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 75; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--fg); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .4s, visibility .4s, transform .5s var(--ease), border-color .3s, color .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top svg { transition: transform .4s var(--ease); }
/* Fortschrittsring wie ein Belichtungsmesser */
.to-top::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }

/* Cursor als Fokusfeld (nur Maus) */
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 26px; border: 1.5px solid var(--fg); pointer-events: none; z-index: 95; transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, opacity .3s; mix-blend-mode: difference; display: none; opacity: 0; }
.cursor.an { opacity: 1; }
.cursor.big { width: 64px; height: 48px; border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .shutter { display: none; }
  .viewfinder .scene.on { transform: none; }
}

/* Eigene Fotos aus dem Ordner bilder/ */
.scene.img { background-size: cover; background-position: center; background-color: #000; }

/* Ladebildschirm: bleibt, bis Startbild und erste Fotos geladen sind */
.loader { position: fixed; inset: 0; z-index: 88; display: grid; place-items: center; padding: 24px; background: var(--bg); transition: opacity .8s var(--ease), visibility 0s .8s; animation: loader-notaus 0s 30s forwards; }
.loader.weg { opacity: 0; visibility: hidden; }
@keyframes loader-notaus { to { opacity: 0; visibility: hidden; } } /* falls JavaScript nicht läuft */
.loader-in { width: min(420px, 100%); display: grid; gap: 22px; animation: legal-in .8s var(--ease) both; transition: transform .8s var(--ease); }
.loader.weg .loader-in { transform: translateY(-24px); }
.loader .logo i { animation-duration: 1.2s; }
.loader-text { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 7vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.loader-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.loader-num { display: flex; justify-content: space-between; gap: 16px; margin: -8px 0 0; font-variant-numeric: tabular-nums; }
.loader-skip { justify-self: start; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted); opacity: 0; visibility: hidden; transition: opacity .5s, color .3s; }
.loader.skip-an .loader-skip { opacity: 1; visibility: visible; }
.loader-skip:hover { color: var(--accent); }
html.laedt { overflow: hidden; }
html.laedt .shutter.intro i { animation-play-state: paused; } /* Verschluss-Intro erst nach dem Laden */
