/* ==========================================================================
   Cloudplay – cloudplay.show
   Schriften lokal (keine Anfragen an Google), keine Tracker, kein Framework.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg:      #0c0c0d;
  --bg-alt:  #131315;
  --line:    #2a2a2e;
  --text:    #f3f1ed;
  --muted:   #9a9893;
  --red:     #ff1744;
  --red-ink: #d30030;   /* Rot auf hellem Grund */
  --label:   #f7f6f3;   /* das weiße Schild aus dem Logo */
  --label-ink: #2b2b2b;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--label); color: var(--label-ink); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ── Das Schild: schräge weiße Box mit dunkler Schrift, wie im Logo ───── */
.tag {
  display: inline-block;
  background: var(--label);
  color: var(--label-ink);
  transform: skewX(-9deg);
  border-radius: 3px;
  text-decoration: none;
  line-height: 1;
}
.tag > span {
  display: block;
  transform: skewX(9deg);
  font-weight: 850;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.tag-btn { padding: 13px 20px 12px; box-shadow: 4px 4px 0 var(--red); transition: box-shadow .15s ease, background-color .15s ease; }
.tag-btn > span { font-size: 15px; }
.tag-btn:hover { box-shadow: 6px 6px 0 var(--red); }
.tag-btn:active { box-shadow: 2px 2px 0 var(--red); }
.tag-light { box-shadow: 4px 4px 0 var(--bg); }
.tag-light:hover { box-shadow: 6px 6px 0 var(--bg); }
.tag-light:active { box-shadow: 2px 2px 0 var(--bg); }

.tag-xl { margin: 0; padding: 10px 18px 8px; }
.tag-xl > span { font-size: clamp(26px, 4vw, 40px); }

.link-arrow {
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--red); }

/* ── Kopfzeile ─────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, .96);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-weight: 850; font-stretch: 118%; text-transform: uppercase; font-size: 19px; letter-spacing: .01em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top-cta { padding: 10px 14px 9px; box-shadow: 3px 3px 0 var(--red); }
.top-cta > span { font-size: 13px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .brand span { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(40px, 5vw, 74px);
  line-height: .88;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); color: #d4d2cd; max-width: 34ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero-video { margin: 0; }
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: block; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade .facade-fallback { object-fit: contain; padding: 12%; background: var(--bg-alt); }
.play-btn {
  position: absolute; left: 20px; bottom: 20px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  transition: transform .15s ease;
}
.play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.video-facade:hover .play-btn { transform: scale(1.06); }
.hero-video figcaption { display: grid; gap: 6px; padding-top: 14px; }
.hero-video-title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.consent-note { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 80px); }
}

/* ── Abschnitte ────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-lede { color: var(--muted); max-width: 52ch; margin: 22px 0 40px; }

/* ── Videos ────────────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}
.video-card { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.video-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.video-card:hover img { opacity: .85; }
.video-card h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.video-card:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.empty-card {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 28px; border: 1px dashed var(--line); text-decoration: none; color: var(--muted);
}

.shorts { margin-top: 64px; }
.shorts-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: 16px; margin-top: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.short-card { text-decoration: none; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.short-card .thumb { aspect-ratio: 9 / 16; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.short-card img { width: 100%; height: 100%; object-fit: cover; }
.short-card span { font-size: 14px; font-weight: 600; line-height: 1.3; }
.short-card:hover span { color: var(--red); }

@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .video-grid { grid-template-columns: 1fr; }
  .shorts-row { grid-auto-columns: 42%; }
}

/* ── Podcast ───────────────────────────────────────────────────────────── */
.podcast-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); margin-top: 48px;
}
.episode-title {
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05;
  font-weight: 850; font-stretch: 112%; letter-spacing: -.015em;
}
.episode-meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.episode-summary { color: #d4d2cd; max-width: 60ch; margin: 0 0 28px; }

.audio {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--bg);
  max-width: 640px;
}
.audio[hidden] { display: none; }
.audio-toggle {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--red); display: grid; place-items: center; cursor: pointer;
}
.audio-toggle svg { width: 24px; height: 24px; fill: #fff; }
.audio-toggle .i-play { margin-left: 3px; }
.audio-toggle .i-pause, .audio.is-playing .audio-toggle .i-play { display: none; }
.audio.is-playing .audio-toggle .i-pause { display: block; }
.audio-body { flex: 1; min-width: 0; }
.audio-seek { width: 100%; accent-color: var(--red); margin: 0; }
.audio-time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }

