/* fufk.org – Landing-Page. Dunkles Thema, Wildlife-Fotografie, drei Kanalfarben (Live, Bilder, Videos).
   Layout nach dem Vorbild klassischer Fotografen-Seiten: Vollbild-Banner mit Menü darüber (Logo in der Mitte),
   große Bildkacheln mit zentriertem Titel, Serifenschrift.
   Schriften: Spectral (Überschriften) und Manrope (Text), beide lokal eingebunden (kein Google-Abruf). */

@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0a0c11;
  --ink-2: #10131a;
  --ink-3: #171b25;
  --ink-4: #1f2431;
  --line: rgba(236, 233, 226, 0.09);
  --line-2: rgba(236, 233, 226, 0.17);
  --text: #ece9e2;
  --muted: #9ba1ae;
  --faint: #6d7382;

  --live: #ff5b4f;
  --bilder: #e9c677;
  --videos: #58d4c8;

  --tint: var(--live);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body[data-view="live"] { --tint: var(--live); }
body[data-view="bilder"] { --tint: var(--bilder); }
body[data-view="videos"] { --tint: var(--videos); }
body[data-view="start"] { --tint: var(--live); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hintergrund: Foto (config.js, images.background) abgedunkelt, darüber das Glühen, das mit dem Bereich wechselt */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 12% -8%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%),
    radial-gradient(46% 38% at 105% 8%, rgba(88, 212, 200, 0.09), transparent 70%),
    radial-gradient(42% 40% at 50% 118%, rgba(233, 198, 119, 0.08), transparent 70%),
    linear-gradient(rgba(10, 12, 17, 0.4), rgba(10, 12, 17, 0.4)),
    var(--bg-photo, none) center / cover no-repeat;
}
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}
.shell { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* --- Kopfzeile: Menü links und rechts, Logo in der Mitte ------------------------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--ink);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgba(10, 12, 17, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 108px; }

/* Auf der Startseite liegt das Menü transparent über dem Banner */
body[data-view="start"] .site-header { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; justify-self: center; }
.brand-mark { height: 86px; width: auto; flex: none; filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.55)); transition: opacity .25s, transform .4s; }
.brand:hover .brand-mark { opacity: 1; transform: scale(1.04); }
.brand-name {
  font-family: var(--font-display); font-weight: 300; font-size: 0.82rem;
  letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase; line-height: 1;
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.nav { display: flex; gap: clamp(14px, 3vw, 38px); }
.nav-l { justify-self: end; margin-right: clamp(18px, 4vw, 56px); }
.nav-r { justify-self: start; margin-left: clamp(18px, 4vw, 56px); }
.nav a {
  --c: var(--text);
  position: relative; padding: 8px 2px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.06rem; letter-spacing: 0.02em;
  color: rgba(236, 233, 226, 0.78); transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[data-route="live"] { --c: var(--live); }
.nav a[data-route="bilder"] { --c: var(--bilder); }
.nav a[data-route="videos"] { --c: var(--videos); }
.nav a[data-route="start"] { --c: var(--text); }

/* Untere Leiste (nur Handy) */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: rgba(10, 12, 17, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.tabbar a {
  --c: var(--text);
  display: grid; justify-items: center; gap: 3px; padding: 8px 4px 6px; min-height: 52px;
  border-radius: 14px; color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); }
.tabbar a[data-route="live"] { --c: var(--live); }
.tabbar a[data-route="bilder"] { --c: var(--bilder); }
.tabbar a[data-route="videos"] { --c: var(--videos); }
.tabbar a[data-route="start"] { --c: var(--text); }

/* --- Gemeinsame Bausteine ------------------------------------------------- */
main { padding-bottom: 72px; outline: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c, var(--muted)); white-space: nowrap;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--muted)) 20%, transparent);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px;
  border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(236, 233, 226, 0.07); color: var(--muted); border: 1px solid var(--line);
}
.pill .led { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.is-live { color: #fff; background: color-mix(in srgb, var(--live) 24%, transparent); border-color: color-mix(in srgb, var(--live) 55%, transparent); }
.pill.is-live .led { background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.page-head { padding-block: clamp(28px, 6vw, 64px) clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(1.9rem, 7.6vw, 4.2rem); line-height: 1.02; outline: none; text-wrap: balance;
  overflow-wrap: anywhere; hyphens: auto;
}
.page-head p { color: var(--muted); max-width: 52ch; }
.back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600;
  font-size: 0.9rem; padding: 6px 0; width: fit-content;
}
.back:hover { color: var(--text); }
.back svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(236, 233, 226, 0.06); font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: rgba(236, 233, 226, 0.12); border-color: var(--line-2); }
.btn-solid { background: var(--c, var(--text)); color: #0a0c11; border-color: transparent; }
.btn-solid:hover { background: color-mix(in srgb, var(--c, var(--text)) 88%, white); }
.btn svg { width: 18px; height: 18px; }

.state {
  display: grid; justify-items: center; gap: 12px; text-align: center; padding: 56px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-l); color: var(--muted);
}
.state h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }

