/* ===========================================================================
   ETERNAL — shared stylesheet
   Handgeschrieben, keine Build-Tools nötig. Einfach diese Datei bearbeiten
   und die Seite neu laden (kein "npm run build" o.ä. mehr erforderlich).
   =========================================================================== */

:root {
  --deep-space: #0b0e14;
  --deep-space-soft: #1a2333;
  --neon-blue: #00f0ff;
  --neon-blue-dim: rgba(0, 240, 255, 0.5);
  --foreground: #fafafa;
  --muted-foreground: #9aa5b1;
  --card-bg: #14181f;
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-softer: rgba(255, 255, 255, 0.05);
  --destructive: #7f1d1d;
  --destructive-bright: #dc2626;
  --radius: 0.5rem;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Verschnörkelte Schrift für große Abschnitts-Überschriften ("Our Partners",
     "Community Showcase" usw.), siehe Referenzbild. Nur für große Headings -
     nicht für Buttons/Labels/Modal-Titel, da bei kleiner Schriftgröße schwer lesbar. */
  --font-script: "Kaushan Script", cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--deep-space);
  background-image: radial-gradient(circle at 50% 0%, var(--deep-space-soft), var(--deep-space) 70%);
  background-attachment: fixed;
}

body.has-bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

::selection { background: rgba(0, 240, 255, 0.2); color: var(--neon-blue); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--deep-space); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-blue); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-softer);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--foreground); }
.main-nav a.active { color: var(--neon-blue); border-bottom-color: var(--neon-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.btn-neon {
  background: var(--neon-blue);
  color: var(--deep-space);
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 0 20px -5px rgba(0, 240, 255, 0.4);
}
.btn-neon:hover { box-shadow: 0 0 28px -3px rgba(0, 240, 255, 0.6); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-soft);
  color: var(--foreground);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-destructive { background: var(--destructive-bright); color: #fff; }
.btn-destructive:hover { background: #b91c1c; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--radius);
  border: 1px solid var(--border-soft); background: transparent; color: var(--muted-foreground);
  cursor: pointer; transition: all 0.15s;
}
.icon-btn:hover { color: var(--foreground); background: rgba(255,255,255,0.05); }
.icon-btn.danger:hover { color: #f87171; border-color: rgba(220,38,38,0.5); }

/* ---------- Cards ---------- */
.card {
  background: rgba(11, 14, 20, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  background-image: url("../Assets/Images/Eternal_Background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--deep-space) 90%);
  pointer-events: none;
  z-index: 1;
}
.hero-badge, .hero-bottom { position: relative; z-index: 2; }
.hero-bottom { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero .accent { color: var(--neon-blue); }
.hero p.lead {
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--neon-blue-dim);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-pill { border-radius: 999px; padding: 0.75rem 2rem; }
.scroll-hint { margin-top: 3rem; color: var(--neon-blue); opacity: 0.7; }

/* ---------- Accessibility: visually hidden but readable by screen readers ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- About ---------- */
.about { text-align: center; padding: 5rem 1.5rem; }
.about .container { max-width: 46rem; }
.about h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
.about .accent { color: var(--neon-blue); }
.about p { color: var(--muted-foreground); font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }

/* ---------- Stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--border-softer);
  border-bottom: 1px solid var(--border-softer);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; align-items: center; gap: 1rem; }
.stat-icon {
  position: relative;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon.online::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
}
.status-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 500; }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.stat-divider { width: 1px; height: 3rem; background: var(--border-soft); }

/* ---------- Section headings ---------- */
.section { padding: 5rem 1.5rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.section-heading h2 { font-family: var(--font-script); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); }
.section-heading .accent { color: var(--neon-blue); }
.section-heading p { color: var(--muted-foreground); margin-top: 0.5rem; max-width: 32rem; }
.section-heading.center { justify-content: center; text-align: center; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

/* ---------- Partners ---------- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 11rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  /* .partner-card ist ein <button> (öffnet das Info-Popup) - Standard-Button-Look zurücksetzen. */
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.partner-card:hover { transform: translateY(-4px); }
.partner-logo {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--deep-space-soft);
  border: 2px solid var(--border-soft);
  box-shadow: 0 0 0 rgba(0, 240, 255, 0);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.partner-card:hover .partner-logo {
  border-color: var(--neon-blue);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.35);
}
.partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-letter { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; color: var(--neon-blue); }
.partner-name { font-size: 1rem; font-weight: 600; text-align: center; color: var(--muted-foreground); }
.partner-card:hover .partner-name { color: var(--foreground); }

/* ---------- Partner-Infofenster ---------- */
.partner-info-modal { max-width: 26rem; text-align: center; }
.partner-info-logo {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-space-soft);
  border: 2px solid var(--neon-blue-dim);
}
.partner-info-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-info-modal h2 { text-align: center; }
.partner-info-description { color: var(--muted-foreground); font-size: 0.9rem; margin-top: 0.75rem; white-space: pre-line; }
.partner-info-footer { justify-content: center; }
#partner-info-website[hidden] { display: none; }

.category-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 1rem; margin: 2.5rem 0 1.5rem;
}
.category-label::before { content: ""; width: 4px; height: 1.1rem; background: var(--neon-blue); border-radius: 2px; }
.category-label .rule { flex: 1; height: 1px; background: var(--border-soft); }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
}
.team-card { text-align: center; }
.hex-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 0.87;
  max-width: 220px;
  margin: 0 auto 0.9rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(160deg, #101522, #0b0e14);
  border: 1px solid rgba(0, 240, 255, 0.3);
  overflow: hidden;
}
.hex-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hex-frame .placeholder-letter {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: rgba(255,255,255,0.4);
}
/* Rang + Name als Beschriftung UNTEN IM Sechseck, über das Foto gelegt
   (mit dunklem Verlauf drunter, damit es lesbar bleibt) statt als
   separater Text darunter. Zwei Ebenen: der Verlauf (.hex-scrim) darf bis
   ganz nach unten in die Spitze des Sechsecks reichen (reine Füllfarbe,
   kein Lesbarkeitsproblem), der Text selbst (.hex-caption) sitzt bewusst
   ein Stück höher, damit er nicht im spitz zulaufenden unteren Viertel
   der Sechseck-Form seitlich abgeschnitten wird. */
.hex-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 68%;
  background: linear-gradient(to top, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.55) 48%, transparent 100%);
  pointer-events: none;
}
.hex-caption {
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 4.5rem;
  text-align: center;
}
.role-badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(0, 240, 255, 0.15); color: var(--neon-blue); margin-bottom: 0.35rem;
}
.team-card .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

/* ---------- Showcase grid ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.showcase-card {
  border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border-soft);
  background: var(--card-bg); cursor: pointer; transition: transform 0.2s, border-color 0.2s;
}
.showcase-card:hover { transform: translateY(-3px); border-color: rgba(0,240,255,0.4); }
.showcase-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.showcase-thumb .play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.25);
}
.showcase-info { padding: 1rem; }
.showcase-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.showcase-info p { color: var(--muted-foreground); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-softer);
  padding: 3rem 1.5rem 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-top: auto;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-softer);
  text-align: left;
}
.footer-brand .brand { margin-bottom: 0.6rem; }
.footer-brand p { color: var(--muted-foreground); font-size: 0.85rem; max-width: 22rem; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.85rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--muted-foreground); font-size: 0.9rem; transition: color 0.15s; }
.footer-nav a:hover { color: var(--foreground); }
.footer-meta { font-size: 0.8rem; text-align: right; }
.footer-sep { margin: 0 0.5rem; opacity: 0.4; }
.footer-admin-link { color: var(--muted-foreground); transition: color 0.15s; }
.footer-admin-link:hover { color: var(--neon-blue); }
.footer-bottom { text-align: center; padding-top: 1.25rem; font-size: 0.8rem; }
.footer-heart { color: #ef4444; }

/* ---------- Intro / "Enter Experience" overlay (first visit only) ---------- */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, var(--deep-space-soft), var(--deep-space) 75%);
  opacity: 1;
  transition: opacity 0.5s ease;
}
#intro-overlay.intro-hide { opacity: 0; pointer-events: none; }
.intro-content { text-align: center; padding: 2rem; }
.intro-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.45), 0 0 70px rgba(0, 240, 255, 0.3);
  margin-bottom: 0.6rem;
}
.intro-tagline {
  color: var(--muted-foreground);
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}
.intro-divider { width: 1px; height: 2.5rem; background: var(--border-soft); margin: 0 auto 2.25rem; }
.intro-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--neon-blue-dim);
  color: var(--neon-blue);
  background: rgba(0, 240, 255, 0.06);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
}
.intro-enter-btn:hover { background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 24px -4px rgba(0, 240, 255, 0.5); transform: translateY(-1px); }
.intro-hint { margin-top: 1.5rem; color: var(--muted-foreground); font-size: 0.75rem; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
input[type="text"], input[type="url"], input[type="number"], input[type="color"], textarea, select {
  width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 0.55rem 0.75rem; color: var(--foreground);
  font-family: var(--font-sans); font-size: 0.9rem;
}
input[type="color"] { height: 2.5rem; padding: 0.25rem; }
textarea { resize: vertical; min-height: 5rem; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--neon-blue); outline-offset: 1px; }
.field { margin-bottom: 1.1rem; }
.field-hint { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.3rem; }
.field-error { font-size: 0.75rem; color: #f87171; margin-top: 0.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-row input { width: auto; }

/* ---------- Admin layout ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 4.5rem); }
.admin-sidebar {
  width: 220px; flex-shrink: 0; border-right: 1px solid var(--border-softer);
  padding: 1.5rem 1rem;
}
.admin-sidebar a {
  display: block; padding: 0.6rem 0.9rem; border-radius: var(--radius);
  color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 0.3rem;
}
.admin-sidebar a:hover { background: rgba(255,255,255,0.05); color: var(--foreground); }
.admin-sidebar a.active { background: rgba(0,240,255,0.1); color: var(--neon-blue); font-weight: 600; }
.admin-main { flex: 1; padding: 2rem 2.5rem; min-width: 0; }
.settings-form { max-width: 60rem; }
.admin-page-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.admin-page-header h1 { font-size: 1.75rem; font-weight: 700; }
.admin-page-header p { color: var(--muted-foreground); margin-top: 0.25rem; }
.admin-toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 0.5rem; background: rgba(11,14,20,0.5);
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0.5rem 0.75rem;
  max-width: 20rem; margin-bottom: 1.25rem;
}
.search-box input { border: none; background: transparent; padding: 0; }
.data-table-wrap { background: rgba(11,14,20,0.5); border: 1px solid var(--border-soft); border-radius: 0.75rem; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; padding: 0.9rem 1.25rem; color: var(--muted-foreground); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-soft); }
td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border-softer); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
/* Letzte Spalte (Aktionen-Buttons) bleibt schmal und schrumpft auf ihren Inhalt, der Rest
   teilt sich den übrigen Platz - so läuft die Tabelle bei breiten Bildschirmen nicht mit
   einer riesigen Lücke rechts auseinander, sondern nutzt die volle verfügbare Breite. */
th:last-child, td:last-child { width: 1%; white-space: nowrap; }
.table-avatar { width: 2rem; height: 2rem; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,0.1); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; }
.table-avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.empty-state { padding: 3rem; text-align: center; color: var(--muted-foreground); }
.spinner-wrap { padding: 3rem; text-align: center; }

