/*
  VOICE   ruhig, edel, zurückhaltend – die Bilder sprechen
  IDEA    ein endloser Leuchttisch: Abzüge, die man in alle Richtungen schiebt
  PICTURE die Fotos selbst, randlos, im Mauerwerk-Raster
  COLOUR  Schwarz, Weiss, Grautöne – nichts konkurriert mit den Bildern
  TYPE    Brockmann Regular, wie vierK
*/
@font-face {
  font-family: "Brockmann";
  src: url("../fonts/brockmann-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.14);
  --pad: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 400 16px/1.55 "Brockmann", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 18px var(--pad) 40px;
  background: linear-gradient(#000 0%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { grid-column: 2; justify-self: center; display: flex; align-items: center; white-space: nowrap; }
.tag { grid-column: 1; grid-row: 1; justify-self: start; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.25; letter-spacing: -0.005em; white-space: nowrap; }
.tag-sub { color: var(--muted); }
.rot { display: inline-grid; vertical-align: bottom; overflow: hidden; color: var(--ink); }
.rot b { grid-area: 1 / 1; font-weight: 400; opacity: 0; transform: translateY(100%); animation: rot 7.5s var(--ease) infinite; }
.rot b:nth-child(2) { animation-delay: 2.5s; }
.rot b:nth-child(3) { animation-delay: 5s; }
@keyframes rot {
  0% { opacity: 0; transform: translateY(100%); }
  6%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-100%); }
}
.rot-static { display: none; color: var(--ink); }
.logo { height: 28px; width: auto; }
.brand b { font-weight: 400; font-size: 17px; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 14px; }
.nav { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: inherit; font-size: 13px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; cursor: pointer; transition: color .3s, background .3s, border-color .3s;
}
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.4); }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; padding-bottom: 28px; row-gap: 10px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav { grid-column: 2; grid-row: 1; gap: 18px; font-size: 14.5px; }
  .tag { grid-column: 1 / -1; grid-row: 2; flex-direction: row; gap: 5px; font-size: 12.5px; }
  .brand span { display: none; }
  .chips { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
}

/* ---------- Endlose Galerie ---------- */
.wall {
  position: fixed; inset: 0; overflow: hidden; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.wall.drag { cursor: grabbing; }
.wall.swap .tile { opacity: 0 !important; transition: opacity .25s; }
.tile {
  position: absolute; left: 0; top: 0; margin: 0;
  border-radius: 4px; overflow: hidden; background: #0d0d0d;
  opacity: 0; transition: opacity .7s var(--ease);
  will-change: transform; contain: layout paint;
}
.tile.in { opacity: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.tile figcaption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  font-size: 11.5px; line-height: 1; padding: 6px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease);
}
@media (hover: hover) {
  .wall:not(.drag) .tile:hover figcaption { opacity: 1; transform: none; }
}
.hint {
  position: fixed; left: 50%; bottom: 22px; z-index: 15; transform: translateX(-50%);
  font-size: 13px; color: #fff; padding: 9px 16px; border-radius: 999px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); transition: opacity .8s; pointer-events: none; white-space: nowrap;
}
.hint.gone { opacity: 0; }

