/* Webseite von MondNiffler.eu. Das Staff-Panel hat seine eigene Datei css/panel.css.
   Richtung: modern und ruhig, Magie über Nachthimmel, Gold und Kalligrafie statt Pergament und Ornamente.
   Schriften: Alegreya für Überschriften (kalligrafische Herkunft), Alegreya Sans für Text,
   Cinzel nur für den Schriftzug, VT323 für alles aus dem Spiel (Server-IP, Befehle, Ränge).
   Aufbau: schmale Kopfzeile, Inhalte in einer 1180px-Spalte, Karten nur wo etwas für sich steht. */

/* ===== Schriften (lokal, keine Anfragen an Google) ===== */
@font-face { font-family: 'Alegreya'; src: url('../assets/fonts/alegreya-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('../assets/fonts/alegreya-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('../assets/fonts/alegreya-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('../assets/fonts/alegreya-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alegreya Sans'; src: url('../assets/fonts/alegreya-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('../assets/fonts/cinzel-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'VT323'; src: url('../assets/fonts/vt323-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ===== Farben: hell = Papier bei Tag, dunkel = Himmel über dem Schloss ===== */
:root {
  --bg: #f5f2eb;
  --bg-2: #ece7dc;
  --surface: #fffdf8;
  --line: #e2dccf;
  --line-strong: #c9c1b0;
  --text: #1f1c17;
  --muted: #6b655a;
  --accent: #8f6311;
  --gold: #d9a93a;
  --gold-text: #1f1608;
  --glow: rgba(217, 169, 58, .35);
  --shadow: 0 1px 2px rgba(40, 30, 10, .05), 0 12px 32px rgba(40, 30, 10, .08);
  --night: #0e1019;
  --night-2: #171a28;
  --night-text: #ece8de;
  --night-muted: #a8a294;

  --font-display: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mark: 'Cinzel', Georgia, serif;
  --font-pixel: 'VT323', ui-monospace, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --bg-2: #121522; --surface: #161927; --line: #262a3b; --line-strong: #3a3f55;
    --text: #ece8de; --muted: #a29d92; --accent: #e2b65a; --gold: #e0b453; --gold-text: #1f1608;
    --glow: rgba(169, 156, 255, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --bg-2: #121522; --surface: #161927; --line: #262a3b; --line-strong: #3a3f55;
  --text: #ece8de; --muted: #a29d92; --accent: #e2b65a; --gold: #e0b453; --gold-text: #1f1608;
  --glow: rgba(169, 156, 255, .3); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ===== Grundgerüst ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 var(--font-body);
}
main { flex: 1; position: relative; z-index: 1; padding-bottom: 72px; }
main:has(> .games-strip:last-child) { padding-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: .35em; }

.magic-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.container { width: 100%; max-width: 1228px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
section { padding-block: 56px; position: relative; }
section[id] { scroll-margin-top: 90px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-title { font-size: clamp(28px, 4vw, 38px); margin: 0; }
.section-lead { color: var(--muted); max-width: 60ch; }
.view-all { font-weight: 500; text-decoration: none; color: var(--muted); }
.view-all:hover { color: var(--accent); }

/* ===== Kopfzeile ===== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); justify-self: start; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand span { font: 700 18px var(--font-mark); letter-spacing: .04em; }
.brand:hover { color: var(--text); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-tab {
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-tab:hover { color: var(--text); background: var(--bg-2); }
.nav-tab.active { color: var(--text); }
.nav-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.header-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.socials { display: flex; gap: 2px; }
.social { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
a.social:hover { color: var(--text); background: var(--bg-2); }
.social.disabled { opacity: .45; cursor: not-allowed; }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle:hover { border-color: var(--gold); box-shadow: 0 0 14px var(--glow); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text);
  font: 500 17px var(--font-body); text-decoration: none; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ===== Startseite: Bildergalerie als großer Einstieg ===== */
.gallery {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 16 / 7;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transform: scale(1.04); transition: transform 10s linear; }
.slide.active img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 11, 20, .85) 0%, rgba(10, 11, 20, .45) 45%, transparent 75%), linear-gradient(transparent 60%, rgba(10, 11, 20, .5)); }
.scroll-caption { position: absolute; z-index: 2; left: clamp(20px, 5vw, 56px); bottom: clamp(24px, 6vw, 56px); max-width: 440px; color: var(--night-text); }
.scroll-caption h2 { font-size: clamp(30px, 5vw, 56px); margin: 0 0 8px; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.scroll-caption p { color: #ddd6c6; font-size: 19px; margin-bottom: 20px; }
.scroll-caption .btn { background: var(--gold); color: var(--gold-text); border-color: var(--gold); }
.scroll-caption .btn:hover { box-shadow: 0 0 0 4px rgba(224, 180, 83, .3), 0 0 28px rgba(224, 180, 83, .5); }

.gallery-arrow {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 11, 20, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.gallery-arrow:hover { background: rgba(10, 11, 20, .6); border-color: rgba(255, 255, 255, .5); }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.dots { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: flex; gap: 6px; }
.dot { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35); cursor: pointer; }
.dot.active { width: 36px; background: var(--gold); }

/* ===== Neuigkeiten ===== */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-card {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.news-banner {
  position: relative; aspect-ratio: 800 / 300; max-width: 100%;
  display: grid; place-items: center;
  background-size: cover; background-position: center bottom; image-rendering: pixelated;
}
.news-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10, 11, 20, .35)); }
.news-banner-title { position: relative; z-index: 1; font: 700 clamp(24px, 3.4vw, 36px) var(--font-display); color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .6); text-align: center; padding: 0 16px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 20px 20px; }
.news-title { flex-basis: 100%; order: 2; margin: 0; font-size: 22px; }
.news-tag { order: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.news-meta time { order: 1; font-size: 15px; color: var(--muted); }
.news-list { display: grid; gap: 32px; }
.news-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 90px; }
.news-article > p { padding: 0 20px 24px; margin: 0; max-width: 68ch; }

/* ===== Begrüßung mit Tutorial-Video ===== */
.welcome { background: var(--bg-2); border-block: 1px solid var(--line); }
.welcome-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.welcome-text h2 { font-size: clamp(30px, 4vw, 44px); }
.welcome-text > p { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.video-caption { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.play-now {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 26px 0 10px;
  border-radius: 999px; background: var(--gold); color: var(--gold-text);
  font: 700 20px var(--font-body); text-decoration: none;
  box-shadow: 0 8px 28px rgba(217, 169, 58, .35);
  transition: transform .2s, box-shadow .2s;
}
.play-now svg { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--gold-text); color: var(--gold); fill: var(--gold); }
.play-now:hover { color: var(--gold-text); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(217, 169, 58, .5); }
.welcome-ip { margin: 20px 0 16px !important; color: var(--muted); }
.welcome-socials { display: flex; gap: 4px; }

.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 30% 20%, #2a2550, var(--night) 70%); box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.play { width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold); color: var(--gold-text); cursor: pointer; box-shadow: 0 0 0 10px rgba(224, 180, 83, .18); transition: transform .2s; }
.play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.play:hover:not([disabled]) { transform: scale(1.06); }
.play[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.video-hint { color: #cfc8b8; font-size: 15px; margin: 0; max-width: 40ch; }

/* ===== Spiele-Leiste ===== */
.games-strip { background: var(--night); color: var(--night-text); padding-block: 72px; overflow: hidden; }
.games-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 0%, rgba(110, 90, 220, .25), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(224, 180, 83, .12), transparent 50%); pointer-events: none; }
.games-strip .container { position: relative; }
.games-strip h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; }
.games-strip .container > p { color: var(--night-muted); max-width: 56ch; margin-bottom: 32px; }
.games-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-logo { display: grid; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08); color: var(--night-text); text-decoration: none; transition: transform .25s, border-color .25s, box-shadow .25s; }
.game-logo img { aspect-ratio: 16 / 8; width: 100%; object-fit: cover; image-rendering: pixelated; }
.game-logo-text { display: grid; gap: 2px; padding: 14px 18px 18px; }
.game-logo-text b { font: 700 22px var(--font-display); color: #fff; }
.game-logo-text small { color: var(--night-muted); font-size: 16px; }
.game-logo:hover { color: var(--night-text); transform: translateY(-3px); border-color: rgba(224, 180, 83, .5); box-shadow: 0 0 32px rgba(224, 180, 83, .18); }

/* ===== Unterseiten ===== */
.page-hero { padding-top: 56px; padding-bottom: 8px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 8px; }
.page-hero h1::after { content: ''; display: block; width: 48px; height: 3px; margin-top: 16px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.page-hero p { color: var(--muted); font-size: 20px; max-width: 60ch; margin: 0; }
.page-hero + section { padding-top: 32px; }

.parchment {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.parchment h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parchment h2:not(:first-child) { margin-top: 1.2em; }
.parchment + .parchment { margin-top: 24px; }
.parchment .btn { margin-top: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card-grid .parchment + .parchment { margin-top: 0; }

.badge {
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--gold) 16%, transparent);
}

.game { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; scroll-margin-top: 110px; }
.game:nth-of-type(even) .game-img { order: 2; }
.game-img { border-radius: 14px; image-rendering: pixelated; box-shadow: var(--shadow); }
.game h2 { font-size: clamp(32px, 4vw, 44px); }
.game + .game { margin-top: 72px; }
.games-heading { margin: 72px 0 24px; font-size: clamp(28px, 3.4vw, 36px); }
.game ul { padding-left: 1.2em; display: grid; gap: 8px; }
.card-grid h3 { margin-top: 0; }
.card-grid [id] { scroll-margin-top: 110px; }
.spells { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.spells li { margin: 0; font: 20px/1 var(--font-pixel); padding: 6px 10px; border-radius: 6px; background: var(--night-2); color: #cfdcff; border: 1px solid #333a5c; }

.rank-tag { font: 22px/1 var(--font-pixel); padding: 3px 8px 4px; border-radius: 6px; background: #17171c; color: color-mix(in oklab, var(--c, #fff) 82%, white); }
.team-members { color: var(--muted); }

details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 400; transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); border-color: var(--gold); color: var(--accent); }
details.faq > div { padding: 0 20px 18px; color: var(--muted); }

code, .ip { font: 1.15em var(--font-pixel); padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.notice { padding: 14px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--gold) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }

/* ===== Fußzeile ===== */
.site-footer { position: relative; z-index: 1; background: var(--night); color: var(--night-text); border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-inner { width: 100%; max-width: 1228px; margin: 0 auto; padding-block: 48px 32px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-brand { flex: 1 1 260px; display: grid; gap: 10px; align-content: start; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: var(--night-muted); max-width: 36ch; margin: 0; }
.footer-col h3 { font: 700 13px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--night-text); text-decoration: none; }
.footer-col a:hover { color: #e0b453; }
.footer-note { width: 100%; max-width: 1228px; margin: 0 auto; padding-block: 20px 28px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: var(--night-muted); }

/* ===== Einspruch ===== */
.appeal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.appeal-side { display: grid; gap: 20px; }
.appeal-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 6px; font-weight: 500; }
.form-field small { font-weight: 400; color: var(--muted); font-size: 15px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 10px 12px;
  font: 17px var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--glow); }
fieldset.form-field { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.form-field[hidden] { display: none; }
.form-choice { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form-choice input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--gold); }
.code-input { font: 24px/1 var(--font-pixel) !important; letter-spacing: .1em; text-transform: uppercase; }
.appeal-form .btn { justify-self: start; background: var(--gold); color: var(--gold-text); border-color: var(--gold); }
.form-message { margin: 0; padding: 12px 16px; border-radius: 8px; background: color-mix(in srgb, #2f9e58 14%, transparent); border: 1px solid color-mix(in srgb, #2f9e58 40%, transparent); }
.form-message.error { background: color-mix(in srgb, #c0392b 12%, transparent); border-color: color-mix(in srgb, #c0392b 40%, transparent); }
.appeal-status { display: grid; gap: 6px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ===== Galleonen ===== */
.galleon-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.galleon-table th, .galleon-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.galleon-table td { text-align: right; font: 24px/1 var(--font-pixel); color: var(--gold); white-space: nowrap; }
.galleon-balance { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.galleon-balance .mc { font: 22px/1 var(--font-pixel); }
.appeal-status p { margin: 0; }
.appeal-entry { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--bg-2); border-left: 3px solid var(--gold); }
.appeal-entry.status-angenommen { border-left-color: #2f9e58; }
.appeal-entry.status-abgelehnt { border-left-color: #c0392b; }
.appeal-answer { color: var(--muted); }

/* ===== Handy und Tablet ===== */
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding-block: 10px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .main-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; padding-bottom: 6px; }
  .socials { display: none; }
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .welcome-inner, .game { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .game:nth-of-type(even) .game-img { order: 0; }
  .news-grid, .games-logos, .appeal-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .gallery { aspect-ratio: 4 / 5; border-radius: 12px; }
  .slide::after { background: linear-gradient(transparent 25%, rgba(10, 11, 20, .9) 85%); }
  .scroll-caption { left: 20px; right: 20px; bottom: 44px; }
  .gallery-arrow { display: none; }
  .dots { left: 20px; right: auto; bottom: 20px; }
  section { padding-block: 40px; }
  .footer-inner, .footer-note { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

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

.narrow > * { max-width: 860px; }
.center { text-align: center; }
.center .btn { margin-inline: auto; }
.spaced { margin-top: 32px; }