/* ---------- Modal / dialog ---------- */
/* Kein backdrop-filter/blur hier - das zwingt den Browser, den kompletten Hintergrund
   (v.a. das große Hero-Bild auf der Startseite) jeden Frame neu zu weichzeichnen, solange
   das Fenster offen ist - das war der Grund für das extreme Ruckeln beim Öffnen des
   Partner-Infofensters. Ein etwas dunklerer, einfarbiger Hintergrund ohne Blur sieht fast
   genauso aus, kostet die Grafikkarte aber praktisch nichts. */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 7, 12, 0.82);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--deep-space); border: 1px solid var(--border-soft); border-radius: 0.75rem;
  width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto; padding: 1.5rem;
}
.modal h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.modal .modal-desc { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Toasts ---------- */
#toast-root { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 0.8rem 1.1rem; font-size: 0.85rem; min-width: 16rem; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toast-in 0.2s ease-out;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(220,38,38,0.5); color: #fca5a5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Musik-Widget: Lautstärkeregler beim Hover über den Stumm-Knopf ---------- */
.volume-control { position: relative; }
.volume-popup {
  /* Rechtsbündig statt zentriert: der Knopf sitzt selbst schon ganz am rechten
     Bildschirmrand (siehe #music-widget), zentriert würde das Fenster über den
     Rand hinausragen und der Regler wäre am rechten Ende nicht bedienbar. So
     wächst das Popup nur nach links, bleibt also komplett im sichtbaren Bereich. */
  position: absolute;
  bottom: calc(100% + 0.6rem);
  right: 0;
  background: rgba(11, 14, 20, 0.95);
  border: 1px solid var(--border-soft);
  border-radius: 0.6rem;
  padding: 0.7rem 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 1;
}
.volume-control:hover .volume-popup,
.volume-control:focus-within .volume-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Regler komplett selbst gestylt (Track + Daumen), statt uns auf die native
   Browser-/OS-Optik oder "accent-color" zu verlassen - Browser wie Opera GX
   bringen sonst ihr eigenes, hier nicht passendes Standard-Design mit. */
.volume-popup input[type="range"] {
  width: 7rem;
  vertical-align: middle;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.volume-popup input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: var(--border-soft);
}
.volume-popup input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  border: none;
  background: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}
