/* ==========================================================================
   TOILETGODXGANG – toiletgodxgang.de
   Dark-Fantasy Landingpage im WoW-Stil
   --------------------------------------------------------------------------
   Farbpalette (aus dem Gilden-Logo abgeleitet):
     Blutrot      #c1121c   (Logo-Rot, Buttons, Akzente)
     Dunkelrot    #7a0c12   (Verläufe, Schatten)
     Glutrot      #ff3b30   (Glow-Effekte)
     Obsidian     #0a0a0c   (Seitenhintergrund)
     Kohle        #141418   (Karten, Sektionen)
     Stahlsilber  #aab4c8   (Logo-Silber, Rahmen, Nebentexte)
     Pergament    #e8e3d8   (Fließtext)
   ========================================================================== */

/* ---------- Design-Tokens ------------------------------------------------ */
:root {
  --c-blood:       #c1121c;
  --c-blood-dark:  #7a0c12;
  --c-ember:       #ff3b30;
  --c-obsidian:    #0a0a0c;
  --c-coal:        #141418;
  --c-coal-light:  #1c1c22;
  --c-steel:       #aab4c8;
  --c-steel-dim:   #6b7382;
  --c-parchment:   #e8e3d8;
  --c-parchment-dim: #b8b2a4;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-accent:  'MedievalSharp', 'Cinzel', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --glow-red:   0 0 12px rgba(255, 59, 48, .55), 0 0 34px rgba(193, 18, 28, .35);
  --glow-red-strong: 0 0 18px rgba(255, 59, 48, .8), 0 0 52px rgba(193, 18, 28, .5);

  --header-h: 4.5rem;
  --radius: 10px;
  --max-w: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--c-obsidian);
  color: var(--c-parchment);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
}

p { margin: 0 0 1.1em; }
a { color: var(--c-ember); }
a:hover { color: #ff6a60; }

/* Sichtbarer Fokus für Tastatur-Navigation (Barrierefreiheit) */
:focus-visible {
  outline: 2px solid var(--c-ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-Link: erst bei Fokus sichtbar */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--c-blood);
  color: #fff;
  padding: .6rem 1.2rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Wiederkehrende Layout-Helfer ---------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }

/* Überschrift mit Zierlinien links/rechts */
.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: .5rem;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 0 1 8rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-blood));
}
.section-title::after {
  background: linear-gradient(90deg, var(--c-blood), transparent);
}

.section-sub {
  text-align: center;
  font-family: var(--font-accent);
  color: var(--c-steel);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .95rem;
  margin-bottom: 3rem;
}

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 2.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primär: Blutrot mit pulsierendem Glow */
.btn-primary {
  background: linear-gradient(180deg, #e0242f 0%, var(--c-blood) 45%, var(--c-blood-dark) 100%);
  color: #fff;
  border-color: rgba(255, 120, 110, .45);
  box-shadow: var(--glow-red);
  animation: btn-pulse 2.8s ease-in-out infinite;
}
.btn-primary:hover {
  color: #fff;
  box-shadow: var(--glow-red-strong);
  animation-play-state: paused;
}
/* Lichtreflex, der über den Button wandert */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Sekundär: Stahlrahmen */
.btn-ghost {
  background: rgba(170, 180, 200, .06);
  color: var(--c-steel);
  border-color: rgba(170, 180, 200, .4);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--c-steel);
  background: rgba(170, 180, 200, .12);
  box-shadow: 0 0 16px rgba(170, 180, 200, .25);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: var(--glow-red); }
  50%      { box-shadow: var(--glow-red-strong); }
}

/* ---------- Sticky Header -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 18, 28, .35);
  transition: box-shadow .3s ease;
}
/* wird per JS gesetzt, sobald gescrollt wurde */
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 1px 0 rgba(193,18,28,.5); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img { height: 2.9rem; width: auto; filter: drop-shadow(0 0 8px rgba(193,18,28,.6)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .1em;
  color: #fff;
  text-transform: uppercase;
}
.brand-name span { color: var(--c-blood); }

/* Navigation */
.main-nav ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  white-space: nowrap;
  padding: .55rem .9rem;
  font-family: var(--font-display);
  font-size: .92rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-steel);
  text-decoration: none;
  position: relative;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-ember), transparent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Burger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(170,180,200,.4);
  border-radius: 6px;
  padding: .5rem .65rem;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--c-steel);
  margin: .3rem 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(.38rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-.38rem) rotate(-45deg); }

/* ---------- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  /* Mehrschichtiger "Schlachtfeld-Himmel" aus Verläufen */
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(193, 18, 28, .38), transparent 60%),
    radial-gradient(ellipse 65% 45% at 50% 108%, rgba(255, 59, 48, .22), transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% -30%, #1a1a22 0%, transparent 70%),
    linear-gradient(180deg, #0c0c10 0%, #0a0a0c 55%, #120a0b 100%);
}

/* Steintextur-Overlay (per SVG-Noise, keine externe Datei) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .07;
  pointer-events: none;
}

/* Vignette für Tiefe */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%);
  pointer-events: none;
}