/* --- Startseite ------------------------------------------------------------ */
.art { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-3); }
.play-chip {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; display: grid; place-items: center; background: rgba(10, 12, 17, 0.7);
  border: 1px solid var(--line-2); color: var(--text);
}
.play-chip svg { width: 16px; height: 16px; margin-left: 2px; }

/* Banner: Vollbild-Szene, Text zentriert */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: clamp(380px, 56vh, 540px);
  padding: 140px var(--gutter) 56px;
}
.banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; z-index: -3; }
.mist {
  position: absolute; left: -25%; width: 150%; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, rgba(215, 239, 226, 0.34), rgba(215, 239, 226, 0) 70%);
  filter: blur(14px);
}
.mist.m1 { bottom: 14%; height: 34%; animation: drift 38s ease-in-out infinite alternate; }
.mist.m2 { bottom: 4%; height: 28%; opacity: 0.8; animation: drift 52s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
.banner-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.62) 0, rgba(10, 12, 17, 0) 26%),
    radial-gradient(70% 60% at 50% 50%, rgba(10, 12, 17, 0.5), rgba(10, 12, 17, 0) 75%),
    linear-gradient(180deg, rgba(10, 12, 17, 0) 55%, var(--ink) 100%);
}
.banner-copy { display: grid; justify-items: center; gap: 18px; max-width: 880px; }
.banner h1 {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; outline: none;
  font-size: clamp(2.2rem, 5.2vw, 4rem); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.banner h1 em { font-style: italic; font-weight: 400; color: var(--bilder); }
.banner .lede { color: rgba(236, 233, 226, 0.88); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 44ch; font-weight: 500; }
.banner-cue {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-top: 8px; border-radius: 50%;
  border: 1px solid rgba(236, 233, 226, 0.45); color: var(--text); background: rgba(10, 12, 17, 0.25);
  cursor: pointer; transition: background .25s, transform .25s;
}
.banner-cue:hover { background: rgba(236, 233, 226, 0.14); transform: translateY(3px); }
.banner-cue svg { width: 20px; height: 20px; }
.scene-cap {
  position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 16px; padding: 5px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: rgba(236, 233, 226, 0.8);
  background: rgba(10, 12, 17, 0.5); border: 1px solid var(--line-2); backdrop-filter: blur(6px);
}

/* Bildkacheln: Foto, zentrierter Titel, Untertitel */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 8px clamp(36px, 6vw, 72px); scroll-margin-top: 80px; }
.tile {
  --c: var(--text);
  position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: end center; text-align: center;
  aspect-ratio: 4 / 5; min-width: 0; border-radius: 0; background: none;
}
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); z-index: -2; transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .5s; }
.tile.is-off .tile-bg { filter: grayscale(1) brightness(0.55); }
.tile-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 17, 0.1) 0, rgba(10, 12, 17, 0) 35%, rgba(10, 12, 17, 0.78) 100%); transition: opacity .5s; }
.tile:hover .tile-bg, .tile:focus-visible .tile-bg { transform: scale(1.06); }
.tile:hover .tile-tint, .tile:focus-visible .tile-tint { opacity: 0.7; }
.tile-text { display: grid; justify-items: center; gap: 10px; padding: 24px 24px 30px; max-width: 100%; min-width: 0; }
.tile h2 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: 0; line-height: 1.05; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.tile h2::after { content: ""; display: block; width: 34px; height: 2px; margin: 14px auto 0; background: var(--c); transition: width .4s; }
.tile:hover h2::after { width: 64px; }
.tile-meta { color: rgba(236, 233, 226, 0.9); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-pill { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: center; }
.tile[data-route="live"] { --c: var(--live); }
.tile[data-route="bilder"] { --c: var(--bilder); }
.tile[data-route="videos"] { --c: var(--videos); }

/* --- Live ------------------------------------------------------------------ */
.live-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden;
  background: #05060a; border: 1px solid var(--line-2);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Rückfallebene (eingebetteter Owncast-Player): Er begrenzt die Videohöhe auf 75 % der Rahmenhöhe. In einem 16:9-Rahmen wird das
   Bild dadurch zu klein (Balken links/rechts, unten schwarze Fläche). Darum ist der Rahmen höher als der sichtbare Bereich
   (4:3 plus etwas Reserve, Wert in --embed-h), und der Container schneidet den Überstand ab. */
.player { container-type: inline-size; }
.player iframe[title="Livestream"] { inset: 0 auto auto 0; height: var(--embed-h, 78cqw); }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .art { position: absolute; inset: 0; animation: drift 22s ease-in-out infinite alternate; }
.player .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 28%, transparent 62%, rgba(0,0,0,.65)); }
.player .badges { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.player .controls { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 14px; color: #fff; }
.player .controls svg { width: 22px; height: 22px; }
.player .controls .bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); position: relative; }
.player .controls .bar::after { content: ""; position: absolute; inset: 0 8% 0 0; border-radius: 2px; background: var(--live); }
.player .bigplay {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,12,17,.55); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.player .bigplay svg { width: 30px; height: 30px; margin-left: 4px; }
.player.is-off { display: grid; place-items: center; text-align: center; padding: 24px; }
.player.is-off .art { filter: grayscale(1) brightness(.28); animation: none; }
.off-panel { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 34ch; }
.off-panel h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: -0.02em; }
.off-panel p { color: var(--muted); }
.live-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.live-info h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; min-width: 0; overflow-wrap: anywhere; }

