/* ══════════════════════════════════════════════════════════════
   CONTENT THEATER – I BET MAX Public Releases
   Dunkler Bühnen-/Kinosaal-Look, Cyan/Türkis-Licht, Spotlight.
   Namespace: ct-* · keine externen Bibliotheken · lokale Fonts.
═══════════════════════════════════════════════════════════════ */

:root {
  --ct-bg:          #06070a;
  --ct-bg2:         #0a1018;
  --ct-cyan:        rgba(34, 211, 238, 1);
  --ct-cyan-dim:    rgba(34, 211, 238, .55);
  --ct-cyan-faint:  rgba(34, 211, 238, .07);
  --ct-teal:        rgba(18, 197, 188, 1);
  --ct-text:        rgba(255, 255, 255, .92);
  --ct-text-dim:    rgba(255, 255, 255, .56);
  --ct-text-faint:  rgba(255, 255, 255, .34);
  --ct-border:      rgba(255, 255, 255, .08);
  --ct-border-c:    rgba(34, 211, 238, .22);
  --ct-radius:      20px;
  --ct-radius-sm:   12px;
  --ct-maxw:        1040px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ct-bg);
  color: var(--ct-text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
               "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--ct-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #7ad3ff; outline-offset: 3px; border-radius: 4px; }
img, video { display: block; max-width: 100%; }
p { overflow-wrap: break-word; }

.ct-wrap { max-width: var(--ct-maxw); margin: 0 auto; padding: 0 24px; }

/* ── HERO – digitaler Kinosaal ─────────────────────────────── */
.ct-hero {
  position: relative; overflow: hidden;
  padding: 120px 0 88px;
  background: linear-gradient(180deg, var(--ct-bg) 0%, #081019 68%, #060b12 100%);
}
/* Projektorstrahl: schmaler Lichtkegel von oben mittig */
.ct-hero__beam {
  position: absolute; pointer-events: none;
  top: -8%; left: 50%; width: 900px; height: 130%;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%,
    transparent 168deg,
    rgba(34, 211, 238, .05) 176deg,
    rgba(125, 224, 245, .09) 180deg,
    rgba(34, 211, 238, .05) 184deg,
    transparent 192deg);
  transform-origin: 50% 0;
  animation: ctBeamSway 14s ease-in-out infinite;
}
/* Sehr langsames Pendeln des Projektorstrahls – kaum merklich, aber lebendig */
@keyframes ctBeamSway {
  0%, 100% { transform: translateX(-50%) rotate(-1.4deg); opacity: .85; }
  50%      { transform: translateX(-50%) rotate(1.4deg);  opacity: 1; }
}
/* Spotlight-Glow hinter dem Titel */
.ct-hero__spot {
  position: absolute; pointer-events: none;
  width: 760px; height: 760px; top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(34, 211, 238, .10) 0%,
    rgba(18, 197, 188, .05) 42%,
    transparent 70%);
  animation: ctSpotPulse 8s ease-in-out infinite;
}
@keyframes ctSpotPulse {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}
/* Bühnenboden: feine Lichtkante unten */
.ct-hero__floor {
  position: absolute; pointer-events: none;
  left: 0; right: 0; bottom: 0; height: 120px;
  background:
    radial-gradient(ellipse 62% 100% at 50% 100%, rgba(34, 211, 238, .10) 0%, transparent 70%),
    linear-gradient(0deg, rgba(34, 211, 238, .05) 0%, transparent 45%);
}
.ct-hero__content { position: relative; text-align: center; }
.ct-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ct-cyan); background: var(--ct-cyan-faint);
  border: 1px solid var(--ct-border-c); border-radius: 100px;
  padding: 6px 16px; margin-bottom: 24px; max-width: 100%;
}
.ct-hero__title {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900; letter-spacing: .10em; line-height: 1.08;
  text-shadow: 0 0 40px rgba(34, 211, 238, .25);
}
.ct-hero__title em {
  font-style: normal; color: var(--ct-cyan);
  text-shadow: 0 0 26px rgba(34, 211, 238, .45);
}
.ct-hero__sub {
  margin: 18px auto 0; max-width: 620px;
  font-size: clamp(15px, 2vw, 18px); color: var(--ct-text-dim);
}
/* ── HERO: Max + Sprechzeile ───────────────────────────────── */
/* Nur für Screenreader: vollständiger Satz sofort verfügbar */
.ct-sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.ct-hero__max {
  margin: 26px auto 0; max-width: 560px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* Fly-in-Wrapper: startet oben rechts außerhalb, gleitet ruhig an Ort.
   Max' eigenes Schweben (.max-char__stage) übernimmt danach die Idle-Bewegung. */
.ct-hero__max-fig {
  width: 96px;
  opacity: 0;
  animation: ctMaxFlyIn 1.7s cubic-bezier(.3,.9,.35,1) .35s forwards;
  will-change: transform, opacity;
}
@keyframes ctMaxFlyIn {
  0%   { opacity: 0; transform: translate(190px, -150px) rotate(9deg) scale(.85); }
  55%  { opacity: 1; }
  80%  { transform: translate(-10px, 8px) rotate(-2deg) scale(1.01); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}
/* Sprechzeile im Terminal-Stil (analog Max-Seite), erscheint nach dem Einflug */
.ct-hero__speech {
  display: inline-flex; align-items: baseline; gap: 8px;
  min-height: 22px; max-width: 100%;
  padding: 7px 14px;
  border: 1px solid var(--ct-border-c); border-radius: 12px;
  background: rgba(10, 18, 26, .55);
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 13px; letter-spacing: .03em;
  color: rgba(125, 224, 245, .88);
  opacity: 0;
  animation: ctSpeechIn .6s ease-out 1.9s forwards;
}
.ct-hero__speech-symbol { color: var(--ct-cyan-dim); flex: 0 0 auto; }
@keyframes ctSpeechIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ct-hero__cursor {
  flex: 0 0 auto; width: 7px; height: 13px; margin-left: 2px;
  background: var(--ct-cyan-dim); align-self: center;
  animation: ctCursorBlink 1.1s steps(1) infinite;
}
@keyframes ctCursorBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .12; } }