/* --- Nebel-Schwaden: zwei große, weichgezeichnete Flächen, die driften --- */
.fog {
  position: absolute;
  width: 130vw;
  height: 45vh;
  bottom: -12vh;
  left: -15vw;
  background: radial-gradient(ellipse 45% 60% at 30% 50%, rgba(170,180,200,.10), transparent 70%),
              radial-gradient(ellipse 40% 55% at 70% 45%, rgba(193,18,28,.10),  transparent 70%);
  filter: blur(30px);
  animation: fog-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.fog--two {
  bottom: -6vh;
  animation-duration: 38s;
  animation-direction: alternate-reverse;
  opacity: .7;
}
@keyframes fog-drift {
  from { transform: translateX(-6%) translateY(0); }
  to   { transform: translateX(6%)  translateY(-3%); }
}

/* --- Glut-Partikel: kleine Funken, die aufsteigen (reines CSS) --- */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i {
  position: absolute;
  bottom: -2vh;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-ember);
  box-shadow: 0 0 8px 2px rgba(255,59,48,.7);
  opacity: 0;
  animation: ember-rise linear infinite;
}
/* Position, Dauer und Verzögerung je Funke variieren */
.embers i:nth-child(1)  { left: 6%;  animation-duration: 11s; animation-delay: 0s;   scale: .7; }
.embers i:nth-child(2)  { left: 15%; animation-duration: 14s; animation-delay: 3s;  }
.embers i:nth-child(3)  { left: 24%; animation-duration: 9s;  animation-delay: 6s;   scale: .5; }
.embers i:nth-child(4)  { left: 33%; animation-duration: 13s; animation-delay: 1.5s; scale: .8; }
.embers i:nth-child(5)  { left: 45%; animation-duration: 10s; animation-delay: 4s;  }
.embers i:nth-child(6)  { left: 55%; animation-duration: 15s; animation-delay: 7s;   scale: .6; }
.embers i:nth-child(7)  { left: 64%; animation-duration: 12s; animation-delay: 2s;  }
.embers i:nth-child(8)  { left: 73%; animation-duration: 9s;  animation-delay: 5s;   scale: .75; }
.embers i:nth-child(9)  { left: 84%; animation-duration: 14s; animation-delay: 0.5s; scale: .55; }
.embers i:nth-child(10) { left: 92%; animation-duration: 11s; animation-delay: 8s;  }
.embers i:nth-child(11) { left: 38%; animation-duration: 16s; animation-delay: 9s;   scale: .65; }
.embers i:nth-child(12) { left: 78%; animation-duration: 13s; animation-delay: 11s;  scale: .5; }
@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0);        opacity: 0; }
  8%   { opacity: .9; }
  60%  { opacity: .7; }
  100% { transform: translateY(-105vh) translateX(4vw); opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; }