.chat { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--ink-2); overflow: hidden; }
.chat summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; cursor: pointer; font-weight: 800; letter-spacing: 0.02em; min-height: 52px;
}
.chat summary::-webkit-details-marker { display: none; }
.chat summary svg { width: 18px; height: 18px; transition: transform 0.2s; color: var(--muted); }
.chat[open] summary svg { transform: rotate(180deg); }
.chat-body { border-top: 1px solid var(--line); }
.chat-body iframe { width: 100%; height: 440px; border: 0; display: block; }
.chat-demo { display: grid; gap: 12px; padding: 16px; height: 440px; align-content: start; overflow: auto; }
.chat-demo .msg { display: grid; gap: 2px; }
.chat-demo .who { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; }
.chat-demo .what { color: var(--text); overflow-wrap: anywhere; }
.chat-demo .note { margin-top: auto; color: var(--faint); font-size: 0.84rem; border-top: 1px solid var(--line); padding-top: 12px; }

.demo-switch {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--ink-2); margin-top: 22px;
}
.demo-switch button {
  border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--muted); min-height: 38px;
}
.demo-switch button[aria-pressed="true"] { background: var(--text); color: #0a0c11; }

/* --- Bilder ----------------------------------------------------------------- */
.albums { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.album { display: grid; gap: 12px; min-width: 0; }
.album .cover {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--line); transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.album .cover .art { transition: transform 0.7s cubic-bezier(.2,.8,.2,1); }
.album:hover .cover { border-color: color-mix(in srgb, var(--bilder) 60%, transparent); transform: translateY(-3px); }
.album:hover .cover .art { transform: scale(1.06); }
.album h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.15; }
.album .sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

.photos { column-width: 250px; column-gap: 12px; }
.photo {
  display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); background: var(--ink-3);
  border-radius: 12px; overflow: hidden; break-inside: avoid; position: relative;
}
.photo .art { height: auto; transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter .3s; }
.photo:hover .art { transform: scale(1.04); filter: brightness(1.08); }

