/* ══════════════════════════════════════════════════════════════════
   Avaria Media – Main Page
   Designsystem uebernommen aus Avaria Team OS:
   dunkles Glassmorphism, weiche Glows, Verlauf Blau → Violett → Pink.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050817;
  --bg2: #080c20;
  --panel: rgba(13, 19, 42, 0.72);
  --panel2: rgba(22, 30, 58, 0.78);
  --text: #eef5ff;
  --muted: #aab7d4;
  --blue: #9ed7ff;
  --pink: #ff9fd7;
  --violet: #c8bcff;
  --green: #7ee787;
  --line: rgba(190, 203, 255, 0.16);
  --line-strong: rgba(190, 203, 255, 0.28);
  --radius: 26px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  /* Einheitliche Abstände: ein Rasterabstand, ein Abschnittsabstand. */
  --gap-grid: 16px;
  --gap-section: clamp(46px, 6vw, 82px);
  --card-pad: clamp(20px, 2.3vw, 30px);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.3);
  --glass-fill: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  --grad-brand: linear-gradient(135deg, #9ed7ff, #c8bcff, #ff9fd7);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% -10%, rgba(158, 215, 255, 0.24), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(255, 159, 215, 0.2), transparent 30%),
    radial-gradient(circle at 48% 105%, rgba(200, 188, 255, 0.16), transparent 38%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Dezentes Raster, das nach unten ausblendet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(190, 203, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 203, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

::selection {
  background: rgba(158, 215, 255, 0.28);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 203, 255, 0.25) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(190, 203, 255, 0.2);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

img {
  max-width: 100%;
}

/* hidden muss auch gegen Klassen wie .field { display: flex } gewinnen,
   sonst bleiben ein-/ausblendbare Felder immer sichtbar. */
[hidden] {
  display: none !important;
}

/* ── Typografie ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2rem, 1rem + 2.8vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px 2px rgba(158, 215, 255, 0.7);
  flex-shrink: 0;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  background: var(--panel2);
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ── Grundbausteine ───────────────────────────────────────────────── */
.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  padding-block: 22px 18px;
}
@media (max-width: 640px) {
  .page-shell { width: calc(100% - 20px); }
}

/* Abschnitte, die direkt aneinander grenzen, brauchen weniger Luft. */
.page-shell > .section-divider { margin-block: calc(var(--gap-section) / -2.6); }

.card {
  position: relative;
  background: var(--glass-fill), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  padding: var(--card-pad);
}
.card-sm { border-radius: var(--radius-sm); padding: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.5);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 203, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(158, 215, 255, 0.08);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-primary {
  border: none;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 8px 26px rgba(158, 215, 255, 0.22), 0 4px 14px rgba(255, 159, 215, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(158, 215, 255, 0.34), 0 6px 22px rgba(255, 159, 215, 0.28);
}
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-danger {
  border: 1px solid rgba(255, 122, 156, 0.5);
  color: #ffd9e2;
  background: linear-gradient(135deg, rgba(255, 122, 156, 0.22), rgba(255, 122, 156, 0.1));
}
.btn-danger:hover { border-color: rgba(255, 122, 156, 0.85); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.badge.is-live {
  color: #ffd7ec;
  border-color: rgba(255, 122, 156, 0.5);
  background: linear-gradient(135deg, rgba(255, 122, 156, 0.26), rgba(255, 122, 156, 0.12));
}
.badge.is-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff7a9c;
  box-shadow: 0 0 8px 2px rgba(255, 122, 156, 0.8);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(158, 215, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
}

/* ── Abschnittsueberschrift ───────────────────────────────────────── */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(24px, 3.2vw, 38px);
}
.section-heading p { color: var(--muted); max-width: 64ch; }
.section-heading.is-left { align-items: flex-start; text-align: left; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* Inhaltsabschnitt des Onepagers – Ankerziel unter der klebenden Navigation. */
.content-section {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* ── Navigation ───────────────────────────────────────────────────── */
.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 0;
}
@media (max-width: 640px) {
  .site-nav-wrap { width: calc(100% - 20px); }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)), rgba(8, 12, 32, 0.86);
  box-shadow: var(--shadow-soft);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  flex-shrink: 0;
}
.nav-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.nav-brand-mark::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(158, 215, 255, 0.4), rgba(255, 159, 215, 0.2) 45%, transparent 70%);
  filter: blur(8px);
  opacity: 0.7;
  z-index: 0;
}
.nav-brand-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-brand-text { white-space: nowrap; }
@media (max-width: 380px) {
  .nav-brand-text { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a:not(.nav-cta) {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav-links > a:not(.nav-cta):hover {
  color: var(--text);
  background: rgba(158, 215, 255, 0.09);
}
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.6);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-nav { border-radius: var(--radius); flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-cta { margin: 8px 0 0; }
}

/* ── Spotlight ────────────────────────────────────────────────────
   Sitzt unter dem Hero. Der Player liegt gerundet und abgesetzt in der
   Karte; die Hervorhebung kommt aus einer farbigen Aura statt aus einem
   harten Rahmen. */
.spotlight-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spotlight {
  position: relative;
  /* KEIN overflow: hidden – ein gerundeter Beschnitt auf einem Vorfahren zwingt
     den Browser, das iframe in eine Textur zu rastern. Genau das lässt den
     Stream verschwommen wirken und einfrieren. */
  padding: 14px;
  border-radius: var(--radius);
  /* Rahmen rundum im Markenverlauf: Fläche in padding-box, Verlauf in border-box. */
  border: 2px solid transparent;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(158, 215, 255, 0.14), transparent 58%) padding-box,
    radial-gradient(120% 140% at 100% 100%, rgba(255, 159, 215, 0.13), transparent 58%) padding-box,
    linear-gradient(#0b1028, #0b1028) padding-box,
    var(--grad-brand) border-box;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 60px -18px rgba(158, 215, 255, 0.5),
    0 22px 70px -30px rgba(255, 159, 215, 0.6);
  transition: box-shadow 0.35s ease;
}
.spotlight:hover {
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.55),
    0 0 80px -16px rgba(158, 215, 255, 0.7),
    0 26px 90px -28px rgba(255, 159, 215, 0.75);
}

/* Die Spotlight-Vorschau ist bewusst ein Standbild und kein eingebetteter Player:
   Filter, Transforms und gerundete Beschnitte auf Vorfahren lassen ein Video-iframe
   in Chrome einfrieren. Mit einem <img> gibt es das Problem nicht. */
.spotlight-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.spotlight-body { transition: filter 0.3s ease, opacity 0.3s ease; }
.spotlight:hover .spotlight-body { filter: blur(4px); opacity: 0.4; }

/* Ebenfalls ohne overflow: hidden. Die Rundung trägt der Player selbst,
   der Hintergrund wird ohnehin vom border-radius beschnitten. */
.spotlight-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #060a1c center / cover no-repeat;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.spotlight-stage .spotlight-shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}
.spotlight-stage .spotlight-shot { object-fit: cover; }
.spotlight-noshot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.spotlight-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-right: 6px;
  min-width: 0;
}
.spotlight-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.spotlight-head img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 159, 215, 0.6);
  box-shadow: 0 0 20px rgba(255, 159, 215, 0.35);
  flex-shrink: 0;
}
.spotlight-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.spotlight-head-text h2 {
  font-size: clamp(1.3rem, 0.9rem + 1vw, 1.85rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spotlight-channel { font-size: 0.8rem; color: var(--muted); }
.spotlight-title {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.spotlight-cta {
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spotlight-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* eigene Rundung, da der Container nicht mehr beschneidet */
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  opacity: 0;
  /* Liegt über dem Embed und fängt Hover und Klick für die ganze Karte ab.
     Bewusst ohne backdrop-filter – siehe Hinweis oben. */
  cursor: pointer;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(circle at center, rgba(255, 159, 215, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(5, 8, 23, 0.86), rgba(5, 8, 23, 0.92));
}
.spotlight:hover .spotlight-hover { opacity: 1; }
.spotlight-hover-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(14px) scale(0.94);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.spotlight:hover .spotlight-hover-inner { transform: none; }
.spotlight-hover-inner strong {
  font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.spotlight-play {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 10px 34px rgba(255, 159, 215, 0.45);
}
.spotlight-play svg { width: 25px; height: 25px; fill: currentColor; margin-left: 3px; }

@media (max-width: 820px) {
  .spotlight-inner { grid-template-columns: 1fr; gap: 15px; }
  .spotlight-body { padding-right: 0; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--gap-grid);
  align-items: stretch;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-main {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Inhalt sitzt waagerecht UND senkrecht mittig, auch wenn die
     Seitenspalte höher wird. */
  justify-content: center;
  text-align: center;
  gap: 15px;
  padding: clamp(34px, 4vw, 56px) clamp(24px, 3vw, 46px);
}
.hero-main::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(158, 215, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-socials {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.social-chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.6);
  color: var(--muted);
  transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.social-chip svg { width: 20px; height: 20px; fill: currentColor; }
.social-chip:hover {
  transform: translateY(-2px);
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
}

.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 12vw, 132px);
  margin-bottom: 4px;
}
.hero-logo::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(158, 215, 255, 0.42), rgba(255, 159, 215, 0.22) 45%, transparent 70%);
  filter: blur(14px);
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero-main h1 { max-width: 16ch; }
.hero-copy { color: var(--muted); max-width: 58ch; font-size: 1.03rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.hero-actions .btn-primary { padding: 14px 28px; font-size: 0.98rem; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: var(--gap-grid);
}
.hero-side .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
  justify-content: center;
}

/* Aktueller Fokus: Kopf, Titel, Fortschritt, Stepper */
.focus-panel { gap: 12px; }
.focus-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.focus-panel-step {
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0a0e22;
  background: var(--grad-brand);
  white-space: nowrap;
}
.focus-panel-title {
  font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.4rem);
  letter-spacing: -0.02em;
}
.focus-progress { display: flex; flex-direction: column; gap: 6px; }

.phase-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.phase-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.phase-steps li.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.14), rgba(255, 159, 215, 0.09));
}
.phase-steps li.is-done { color: rgba(226, 236, 255, 0.86); }
.phase-step-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 28, 0.6);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--muted);
}
.phase-step-dot svg { width: 14px; height: 14px; fill: currentColor; }
.phase-steps li.is-done .phase-step-dot,
.phase-steps li.is-active .phase-step-dot {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
}
.phase-steps li.is-active .phase-step-dot {
  box-shadow: 0 0 12px 2px rgba(255, 159, 215, 0.45);
}
.phase-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-panel-link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue);
  transition: color 0.16s ease;
}
.focus-panel-link:hover { color: var(--text); }