/* ── RELEASE-SEKTION ───────────────────────────────────────── */
.ct-releases { padding: 72px 0 84px; }
.ct-sec-header { margin-bottom: 34px; }
.ct-sec-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ct-cyan-dim); margin-bottom: 8px;
}
.ct-sec-title {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: .12em;
}

/* Jahres-Überschrift (dynamisch, für 2027+ vorbereitet) */
.ct-year-title {
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ct-text-faint);
  display: flex; align-items: center; gap: 14px;
  margin: 38px 0 18px;
}
.ct-year-title::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--ct-border-c), transparent);
}
.ct-year-group:first-child .ct-year-title { margin-top: 0; }

/* ── GALERIE ───────────────────────────────────────────────── */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

/* ── RELEASE-KARTE ─────────────────────────────────────────── */
.ct-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(13, 20, 30, .85) 0%, rgba(8, 12, 18, .92) 100%);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ct-card:hover, .ct-card:focus-within {
  border-color: var(--ct-border-c);
  box-shadow: 0 0 28px rgba(34, 211, 238, .10);
}
.ct-card__media {
  position: relative;
  background: #04060a;
  border-bottom: 1px solid var(--ct-border);
}
.ct-card__media video {
  /* contain statt cover: Videos werden vollständig angezeigt (Letterbox)
     statt beschnitten. 4:3 als Kompromiss für den Format-Mix
     (quadratische Max-Videos, 9:16-Hochformat, 16:9-Hafen-Serie). */
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain;
  background: #04060a;
}
.ct-card__media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
}
.ct-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.ct-card__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ct-card__cat {
  font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ct-cyan); background: var(--ct-cyan-faint);
  border: 1px solid var(--ct-border-c); border-radius: 100px;
  padding: 3px 10px;
}
.ct-card__date {
  font-size: 11px; letter-spacing: .06em; color: var(--ct-text-faint);
}
.ct-card__title {
  font-size: 16px; font-weight: 800; letter-spacing: .04em; line-height: 1.35;
}
.ct-card__desc {
  font-size: 13px; line-height: 1.6; color: var(--ct-text-dim);
}
.ct-card__links {
  margin-top: auto; padding-top: 10px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ct-card__link {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: rgba(125, 224, 245, .85);
}
.ct-card__link:hover { color: var(--ct-cyan); }
.ct-card__link--ext::after {
  content: " ↗"; font-size: 11px;
}

/* ── LEERER ZUSTAND ────────────────────────────────────────── */
.ct-empty {
  border: 1px dashed var(--ct-border-c);
  border-radius: var(--ct-radius);
  padding: 44px 24px; text-align: center;
  color: var(--ct-text-dim); font-size: 14px;
}
.ct-empty__icon { display: block; font-size: 22px; color: var(--ct-cyan-dim); margin-bottom: 10px; }

/* ── FOOTER ────────────────────────────────────────────────── */
.ct-footer {
  border-top: 1px solid var(--ct-border);
  padding: 26px 0 34px;
  background: linear-gradient(0deg, rgba(34, 211, 238, .03), transparent);
}
.ct-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ct-text-faint);
}
.ct-footer__back { font-size: 12px; letter-spacing: .08em; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ct-hero { padding: 104px 0 64px; }
  .ct-releases { padding: 52px 0 64px; }
  .ct-wrap { padding: 0 18px; }
  .ct-grid { grid-template-columns: 1fr; gap: 18px; }
  .ct-hero__max { margin-top: 20px; }
  .ct-hero__max-fig { width: 80px; }
  .ct-hero__speech { font-size: 12px; padding: 6px 12px; }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ct-hero__spot { animation: none; }
  .ct-hero__beam { animation: none; transform: translateX(-50%); }
  .ct-card { transition: none; }
  /* Max ohne Einflug direkt sichtbar, Sprechzeile sofort da, Cursor ruhig */
  .ct-hero__max-fig { animation: none; opacity: 1; }
  .ct-hero__speech { animation: none; opacity: 1; }
  .ct-hero__cursor { animation: none; opacity: .5; }
}