/* --- Videos ----------------------------------------------------------------- */
.videos { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.video { display: grid; gap: 12px; text-align: left; background: none; border: 0; padding: 0; min-width: 0; }
.video .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.video:hover .thumb { border-color: color-mix(in srgb, var(--videos) 60%, transparent); transform: translateY(-3px); }
.video .thumb .art { transition: transform 0.7s cubic-bezier(.2,.8,.2,1); }
.video:hover .thumb .art { transform: scale(1.06); }
.video .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); }
.video .play-chip { z-index: 2; transition: transform .3s, background .3s; }
.video:hover .play-chip { transform: scale(1.12); background: var(--videos); color: #0a0c11; border-color: transparent; }
.video .dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px;
  background: rgba(10,12,17,.78); font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.video h3 { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
.video .sub { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }

/* --- Overlays (Bildbetrachter, Videoplayer) ------------------------------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(5, 6, 9, 0.95);
  padding: calc(64px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(56px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  grid-template-columns: minmax(0, 1fr);
  animation: fade 0.2s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.ov-stage { margin: 0; display: grid; gap: 12px; justify-items: center; width: 100%; max-height: 100%; min-width: 0; }
.ov-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 10px; object-fit: contain; touch-action: pan-y; }
.ov-stage figcaption { color: var(--muted); font-size: 0.92rem; text-align: center; }
.ov-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(236,233,226,.1); border: 1px solid var(--line-2); transition: background .2s;
}
.ov-btn:hover { background: rgba(236,233,226,.2); }
.ov-btn svg { width: 22px; height: 22px; }
.ov-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.ov-prev, .ov-next { top: 50%; margin-top: -24px; }
.ov-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.ov-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.ov-count {
  position: absolute; z-index: 1; line-height: 1.2; font-size: 0.95rem; top: calc(22px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px));
  color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ov-video { width: min(100%, 1100px); display: grid; gap: 14px; }
.ov-video h2 { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.6rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.player-demo .art { position: absolute; inset: 0; }

/* --- Fußzeile ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--faint); font-size: 0.88rem; }
.site-footer .wrap { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--text); }
.demo-note { color: var(--bilder); font-weight: 700; }

/* Einblenden beim Seitenwechsel (Endzustand ist immer sichtbar) */
.view { animation: rise 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* --- Anpassung an kleinere Bildschirme --------------------------------------- */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .live-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar { display: grid; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .site-header .wrap { height: 64px; grid-template-columns: 1fr; }
  .brand { flex-direction: row; gap: 10px; }
  .brand-mark { height: 44px; }
  .brand-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .banner { min-height: 0; aspect-ratio: 1 / 1; padding: 88px var(--gutter) 48px; }
  .banner-art { object-position: 94% 50%; }
  .site-footer { padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom, 0px)); }
  .tile { aspect-ratio: 16 / 11; }
  .tile-bg { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .ov-prev, .ov-next { display: none; }
  .chat-body iframe, .chat-demo { height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

[data-icon] { display: inline-flex; }

/* --- Wildlife: Filter, Bildunterschrift -------------------------------------- */
[data-kind][hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 233, 226, 0.04);
  color: var(--muted); font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button span { font-size: 0.78rem; color: var(--faint); font-weight: 600; }
.filters button:hover { color: var(--text); background: rgba(236, 233, 226, 0.09); }
.filters button[aria-pressed="true"] {
  color: #0a0c11; background: var(--tint); border-color: transparent;
}
.filters button[aria-pressed="true"] span { color: rgba(10, 12, 17, 0.62); }

.ov-stage figcaption { display: grid; gap: 4px; }
.ov-stage figcaption strong { color: var(--text); font-weight: 700; font-size: 1rem; }
.ov-stage figcaption span { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }


/* Banner mit eigenem Foto: Text bleibt lesbar */
.banner.has-photo .banner-shade {
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.7) 0, rgba(10, 12, 17, 0) 28%),
    radial-gradient(75% 70% at 50% 52%, rgba(10, 12, 17, 0.46), rgba(10, 12, 17, 0.06) 100%),
    linear-gradient(180deg, rgba(10, 12, 17, 0) 60%, var(--ink) 100%);
}

/* --- Unterseiten: zentrierte Köpfe in Serifenschrift ---------------------------- */
.page-head { justify-items: center; text-align: center; }
.page-head h1 { font-weight: 300; letter-spacing: -0.01em; font-size: clamp(2.4rem, 6vw, 4rem); }
.page-head p { margin-inline: auto; }
.back { justify-self: start; }
.filters { justify-content: center; }
.album h3, .video h3 { font-weight: 400; letter-spacing: 0; }
.album h3 { font-size: 1.3rem; }
.video h3 { font-size: 1.15rem; }
.album, .video { text-align: left; }
.state h2, .off-panel h2, .live-info h2, .ov-video h2 { font-weight: 400; letter-spacing: 0; }
.ov-stage figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .mist { animation: none; } }

/* --- Banner "schlicht": flach, ohne Text, blendet unten in den Hintergrund aus ----- */
.banner.is-calm { min-height: 0; height: clamp(230px, 30vh, 300px); padding: 0; display: block; }
.banner.is-calm .banner-shade {
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.55) 0, rgba(10, 12, 17, 0) 40%);
}
.banner.is-calm .banner-art {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 55%, transparent 100%);
}
@media (max-width: 760px) {
  .banner.is-calm { aspect-ratio: auto; height: clamp(210px, 34vh, 280px); padding: 0; }
}