/* Warum Discord: drei Punkte mit Icon */
.discord-why h3 { font-size: 1.05rem; }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 5px 16px rgba(158, 215, 255, 0.24);
}
.why-icon svg { width: 18px; height: 18px; fill: currentColor; }
.why-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.why-text strong { font-size: 0.9rem; }
.why-text small { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }

/* ── Discord-Status ───────────────────────────────────────────────── */
.discord-status {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(16px, 1.8vw, 22px);
}
.discord-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.discord-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.7);
}
.discord-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discord-avatar .discord-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
}
.discord-avatar svg { width: 24px; height: 24px; fill: currentColor; }
.discord-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.discord-head-text h2 { font-size: clamp(1.15rem, 0.9rem + 0.6vw, 1.5rem); }
.discord-hint {
  font-size: 0.76rem;
  color: rgba(170, 183, 212, 0.75);
}
.discord-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(158, 215, 255, 0.1);
  font-size: 0.92em;
}

.discord-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 620px) {
  .discord-stats { grid-template-columns: 1fr; }
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 203, 255, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.stat-value {
  font-size: clamp(1.5rem, 1rem + 1vw, 1.9rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--blue);
}
.stat-dot.is-online { background: var(--green); box-shadow: 0 0 8px 1px rgba(126, 231, 135, 0.7); }
.stat-dot.is-creator { background: var(--pink); }


/* ── Netzwerk-Bereich: Live-Block + Laufband ──────────────────────── */
.creators-body {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 38px);
}
/* Blöcke innerhalb eines Abschnitts (Live / Laufband) */
.creator-live-block,
.creator-slider-block {
  display: flex;
  flex-direction: column;
  gap: var(--gap-grid);
}
/* Zwischenüberschrift eines Blocks – links, mit Linie darunter. */
.block-heading {
  display: flex;
  align-items: baseline;
  gap: 6px 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.block-heading h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.block-heading .badge,
.block-heading .eyebrow { align-self: center; }
.block-heading .badge { margin-left: auto; }
/* Variante ohne Trennlinie – z. B. über den Werte-Karten. */
.block-heading.is-plain { padding-bottom: 0; border-bottom: none; margin-bottom: 20px; }
.creators-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap-grid);
}
/* Bewusst ohne Stream-Vorschau: Profilbild, Kanal, Titel, Zuschauer. */
.live-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 159, 215, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 159, 215, 0.08), transparent 60%),
    var(--glass-fill), var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.live-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 159, 215, 0.6);
  box-shadow: 0 20px 55px rgba(255, 159, 215, 0.14), var(--shadow-soft);
}
.live-card-avatar {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.live-card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(13, 19, 42, 0.8);
}
/* Pulsierender Ring als Live-Signal */
.live-card-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(255, 122, 156, 0.85);
  animation: liveRing 2.4s ease-out infinite;
}
@keyframes liveRing {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}
.live-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.live-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-card-top h3 {
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-card-top .badge { margin-left: auto; flex-shrink: 0; }
.live-card-game { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.live-card-title {
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Immer am unteren Rand, egal wie lang der Streamtitel ist. */
.live-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.live-card-watch { color: var(--pink); transition: transform 0.16s ease; }
.live-card:hover .live-card-watch { transform: translateX(3px); }

/* ── Fokus-Karten (Über uns) ──────────────────────────────────────── */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-grid);
}
.focus-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.focus-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}
.focus-number {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.focus-card p { color: var(--muted); font-size: 0.92rem; }

/* ── Werte ────────────────────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(216px, 1fr));
  gap: var(--gap-grid);
}
.value-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 203, 255, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.value-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 13px;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px rgba(158, 215, 255, 0.26);
}
.value-icon svg { width: 21px; height: 21px; fill: currentColor; }
.value-card h3 { font-size: 1rem; letter-spacing: -0.02em; }
.value-card p { color: var(--muted); font-size: 0.87rem; }

/* ── Creator-Laufband ─────────────────────────────────────────────── */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee.is-static {
  cursor: default;
  -webkit-mask-image: none;
  mask-image: none;
}
.marquee-track {
  display: flex;
  gap: var(--gap-grid);
  width: max-content;
  will-change: transform;
}
.marquee.is-static .marquee-track {
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hinweis beim Hovern: Pille mit animiertem Mausrad-Symbol */
.marquee-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(8, 12, 32, 0.94), rgba(8, 12, 32, 0.94)) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(158, 215, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px) scale(0.94);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.marquee.is-paused .marquee-hint {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* Kleine Maus, in der ein Punkt auf und ab läuft */
.marquee-hint-mouse {
  position: relative;
  width: 15px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid var(--blue);
}
.marquee-hint-mouse span {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 3px;
  height: 5px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: var(--pink);
  animation: wheelHint 1.5s ease-in-out infinite;
}
@keyframes wheelHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.35; }
}