.platforms { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.platforms a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-weight: 650; font-size: 18px;
}
.platforms a::after { content: "→"; color: var(--muted); transition: transform .15s ease, color .15s ease; }
.platforms a:hover::after { color: var(--red); transform: translateX(4px); }

.episode-list-wrap { margin-top: 64px; }
.episode-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.episode-list li { border-bottom: 1px solid var(--line); }
.episode-list button {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; align-items: baseline;
  padding: 16px 0;
}
.episode-list .ep-date, .episode-list .ep-dur { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.episode-list .ep-name { font-weight: 650; font-size: 17px; }
.episode-list button:hover .ep-name, .episode-list button[aria-current="true"] .ep-name { color: var(--red); }
.episode-list button[aria-current="true"] .ep-date::before { content: "▶ "; color: var(--red); }

@media (max-width: 900px) { .podcast-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .episode-list button { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .episode-list .ep-date { grid-column: 1 / -1; }
}

/* ── Discord ───────────────────────────────────────────────────────────── */
.discord { background: var(--red); color: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.discord-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.discord-count { margin: 0; line-height: .8; }
.discord-count b {
  font-size: clamp(96px, 13vw, 190px); font-weight: 900; font-stretch: 125%;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.discord-count-label { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; margin: 18px 0 0; max-width: 26ch; }
.discord-copy h2 {
  margin: 0 0 18px; font-size: clamp(32px, 4vw, 52px); line-height: .95;
  font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.02em;
}
.discord-copy p { margin: 0 0 32px; max-width: 44ch; font-size: 18px; }
.discord ::selection { background: #fff; color: var(--red-ink); }
.discord :focus-visible { outline-color: #fff; }

@media (max-width: 900px) { .discord-grid { grid-template-columns: 1fr; align-items: start; } }

/* ── Hosts ─────────────────────────────────────────────────────────────── */
.hosts { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hosts li > * {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.host-name {
  font-size: clamp(32px, 5.5vw, 68px); font-weight: 850; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: -.02em; line-height: 1;
}
.hosts a .meta::after { content: "  →"; }
.hosts a:hover .host-name { color: var(--red); }
.hosts-note { margin: 32px 0 0; color: var(--muted); max-width: 60ch; }
.hosts-note a { color: var(--text); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ── Fußzeile ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand p { margin: 0; font-weight: 850; font-stretch: 118%; text-transform: uppercase; line-height: 1.4; }
.foot-links, .foot-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links { justify-content: center; padding-top: 16px; }
.foot-legal { padding-top: 16px; }
.foot a { text-decoration: none; color: var(--muted); font-weight: 600; }
.foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-links { justify-content: flex-start; padding-top: 0; }
  .foot-legal { padding-top: 0; }
}

/* ── Unterseiten (Impressum, Datenschutz, 404) ─────────────────────────── */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 120px); }
.page .wrap { max-width: 820px; }
.page h1 {
  margin: 0 0 40px; font-size: clamp(40px, 6vw, 72px); line-height: .92;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em;
}
.page h2 { font-size: 22px; font-weight: 800; margin: 44px 0 10px; }
.page h3 { font-size: 18px; font-weight: 700; margin: 28px 0 6px; }
.page p, .page li { color: #d4d2cd; }
.page a { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page address { font-style: normal; }
.page .page-stand { margin-top: 48px; color: var(--muted); }
.page .page-actions { margin-top: 32px; }
.page .tag-btn { text-decoration: none; }
