/* ============================================================================
   core.css – Redesign "Arkanes Konsolen-HUD" · Happy Accident
   ----------------------------------------------------------------------------
   Ein modulares, mehrseitiges Redesign der Gildenseite. Ästhetik:
   das bestehende Arkan-Lila/Gold-Markenzeichen der Gilde, erweitert um eine
   kalte Runen-Cyan-"Datenebene" (Cyber-Fantasy). Echte Glassmorphism-Panels
   (backdrop-filter: blur) schweben über einem Runen-Raster + Nebel.

   Design-Tokens leben ausschliesslich hier im :root. Klassenfarben werden pro
   Kachel per JS als --class-color / --class-rgb gesetzt (Signatur-Effekt beim
   Hover: die Kachel "zündet" in der Klassenfarbe).

   Alle Farb-/Font-Namen sind bewusst kompatibel zur bestehenden index.html,
   damit ein späteres Zusammenführen leichtfällt.
   ========================================================================== */

/* ---- Schriften: lokal gehostet (DSGVO – keine externen Fonts) -------------- */
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('fonts/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================================
   Design-Tokens
   ========================================================================== */
:root {
  /* Grund / Nebel */
  --void:        #08060f;
  --nebula:      #170d2e;
  --nebula-2:    #0e0920;

  /* Marke: Arkan-Lila + Gold (Gilden-Markenzeichen) */
  --arcane:      #b98cff;
  --arcane-hot:  #7c5cff;
  --gold:        #f5c15a;
  --gold-bright: #ffe6a8;
  --gold-deep:   #b6862f;

  /* NEU: kalte Runen-Cyan-Datenebene (der "Cyber"-Teil von Cyber-Fantasy).
     Bewusst sparsam – nur für Mess-/Datenlabels, HUD-Kanten, Ziffern. */
  --rune:        #4fe3ff;
  --rune-dim:    rgba(79, 227, 255, 0.6);

  /* Fraktionen */
  --alliance:    #4a7fd6;
  --horde:       #d6564a;

  /* Text */
  --ink:         #ece6ff;
  --ink-dim:     rgba(236, 230, 255, 0.62);
  --ink-faint:   rgba(236, 230, 255, 0.40);

  /* Linien / Glas */
  --line:        rgba(185, 140, 255, 0.22);
  --line-strong: rgba(245, 193, 90, 0.34);
  --glass:       rgba(23, 15, 42, 0.55);
  --glass-2:     rgba(14, 9, 28, 0.62);

  /* Item-Qualität (WoW – trägt echte Bedeutung, kein Deko) */
  --q-uncommon:  #1eff00;
  --q-rare:      #0070dd;
  --q-epic:      #a335ee;
  --q-legendary: #ff8000;

  /* Schrift-Rollen */
  --serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono:  ui-monospace, "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --nav-h: 64px;
}

/* ============================================================================
   Reset / Basis
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; color: var(--ink); font-family: var(--sans); line-height: 1.65;
  background: var(--void); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--rune); outline-offset: 2px; border-radius: 4px; }

/* Arkan-Scrollleiste (wie auf der Bestandsseite) */
* { scrollbar-width: thin; scrollbar-color: rgba(124,92,255,.6) rgba(17,10,32,.9); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(17,10,32,.9); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(185,140,255,.85), rgba(124,92,255,.55));
  border-radius: 999px; border: 2px solid rgba(17,10,32,.9);
}
::-webkit-scrollbar-thumb:hover { background: var(--arcane); }

/* ============================================================================
   Hintergrund: Nebel-Layer + Runen-Raster + Sternen-Canvas
   ---------------------------------------------------------------------------- */
.bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(120vw 90vh at 50% -14%, rgba(124, 92, 255, 0.26), transparent 60%),
    radial-gradient(70vw 60vh at 84% 6%, rgba(79, 227, 255, 0.10), transparent 60%),
    radial-gradient(74vw 70vh at 10% 26%, rgba(74, 127, 214, 0.14), transparent 60%),
    radial-gradient(90vw 80vh at 50% 112%, rgba(124, 92, 255, 0.16), transparent 60%),
    /* Basis jetzt HALBTRANSPARENT, damit das Horde/Allianz-Foto (body::before) durchscheint. */
    linear-gradient(180deg, rgba(12, 8, 26, 0.72) 0%, rgba(7, 5, 14, 0.88) 78%);
}
/* Runen-Raster: feines Gitter, das den "HUD/Konsolen"-Charakter trägt.
   Zwei sich kreuzende Linienraster + Vignette; sehr dezent. */
.bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79, 227, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 227, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(120vw 90vh at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(120vw 90vh at 50% 20%, #000 0%, transparent 78%);
}
.bg::after {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(38vw 30vh at 26% 30%, rgba(185, 140, 255, 0.10), transparent 60%),
    radial-gradient(42vw 34vh at 76% 62%, rgba(124, 92, 255, 0.10), transparent 62%);
  mix-blend-mode: screen; animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1.02); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
#sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* Cross-Faction-Foto (Horde/Allianz) als UNTERSTE Ebene – auf allen Seiten präsent.
   Sehr langsames Ken-Burns-Schweben; die .bg-Gradients darüber (z-index -3) dunkeln es ab.
   Bei prefers-reduced-motion wird die Animation global gestoppt (Foto bleibt statisch). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -4; pointer-events: none;
  background: url('wow-horde-alliance-bg.jpg') center center / cover no-repeat;
  transform-origin: 50% 50%;
  animation: kenburns 60s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(-1%, -0.6%, 0); }
  to   { transform: scale(1.16) translate3d(1.6%, 1%, 0); }
}