.marquee-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.marquee-edge svg { width: 22px; height: 22px; fill: currentColor; }
.marquee-edge.is-left {
  left: 0;
  transform: translateX(-8px);
  background: linear-gradient(90deg, rgba(5, 8, 23, 0.9), transparent);
}
.marquee-edge.is-right {
  right: 0;
  transform: translateX(8px);
  background: linear-gradient(270deg, rgba(5, 8, 23, 0.9), transparent);
}
.marquee.is-paused .marquee-edge { opacity: 1; transform: translateX(0); }

.creator-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
  width: 288px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.creator-card:hover {
  transform: translateY(-4px);
  border-color: rgba(190, 203, 255, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
/* Wächst mit, damit Live-Status und "Profil öffnen" immer unten sitzen. */
.creator-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.creator-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.creator-top img {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.8);
}
.creator-names { display: flex; flex-direction: column; min-width: 0; }
.creator-names h3 {
  font-size: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-login { font-size: 0.76rem; color: var(--muted); }
.creator-role { font-size: 0.78rem; font-weight: 800; color: var(--violet); }
.creator-desc {
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.4em;
}
.creator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}
.creator-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.creator-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.creator-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(170, 183, 212, 0.55);
  flex-shrink: 0;
}
.creator-foot .creator-open {
  color: var(--blue);
  transition: transform 0.16s ease;
}
.creator-card:hover .creator-open { transform: translateX(3px); }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
}

/* ── Guidelines ───────────────────────────────────────────────────── */
.guideline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap-grid);
}
.guideline-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.guideline-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.guideline-card p { color: var(--muted); font-size: 0.9rem; }
.guideline-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #0a0e22;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px rgba(158, 215, 255, 0.28);
}
.guideline-icon svg { width: 22px; height: 22px; fill: currentColor; }

/* ── Phasenplan ───────────────────────────────────────────────────── */
/* Eyebrow und Phasenname stehen beieinander, nicht an den Kartenrändern. */
.phase-current-bar {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 15px 22px;
  margin-bottom: var(--gap-grid);
  border-radius: var(--radius-sm);
}
.phase-current-bar strong { font-size: 1.05rem; }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap-grid);
  align-items: stretch;
}
.phase-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.phase-card:hover { transform: translateY(-3px); }
.phase-card.is-current {
  border-color: rgba(255, 159, 215, 0.45);
  box-shadow: 0 24px 70px rgba(255, 159, 215, 0.12), var(--shadow);
}

