/* Saarwacht – Nordend-Nacht: tiefes Blau, Frostlicht, goldene Akzente.
   Überschriften in Marcellus (OFL, selbst gehostet): eine ausgestellte Antiqua in der Art der WoW-Schrift Friz Quadrata. */
@font-face {
  font-family: "Marcellus";
  src: url("/fonts/Marcellus-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #070d17;
  --bg-2: #0c1626;
  --card: rgba(16, 28, 46, 0.82);
  --line: rgba(143, 211, 255, 0.16);
  --text: #dbe7f3;
  --muted: #8ea3b8;
  --frost: #8fd3ff;
  --frost-strong: #4fb6f0;
  --gold: #e8c46a;
  --danger: #ff8a80;
  --ok: #7ee2a8;
  --radius: 14px;
  --serif: "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 182, 240, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232, 196, 106, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  background-attachment: fixed;
}

a { color: var(--frost); }
a:hover { color: #c4ebff; }

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 23, 0.6);
  backdrop-filter: blur(6px);
}

.brand {
  font: 400 1.3rem/1 var(--serif);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand small { font: 500 0.72rem var(--sans); color: var(--gold); letter-spacing: 0.08em; margin-left: 6px; }
.rune { color: var(--frost); text-shadow: 0 0 12px rgba(143, 211, 255, 0.7); }

nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); background: rgba(143, 211, 255, 0.1); }