.volume-popup input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--border-soft);
}
.volume-popup input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--neon-blue);
}
.volume-popup input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

/* ---------- Login page ---------- */
.login-shell { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-card { max-width: 24rem; text-align: center; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-card p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.login-error { color: #f87171; font-size: 0.85rem; margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-softer); display: flex; gap: 0.5rem; overflow-x: auto; }
  .admin-main { padding: 1.25rem 1rem; }
  .main-nav { gap: 1rem; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Mobile header + hero (narrow phones) ---------- */
@media (max-width: 640px) {
  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    row-gap: 0.6rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 1.25rem; }
  .brand { font-size: 1rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }

  .hero {
    min-height: 60vh;
    padding: 5rem 1.25rem 2.5rem;
    background-size: contain;
    background-position: center 40%;
    background-color: var(--deep-space);
  }
  .hero-badge { font-size: 0.68rem; padding: 0.4rem 1rem; }
  .scroll-hint { margin-top: 2rem; }

  .footer-top { flex-direction: column; }
  .footer-right { align-items: flex-start; width: 100%; }
  .footer-meta { text-align: left; }

  .partners-grid { gap: 2rem; }
  .partner-card { width: 7.5rem; }
  .partner-logo { width: 6.5rem; height: 6.5rem; }
  .partner-letter { font-size: 2rem; }
}