/* Abgeschlossene Phasen: Verlaufsrahmen, getönte Fläche, Glow */
.phase-card.is-done {
  border: 2px solid transparent;
  /* Drei Ebenen: Tönung über deckender Fläche, im Rahmen der Markenverlauf. */
  background:
    linear-gradient(150deg, rgba(158, 215, 255, 0.2), rgba(200, 188, 255, 0.12) 48%, rgba(255, 159, 215, 0.16)) padding-box,
    linear-gradient(#101736, #101736) padding-box,
    var(--grad-brand) border-box;
  box-shadow: 0 22px 60px -22px rgba(158, 215, 255, 0.7), var(--shadow-soft);
}
.phase-card.is-done:hover {
  box-shadow: 0 28px 70px -20px rgba(255, 159, 215, 0.7), var(--shadow);
}
.phase-card.is-done h3 { color: var(--text); }
.phase-card.is-done p { color: rgba(226, 236, 255, 0.78); }
.phase-card.is-done .progress-track {
  border-color: rgba(190, 203, 255, 0.4);
  background: rgba(5, 8, 23, 0.55);
}
.phase-card.is-done .progress-fill { box-shadow: 0 0 18px rgba(158, 215, 255, 0.75); }
.phase-card.is-done .phase-progress-meta span,
.phase-card.is-done .phase-progress-meta b { color: var(--text); }

.phase-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.phase-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.55);
}
.phase-number svg { width: 22px; height: 22px; fill: currentColor; }
.phase-card.is-current .phase-number,
.phase-card.is-done .phase-number {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
}
.phase-card.is-done .phase-number {
  box-shadow: 0 6px 20px rgba(158, 215, 255, 0.4);
}
.badge.is-done {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
  font-weight: 900;
}
.phase-card p { color: var(--muted); font-size: 0.9rem; }
.phase-progress-wrap { margin-top: auto; padding-top: 10px; }
.phase-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.phase-progress-meta b { color: var(--text); }
.progress-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.7);
}
.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(158, 215, 255, 0.4);
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Schluss-CTA ──────────────────────────────────────────────────── */
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 44px);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto -20%;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(255, 159, 215, 0.18), transparent 70%);
  pointer-events: none;
}
.final-cta > div { position: relative; display: flex; flex-direction: column; gap: 10px; }
.final-cta p { color: var(--muted); max-width: 56ch; }
.final-cta .btn { position: relative; padding: 15px 30px; font-size: 1rem; }

/* ── Footer – schlanke Leiste, keine Social-Icons ─────────────────── */
/* Rückt näher an den letzten Abschnitt, damit unten kein Loch entsteht. */
.page-shell > .site-footer { margin-top: calc(var(--gap-section) / -2); }
.subpage .page-shell > .site-footer { margin-top: 0; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(8, 12, 32, 0.6);
}
@media (max-width: 760px) {
  .site-footer {
    border-radius: var(--radius-sm);
    flex-direction: column;
    text-align: center;
  }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.footer-brand img { width: 26px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.footer-links a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}
.footer-links a:hover { color: var(--text); background: rgba(158, 215, 255, 0.09); }
.footer-copy {
  font-size: 0.76rem;
  color: rgba(170, 183, 212, 0.65);
  flex-shrink: 0;
}

/* ── Wartungsmodus ────────────────────────────────────────────────── */
.maintenance-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 40px 0;
}
.maintenance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 54px);
}
.maintenance-card img { width: 96px; }

/* ── Unterseiten / Rechtstexte ────────────────────────────────────── */
/* Unterseiten brauchen weniger Luft als der Onepager. */
.subpage .page-shell { gap: clamp(22px, 3vw, 32px); }

.subpage-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3.6vw, 44px);
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.7;
}
.legal-content h2 {
  margin-top: 26px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 14px; font-size: 0.98rem; }
.legal-content p,
.legal-content li { color: var(--muted); }
.legal-content ul {
  margin: 2px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legal-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-content strong { color: var(--text); }
.legal-content code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(158, 215, 255, 0.1);
  font-size: 0.9em;
}
.legal-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 159, 215, 0.3);
  background: rgba(255, 159, 215, 0.07);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--gap-grid);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card-head p { max-width: 52ch; }
.contact-note {
  font-size: 0.84rem;
  color: rgba(170, 183, 212, 0.75);
}
.form-hint {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.form-hint a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.contact-channels { display: flex; flex-direction: column; gap: 10px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.contact-channel:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  color: #0a0e22;
  background: var(--grad-brand);
}
.contact-channel-icon svg { width: 21px; height: 21px; fill: currentColor; }
.contact-channel-text { display: flex; flex-direction: column; min-width: 0; }
.contact-channel-text span { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-channel-text strong { overflow: hidden; text-overflow: ellipsis; }

/* ── Formulare ────────────────────────────────────────────────────── */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 0.78rem; font-weight: 800; color: var(--text); }
.label .label-hint { font-weight: 600; color: var(--muted); }
.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.input::placeholder,
.textarea::placeholder { color: rgba(170, 183, 212, 0.55); }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(158, 215, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(158, 215, 255, 0.1);
  background: rgba(7, 11, 28, 0.85);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Bewusst block statt flex: Ein <code> oder <strong> im Text wuerde in einem
   Flex-Container zu einem eigenen Element und den Satz auseinanderreissen. */
.notice {
  display: block;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}
.notice code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(7, 11, 28, 0.5);
  font-size: 0.92em;
  font-weight: 700;
}
.notice.is-success { border-color: rgba(126, 231, 135, 0.4); background: rgba(126, 231, 135, 0.08); color: #d6ffd9; }
.notice.is-error { border-color: rgba(255, 122, 156, 0.45); background: rgba(255, 122, 156, 0.09); color: #ffdbe6; }
.notice.is-info { border-color: rgba(158, 215, 255, 0.4); background: rgba(158, 215, 255, 0.08); }

/* Schalter */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative;
  width: 48px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 28, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}
.switch input:checked + .switch-track {
  border-color: transparent;
  background: var(--grad-brand);
}
.switch input:checked + .switch-track::after {
  transform: translateX(21px);
  background: #0a0e22;
}
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; }
.switch-text small { color: var(--muted); font-size: 0.76rem; }

/* Checkbox-Chips (Tags) */
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip:has(input:checked) {
  color: var(--text);
  border-color: rgba(190, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.11));
}