/* ============================================================================
   Navigation (Glas, sticky) – identisch über alle Seiten
   ---------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60; min-height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(10, 6, 22, 0.82), rgba(10, 6, 22, 0.40));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.crest {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 14px; color: #1a1030;
  /* achteckiges Runensiegel statt Kreis */
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: radial-gradient(circle at 34% 28%, var(--gold-bright), var(--gold) 52%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(255, 230, 168, 0.35), 0 0 18px rgba(185, 140, 255, 0.55);
}
.brand-name { font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em; font-size: 15px; color: var(--ink); text-transform: uppercase; }
.brand-realm { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--rune-dim); text-transform: uppercase; margin-top: 1px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.05em;
  color: var(--ink-dim); padding: 9px 14px; border-radius: 9px; transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--gold-bright); background: rgba(185, 140, 255, 0.10); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rune), transparent);
}
.nav-cta {
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 0.05em;
  color: #150c26; padding: 9px 16px; border-radius: 10px; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 193, 90, 0.26);
  transition: transform .16s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 22px rgba(245,193,90,.4); }
.nav-intern {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--rune);
  padding: 8px 13px; border-radius: 9px; border: 1px solid var(--rune-dim);
  background: rgba(79, 227, 255, 0.06); white-space: nowrap; transition: background .18s, box-shadow .18s;
}
.nav-intern:hover { background: rgba(79, 227, 255, 0.14); box-shadow: 0 0 16px rgba(79,227,255,.25); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 9px; padding: 8px 11px; font-size: 16px; cursor: pointer; }

/* ============================================================================
   Layout-Bausteine
   ---------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.block { padding: clamp(48px, 8vw, 92px) 0; }
section { position: relative; }

/* Eyebrow als "HUD-Koordinate": Mono, Cyan, mit vorangestelltem Marker */
.eyebrow {
  font-family: var(--mono); letter-spacing: 0.22em; text-transform: uppercase; font-size: 11.5px;
  color: var(--rune); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.eyebrow::before { content: "◇"; color: var(--arcane); font-size: 10px; }

h1.sec, h2.sec {
  font-family: var(--serif); font-weight: 900; letter-spacing: 0.02em; line-height: 1.04;
  font-size: clamp(28px, 4.8vw, 46px); margin-bottom: 12px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 52%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--ink-dim); max-width: 62ch; font-size: 16.5px; }

/* Glas-Panel: die zentrale Fläche des Redesigns */
.glass {
  position: relative; border-radius: 16px; padding: clamp(20px, 3vw, 30px);
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* HUD-Eckwinkel: dünne Cyan-Klammern an zwei Ecken – Konsolen-Anmutung */
.glass.hud::before, .glass.hud::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 1px solid var(--rune-dim); opacity: .7;
}
.glass.hud::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.glass.hud::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.grid { display: grid; gap: 20px; }
.two { grid-template-columns: 1fr 1fr; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .two, .split { grid-template-columns: 1fr; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.03em; font-size: 15px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .16s, box-shadow .2s, border-color .2s, color .2s;
}
.btn.primary { color: #150c26; background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep)); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 193, 90, 0.3); }
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 30px rgba(245,193,90,.45); }
.btn.ghost { color: var(--ink); border-color: var(--rune-dim); background: rgba(79, 227, 255, 0.06); }
.btn.ghost:hover { transform: translateY(-3px); color: var(--rune); box-shadow: 0 0 26px rgba(79, 227, 255, 0.3); }
.btn.arc { color: var(--ink); border-color: rgba(185,140,255,.5); background: rgba(124,92,255,.12); }
.btn.arc:hover { transform: translateY(-3px); border-color: var(--arcane); color: var(--gold-bright); box-shadow: 0 0 26px rgba(124,92,255,.35); }

/* ---- Chips / Tags --------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(124, 92, 255, 0.08); color: var(--ink-dim);
}
.chip.rune { color: var(--rune); border-color: var(--rune-dim); background: rgba(79,227,255,.07); }
.chip.gold { color: var(--gold-bright); border-color: var(--line-strong); background: rgba(245,193,90,.08); }
.chip.horde { color: #ff8a7a; border-color: rgba(214,86,74,.4); background: rgba(214,86,74,.1); }
.chip.alliance { color: #9fc0ff; border-color: rgba(74,127,214,.4); background: rgba(74,127,214,.1); }

/* ============================================================================
   Footer
   ---------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-dim); font-size: 14px; }
.foot a:hover { color: var(--gold); }
.foot .disc { flex-basis: 100%; font-size: 12px; color: var(--ink-faint); line-height: 1.6; }

/* ============================================================================
   Scroll-Reveal + Motion-Guards
   ---------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   Responsive Navigation
   ---------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; padding: 8px; gap: 4px;
    background: rgba(10, 6, 22, 0.98); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .burger { display: inline-block; }
}
@media (max-width: 520px) {
  .brand-realm { display: none; }
  .nav-cta { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