/* Kacheln ohne harte Kanten: Foto und Verlauf laufen an allen Seiten weich in den Hintergrund aus */
.tile-bg, .tile-tint {
  --fx: 4%; --fy-top: 7%; --fy-bot: 42%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 var(--fx), #000 calc(100% - var(--fx)), transparent 100%),
    linear-gradient(180deg, transparent 0, #000 var(--fy-top), #000 calc(100% - var(--fy-bot)), transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0, #000 var(--fx), #000 calc(100% - var(--fx)), transparent 100%),
    linear-gradient(180deg, transparent 0, #000 var(--fy-top), #000 calc(100% - var(--fy-bot)), transparent 100%);
          mask-composite: intersect;
}
.tile-tint { background: linear-gradient(180deg, rgba(10, 12, 17, 0) 0, rgba(10, 12, 17, 0) 45%, rgba(10, 12, 17, 0.55) 100%); }
.tile-text { padding-bottom: 40px; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.75); }
.tile h2 { text-shadow: 0 2px 26px rgba(0, 0, 0, 0.8); }
@media (max-width: 760px) {
  .tile-bg, .tile-tint { --fx: 4%; --fy-top: 6%; --fy-bot: 38%; }
  .tile-text { padding-bottom: 32px; }
}
.tile:not(.is-off) .tile-bg { filter: brightness(1.12) saturate(1.05); }

/* Start ohne Banner: Kacheln mittig im Bild, also im Nebel des Hintergrundfotos */
.start-plain { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 170px 50px; }
.start-plain .tiles { padding-block: 0; }
@media (max-width: 760px) {
  .start-plain { min-height: 0; display: block; padding-block: 104px 24px; }
}

/* Inhalte mittig: unvollständige letzte Reihen bei Alben und Videos werden zentriert, Bildunterschriften auch */
.albums, .videos { display: flex; flex-wrap: wrap; justify-content: center; }
.albums { gap: 16px; }
.videos { gap: 22px 16px; }
.albums > .album { flex: 0 0 calc((100% - 3 * 16px) / 4); }
.videos > .video { flex: 0 0 calc((100% - 2 * 16px) / 3); }
@media (max-width: 1100px) { .albums > .album { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 940px) { .videos > .video { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 820px) { .albums > .album { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .albums > .album, .videos > .video { flex-basis: 100%; } }
.album, .video { text-align: center; }