/* ── Scroll-Reveal ────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Adminbereich
   ══════════════════════════════════════════════════════════════════ */
/* Zweispaltig: links die Bereichsauswahl, rechts der Inhalt. */
.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding-block: 0 60px;
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
}
.admin-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.admin-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-auth-card {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  align-items: center;
}
.admin-auth-card img { width: 74px; }
.admin-auth-card form { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }

.admin-top {
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto;
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
}
@media (max-width: 760px) { .admin-top { border-radius: var(--radius); } }
.admin-top-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.admin-top-brand img { width: 32px; }
.admin-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* Verbindungsstatus als Chips */
.admin-status { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.conn-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.5);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}
.conn-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--muted);
}
.conn-chip.is-ok { color: #d6ffd9; border-color: rgba(126, 231, 135, 0.35); }
.conn-chip.is-ok .conn-dot { background: var(--green); box-shadow: 0 0 8px 1px rgba(126, 231, 135, 0.7); }
.conn-chip.is-off { opacity: 0.75; }
.conn-chip.is-warn { color: #ffdbe6; border-color: rgba(255, 122, 156, 0.45); background: rgba(255, 122, 156, 0.1); }
.conn-chip.is-warn .conn-dot { background: #ff7a9c; box-shadow: 0 0 8px 1px rgba(255, 122, 156, 0.7); }

/* ── Seitenleiste ────────────────────────────────────────────────── */
.admin-side {
  position: sticky;
  top: 16px;
  padding: 12px;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .admin-side { position: static; padding: 10px; }
}
.admin-side-nav { display: flex; flex-direction: column; gap: 14px; }
.admin-side-group { display: flex; flex-direction: column; gap: 2px; }
.admin-side-group-label {
  padding: 0 10px 5px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 183, 212, 0.7);
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.admin-tab:hover { color: var(--text); background: rgba(158, 215, 255, 0.07); }
.admin-tab.is-active {
  color: var(--text);
  font-weight: 800;
  border-color: rgba(190, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.11));
}
.admin-tab-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.5);
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.admin-tab-icon svg { width: 15px; height: 15px; fill: currentColor; }
.admin-tab.is-active .admin-tab-icon {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
}
.admin-tab-label { flex: 1; min-width: 0; }
.admin-tab .count-pill {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  color: #0a0e22;
  background: var(--grad-brand);
}

/* Auf schmalen Bildschirmen einklappbar */
.admin-side-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.admin-side-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.admin-side-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 900px) {
  .admin-side-toggle { display: flex; }
  .admin-side-nav { display: none; margin-top: 10px; }
  .admin-side-nav.is-open { display: flex; }
}

.admin-panel { display: none; flex-direction: column; gap: 18px; }
.admin-panel.is-active { display: flex; }

.admin-section { display: flex; flex-direction: column; gap: 16px; }

/* Uebersicht, welcher Bereich in welcher Datenbank liegt. */
.db-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-grid);
}
.db-status-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
}
.db-status-item.is-separate { border-color: rgba(126, 231, 135, 0.34); }
.db-status-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.db-status-item strong {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.98rem;
  word-break: break-all;
}
.db-status-item small { color: var(--muted); font-size: 0.79rem; line-height: 1.5; }
.admin-section-head { display: flex; flex-direction: column; gap: 4px; }
.admin-section-head p { color: var(--muted); font-size: 0.88rem; }

/* Zwischenueberschrift innerhalb eines Formulars – gliedert lange Abschnitte,
   ohne dass daraus eine eigene Karte werden muss. */
.admin-subhead {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.admin-subhead-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* Kleiner Hinweis unter einem Eingabefeld. */
.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Anschrift im Impressum: Felder links, Live-Vorschau rechts. */
.legal-address-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}
.legal-address-fields { display: flex; flex-direction: column; gap: 14px; }

.legal-address-preview {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
}
.legal-address-preview figcaption {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-address-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}
.legal-address-preview strong { color: var(--text); }

@media (max-width: 860px) {
  .legal-address-editor { grid-template-columns: 1fr; }
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
  flex-wrap: wrap;
}
.admin-row:hover { border-color: var(--line-strong); }
.admin-row img.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(7, 11, 28, 0.8);
}
.admin-row-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.admin-row-main small { color: var(--muted); }
.admin-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.admin-phase-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
.admin-phase-fields { display: flex; flex-direction: column; gap: 11px; }
.admin-progress-row { display: flex; align-items: center; gap: 12px; }
.admin-progress-row input[type="range"] { flex: 1; accent-color: #c8bcff; }
.admin-progress-value {
  min-width: 56px;
  text-align: right;
  font-weight: 900;
  color: var(--blue);
}

.admin-social-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.4);
}
@media (max-width: 620px) {
  .admin-social-row { grid-template-columns: 44px minmax(0, 1fr); }
  .admin-social-row .switch { grid-column: 1 / -1; }
}
.admin-social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.6);
  color: var(--blue);
}
.admin-social-icon svg { width: 21px; height: 21px; fill: currentColor; }