/* Logo mit Glow + sanftem Schweben; Parallax-Versatz kommt per JS */
.hero-logo {
  width: clamp(230px, 38vw, 400px);
  margin-inline: auto;
  filter: drop-shadow(0 0 32px rgba(193, 18, 28, .55)) drop-shadow(0 12px 24px rgba(0,0,0,.8));
  animation: logo-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes logo-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.hero-title {
  /* Untergrenze klein genug, damit der lange Gildenname auch auf
     schmalen Displays (375 px) nicht abgeschnitten wird */
  font-size: clamp(1.55rem, 7.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 1.5rem 0 .25rem;
  /* Metallischer Verlauf in der Schrift */
  background: linear-gradient(180deg, #ffffff 0%, #d8dde8 35%, var(--c-steel) 55%, #ff5148 78%, var(--c-blood) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.9)) drop-shadow(0 0 26px rgba(193,18,28,.35));
}

.hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--c-steel);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
}
.hero-tagline strong { color: var(--c-ember); font-weight: 400; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll-Hinweis (springender Pfeil) */
.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  color: var(--c-steel-dim);
  font-size: 1.6rem;
  text-decoration: none;
  animation: hint-bounce 2s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ---------- Sektion "Über uns" --------------------------------------------- */
.about { background: linear-gradient(180deg, #120a0b, var(--c-obsidian) 18%); }

/* --- Gilden-Artwork mit Sprechblase --- */
.guild-art {
  position: relative;
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  /* Platz für die Sprechblase oberhalb des Bildes */
  padding-top: 4.5rem;
}
.guild-art img,
.guild-art video {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto; /* immer mittig, egal wie breit das Video ist */
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid rgba(170, 180, 200, .22);
  outline: 2px solid rgba(193, 18, 28, .45);
  outline-offset: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 44px rgba(193,18,28,.22);
  transition: transform .4s ease, box-shadow .4s ease;
}
.guild-art:hover img,
.guild-art:hover video {
  transform: scale(1.015);
  box-shadow: 0 28px 80px rgba(0,0,0,.75), var(--glow-red);
}

/* Sprechblase: zeigt den täglich wechselnden WoW-Tipp (js/main.js) */
.speech-bubble {
  position: absolute;
  top: 0;
  right: clamp(.5rem, 6%, 3rem);
  z-index: 2;
  max-width: min(22rem, 85%);
  background: linear-gradient(170deg, #fdfaf2, #e8e3d8);
  color: #1a1a1e;
  border: 2px solid var(--c-blood);
  border-radius: 16px;
  padding: .8rem 1.2rem .9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 22px rgba(193,18,28,.35);
  animation: bubble-bob 4.5s ease-in-out infinite;
}
/* Sprechblasen-Zipfel zeigt aufs Bild */
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 22%;
  width: 22px;
  height: 22px;
  background: #ece7db;
  border-right: 2px solid var(--c-blood);
  border-bottom: 2px solid var(--c-blood);
  transform: rotate(45deg) skew(12deg, 12deg);
  border-bottom-right-radius: 5px;
}
.speech-bubble-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-blood);
  margin-bottom: .15rem;
}
#dailyTip {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  line-height: 1.35;
}
@keyframes bubble-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

.about-text {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  color: var(--c-parchment-dim);
  font-size: 1.1rem;
}

/* ---------- Sektion Spiel ----------------------------------------------------
   Das Browsergame läuft in einem iframe im Look der Seite: dunkler Rahmen,
   roter Schimmer, 16:9-Fenster. Geladen wird es erst nach Klick (main.js). */
.game {
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%, rgba(193, 18, 28, .10), transparent 60%),
    var(--c-obsidian);
  border-top: 1px solid rgba(193, 18, 28, .25);
}

.game-frame {
  position: relative;
  /* Bricht aus der normalen Inhaltsbreite aus und nutzt fast die volle
     Browserbreite, damit das Spiel möglichst groß dargestellt wird. */
  width: min(94vw, 84rem);
  left: 50%;
  translate: -50% 0;
  /* Kein starres 16:9 – das Spiel braucht Höhe, sonst wird die
     Klassenwahl abgeschnitten. 88vh nutzt fast den ganzen Bildschirm,
     die Obergrenze verhindert ein absurd hohes Fenster auf 4K-Monitoren. */
  height: min(88vh, 60rem);
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, #1c1c22, #0c0c10 80%);
  border-radius: calc(var(--radius) * 1.4);
  border: 1px solid rgba(170, 180, 200, .22);
  outline: 2px solid rgba(193, 18, 28, .45);
  outline-offset: 4px;
  box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 44px rgba(193,18,28,.22);
  overflow: hidden;
}
/* Das per JS eingesetzte Spiel-iframe füllt den Rahmen komplett.
   Trick: Das Spiel läuft intern in einer größeren "virtuellen" Auflösung
   (100% / Zoom) und wird per transform auf die Rahmengröße verkleinert.
   Grund: Unter 1001px Breite schaltet das Spiel in sein Mobil-Layout,
   bei dem die Rangliste unters Menü rutscht und man scrollen muss.
   So sieht das Spiel ein >1001px breites Fenster und zeigt sein
   komplettes Desktop-Layout ohne Scrollen. Je größer der Zoom-Wert,
   desto größer die Spiel-Schrift (aber: Rahmenbreite / Zoom muss
   über 1001px bleiben, sonst kippt das Spiel ins Mobil-Layout). */
.game-frame { --game-zoom: 0.85; }
.game-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--game-zoom));
  height: calc(100% / var(--game-zoom));
  transform: scale(var(--game-zoom));
  transform-origin: top left;
  border: 0;
}
/* Mittlere Fenster: stärker verkleinern. Die virtuelle Breite bleibt so
   deutlich über 1001px – Titel und Klassenkarten brechen nicht um und
   das komplette Menü (inkl. LOSKÄMPFEN) passt ohne Scrollen hinein. */
@media (max-width: 1100px) {
  .game-frame { --game-zoom: 0.72; }
}
/* Auf Smartphones nicht verkleinern – dort ist das Mobil-Layout
   des Spiels genau richtig und die Schrift bliebe sonst zu klein. */
@media (max-width: 700px) {
  .game-frame { --game-zoom: 1; }
}
/* Im Vollbild ist der Bildschirm breit genug: Zoom-Trick abschalten,
   das Spiel läuft dort 1:1 in nativer Auflösung.
   Wichtig: Zentrier-Verschiebung (left/translate) und die begrenzte
   Breite/Höhe des normalen Rahmens müssen hier zurückgesetzt werden,
   sonst ist das Spielfenster im Vollbild verschoben/abgeschnitten. */
