/* Videoseite (/videos/, /en/videos/): großer Kopf mit Kuppelgitter, Hauptfilm, Kacheln je Kategorie, Kino-Player.
   Baut auf recht.css auf (Farben, Schriften, Kopf und Fuß). */
:root { --g1: #50d8c8; --g2: #ffff66; --g3: #ffc832; --g4: #e9a6d6; --g5: #a498f4; --glas: rgba(16, 26, 43, 0.62); --rad: 20px; }
.vid { overflow: hidden; }
.vid-wrap { width: min(1220px, calc(100vw - 32px)); margin: 0 auto; }

/* ── Kopf ─────────────────────────────────────────────────────────────── */
.vid-held { position: relative; min-height: min(78vh, 760px); display: grid; align-items: end; padding: 120px 0 64px; isolation: isolate; }
.vid-held__bild { position: absolute; inset: 0; z-index: -3; background: center 40% / cover no-repeat; filter: saturate(1.1) brightness(0.55); transform: scale(1.06); animation: vidAtmen 22s ease-in-out infinite alternate; }
.vid-held::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 70% 10%, rgba(80, 216, 200, 0.16), transparent 55%), linear-gradient(180deg, rgba(11, 18, 32, 0.15) 0%, rgba(11, 18, 32, 0.55) 55%, var(--night) 100%); }
.vid-held__gitter { position: absolute; inset: 0; z-index: -1; opacity: 0.22; pointer-events: none; }
.vid-held__gitter path { stroke: url(#vidGrad); stroke-width: 1; fill: none; stroke-dasharray: 6 10; animation: vidLauf 30s linear infinite; }
.vid-held__auge { margin: 0 0 14px; font: 500 13px/1 'Oswald', sans-serif; letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; }
.vid-held h1 { margin: 0; font: 600 clamp(54px, 11vw, 140px)/0.92 'Oswald', sans-serif; letter-spacing: 0.01em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--g1), var(--g2) 30%, var(--g3) 52%, var(--g4) 76%, var(--g5)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: vidGlanz 9s ease-in-out infinite alternate; filter: drop-shadow(0 8px 40px rgba(80, 216, 200, 0.22)); }
.vid-held__text { max-width: 640px; margin: 18px 0 0; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; color: #d7e0ec; }
.vid-held__leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.vid-knopf { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--glas); backdrop-filter: blur(10px); color: var(--text); text-decoration: none; font: 500 15px/1 'Oswald', sans-serif; letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.vid-knopf:hover, .vid-knopf:focus-visible { border-color: var(--g1); transform: translateY(-2px); outline: none; }
.vid-knopf--voll { background: linear-gradient(100deg, #c8f07a, var(--g1) 55%, #5cd4f4); color: #071018; border-color: transparent; font-weight: 600; }
.vid-knopf svg { width: 16px; height: 16px; }
.vid-held__zahlen { margin-left: auto; display: flex; gap: 26px; color: var(--muted); font-size: 14px; }
.vid-held__zahlen b { display: block; font: 600 30px/1 'Oswald', sans-serif; color: var(--text); }

/* ── Hauptfilm ────────────────────────────────────────────────────────── */
.vid-buehne { margin: 18px auto 10px; }
.vid-haupt { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0; border-radius: calc(var(--rad) + 6px); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); background: var(--glas); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); }
.vid-haupt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, var(--g1), transparent 30%, transparent 70%, var(--g5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.7; }
.vid-haupt .vid-karte__bild { border-radius: 0; aspect-ratio: 16 / 9; }
.vid-haupt__text { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.vid-haupt__text small { font: 500 12px/1 'Oswald', sans-serif; letter-spacing: 0.28em; color: var(--g1); text-transform: uppercase; }
.vid-haupt__text h2 { margin: 12px 0 10px; font: 500 clamp(26px, 3vw, 38px)/1.12 'Oswald', sans-serif; }
.vid-haupt__text p { margin: 0 0 22px; color: #c9d4e3; }

/* ── Kategorien und Kacheln ───────────────────────────────────────────── */
.vid-kat { padding: 70px 0 10px; scroll-margin-top: 80px; }
.vid-kat__kopf { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; align-items: end; margin-bottom: 26px; }
.vid-kat__nr { grid-row: span 2; font: 600 clamp(56px, 8vw, 96px)/0.8 'Oswald', sans-serif; background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vid-kat__kopf h2 { margin: 0; font: 500 clamp(28px, 4vw, 44px)/1.1 'Oswald', sans-serif; }
.vid-kat__kopf p { margin: 0; max-width: 820px; color: var(--muted); }
.vid-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.vid-karte { position: relative; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: var(--rad); background: var(--glas); color: inherit; text-align: left; font: inherit; cursor: pointer; transition: transform 0.45s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 0.45s; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9); }
.vid-karte::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(130deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; transition: background 0.45s; }
.vid-karte:hover, .vid-karte:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 70px -32px rgba(80, 216, 200, 0.45); outline: none; }
.vid-karte:hover::before, .vid-karte:focus-visible::before { background: linear-gradient(130deg, var(--g1), var(--g3) 50%, var(--g5)); }
.vid-karte__bild { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--rad) var(--rad) 0 0; overflow: hidden; background: #0d1626; }
.vid-karte__bild img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 0.8s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), filter 0.6s; filter: saturate(0.92) brightness(0.86); }
.vid-karte:hover .vid-karte__bild img, .vid-haupt:hover .vid-karte__bild img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.vid-karte__bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 12, 20, 0.7)); }
.vid-spiel { position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 12, 20, 0.55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.35); transition: transform 0.4s, background 0.4s, border-color 0.4s; }
.vid-spiel svg { width: 24px; height: 24px; margin-left: 4px; fill: #fff; }
.vid-karte:hover .vid-spiel, .vid-haupt:hover .vid-spiel { transform: scale(1.12); background: linear-gradient(130deg, rgba(80, 216, 200, 0.9), rgba(164, 152, 244, 0.9)); border-color: transparent; }
.vid-haupt .vid-spiel { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.vid-haupt .vid-spiel svg { width: 34px; height: 34px; }
.vid-dauer { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 9px; border-radius: 8px; background: rgba(7, 12, 20, 0.72); font: 500 13px/1 'Oswald', sans-serif; letter-spacing: 0.06em; color: #e9eef6; }
.vid-karte__text { padding: 16px 18px 20px; }
.vid-karte__text b { display: block; font: 500 20px/1.2 'Oswald', sans-serif; }
.vid-karte__text span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.vid-quelle { margin: 54px 0 70px; font-size: 14px; color: #6f7d92; }

/* ── Kino ─────────────────────────────────────────────────────────────── */
.kino { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.kino::backdrop { background: rgba(3, 6, 12, 0.88); backdrop-filter: blur(14px); }
.kino[open] { display: grid; grid-template-rows: auto 1fr auto; animation: vidKino 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.kino__leiste { display: flex; justify-content: flex-end; gap: 10px; padding: 16px max(16px, 3vw) 0; }
.kino__mitte { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px max(8px, 2vw); min-height: 0; }
.kino video { width: 100%; max-height: calc(100dvh - 210px); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; box-shadow: 0 50px 120px -40px rgba(80, 216, 200, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.kino__pfeil, .kino__zu { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(16, 26, 43, 0.7); color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color 0.3s, transform 0.3s; }
.kino__pfeil:hover, .kino__zu:hover, .kino__pfeil:focus-visible, .kino__zu:focus-visible { border-color: var(--g1); transform: scale(1.06); outline: none; }
.kino__pfeil svg, .kino__zu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kino__unten { width: min(1100px, calc(100vw - 32px)); margin: 0 auto; padding: 6px 0 22px; }
.kino__unten small { font: 500 12px/1 'Oswald', sans-serif; letter-spacing: 0.26em; color: var(--g1); text-transform: uppercase; }
.kino__unten h3 { margin: 8px 0 4px; font: 500 clamp(22px, 3vw, 30px)/1.15 'Oswald', sans-serif; }
.kino__unten p { margin: 0; color: var(--muted); }

@keyframes vidAtmen { from { transform: scale(1.06); } to { transform: scale(1.14) translateY(-1.5%); } }
@keyframes vidGlanz { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes vidLauf { to { stroke-dashoffset: -320; } }
@keyframes vidKino { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .vid-haupt { grid-template-columns: 1fr; }
  .vid-held { padding-top: 96px; min-height: 64vh; }
  .vid-held__zahlen { margin-left: 0; width: 100%; }
  .kino__mitte { grid-template-columns: 1fr; }
  .kino__pfeil { display: none; }
  .kino video { max-height: calc(100dvh - 240px); border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vid-held__bild, .vid-held h1, .vid-held__gitter path { animation: none; }
  .vid-karte, .vid-karte__bild img, .kino[open] { transition: none; animation: none; }
}