/* Modale im Adminbereich */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(3, 5, 16, 0.68);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-backdrop.is-open { display: grid; }
.modal {
  width: min(560px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(22, 30, 58, 0.96), rgba(11, 16, 40, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }

/* Twitch-Suche */
.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.45);
}
.search-results:empty { display: none; }
.search-result {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.search-result:hover { background: rgba(158, 215, 255, 0.08); border-color: var(--line); }
.search-result img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(13, 19, 42, 0.8);
}
.search-result-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-result-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.selected-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(190, 203, 255, 0.34);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.14), rgba(255, 159, 215, 0.09));
}
.selected-creator img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(13, 19, 42, 0.8);
}
.selected-creator-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.message-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
}
.message-card.is-unread { border-color: rgba(158, 215, 255, 0.45); background: rgba(158, 215, 255, 0.06); }
.message-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.message-card-body { color: var(--muted); font-size: 0.9rem; white-space: pre-wrap; }

/* ══════════════════════════════════════════════════════════════════
   Statistik im Adminbereich
   Eine Serie pro Diagramm – deshalb ohne Legende. Akzentfarbe gegen
   die Panelfläche geprüft (Kontrast, Helligkeitsband, Sättigung).
   ══════════════════════════════════════════════════════════════════ */
.admin {
  --chart-accent: #5b8ff9;
  --chart-accent-hover: #7ba6fb;
  --chart-grid: rgba(190, 203, 255, 0.14);
  --chart-baseline: rgba(190, 203, 255, 0.3);
  --chart-ink: #eef5ff;
  --chart-muted: #93a1c0;
}

/* ── Statistik-Kopf ───────────────────────────────────────────────── */
.stats-head { display: flex; flex-direction: column; gap: 16px; }
.stats-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stats-hint {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* Zeitraum als zusammenhaengende Leiste statt loser Pillen */
.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.55);
  flex-wrap: wrap;
}
.segmented-item {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.segmented-item:hover { color: var(--text); }
.segmented-item.is-active {
  color: var(--text);
  font-weight: 800;
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.2), rgba(255, 159, 215, 0.13));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.stats-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--gap-grid);
  align-items: start;
}
@media (max-width: 1000px) {
  .stats-split { grid-template-columns: 1fr; }
}
.stats-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
}
.stats-reset p { font-size: 0.84rem; }

/* ── Kennzahlen ───────────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  /* schmal genug, dass alle sechs Kennzahlen in eine Reihe passen */
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 12px;
}
.kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.kpi-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 203, 255, 0.42);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.kpi-tile.is-active {
  border-color: rgba(190, 203, 255, 0.5);
  background: linear-gradient(135deg, rgba(158, 215, 255, 0.16), rgba(255, 159, 215, 0.1)), var(--panel2);
}
.kpi-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.kpi-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--chart-ink);
}

/* ── Diagrammkopf ─────────────────────────────────────────────────── */
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chart-head p { font-size: 0.86rem; }
.chart-total {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--chart-ink);
}

/* ── Säulendiagramm ───────────────────────────────────────────────── */
.chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -4px;
  padding: 0 4px;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
}
.chart-grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}
.chart-baseline {
  stroke: var(--chart-baseline);
  stroke-width: 1;
}
.chart-axis {
  fill: var(--chart-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.chart-bar {
  fill: var(--chart-accent);
  transition: fill 0.14s ease;
}
.chart-bar.is-peak { fill: var(--chart-accent-hover); }
.chart-hit {
  fill: transparent;
  cursor: default;
}
.chart-col:hover .chart-bar { fill: var(--chart-accent-hover); }
/* Beschriftung trägt Textfarbe, nie die Serienfarbe. */
.chart-peak-label {
  fill: var(--chart-ink);
  font-size: 11.5px;
  font-weight: 800;
}
.chart-empty {
  padding: 26px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Tabellenansicht als barrierefreie Alternative */
.chart-table { margin-top: 4px; }
.chart-table summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table summary::before { content: "▾"; font-size: 0.7rem; }
.chart-table summary:hover { color: var(--text); border-color: var(--line-strong); }
.chart-table[open] summary::before { content: "▴"; }
.table-wrap {
  margin-top: 10px;
  max-height: 300px;
  overflow: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.table-wrap th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #101736;
  border-bottom: 1px solid var(--line);
}
.table-wrap td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(190, 203, 255, 0.08);
  font-variant-numeric: tabular-nums;
}
.table-wrap tr:last-child td { border-bottom: none; }

/* ── Rangliste ────────────────────────────────────────────────────── */
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.bar-row-label {
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row-track {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(7, 11, 28, 0.6);
  overflow: hidden;
}
.bar-row-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--chart-accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-row-value {
  min-width: 44px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--chart-ink);
}

.stats-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-grid);
}

/* ── Team-Karussell ───────────────────────────────────────────────
   Die mittlere Karte steht vorn; die Nachbarn liegen kleiner und
   unschärfer dahinter. Positionierung übernimmt das Skript. */
.team-carousel {
  position: relative;
  padding: 8px 0 46px;
}
.team-stage {
  position: relative;
  height: 342px;
  perspective: 1200px;
}
.team-carousel.is-single .team-stage { height: auto; }