main {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 16px;
  display: grid;
  gap: 24px;
  align-content: start;
}

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 12px; }
h2 { font-size: 1.35rem; margin: 0 0 12px; color: #eef5fb; }

.hero { text-align: center; padding: clamp(16px, 5vw, 40px) 0 8px; }
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  background: linear-gradient(180deg, #ffffff, var(--frost) 70%, var(--frost-strong));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(79, 182, 240, 0.25);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.lead strong { color: var(--text); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.narrow { max-width: 520px; width: 100%; justify-self: center; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid rgba(232, 196, 106, 0.6);
  border-radius: 10px;
  background: linear-gradient(180deg, #f1d58b, #c99b3c);
  color: #1b1405;
  font: 700 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 155, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn:hover { filter: brightness(1.07); color: #1b1405; }
.btn:focus-visible, input:focus-visible, nav a:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }

.status dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}
.status dl div { background: rgba(7, 13, 23, 0.5); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.status dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.status dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.up { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.down { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

.steps { padding-left: 1.3em; margin: 0; display: grid; gap: 10px; }
.steps li::marker { color: var(--gold); font-weight: 700; }

code { font-family: ui-monospace, "Cascadia Code", "DejaVu Sans Mono", monospace; font-size: 0.92em; color: #c4ebff; }
pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}
.hint { color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }

form { display: grid; gap: 16px; margin-top: 8px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input[type="text"], input:not([type]), input[type="email"], input[type="password"], textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid rgba(143, 211, 255, 0.22);
  background: rgba(3, 8, 15, 0.7);
  color: var(--text);
  font: 400 1rem var(--sans);
}
input:focus, textarea:focus { border-color: var(--frost); }
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.help { font-weight: 400; font-size: 0.84rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--gold); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 12px 14px; border-radius: 10px; margin: 8px 0 16px; font-size: 0.95rem; }
.notice.error { background: rgba(255, 138, 128, 0.1); border: 1px solid rgba(255, 138, 128, 0.35); color: #ffd0cb; }
.notice.ok { background: rgba(126, 226, 168, 0.1); border: 1px solid rgba(126, 226, 168, 0.35); color: #cdf5dd; }

.prose h1 { margin-bottom: 20px; }
.prose h2 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose p { color: #c7d5e3; }

footer {
  text-align: center;
  padding: 24px 16px 32px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
footer p { margin: 4px 0; }

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.downloads li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 13, 23, 0.5);
}
.downloads span { color: var(--muted); font-size: 0.9rem; }
.downloads .meta { font-size: 0.82rem; }
.downloads .sha code { word-break: break-all; }
.dl { font-weight: 700; font-family: ui-monospace, "DejaVu Sans Mono", monospace; }
.dl::before { content: "⤓ "; color: var(--gold); }
.dl.ext::before { content: "↗ "; }
.faq dt { font-weight: 700; color: #eef5fb; margin-top: 14px; }
.faq dd { margin: 4px 0 0; color: #c7d5e3; }

.account-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.account-head h1 { margin: 0; }
.account-head form { margin: 0; }
.btn-ghost {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem var(--sans);
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--frost); }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}
.facts div { background: rgba(7, 13, 23, 0.5); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; word-break: break-word; }
.table-wrap { overflow-x: auto; }
.chars { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.chars th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.chars td { padding: 10px; border-bottom: 1px solid rgba(143, 211, 255, 0.07); white-space: nowrap; }
.chars .empty { color: var(--muted); text-align: center; padding: 20px; white-space: normal; }
.faction { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.faction.alliance { background: #4a8fe8; }
.faction.horde { background: #d8483c; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Hintergrundmotiv (eigenes KI-Bild, Nordend-Panorama 2056×765) – Anmelde-Seiten vollflächig,
   Startseite im Kopfbereich. Die Zitadelle sitzt bei ca. 72 % der Breite, links ist dunkler Himmel für den Text. */
body.auth {
  background:
    linear-gradient(90deg, rgba(7, 13, 23, 0.95) 0%, rgba(7, 13, 23, 0.82) 38%, rgba(7, 13, 23, 0.25) 72%, rgba(7, 13, 23, 0.5) 100%),
    url("/img/bg-nordend.webp") 72% center / cover no-repeat fixed,
    var(--bg);
}
body.auth main { max-width: 1180px; justify-items: start; align-content: center; }
body.auth .card.narrow {
  justify-self: start;
  background: rgba(10, 18, 31, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(143, 211, 255, 0.22);
}


@media (max-width: 760px) {
  body.auth {
    background:
      linear-gradient(180deg, rgba(7, 13, 23, 0.55) 0%, rgba(7, 13, 23, 0.9) 45%, var(--bg) 100%),
      url("/img/bg-nordend.webp") 72% top / auto 70vh no-repeat,
      var(--bg);
  }
  body.auth .card.narrow { justify-self: stretch; }
}

/* ---------------------------------------------------------------- Admin */
body.admin main { max-width: 1100px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-nav a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: 0.92rem; background: rgba(7, 13, 23, 0.5);
}
.admin-nav a:hover, .admin-nav a[aria-current="page"] { color: var(--text); border-color: var(--gold); }
table.list { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.list th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
table.list th, table.list td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.muted td { opacity: 0.55; }
table.list .empty, p.empty { color: var(--muted); text-align: center; }
.nowrap { white-space: nowrap; }
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 0.72rem var(--sans);
  letter-spacing: 0.04em; vertical-align: middle; border: 1px solid var(--line); color: var(--muted);
}
.badge.gm { color: var(--gold); border-color: rgba(232, 196, 106, 0.5); }
.badge.ban { color: #ffd0cb; border-color: rgba(255, 138, 128, 0.5); background: rgba(255, 138, 128, 0.1); }
.search { display: flex; gap: 10px; margin: 0 0 12px; }
.search input { flex: 1; min-width: 0; }
.search .btn { padding: 10px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.chip.on, .chip:hover { color: var(--text); border-color: var(--frost); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.pager .hint { margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.account-head .row-actions { margin-top: 0; }
.row-actions form, form.inline { margin: 0; display: inline; }
.btn.danger { background: linear-gradient(180deg, #ff9d93, #d9574b); border-color: rgba(255, 138, 128, 0.6); color: #2a0703; }
select, input[type="search"] {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid rgba(143, 211, 255, 0.22);
  background: rgba(3, 8, 15, 0.7); color: var(--text); font: 400 1rem var(--sans);
}

/* „Neu“-Markierung (Seite /bots) */
.kicker { margin: 0 0 6px; font: 600 0.8rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.badge-new {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1d58b, #c99b3c);
  color: #1b1405;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Status, Neuigkeiten, Server-Info, Rangliste */
.muted { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.section-head h2 { margin: 0 0 8px; }
.news { display: grid; gap: 18px; }
.news article { padding-left: 14px; border-left: 2px solid rgba(232, 196, 106, 0.45); }
.news h3 { margin: 0 0 6px; font-size: 1.08rem; color: #eef5fb; }
.news p { margin: 0 0 8px; color: #c7d5e3; }
.news .news-date { margin: 0 0 2px; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.facts.rates dd { font-size: 1.15rem; }
.rank .num, .rank th.num { text-align: right; }
.rank .pos { color: var(--gold); font-weight: 700; width: 2.2em; }
.rank tbody tr:nth-child(-n+3) .pos { font-size: 1.05rem; }
.faction-split { display: flex; height: 34px; border-radius: 9px; overflow: hidden; margin: 4px 0 18px; font-size: 0.86rem; font-weight: 700; }
.faction-split span { display: flex; align-items: center; justify-content: center; min-width: 0; white-space: nowrap; overflow: hidden; color: #fff; }
.faction-split .alliance { background: linear-gradient(180deg, #4a8fe8, #2f6bc0); }
.faction-split .horde { background: linear-gradient(180deg, #d8483c, #a8302a); }
.class-dist { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.class-dist li { display: grid; grid-template-columns: 7.5em 1fr 2.5em; gap: 10px; align-items: center; font-size: 0.92rem; }
.class-dist .bar { height: 8px; border-radius: 4px; background: rgba(143, 211, 255, 0.1); overflow: hidden; }
.class-dist .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--frost-strong), var(--frost)); }
.class-dist .num { text-align: right; color: var(--muted); }

/* Breiten ohne Inline-Styles (CSP style-src 'self') */
.gap-l { margin-left: 6px; }
.lead.flush { margin-left: 0; }
.w-0{width:0%}.w-1{width:1%}.w-2{width:2%}.w-3{width:3%}.w-4{width:4%}.w-5{width:5%}.w-6{width:6%}.w-7{width:7%}.w-8{width:8%}.w-9{width:9%}.w-10{width:10%}.w-11{width:11%}.w-12{width:12%}.w-13{width:13%}.w-14{width:14%}.w-15{width:15%}.w-16{width:16%}.w-17{width:17%}.w-18{width:18%}.w-19{width:19%}.w-20{width:20%}.w-21{width:21%}.w-22{width:22%}.w-23{width:23%}.w-24{width:24%}.w-25{width:25%}.w-26{width:26%}.w-27{width:27%}.w-28{width:28%}.w-29{width:29%}.w-30{width:30%}.w-31{width:31%}.w-32{width:32%}.w-33{width:33%}.w-34{width:34%}.w-35{width:35%}.w-36{width:36%}.w-37{width:37%}.w-38{width:38%}.w-39{width:39%}.w-40{width:40%}.w-41{width:41%}.w-42{width:42%}.w-43{width:43%}.w-44{width:44%}.w-45{width:45%}.w-46{width:46%}.w-47{width:47%}.w-48{width:48%}.w-49{width:49%}.w-50{width:50%}.w-51{width:51%}.w-52{width:52%}.w-53{width:53%}.w-54{width:54%}.w-55{width:55%}.w-56{width:56%}.w-57{width:57%}.w-58{width:58%}.w-59{width:59%}.w-60{width:60%}.w-61{width:61%}.w-62{width:62%}.w-63{width:63%}.w-64{width:64%}.w-65{width:65%}.w-66{width:66%}.w-67{width:67%}.w-68{width:68%}.w-69{width:69%}.w-70{width:70%}.w-71{width:71%}.w-72{width:72%}.w-73{width:73%}.w-74{width:74%}.w-75{width:75%}.w-76{width:76%}.w-77{width:77%}.w-78{width:78%}.w-79{width:79%}.w-80{width:80%}.w-81{width:81%}.w-82{width:82%}.w-83{width:83%}.w-84{width:84%}.w-85{width:85%}.w-86{width:86%}.w-87{width:87%}.w-88{width:88%}.w-89{width:89%}.w-90{width:90%}.w-91{width:91%}.w-92{width:92%}.w-93{width:93%}.w-94{width:94%}.w-95{width:95%}.w-96{width:96%}.w-97{width:97%}.w-98{width:98%}.w-99{width:99%}.w-100{width:100%}
.stack { display: grid; gap: 24px; }
.stack > *, .grid-2 > * { min-width: 0; }
@media (max-width: 560px) {
  .rank .race { display: none; }
  .rank td, .rank th { padding-left: 6px; padding-right: 6px; }
}

/* ================================================================ Startseite
   Ein Bild über die ganze Breite, die Schlagzeile als einziger großer Auftritt (einmaliger Frost-Glanz beim Laden),
   der Live-Status als Zeile aus der Realm-Auswahl des Spiels. Darunter ruhige Bänder statt Karten. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.home { background: var(--bg); }
body.home .top, body.sub .top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(4, 9, 16, 0.8), rgba(4, 9, 16, 0));
  backdrop-filter: none;
}
body.home main { max-width: none; padding: 0; display: block; }

.hero-full {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  flex-direction: column;
  padding: 150px clamp(16px, 5vw, 64px) 32px;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.93) 0%, rgba(5, 10, 18, 0.72) 36%, rgba(5, 10, 18, 0.1) 62%, rgba(5, 10, 18, 0) 75%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.25) 0%, rgba(5, 10, 18, 0) 40%, rgba(5, 10, 18, 0.75) 82%, var(--bg) 100%),
    url("/img/bg-nordend.webp") 72% 30% / cover no-repeat,
    var(--bg);
}
.hero-inner { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  margin: 0 0 28px;
  font: 400 clamp(3.6rem, 11vw, 8rem)/0.9 var(--serif);
  letter-spacing: 0.005em;
  color: transparent;
  background: linear-gradient(100deg, #f4fbff 0%, #f4fbff 40%, #8fd8ff 48%, #ffffff 50%, #8fd8ff 52%, #f4fbff 60%, #f4fbff 100%);
  background-size: 300% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 26px rgba(108, 196, 255, 0.22));
  animation: frost-sweep 2.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.25s both;
}
@keyframes frost-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero-lead {
  max-width: 33em;
  margin: 0 0 34px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: #e3ecf5; /* nicht --muted: das Grau ging auf den Bergen unter */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 16px rgba(5, 10, 18, 0.9);
}
.hero-lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.btn-line {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(191, 230, 255, 0.5);
  border-radius: 10px;
  background: rgba(5, 10, 18, 0.4);
  color: #eaf6ff;
  font: 600 1rem var(--sans);
  text-decoration: none;
}
.btn-line:hover { color: #fff; border-color: var(--frost); background: rgba(79, 182, 240, 0.12); }
.btn-line:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }

/* Realm-Zeile: goldener Rahmen, blau hinterlegt wie der ausgewählte Realm im Spiel */
.realm { width: 100%; max-width: 1080px; margin: 56px auto 0; }
.realm-row {
  display: grid;
  grid-template-columns: 1.7fr repeat(6, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(232, 196, 106, 0.4);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(79, 182, 240, 0.18), rgba(79, 182, 240, 0.04)),
    rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.realm-row.down { background: rgba(5, 10, 18, 0.82); }
.realm-row > div { padding: 10px 16px 12px; border-left: 1px solid rgba(143, 211, 255, 0.1); min-width: 0; }
.realm-row > div:first-child { border-left: 0; }
.realm-row dt { font-size: 0.8rem; color: var(--gold); }
.realm-row dd { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.realm-name dd { font: 400 1.2rem var(--serif); color: #fff; }
.realm-row .split { font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-left: 4px; }
.realm-row .split .faction { margin-right: 4px; }

.band { padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 64px); }
.band + .band { border-top: 1px solid var(--line); }
.wrap { max-width: 1080px; margin: 0 auto; }
.display { margin: 0 0 20px; font: 400 clamp(2.1rem, 4.6vw, 3.3rem)/1.06 var(--serif); color: #f1f7fc; }
.band p { color: #c7d5e3; }

.bots-band { background: radial-gradient(760px 420px at 82% 40%, rgba(79, 182, 240, 0.13), transparent 70%); }
.split-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-2 > p:last-child, .split-2 > div > p:last-child { margin-bottom: 0; }
.pairs { margin: 26px 0 30px; display: grid; gap: 14px; }
.pairs div { display: grid; grid-template-columns: 8em 1fr; gap: 14px; }
.pairs dt { color: var(--gold); font-weight: 700; }
.pairs dd { margin: 0; color: #c7d5e3; }

/* Chatfenster in den Farben des Spiels: Sagen weiß, System gelb, Gruppe hellblau */
.chatbox { margin: 0; }
.chatbox ol {
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  display: grid;
  gap: 5px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font: 500 1.08rem/1.55 Arial, "Liberation Sans", Helvetica, sans-serif;
  text-shadow: 1px 1px 0 #000;
  overflow-wrap: anywhere;
}
.chat-self { color: #ffffff; }
.chat-system { color: #ffff00; }
.chat-party { color: #aaaaff; }
.chatbox figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }

.journey { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.journey li { padding-top: 18px; border-top: 1px solid rgba(232, 196, 106, 0.45); }
.journey .step { display: block; margin-bottom: 12px; font: 400 2.7rem/1 var(--serif); color: var(--gold); }
.journey h3 { margin: 0 0 6px; font-size: 1.1rem; color: #eef5fb; }
.journey p { margin: 0; }
.journey pre { font-size: 0.85rem; }
.band .hint { margin-top: 40px; }

.timeline { list-style: none; padding: 0; margin: 20px 0 0; }
.timeline li { display: grid; grid-template-columns: 11em 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline time { font: 400 1.05rem/1.5 var(--serif); color: var(--gold); }
.timeline h3 { margin: 0 0 6px; font-size: 1.15rem; color: #eef5fb; }
.timeline p { margin: 0 0 8px; }
.section-head a { font-weight: 600; }

@media (max-width: 900px) {
  .realm-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .realm-row > .realm-name { grid-column: 1 / -1; }
  .realm-row > div { border-left: 0; border-top: 1px solid rgba(143, 211, 255, 0.1); }
  .realm-row > div:first-child { border-top: 0; }
  .split-2 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* Menü bricht hier um – dann nicht über das Bild legen, sonst stößt die Schlagzeile an */
  body.home .top, body.sub .top { position: relative; background: rgba(4, 9, 16, 0.92); }
  .page-hero { padding-top: 56px; min-height: 0; }
  .hero-full { padding-top: 48px; }
}
@media (max-width: 560px) {
  .hero-full {
    background:
      linear-gradient(180deg, rgba(5, 10, 18, 0.35) 0%, rgba(5, 10, 18, 0.7) 45%, rgba(5, 10, 18, 0.92) 80%, var(--bg) 100%),
      url("/img/bg-nordend.webp") 70% top / auto 75% no-repeat,
      var(--bg);
  }
  .realm-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: 1fr; }
  .pairs div, .timeline li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none; }
}

/* ================================================================ Inhaltsseiten (body.sub)
   Gleiche Sprache wie die Startseite: Bildband mit großer Titelzeile, darunter ruhige Abschnitte statt Karten.
   Jede Seite zeigt einen anderen Ausschnitt des Panoramas. Formularseiten behalten ihre Karten. */
.page-hero {
  min-height: clamp(300px, 44vh, 440px);
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(16px, 5vw, 64px) 44px;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(5, 10, 18, 0.92) 0%, rgba(5, 10, 18, 0.7) 40%, rgba(5, 10, 18, 0.15) 70%, rgba(5, 10, 18, 0.05) 100%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.3) 0%, rgba(5, 10, 18, 0) 35%, rgba(5, 10, 18, 0.6) 80%, var(--bg) 100%),
    url("/img/bg-nordend.webp");
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0, 72% 30%;
}
.crop-citadel { background-position: 0 0, 0 0, 72% 32%; }
.crop-aurora { background-position: 0 0, 0 0, 60% 0%; }
.crop-bridge { background-position: 0 0, 0 0, 88% 55%; }
.crop-cliffs { background-position: 0 0, 0 0, 100% 85%; }
.crop-mountains { background-position: 0 0, 0 0, 30% 35%; }
.page-hero-inner { width: 100%; max-width: 1080px; margin: 0 auto; }
.page-title {
  margin: 0 0 14px;
  font: 400 clamp(2.7rem, 7vw, 4.8rem)/0.95 var(--serif);
  color: #f4fbff;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.75), 0 0 24px rgba(108, 196, 255, 0.18);
}
.page-lead {
  max-width: 40em;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: #e3ecf5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 16px rgba(5, 10, 18, 0.9);
}
.page-lead strong { color: #fff; }

body.sub main { max-width: 1112px; padding: 8px 16px clamp(56px, 8vw, 96px); gap: 0; }
body.sub main > .card, body.sub .stack > .card, body.sub .grid-2 > .card {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(36px, 5vw, 56px) 0;
}
body.sub main > .card:first-child, body.sub main > .stack:first-child > .card:first-child { border-top: 0; }
body.sub .stack { gap: 0; }
body.sub .card h2 { margin: 0 0 18px; font: 400 clamp(1.7rem, 3.2vw, 2.3rem)/1.1 var(--serif); color: #f1f7fc; }
body.sub .card h2 ~ h2 { margin-top: 36px; }
/* Fließtext nicht über die volle Breite laufen lassen */
body.sub .prose > p, body.sub .prose > ul, body.sub .prose > ol, body.sub .prose > dl.faq { max-width: 46em; }
body.sub .timeline { margin-top: 0; }
body.sub .timeline li:first-child { border-top: 0; padding-top: 0; }

/* Erbstück-Auswahl: Kacheln wie Gegenstandsfelder im Spiel, Erbstück-Gold (#e6cc80) als Leitfarbe.
   Eigene Symbole (src/heirloom-icons.js), Filter nach Rüstungsart rein per CSS (:has), ohne JavaScript. */
.shop select { width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid rgba(143, 211, 255, 0.22); background: rgba(3, 8, 15, 0.7); color: var(--text); font: 400 1rem var(--sans); }

.shop-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.flt-radio { position: absolute; opacity: 0; pointer-events: none; }
.shop-filter label {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}
.shop-filter label:hover { color: var(--text); border-color: rgba(230, 204, 128, 0.5); }
.flt-radio:checked + label { color: #1b1405; background: linear-gradient(180deg, #f1dc9c, #cfae5c); border-color: #e6cc80; }
.flt-radio:focus-visible + label { outline: 2px solid var(--frost); outline-offset: 2px; }
.shop-section:has(#flt-stoff:checked) .pick-group li:not([data-f="stoff"]),
.shop-section:has(#flt-stoff:checked) .pick-group:not(:has(li[data-f="stoff"])) { display: none; }
.shop-section:has(#flt-leder:checked) .pick-group li:not([data-f="leder"]),
.shop-section:has(#flt-leder:checked) .pick-group:not(:has(li[data-f="leder"])) { display: none; }
.shop-section:has(#flt-kette:checked) .pick-group li:not([data-f="kette"]),
.shop-section:has(#flt-kette:checked) .pick-group:not(:has(li[data-f="kette"])) { display: none; }
.shop-section:has(#flt-platte:checked) .pick-group li:not([data-f="platte"]),
.shop-section:has(#flt-platte:checked) .pick-group:not(:has(li[data-f="platte"])) { display: none; }
.shop-section:has(#flt-waffe:checked) .pick-group li:not([data-f="waffe"]),
.shop-section:has(#flt-waffe:checked) .pick-group:not(:has(li[data-f="waffe"])) { display: none; }
.shop-section:has(#flt-schmuck:checked) .pick-group li:not([data-f="schmuck"]),
.shop-section:has(#flt-schmuck:checked) .pick-group:not(:has(li[data-f="schmuck"])) { display: none; }

.pick-group { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
.pick-group legend { display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 12px; font: 400 1.45rem var(--serif); color: #f1f7fc; }
.pick-group .count { font: 600 0.8rem var(--sans); color: var(--muted); }
.pick-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pick-group li { position: relative; }

.pick {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 12px 64px 12px 12px;
  border: 1px solid rgba(230, 204, 128, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.75), rgba(8, 13, 22, 0.75));
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.pick-radio { position: absolute; opacity: 0; pointer-events: none; }
.pick:hover { border-color: rgba(230, 204, 128, 0.5); transform: translateY(-1px); }
.pick:has(.pick-radio:focus-visible) { outline: 2px solid var(--frost); outline-offset: 2px; }
.pick:has(.pick-radio:checked) {
  border-color: #e6cc80;
  background: linear-gradient(180deg, rgba(230, 204, 128, 0.16), rgba(230, 204, 128, 0.04));
  box-shadow: 0 0 0 1px #e6cc80 inset, 0 10px 30px rgba(230, 204, 128, 0.14);
}
.pick:has(.pick-radio:disabled) { cursor: default; }
.pick:has(.pick-radio:disabled):hover { transform: none; border-color: rgba(230, 204, 128, 0.16); }

/* Symbolfeld: dunkles Quadrat mit goldenem Rahmen und leichtem Innenglanz */
.pick-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(230, 204, 128, 0.55);
  background:
    radial-gradient(circle at 50% 35%, rgba(230, 204, 128, 0.22), transparent 65%),
    linear-gradient(160deg, #1b2436, #0a0f19);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #f1dc9c;
}
.pick-icon svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(230, 204, 128, 0.35)); }
.pick:has(.pick-radio:checked) .pick-icon { border-color: #f1dc9c; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(230, 204, 128, 0.45); }

.pick-body { display: grid; gap: 3px; min-width: 0; }
.pick-name { color: #e6cc80; font-weight: 600; line-height: 1.3; hyphens: auto; overflow-wrap: anywhere; }
.pick-meta { font-size: 0.86rem; color: var(--muted); }
.pick-link { position: absolute; top: 12px; right: 14px; font-size: 0.82rem; }
.shop .btn { justify-self: start; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .pick { transition: none; } .pick:hover { transform: none; } }
/* Symbolfarbe nach Rüstungsart – so unterscheiden sich gleiche Slots auf einen Blick */
.pick-group li[data-f="stoff"] .pick-icon { color: #d2b8ff; }
.pick-group li[data-f="leder"] .pick-icon { color: #e0ad78; }
.pick-group li[data-f="kette"] .pick-icon { color: #a9d2f2; }
.pick-group li[data-f="platte"] .pick-icon { color: #eef2f6; }
.pick-group li[data-f="stoff"] .pick-icon svg { filter: drop-shadow(0 0 6px rgba(210, 184, 255, 0.4)); }
.pick-group li[data-f="leder"] .pick-icon svg { filter: drop-shadow(0 0 6px rgba(224, 173, 120, 0.4)); }
.pick-group li[data-f="kette"] .pick-icon svg { filter: drop-shadow(0 0 6px rgba(169, 210, 242, 0.4)); }
.pick-group li[data-f="platte"] .pick-icon svg { filter: drop-shadow(0 0 6px rgba(238, 242, 246, 0.35)); }
.shop-section:has(.flt-radio:not(#flt-alle):checked) .pick-group .count { display: none; }

/* Admin: Tickets und Entschädigung */
.hint.flush-top { margin-top: 0; }
h2.spaced { margin-top: 24px; }
.badge.ok { color: #cdf5dd; border-color: rgba(126, 226, 168, 0.5); }
.ticket-snippet a { color: var(--text); text-decoration: none; }
.ticket-snippet a:hover { color: var(--frost); }
.ticket-text {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--frost-strong);
  border-radius: 0 8px 8px 0;
  background: rgba(7, 13, 23, 0.55);
  white-space: normal;
  overflow-wrap: anywhere;
}
.ticket-text.answer { border-left-color: var(--ok); }
.ticket-text.note { border-left-color: var(--gold); color: #e9dcb4; }
.money-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preview { margin: 0 0 24px; padding: 16px 18px; border: 1px solid rgba(232, 196, 106, 0.45); border-radius: 12px; background: rgba(232, 196, 106, 0.06); }
.preview h2 { margin-top: 0; }
.mail-text { font-style: italic; color: #c7d5e3; }
.comp-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
/* Qualitätsfarben wie im Spiel */
.q0 { color: #9d9d9d; } .q1 { color: #ffffff; } .q2 { color: #1eff00; } .q3 { color: #3d9bff; }
.q4 { color: #a335ee; } .q5 { color: #ff8000; } .q6, .q7 { color: #e6cc80; }
.comp-items [class^="q"] { font-weight: 700; }

/* Logo oben links (eigenes Bild, 2x-Auflösung) statt Schriftzug */
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 84px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.65)); }
.brand:focus-visible { outline: 2px solid var(--frost); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 560px) { .brand img { height: 56px; } }