.tile video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.play {
  position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; pointer-events: none;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25); transition: transform .35s var(--ease), background .35s;
}
.play svg { width: 14px; height: 14px; margin-left: 2px; }
@media (hover: hover) { .wall:not(.drag) .tile.is-video:hover .play { transform: scale(1.12); background: rgba(255,255,255,0.9); color: #000; } }

/* ---------- Icons unten ---------- */
.nav { align-items: center; }
.ico { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); transition: color .3s; }
.ico:hover { color: var(--ink); }
.ico svg { width: 17px; height: 17px; }
.social { display: flex; gap: 6px; align-items: center; }
.corner { position: fixed; right: calc(var(--pad) - 6px); bottom: 16px; z-index: 15; padding: 4px; border-radius: 999px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.intro-on .corner { opacity: 0; }
.intro-done .corner { opacity: 1; transition: opacity 1s .5s; }

/* ---------- Mauszeiger als Blende ---------- */
html.ln-cursor, html.ln-cursor * { cursor: none !important; }
#ln-iris { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147483000; mix-blend-mode: difference; transition: opacity .2s; }
.ln-cursor-off #ln-iris { opacity: 0; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.42); backdrop-filter: blur(34px) saturate(1.1); -webkit-backdrop-filter: blur(34px) saturate(1.1); display: grid; place-items: center; transition: opacity 1s var(--ease), backdrop-filter 1.2s var(--ease), -webkit-backdrop-filter 1.2s var(--ease); }
.intro.out { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; }
.intro-logo { position: relative; width: clamp(120px, 14vw, 180px); aspect-ratio: 235 / 120; transition: transform 1.1s var(--ease), opacity .7s; }
.intro.out .intro-logo { transform: scale(.82); opacity: 0; }
.band {
  position: absolute; left: 0; width: 100%;
  background: url("../img/logo-white.png") no-repeat; background-size: 100% auto;
  clip-path: inset(0 100% 0 0); animation: band .52s var(--ease) forwards;
}
.band.rev { clip-path: inset(0 0 0 100%); }
@keyframes band { to { clip-path: inset(0 0 0 0); } }
.intro-on .wall { transform: scale(1.08); }
.intro-on .top, .intro-on .hint { opacity: 0; }
.intro-done .wall { transform: none; transition: transform 1.6s var(--ease); }
.intro-done .top, .intro-done .hint { opacity: 1; transition: opacity 1s .5s; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 40; background: #000;
  display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 64px clamp(16px, 7vw, 120px) 8px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 2px; }
.lb-video { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; background: #000; border-radius: 2px; }
.lb-frame { width: min(100%, calc((100vh - 170px) * 16 / 9)); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0d0d0d; border-radius: 2px; }
.lb-ext { font-size: 13px; color: var(--muted); }
.lb-ext:hover { color: #fff; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--pad) 22px; font-size: 14px; }
.lb-bar span { color: var(--muted); }
.lb-btn {
  font: inherit; color: var(--muted); background: none; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0 6px; transition: color .25s;
}
.lb-btn:hover { color: #fff; }
.lb-close { position: absolute; top: 12px; right: var(--pad); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 760px) { .lb-prev, .lb-next { display: none; } }

/* ---------- Unterseiten ---------- */
.page { padding-top: 96px; }
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
  max-width: 1600px; margin: 0 auto; padding: 40px var(--pad) 120px 0;
}
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-height: 86vh; overflow: hidden;
  border-radius: 0 8px 8px 0; background: #111;
  clip-path: inset(0 100% 0 0 round 0 8px 8px 0);
  transition: clip-path 1.4s var(--ease);
}
.portrait.in { clip-path: inset(0 0 0 0 round 0 8px 8px 0); }
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  transform: scale(1.18); transition: transform 2s var(--ease);
}
.portrait.in img { transform: scale(1); }
.about-text { display: flex; flex-direction: column; gap: 22px; max-width: 540px; }
h1 {
  margin: 0; font-weight: 400; font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1; letter-spacing: -0.04em; text-wrap: balance;
}
.who { font-size: 15px; }
.who i { font-style: normal; color: var(--faint); margin: 0 8px; }
.icons { display: flex; gap: 8px; }
.icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; color: #fff; transition: background .3s, color .3s;
}
.icon:hover { background: #fff; color: #000; }
.icon svg { width: 17px; height: 17px; }
.about-text p { margin: 0; font-size: 16px; line-height: 1.62; }
.places-wrap { margin-top: 18px; }
.places-label { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.places { display: flex; flex-direction: column; }
.places div { font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,0.35); transition: color .8s ease; width: fit-content; }
.places div.on { color: rgba(255,255,255,0.9); }
@media (max-width: 860px) { .places-wrap { margin-top: 10px; } .places-label { font-size: 13px; } .places div { font-size: 15px; } }

.fade { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; padding: 20px var(--pad) 90px; gap: 36px; }
  .portrait, .portrait.in { border-radius: 8px; }
  .portrait { clip-path: inset(0 100% 0 0 round 8px); }
  .portrait.in { clip-path: inset(0 0 0 0 round 8px); }
}

.contact {
  min-height: calc(100vh - 96px - 70px); display: flex; flex-direction: column; justify-content: center;
  gap: clamp(36px, 6vh, 64px); padding: 40px var(--pad) 60px; max-width: 1240px; margin: 0 auto;
}
.contact h1 { font-size: clamp(48px, 8vw, 128px); }
.mail {
  font-size: clamp(24px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1.1;
  border-bottom: 1px solid var(--line); padding-bottom: 6px; width: fit-content; transition: border-color .3s;
  overflow-wrap: anywhere;
}
.mail:hover { border-color: #fff; }
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.rows div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.rows span { color: var(--muted); font-size: 13.5px; }
.rows a { width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s; }
.rows a:hover { border-color: #fff; }
@media (max-width: 700px) { .rows { grid-template-columns: 1fr; gap: 20px; } }

.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--pad);
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .rot { display: none; } .rot-static { display: inline; }
  *, .portrait, .portrait img, .fade { transition: none !important; }
  .portrait { clip-path: none; } .portrait img { transform: none; } .fade { opacity: 1; transform: none; }
}
.rows i { font-style: normal; }
.tag > * { flex: none; }
@media (max-width: 760px) {
  .top { background: linear-gradient(#000 0%, rgba(0,0,0,0.92) 60%, rgba(0,0,0,0) 100%); }
  .tag, .tag-sub { text-shadow: 0 1px 8px rgba(0,0,0,0.9); }
  .tag-sub { color: rgba(255,255,255,0.7); }
}