.team-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(330px, 78vw);
  height: 100%;
  /* exakt die halbe Kartenbreite nach links - nicht min() mit negativen Werten */
  margin-left: calc(min(330px, 78vw) / -2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 26px 22px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(158, 215, 255, 0.1), transparent 62%),
    var(--glass-fill), var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s ease, opacity 0.6s ease;
  will-change: transform, filter, opacity;
}
.team-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: var(--grad-brand);
  opacity: 0.55;
}
.team-card.is-center::after { opacity: 0; }
.team-watermark {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 132px;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.team-card.is-center .team-watermark { opacity: 0.1; }
.team-index {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(170, 183, 212, 0.5);
}
.team-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.team-foot {
  position: relative;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.team-crew {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 183, 212, 0.6);
}
.team-carousel.is-single .team-card {
  position: static;
  margin: 0 auto;
  height: auto;
}
/* Die vordere Karte trägt den Markenrahmen. */
.team-card.is-center {
  border-color: transparent;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(158, 215, 255, 0.14), transparent 60%) padding-box,
    linear-gradient(#0d1330, #0d1330) padding-box,
    var(--grad-brand) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 50px -18px rgba(158, 215, 255, 0.6),
    0 18px 60px -30px rgba(255, 159, 215, 0.6);
}

.team-avatar {
  position: relative;
  display: block;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 3px;
  background: var(--grad-brand);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
/* Der Schein liegt hinter und ausserhalb des Bildes, damit das Foto nicht aufgehellt wirkt. */
.team-avatar::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(158, 215, 255, 0.2), rgba(255, 159, 215, 0.1) 55%, transparent 74%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.team-card.is-center .team-avatar::before { opacity: 1; }
.team-avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #0b1028;
}
.team-card h3 {
  position: relative;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}
.team-role {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #0a0e22;
  background: var(--grad-brand);
}
.team-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.team-link {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--blue);
  transition: color 0.16s ease;
}
.team-card:hover .team-link { color: var(--text); }

/* Pfeile links und rechts */
.team-nav {
  position: absolute;
  top: 50%;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 12, 32, 0.85);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.18s ease, border-color 0.18s ease;
}
.team-nav svg { width: 22px; height: 22px; fill: currentColor; }
.team-nav.is-prev { left: 0; }
.team-nav.is-next { right: 0; }
.team-carousel:hover .team-nav,
.team-nav:focus-visible { opacity: 1; }
.team-nav:hover { transform: scale(1.08); border-color: rgba(190, 203, 255, 0.5); }
@media (max-width: 620px) {
  .team-nav { opacity: 1; width: 38px; height: 38px; }
}

/* Punkte unter dem Karussell */
.team-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.team-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(190, 203, 255, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.team-dot.is-active {
  width: 24px;
  background: var(--grad-brand);
}

/* Hinweis erscheint wie beim Creator-Laufband beim Hovern */
.team-hint {
  bottom: 26px;
  z-index: 60;
}
.team-carousel.is-paused .team-hint {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 560px) {
  .team-stage { height: 366px; }
  .team-dots { bottom: 4px; }
}

/* Mehrere Blöcke innerhalb eines Abschnitts */
.section-body {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.4vw, 44px);
}
/* Foto-Upload im Team-Modal */
.upload-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.4);
}
.upload-preview {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.8);
}
.upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.upload-actions input[type="file"] {
  padding: 9px 11px;
  font-size: 0.84rem;
}
.upload-actions input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 42, 0.6);
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
/* Diagnose des Foto-Ordners im Team-Bereich */
.dir-check {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  flex-direction: row;
}
.dir-check > div { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.dir-check p { font-weight: 500; line-height: 1.6; }
.dir-check code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(5, 8, 23, 0.5);
  font-size: 0.92em;
  word-break: break-all;
}
.dir-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 18px;
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
}
.dir-facts > div { display: flex; gap: 7px; min-width: 0; }
.dir-facts dt { font-weight: 800; opacity: 0.75; }
.dir-facts dt::after { content: ":"; }
.dir-facts dd { margin: 0; min-width: 0; }

/* Kopfzeile einer Liste im Adminbereich: Überschrift links, Aktion rechts */
.admin-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-list-head .admin-section-head { flex: 1; min-width: 220px; }
/* ══════════════════════════════════════════════════════════════════
   Bewerbungen
   ══════════════════════════════════════════════════════════════════ */

/* Mitmachen-Band auf der Startseite: ein zusammenhaengender Block mit
   sanftem Markenschimmer – auffaellig, aber ohne den Rest zu ueberstrahlen. */
/* Rahmen laeuft rundum im Markenverlauf – etwas zurueckgenommen, damit der
   Spotlight weiter der lauteste Block auf der Seite bleibt. */
.apply-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vw, 30px);
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(158, 215, 255, 0.12), transparent 60%) padding-box,
    radial-gradient(90% 120% at 88% 100%, rgba(255, 159, 215, 0.1), transparent 60%) padding-box,
    linear-gradient(#0c1230, #0c1230) padding-box,
    linear-gradient(135deg, rgba(158, 215, 255, 0.6), rgba(200, 188, 255, 0.45) 50%, rgba(255, 159, 215, 0.55)) border-box;
  box-shadow: var(--shadow);
}
.apply-band-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-align: center;
}
.apply-band-head p { color: var(--muted); max-width: 58ch; }

.apply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
  justify-content: center;
  gap: var(--gap-grid);
}
.apply-card {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.42);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.apply-card.is-team { --accent: var(--pink); }
.apply-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: rgba(7, 11, 28, 0.62);
}
.apply-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.apply-icon svg { width: 23px; height: 23px; fill: currentColor; }
.apply-body { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.apply-body h3 { font-size: 1.08rem; }
.apply-body p { color: var(--muted); font-size: 0.89rem; }
.apply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.apply-count {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.apply-go {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  transition: transform 0.16s ease;
}
.apply-card:hover .apply-go { transform: translateX(3px); }

/* ── Bewerbungsseite: Kategorien deutlich getrennt ────────────────── */
.category-block {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  gap: var(--gap-grid);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.category-block.is-team { --accent: var(--pink); }
.category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    rgba(7, 11, 28, 0.4);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.category-icon svg { width: 22px; height: 22px; fill: currentColor; }
.category-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.category-title h2 { font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.5rem); }
.category-title p { font-size: 0.86rem; color: var(--muted); }
.category-count {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}

/* Feste Obergrenze je Spalte: eine einzelne Stelle bleibt so weder
   winzig noch ueber die volle Breite gezogen. */
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 420px));
  gap: var(--gap-grid);
}
.position-card {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--glass-fill), var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.position-card.is-team { --accent: var(--pink); }
.position-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 12%, rgba(0, 0, 0, 0.4));
}
.position-card h3 { font-size: 1.06rem; }
.position-card p { color: var(--muted); font-size: 0.89rem; flex: 1; }
.position-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.position-card-meta { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.position-card-go {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent);
  transition: transform 0.16s ease;
}
.position-card:hover .position-card-go { transform: translateX(3px); }

