/* public/css/style.css */
:root {
  --bg: #0f0f0f;
  --bg-2: #161616;
  --fg: #ffffff;
  --muted: #bcbcbc;
  --accent: #b30000;
  --border: #2a2a2a;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.bar-fill[data-percent] { width: var(--w, 0%); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: 0.08em; text-transform: uppercase; }
h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--accent); margin-top: 10px; }
h3 { font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* width/height nötig: canvas ist ein replaced element, inset allein streckt es nicht */
#hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { text-align: center; padding: 24px; max-width: 720px; }
#logo { width: min(420px, 70vw); height: auto; display: block; margin: 0 auto; }
.hero-pitch { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.25rem); margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 1.4rem; text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--fg); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #d40000; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Sektionen ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 84px 24px; scroll-margin-top: 56px; }
.prose { max-width: 62ch; color: var(--muted); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cards .card:hover { transform: translateY(-3px); border-color: var(--accent); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.plain-list li:last-child { border-bottom: none; }
.detail { color: var(--muted); font-size: 0.9rem; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--fg); font-size: 0.8rem; letter-spacing: 0.05em;
}

/* Progress-Balken */
.bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 999px; width: 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }

/* Streams */
.stream-card { padding: 0; overflow: hidden; }
.stream-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.stream-card .stream-body { padding: 14px 18px 18px; }
.stream-card.offline { opacity: 0.55; filter: grayscale(0.7); }
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #e91916; margin-right: 7px; box-shadow: 0 0 8px #e91916;
}

/* Formular */
.apply label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.apply input, .apply select, .apply textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  padding: 10px 12px;
  font: inherit;
}
.apply input:focus, .apply select:focus, .apply textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); text-align: center; padding: 32px 24px 40px; color: var(--muted); }
.footer p { margin: 4px 0; }

/* Logo-Animation: Startzustände setzt GSAP; ohne JS bleibt das Logo einfach sichtbar. */

/* ---------- Sticky-Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 22px;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}
/* .at-top wird nur von JS gesetzt: über dem Hero transparent */
.topbar.at-top { background: transparent; backdrop-filter: none; border-color: transparent; }
.topbar-brand { font-weight: 700; letter-spacing: 0.32em; text-decoration: none; color: var(--fg); }
.topbar-brand:hover { color: var(--accent); }
.topbar-nav { display: flex; gap: 18px; margin-left: auto; }
.topbar-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.04em; }
.topbar-nav a:hover { color: var(--fg); }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }
.topbar .btn-small { margin-left: auto; }
.topbar-nav + .btn-small { margin-left: 0; }
@media (max-width: 719px) {
  .topbar-nav { display: none; }
}

/* ---------- News ---------- */
#news-list { display: grid; gap: 20px; max-width: 720px; }
.news-card p { margin: 0.4em 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.news-card .detail { margin: 0; }
.news-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 12px;
  display: block;
}

/* Zenit-Glow (nur Theme 'gipfel', Element wird von hero-bg.js erzeugt).
   GPU-animiert statt Canvas: weich, ohne Banding. */
.zenit-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(72vh, 860px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255, 236, 200, 0.11),
    rgba(255, 236, 200, 0.04) 55%,
    transparent 72%);
  filter: blur(32px);
  z-index: -1;
  pointer-events: none;
  animation: zenit-glow-breath 5.2s ease-in-out infinite alternate;
}
@keyframes zenit-glow-breath {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}