.game-frame:fullscreen {
  --game-zoom: 1;
  left: 0;
  translate: none;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  outline: none;
  border-radius: 0;
}
.game-frame:-webkit-full-screen {
  --game-zoom: 1;
  left: 0;
  translate: none;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  outline: none;
  border-radius: 0;
}

/* Start-Overlay vor dem Laden des Spiels */
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  padding: 1.5rem;
}
.game-overlay img {
  width: clamp(70px, 12vw, 110px);
  filter: drop-shadow(0 0 18px rgba(193,18,28,.55));
}
.game-overlay-hint {
  color: var(--c-parchment-dim);
  max-width: 26rem;
  margin: 0;
}

/* Leiste unter dem Spielfenster (Vollbild + neuer Tab) */
.game-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
}
/* Auf schmalen Displays etwas kompakter, damit die Seite nicht springt */
@media (max-width: 700px) {
  .game-frame { height: min(78vh, 38rem); }
}

/* ---------- Sektion Community / Discord ------------------------------------- */
.community {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(88, 101, 242, .12), transparent 60%),
    linear-gradient(180deg, var(--c-obsidian), #0d0d12);
  border-top: 1px solid rgba(193, 18, 28, .25);
}

.discord-panel {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(165deg, var(--c-coal-light), #101014 70%);
  border: 1px solid rgba(170, 180, 200, .16);
  border-radius: calc(var(--radius) * 1.6);
  padding: 2.75rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  position: relative;
  overflow: hidden;
}
/* dezenter Lichtschein oben im Panel */
.discord-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  translate: -50% 0;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(88, 101, 242, .22), transparent 70%);
  pointer-events: none;
}

/* Live-Status: grün pulsierender Punkt + Mitgliederzahl (per JS befüllt) */
.discord-status {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-parchment);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(170,180,200,.18);
  border-radius: 100px;
  padding: .55rem 1.4rem;
  margin-bottom: 1.75rem;
  min-height: 2.6rem;
}
.status-dot {
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: #3ba55d; /* Discord-Grün */
  box-shadow: 0 0 0 0 rgba(59, 165, 93, .7);
  animation: dot-pulse 2s ease-out infinite;
  flex: none;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 165, 93, .7); }
  70%  { box-shadow: 0 0 0 12px rgba(59, 165, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); }
}
/* grauer Punkt im Fehlerfall */
.discord-status.is-offline .status-dot {
  background: var(--c-steel-dim);
  animation: none;
  box-shadow: none;
}

/* Optionales eingebettetes Discord-Widget (iframe) */
.discord-embed { margin-top: 2rem; }
.discord-embed iframe {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  max-width: 350px;
}

/* ---------- Footer ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(193, 18, 28, .35);
  background: linear-gradient(180deg, #0d0d10, #060608);
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--c-steel-dim);
  font-size: .95rem;
}
.footer-logo {
  width: 84px;
  margin: 0 auto 1rem;
  opacity: .9;
  filter: drop-shadow(0 0 10px rgba(193,18,28,.45));
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.75rem;
  margin: 1rem 0;
}
.footer-nav a {
  color: var(--c-steel);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,59,48,.6); }
.footer-copy { margin: 0; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------------------------- */
.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  min-height: 70vh;
}
.legal-main .wrap { max-width: 46rem; }
.legal-main h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(193, 18, 28, .5);
  padding-bottom: .75rem;
}
.legal-main h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  color: var(--c-parchment);
}
.legal-main h3 { font-size: 1.1rem; margin-top: 1.75rem; color: var(--c-steel); }
.legal-main p, .legal-main li { color: var(--c-parchment-dim); }
.legal-main address { font-style: normal; color: var(--c-parchment); line-height: 1.8; }

/* ---------- Scroll-Reveal (Elemente blenden beim Scrollen ein) --------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive -------------------------------------------------------
   Breakpoint bewusst hoch (1080px): mit 6 Navigationspunkten braucht der
   Header sonst mehr Platz, als mittlere Fenster hergeben. */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    width: min(20rem, 85vw);
    height: calc(100dvh - var(--header-h));
    background: rgba(10, 10, 12, .97);
    border-left: 1px solid rgba(193, 18, 28, .4);
    transform: translateX(100%);
    transition: transform .35s ease;
    padding: 1.5rem;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: .5rem; }
  .main-nav a { font-size: 1.1rem; padding: .8rem .5rem; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Barrierefreiheit: reduzierte Bewegung ------------------------------
   Nutzer:innen mit "Bewegung reduzieren" bekommen eine ruhige Seite. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog, .embers i, .hero-logo, .scroll-hint,
  .btn-primary, .status-dot, .speech-bubble { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