/* Formularseite */
.application-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--gap-grid);
  align-items: start;
}
@media (max-width: 900px) {
  .application-grid { grid-template-columns: 1fr; }
}
.position-text {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}
.position-back { margin-top: 18px; align-self: flex-start; }
.inline-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.field-error {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
}

/* ── Adminbereich: Feld-Baukasten ─────────────────────────────────── */
.modal.is-wide { width: min(780px, 100%); }

.field-builder {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.45);
}
.field-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
}
@media (max-width: 620px) {
  .field-row-grid { grid-template-columns: 1fr; }
  .field-row-required { padding-bottom: 0; }
}

/* ── Adminbereich: eingegangene Bewerbungen ──────────────────────── */
.application-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.45);
}
.application-card.is-unread {
  border-color: rgba(158, 215, 255, 0.45);
  background: rgba(158, 215, 255, 0.06);
}
.application-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.application-head small { display: block; }
.application-mail {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.application-answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 20px;
  margin: 4px 0 0;
}
.application-answers > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.application-answers dt {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.application-answers dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}
.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.status-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
  color: var(--muted);
}
.status-pill.is-new {
  color: #0a0e22;
  border-color: transparent;
  background: var(--grad-brand);
}
.status-pill.is-review { color: #ffe6b8; border-color: rgba(255, 195, 107, 0.45); }
.status-pill.is-accepted { color: #d6ffd9; border-color: rgba(126, 231, 135, 0.45); }
.status-pill.is-rejected { color: #ffdbe6; border-color: rgba(255, 122, 156, 0.45); }
/* ══════════════════════════════════════════════════════════════════
   Statusmeldungen
   ══════════════════════════════════════════════════════════════════ */
.notice-bar {
  width: min(1280px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 640px) {
  .notice-bar { width: calc(100% - 20px); }
}

/* Schmale Leiste: faellt auf, nimmt aber kaum Hoehe weg. */
.notice-strip {
  --tone: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--tone) 32%, var(--line));
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--tone) 14%, transparent), transparent 55%),
    rgba(8, 12, 32, 0.72);
}
@media (max-width: 700px) {
  .notice-strip { border-radius: var(--radius-sm); align-items: flex-start; }
}
.notice-strip.is-announcement { --tone: var(--violet); }
.notice-strip.is-success { --tone: var(--green); }
.notice-strip.is-warning { --tone: #ffc36b; }
.notice-strip.is-error { --tone: #ff7a9c; }

.notice-strip-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--tone);
}
.notice-strip-icon svg { width: 19px; height: 19px; fill: currentColor; }

.notice-strip-text {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  font-size: 0.87rem;
  line-height: 1.5;
}
.notice-strip-text strong { color: var(--text); }
.notice-strip-text span { color: var(--muted); }

.notice-strip-kind {
  flex-shrink: 0;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tone);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .notice-strip-kind { display: none; }
}

/* Im Wartungsmodus zieht die zentrierte Flaeche die Leistenhoehe mit ab. */
.is-maintenance .maintenance-shell { min-height: calc(100dvh - 96px); }

/* Zurueckhaltende Rechtsleiste am unteren Bildschirmrand */
.legal-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 0.78rem;
  color: rgba(170, 183, 212, 0.42);
  pointer-events: none;
}
.legal-bar a {
  pointer-events: auto;
  color: inherit;
  transition: color 0.16s ease;
}
.legal-bar a:hover { color: var(--muted); }
.is-maintenance .page-shell { padding-bottom: 62px; }

/* ── Adminbereich: Art der Meldung waehlen ───────────────────────── */
.kind-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 8px;
}
.kind-option {
  --tone: var(--blue);
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.5);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.kind-option.is-announcement { --tone: var(--violet); }
.kind-option.is-success { --tone: var(--green); }
.kind-option.is-warning { --tone: #ffc36b; }
.kind-option.is-error { --tone: #ff7a9c; }
.kind-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.kind-option:hover { border-color: var(--line-strong); color: var(--text); }
.kind-option:has(input:checked) {
  color: var(--text);
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  background: color-mix(in srgb, var(--tone) 13%, rgba(7, 11, 28, 0.5));
}
.kind-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--tone);
}
.kind-icon svg { width: 18px; height: 18px; fill: currentColor; }

.notice-dot {
  --tone: var(--blue);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--tone);
  border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
}
.notice-dot.is-announcement { --tone: var(--violet); }
.notice-dot.is-success { --tone: var(--green); }
.notice-dot.is-warning { --tone: #ffc36b; }
.notice-dot.is-error { --tone: #ff7a9c; }
.notice-dot svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Adminbereich: Karteneditor + Feld-Baukasten ─────────────────── */
.card-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 11, 28, 0.4);
}
.card-editor-tag {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-row-top {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.field-row-top .field { flex: 1; min-width: 0; }
.field-row-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(13, 19, 42, 0.6);
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--muted);
}
.field-row-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-bottom: 5px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.14s ease;
}
.field-row-remove:hover {
  color: #ffdbe6;
  border-color: rgba(255, 122, 156, 0.55);
  background: rgba(255, 122, 156, 0.14);
}
.field-row-required { align-self: end; padding-bottom: 10px; }
.field-row-hint {
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--muted);
}
/* ── Bewerbungsformular: Beschreibung links, Formular rechts ─────── */
.position-detail {
  --accent: var(--blue);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}
.position-detail.is-team { --accent: var(--pink); }
.position-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.position-detail-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.position-detail-head h2 { font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.6rem); }

.application-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.application-form-head {
  display: flex;
  flex-direction: column;
  gap: 9px;
}