/* ==========================================================================
   Riveria Online – klassisch, elegant, ein wenig nach Pergament und Eisen.
   Keine externen Abhängigkeiten: Schriften aus dem System, Texturen als SVG.
   ========================================================================== */

:root {
  --ink: #17120d;
  --ink-soft: #221a12;
  --leather: #1d1610;
  --leather-2: #241b13;
  --parchment: #efe4cb;
  --parchment-deep: #e0d0ae;
  --parchment-shade: #d3bf96;
  --ink-on-parchment: #2a2016;
  --muted-on-parchment: #6d5b43;
  --gold: #c8a24a;
  --gold-bright: #e6c97c;
  --gold-dim: #8a6d2f;
  --wax: #7c1d1d;
  --wax-dark: #5a1212;
  --wax-bright: #a32a2a;
  --text: #e8ddc6;
  --text-muted: #a99b81;
  --line: rgba(200, 162, 74, 0.28);
  --line-strong: rgba(200, 162, 74, 0.5);
  --green: #7fa36a;
  --red: #c25b4e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "EB Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 3px;
  --shell: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(8, 6, 5, 0.50) 0%, rgba(8, 6, 5, 0.38) 45%, rgba(8, 6, 5, 0.62) 100%),
    radial-gradient(1200px 700px at 50% -12%, rgba(200, 162, 74, 0.13), transparent 62%),
    radial-gradient(900px 620px at 108% 18%, rgba(124, 29, 29, 0.1), transparent 58%),
    radial-gradient(900px 800px at -10% 80%, rgba(90, 62, 26, 0.12), transparent 60%),
    url("../img/wallpaper.webp");
  background-size: auto, cover, auto, auto, auto, cover;
  background-position: center, center top, center, center, center, center 38%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #f4dfa6; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.035em;
  margin: 0 0 0.7rem;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.shell { width: min(var(--shell), 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--parchment); color: var(--ink-on-parchment);
  padding: 0.6rem 1rem; border-radius: var(--radius);
  font-family: var(--font-display); letter-spacing: 0.06em;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Kopf */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 14, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 5rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--text); }
.brand-crest { width: 3.4rem; height: 3.4rem; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-bright);
}
.brand-sub {
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--text-muted);
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  position: relative; text-decoration: none; color: var(--text-muted);
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.45rem 0;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-bright); }
.site-nav a.active::after,
.site-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.1rem;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-nav .nav-login { color: var(--gold); }
.site-nav .nav-register,
.site-nav .nav-account {
  border: 1px solid var(--line-strong); padding: 0.55rem 1rem; color: var(--gold-bright);
  background: rgba(200, 162, 74, 0.06);
}
.site-nav .nav-register:hover,
.site-nav .nav-account:hover { background: rgba(200, 162, 74, 0.14); }
.nav-icon {
  width: 1.05rem; height: 1.05rem; margin-right: 0.35rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.16em;
}
.site-nav a.nav-login, .site-nav a.nav-register, .site-nav a.nav-account {
  display: inline-flex; align-items: center;
}
.site-nav a.nav-register, .site-nav a.nav-account { justify-content: center; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block; width: 1.5rem; height: 2px; margin: 4px 0;
  background: var(--gold);
}

/* ---------------------------------------------------------------- Meldungen */
.flash-stack { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  background: rgba(28, 21, 15, 0.92);
  padding: 0.9rem 1.1rem;
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.notice-ok { border-left-color: var(--green); }
.notice-warn { border-left-color: var(--gold); }
.notice-error { border-left-color: var(--red); }
.notice-split { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.notice-split p { margin: 0.2rem 0 0; color: var(--text-muted); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 900px);
  display: grid; place-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(230, 201, 124, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(10, 8, 6, 0.55) 100%);
}
.hero-brand {
  margin: 0 auto 1.2rem;
  max-width: min(540px, 84vw);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 38px rgba(200, 162, 74, 0.16));
}
.hero-brand img { display: block; width: 100%; height: auto; }
.hero-inner { position: relative; text-align: center; z-index: 1; }
.kicker {
  font-family: var(--font-display); font-size: 0.76rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.2rem);
  letter-spacing: 0.08em;
  margin: 0;
  background: linear-gradient(180deg, #f6e6b6 0%, #d9b768 45%, #9c7a33 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.3rem auto 1.4rem; max-width: 26rem; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.ornament i { color: var(--gold); font-style: normal; font-size: 0.9rem; }
.hero-lead {
  max-width: 46rem; margin: 0 auto 2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #d8ccb3;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.6rem; }

.status-band {
  display: inline-flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; justify-content: center;
  border: 1px solid var(--line); background: rgba(20, 15, 11, 0.72);
  padding: 0.9rem 1.3rem; box-shadow: var(--shadow);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.status-pill .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--text-muted); }
.status-pill.is-online .dot { background: var(--green); box-shadow: 0 0 0 0 rgba(127, 163, 106, 0.6); animation: pulse 2.4s infinite; }
.status-pill.is-online { color: #b9d3a8; }
.status-pill.is-offline { color: var(--text-muted); }
.status-facts { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 0; }
.status-facts div { text-align: left; }
.status-facts dt { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.status-facts dd { margin: 0; font-family: var(--font-display); font-size: 0.9rem; color: var(--gold-bright); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 163, 106, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(127, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 163, 106, 0); }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #e8cd85, #c8a24a 55%, #a17a2f);
  color: #241a0e; border-color: #8a6d2f;
  box-shadow: 0 8px 24px rgba(200, 162, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { color: #1c140a; box-shadow: 0 10px 30px rgba(200, 162, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-wax {
  background: linear-gradient(180deg, #a32a2a, #7c1d1d 55%, #5a1212);
  color: #f4e6cb; border-color: #3f0c0c;
  box-shadow: 0 10px 28px rgba(90, 18, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-wax:hover { color: #fff2d8; background: linear-gradient(180deg, #b53131, #8a2222 55%, #641616); }
.btn-ghost {
  background: transparent; border-color: var(--line-strong); color: var(--gold-bright);
}
.btn-ghost:hover { background: rgba(200, 162, 74, 0.1); color: #f6e6b6; }
.btn-danger {
  background: linear-gradient(180deg, #a33131, #6d1616);
  border-color: #3f0c0c; color: #f4e6cb;
}
.btn-danger:hover { background: linear-gradient(180deg, #b93c3c, #7c1d1d); }
.btn-danger-ghost { border-color: rgba(194, 91, 78, 0.55); color: #e2a49b; background: transparent; }
.btn-danger-ghost:hover { background: rgba(124, 29, 29, 0.18); }
.btn-large { padding: 1rem 2.2rem; font-size: 0.86rem; }
.btn-small { padding: 0.55rem 1rem; font-size: 0.68rem; letter-spacing: 0.1em; }
.btn-seal { width: 100%; margin-top: 0.4rem; padding: 1rem 1.5rem; }
.seal-dot {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%;
  font-size: 0.8rem; line-height: 1;
}

/* ---------------------------------------------------------------- Abschnitte */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: 0.4rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-actions { margin-top: 2rem; }
.section-features { border-bottom: 1px solid var(--line); }
.section-steps { background: rgba(12, 9, 7, 0.45); border-bottom: 1px solid var(--line); }
.section-news { border-bottom: 1px solid var(--line); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card {
  position: relative; padding: 2rem 1.7rem 1.8rem;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(34, 26, 18, 0.9), rgba(24, 18, 13, 0.9));
  box-shadow: var(--shadow);
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.feature-icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--gold-bright); font-size: 1.35rem; margin-bottom: 1.1rem;
  background: rgba(200, 162, 74, 0.06);
}
.feature-card h3 { color: var(--gold-bright); }
.feature-card p { margin: 0; color: var(--text-muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { display: flex; gap: 1.1rem; padding: 1.6rem 1.4rem; border: 1px solid var(--line); background: rgba(24, 18, 13, 0.6); }
.step-number {
  flex: 0 0 auto; font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--gold); padding-right: 1.1rem; border-right: 1px solid var(--line);
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.news-card { padding: 1.6rem 1.5rem; border: 1px solid var(--line); background: rgba(24, 18, 13, 0.55); }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.8rem; }
.tag {
  display: inline-block; border: 1px solid var(--line-strong); padding: 0.15rem 0.55rem;
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright);
}
.news-meta time { font-size: 0.78rem; color: var(--text-muted); }
.news-card h3 { color: var(--text); }
.news-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.link-more { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }

.rules-teaser { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.rule-list li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--text-muted); }
.rule-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--line-strong); color: var(--gold); font-family: var(--font-display); font-size: 0.75rem;
}

.closing {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(closest-side at 50% 30%, rgba(124, 29, 29, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing-inner { max-width: 44rem; }
.closing-crest { width: 4.8rem; height: 4.8rem; object-fit: contain; margin: 0 auto 1.4rem; opacity: 0.95; }
.closing h2 { margin-bottom: 0.6rem; }
.closing p { color: var(--text-muted); }

/* ---------------------------------------------------------------- Seitenkopf */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 0.6rem; }
.page-head .lead { max-width: 48rem; color: var(--text-muted); font-size: 1.12rem; }

/* ---------------------------------------------------------------- Formulare / Karten */
.auth-shell { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.auth-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.4rem; align-items: start; }
.auth-grid-narrow { grid-template-columns: minmax(0, 34rem); justify-content: center; }
.parchment {
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(180deg, #f1e7d0 0%, #e7d8b9 55%, #ddc9a3 100%);
  color: var(--ink-on-parchment);
  border: 1px solid #b89f72;
  box-shadow:
    0 0 0 1px rgba(60, 40, 18, 0.25),
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 60px rgba(120, 84, 38, 0.16);
}
.parchment::after {
  content: ""; position: absolute; inset: 0.55rem; pointer-events: none;
  border: 1px solid rgba(80, 54, 24, 0.22);
}
.auth-card { padding: clamp(1.6rem, 4vw, 2.8rem); }
.auth-head { margin-bottom: 1.6rem; }
.auth-head .kicker { color: var(--wax); }
.auth-head h1 { color: #2a1d10; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.auth-symbol {
  width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  margin-bottom: 1rem; border-radius: 50%; color: #6b4a17;
  border: 1px solid rgba(107, 74, 23, 0.45); background: rgba(200, 162, 74, 0.12);
}
.auth-symbol svg {
  width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.btn-icon {
  width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.auth-lead { color: var(--muted-on-parchment); margin: 0; }
.auth-lead strong { color: var(--ink-on-parchment); }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #4a3823;
}
.label-hint { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0; text-transform: none; color: var(--muted-on-parchment); margin-left: 0.4rem; }
.field input {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1px solid rgba(70, 48, 22, 0.4);
  background: rgba(255, 252, 244, 0.62);
  color: var(--ink-on-parchment);
  font-family: var(--font-body); font-size: 1.02rem;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus {
  outline: none; border-color: #9a7429;
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.25);
  background: rgba(255, 253, 248, 0.85);
}
.field.has-error input { border-color: #a33131; box-shadow: 0 0 0 3px rgba(163, 49, 49, 0.12); }
.field-error { margin: 0; color: #8d1f1f; font-size: 0.86rem; }
.field-hint { margin: 0; color: var(--muted-on-parchment); font-size: 0.84rem; }
.input-with-action { position: relative; display: flex; }
.input-with-action input { padding-right: 4.6rem; }
.input-action {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(70, 48, 22, 0.3);
  color: #5a4226; font-family: var(--font-display); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.5rem;
  cursor: pointer;
}
.strength { height: 4px; background: rgba(70, 48, 22, 0.15); overflow: hidden; }
.strength-bar { display: block; height: 100%; width: 0; background: #a33131; transition: width 0.25s ease, background 0.25s ease; }
.strength-bar.is-fair { background: #b07d2b; }
.strength-bar.is-good { background: #6f8a4a; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--muted-on-parchment); font-size: 0.94rem; }
.check input { margin-top: 0.35rem; accent-color: #7c1d1d; }
.check a { color: #6b4a17; }
.check-inline { align-items: center; }
.check-inline input { margin-top: 0; }
.check.has-error { color: #8d1f1f; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link-quiet { color: #6b4a17; font-size: 0.9rem; }
.auth-switch { margin: 1.4rem 0 0; text-align: center; color: var(--muted-on-parchment); font-size: 0.94rem; }
.auth-switch a { color: #6b4a17; font-weight: 600; }
.auth-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.auth-aside {
  position: relative; padding: 2.2rem 1.9rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 26, 18, 0.85), rgba(20, 15, 11, 0.9));
  box-shadow: var(--shadow);
}
.aside-crest { width: 3.6rem; height: 3.6rem; object-fit: contain; margin-bottom: 1rem; opacity: 0.95; }
.auth-aside h2 { font-size: 1.2rem; color: var(--gold-bright); }
.aside-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.aside-list li { padding-left: 1rem; position: relative; color: var(--text-muted); font-size: 0.98rem; }
.aside-list li::before { content: "◆"; position: absolute; left: 0; top: 0.15rem; color: var(--gold-dim); font-size: 0.6rem; }
.aside-list strong { color: var(--text); }
.aside-note { color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.2rem; }

.danger-card { border-color: rgba(124, 29, 29, 0.5); }
.red { color: #a33131 !important; }
.legal h2 { margin-top: 1.8rem; }
.legal ul { color: #4a3823; }
.legal p, .legal li { color: #3a2c1c; }
.legal a { color: #6b4a17; }
.legal code { background: rgba(70, 48, 22, 0.08); padding: 0.1rem 0.3rem; }

/* ---------------------------------------------------------------- Konto */
.account-shell { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.account-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.8rem; }
.account-crest { width: 4.4rem; height: 4.4rem; object-fit: contain; flex: 0 0 auto; }
.account-head h1 { margin-bottom: 0.3rem; }
.account-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; margin: 1.6rem 0; }
.account-card { padding: 1.8rem 1.7rem; }
.account-card h2 { color: #2a1d10; font-size: 1.3rem; }
.data-list { margin: 0; display: grid; gap: 0.85rem; }
.data-list div { display: grid; grid-template-columns: 10rem 1fr; gap: 0.8rem; border-bottom: 1px solid rgba(70, 48, 22, 0.18); padding-bottom: 0.7rem; }
.data-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.data-list dt { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-parchment); padding-top: 0.15rem; }
.data-list dd { margin: 0; color: var(--ink-on-parchment); }
.badge { display: inline-block; margin-left: 0.45rem; padding: 0.1rem 0.45rem; border: 1px solid; font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: middle; }
.badge-ok { color: #3f5a2c; border-color: rgba(63, 90, 44, 0.5); background: rgba(111, 138, 74, 0.12); }
.badge-warn { color: #7a4a12; border-color: rgba(122, 74, 18, 0.45); background: rgba(176, 125, 43, 0.12); }
.muted { color: var(--muted-on-parchment); }
.lead-small { color: #3a2c1c; }
.mini-steps { color: #3a2c1c; padding-left: 1.2rem; }
.mini-steps li { margin-bottom: 0.35rem; }
.account-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin: 1.6rem 0 1rem; }
.account-actions form { margin: 0; }
.fineprint { color: var(--text-muted); font-size: 0.82rem; }

/* ---------------------------------------------------------------- Textseiten */
.text-layout { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 2.2rem; align-items: start; }
.prose { padding: clamp(1.6rem, 4vw, 2.8rem); }
.prose h2 { color: #2a1d10; margin-top: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3a2c1c; }
.prose-list { padding-left: 1.2rem; }
.prose-list li { margin-bottom: 0.5rem; }
.prose-section + .prose-section { margin-top: 1.8rem; }
.side-note { border: 1px solid var(--line); padding: 1.6rem; background: rgba(24, 18, 13, 0.6); }
.side-note h2 { font-size: 1.15rem; color: var(--gold-bright); }
.side-note .btn { margin-top: 0.6rem; width: 100%; }

.join-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.2rem; align-items: start; }
.join-card { padding: clamp(1.6rem, 4vw, 2.8rem); }
.join-card h2 { color: #2a1d10; }
.join-steps { list-style: none; padding: 0; counter-reset: none; }
.join-steps li { display: flex; gap: 0.9rem; margin-bottom: 0.9rem; color: #3a2c1c; }
.join-steps span {
  flex: 0 0 auto; display: grid; place-items: center; width: 1.8rem; height: 1.8rem;
  border: 1px solid rgba(70, 48, 22, 0.4); font-family: var(--font-display); font-size: 0.75rem; color: #6b4a17;
}
.server-box { margin: 1.6rem 0; padding: 1.1rem 1.2rem; border: 1px dashed rgba(70, 48, 22, 0.45); background: rgba(255, 252, 244, 0.4); }
.server-box .kicker { color: #6b4a17; margin-bottom: 0.3rem; }
.server-address { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.06em; color: #2a1d10; margin-bottom: 0.7rem; }
.faq details { border-bottom: 1px solid rgba(70, 48, 22, 0.2); padding: 0.8rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 0.9rem; color: #2a1d10; }
.faq p { margin: 0.6rem 0 0; color: #3a2c1c; }

.news-list { display: grid; gap: 1.2rem; max-width: 52rem; }
.news-entry { padding: 1.8rem 1.7rem; }
.news-entry h2 { color: #2a1d10; }
.news-entry p { margin: 0; color: #3a2c1c; }
.news-entry .tag { color: #6b4a17; border-color: rgba(70, 48, 22, 0.4); }
.news-entry time { color: var(--muted-on-parchment); }

/* ---------------------------------------------------------------- Fuß */
.site-footer { border-top: 1px solid var(--line); background: rgba(12, 9, 7, 0.85); padding: 3rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 0.7fr); gap: 2rem; }
.footer-crest { width: 3rem; height: 3rem; object-fit: contain; margin-bottom: 0.7rem; opacity: 0.95; }
.footer-name { font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.3rem; }
.footer-note { color: var(--text-muted); font-size: 0.85rem; max-width: 20rem; }
.footer-title { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1rem; color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
.copy-address { background: none; border: 0; color: var(--gold-bright); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 0.2em; }
.copy-address:hover { color: #f4dfa6; }
.copy-address.is-copied { color: var(--green); }

/* ---------------------------------------------------------------- Startseite: Erzählung */
.hero-lead { margin-bottom: 0.8rem; }
.hero-note {
  margin: 0 auto 2rem; font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim);
}
.status-address {
  border: 1px solid var(--line-strong); background: rgba(200, 162, 74, 0.08);
  color: var(--gold-bright); font-family: var(--font-display); font-size: 0.74rem;
  letter-spacing: 0.1em; padding: 0.5rem 0.8rem; cursor: pointer;
  text-decoration: none; transition: background 0.2s ease, color 0.2s ease;
}
.status-address:hover { background: rgba(200, 162, 74, 0.18); color: #f4dfa6; }
.status-address.is-copied { color: var(--green); }
.status-hint { margin: 0.7rem 0 0; font-size: 0.75rem; color: var(--text-muted); }

.section-lead { max-width: 48rem; color: var(--text-muted); margin: 0; }
.feature-icon-svg { width: 1.55rem; height: 1.55rem; }

.chapter { position: relative; border-bottom: 1px solid var(--line); }
.chapter-alt { background: rgba(12, 9, 7, 0.45); }
.chapter-head { position: relative; max-width: 54rem; margin-bottom: 2.6rem; padding-left: 4.4rem; }
.chapter-head h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); }
.chapter-number {
  position: absolute; left: 0; top: -0.5rem; font-family: var(--font-display);
  font-size: 3.2rem; line-height: 1; letter-spacing: 0.06em;
  color: rgba(200, 162, 74, 0.24);
}
.chapter-lead { max-width: 50rem; color: var(--text-muted); font-size: 1.1rem; }
.chapter-quote {
  position: relative; margin: 2.4rem 0 0; padding: 1.3rem 2rem 1.3rem 3.4rem;
  border-left: 1px solid var(--line-strong);
}
.chapter-quote::before {
  content: "„"; position: absolute; left: 1rem; top: 0.1rem;
  font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold-dim);
}
.chapter-quote p { margin: 0; font-size: 1.12rem; font-style: italic; color: #d8ccb3; }
.chapter-note { margin-top: 1.6rem; color: var(--text-muted); font-size: 0.9rem; }

.lore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.lore-card {
  position: relative; padding: 1.9rem 1.7rem 1.7rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 26, 18, 0.9), rgba(24, 18, 13, 0.9));
  box-shadow: var(--shadow);
}
.lore-card::before {
  content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lore-number {
  display: inline-block; margin-bottom: 0.5rem; font-family: var(--font-display);
  font-size: 0.86rem; letter-spacing: 0.24em; color: var(--gold);
}
.lore-card h3 { color: var(--gold-bright); }
.lore-card p { margin: 0; color: var(--text-muted); }
.lore-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.4rem; }
.lore-list li { position: relative; padding-left: 1.1rem; font-size: 0.92rem; color: var(--text-muted); }
.lore-list li::before { content: "◆"; position: absolute; left: 0; top: 0.15rem; color: var(--gold-dim); font-size: 0.58rem; }

.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 2.4rem 0 0; border: 1px solid var(--line); background: var(--line);
}
.stat-band div { padding: 1.35rem 1rem; background: rgba(20, 15, 11, 0.92); text-align: center; }
.stat-band dd {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold-bright); line-height: 1.1;
}
.stat-band dt {
  margin-top: 0.35rem; font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
}

.map-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
.map-copy h2 { margin-bottom: 0.6rem; }
.map-points { list-style: none; padding: 0; margin: 1.7rem 0 2rem; display: grid; gap: 1.15rem; }
.map-points li { display: flex; gap: 1rem; align-items: flex-start; }
.map-point-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 2rem; height: 2rem;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold);
  font-family: var(--font-display); font-size: 0.8rem;
}
.map-points h3 { margin-bottom: 0.2rem; font-size: 1.05rem; color: var(--gold-bright); }
.map-points p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.map-figure { margin: 0; }
.map-sheet {
  position: relative; border: 1px solid #b89f72;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 45px rgba(120, 84, 38, 0.14);
  transform: rotate(-0.6deg);
}
.map-sheet::after {
  content: ""; position: absolute; inset: 0.5rem; pointer-events: none;
  border: 1px solid rgba(80, 54, 24, 0.18);
}
.map-sheet svg { display: block; width: 100%; height: auto; }
.map-figure figcaption { margin-top: 0.85rem; font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.map-legend { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.2rem; justify-content: center; }
.map-legend li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--text-muted); }
.legend-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #6b4a17; }
.legend-dot.is-city { width: 0.7rem; height: 0.7rem; background: #7c1d1d; box-shadow: 0 0 0 2px rgba(124, 29, 29, 0.25); }
.legend-dot.is-marker { background: transparent; border: 2px solid #7c1d1d; }

.character-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; }
.path-grid { display: grid; gap: 1.1rem; }
.path-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: start;
  padding: 1.5rem 1.4rem; border: 1px solid var(--line); background: rgba(24, 18, 13, 0.6);
}
.path-card .feature-icon { grid-row: span 2; margin-bottom: 0; width: 2.6rem; height: 2.6rem; }
.path-card h3 { margin-bottom: 0.3rem; color: var(--gold-bright); }
.path-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.ledger {
  position: relative; padding: 1.9rem 1.7rem 2rem; color: var(--ink-on-parchment);
  border: 1px solid #b89f72;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(180deg, #f1e7d0 0%, #e7d8b9 55%, #ddc9a3 100%);
  box-shadow: 0 0 0 1px rgba(60, 40, 18, 0.22), 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 0 45px rgba(120, 84, 38, 0.14);
}
.ledger::after { content: ""; position: absolute; inset: 0.5rem; pointer-events: none; border: 1px solid rgba(80, 54, 24, 0.2); }
.ledger-kicker { margin: 0 0 0.2rem; font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-on-parchment); }
.ledger h3 { color: #2a1d10; font-size: 1.35rem; margin-bottom: 0.6rem; }
.ledger-rows { margin: 0; padding: 0 0 2.2rem; display: grid; gap: 0.7rem; }
.ledger-rows div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.8rem; border-bottom: 1px solid rgba(70, 48, 22, 0.18); padding-bottom: 0.55rem; }
.ledger-rows dt { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-parchment); padding-top: 0.12rem; }
.ledger-rows dd { margin: 0; color: var(--ink-on-parchment); }
.ledger-seal {
  position: absolute; right: 1.1rem; bottom: 1.1rem; display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%; transform: rotate(-8deg);
  background: radial-gradient(circle at 35% 30%, #a32a2a, #5a1212); color: #f4e6cb;
  font-family: var(--font-display); font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(60, 20, 10, 0.35), inset 0 0 0 2px rgba(255, 230, 190, 0.18);
}

.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.life-card { padding: 1.6rem 1.5rem; border: 1px solid var(--line); background: rgba(24, 18, 13, 0.6); }
.life-card h3 { color: var(--gold-bright); }
.life-card p { margin: 0; color: var(--text-muted); }
.goods-row { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.goods-label { margin: 0; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.goods-row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.goods-row li { border: 1px solid var(--line); padding: 0.25rem 0.7rem; font-size: 0.82rem; color: var(--gold-bright); background: rgba(200, 162, 74, 0.05); }

.law-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.law-step { position: relative; padding: 1.7rem 1.5rem; border: 1px solid var(--line); background: rgba(24, 18, 13, 0.6); }
.law-number { display: block; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); }
.law-step h3 { color: var(--gold-bright); }
.law-step p { margin: 0; color: var(--text-muted); }
.law-note { margin-top: 1.6rem; padding: 1rem 1.2rem; border-left: 3px solid var(--wax); background: rgba(124, 29, 29, 0.12); color: #e2c9b8; }

.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.section-faq { border-bottom: 1px solid var(--line); }
.faq-dark details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq-dark summary { color: var(--text); }
.faq-dark p { color: var(--text-muted); }

.server-callout { margin: 2rem auto 2.2rem; max-width: 30rem; }
.server-copy {
  display: block; width: 100%; padding: 0.9rem 1.2rem;
  border: 1px dashed var(--line-strong); background: rgba(200, 162, 74, 0.06);
  color: var(--gold-bright); font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.3rem); letter-spacing: 0.06em; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.server-copy:hover { background: rgba(200, 162, 74, 0.12); color: #f4dfa6; }
.server-copy.is-copied { color: var(--green); }
.copy-hint { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- Bewegung */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------------- Responsiv */
@media (max-width: 980px) {
  .feature-grid, .steps, .news-grid { grid-template-columns: 1fr 1fr; }
  .rules-teaser, .auth-grid, .account-grid, .text-layout, .join-layout,
  .lore-grid, .map-layout, .character-layout, .life-grid, .law-steps, .faq-layout { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .map-layout { gap: 2.2rem; }
  .auth-aside { order: -1; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 14, 10, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid rgba(200, 162, 74, 0.12); }
  .site-nav a.active::after, .site-nav a:hover::after { display: none; }
  .site-nav .nav-register, .site-nav .nav-account { margin-top: 0.6rem; text-align: center; border-bottom: 0; }
  .header-inner { position: relative; min-height: 4.4rem; }
  .brand-name { font-size: 1.2rem; }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero-brand { max-width: 86vw; }
  .hero-actions .btn { width: 100%; }
  .status-band { width: 100%; }
  .status-facts { width: 100%; justify-content: space-between; }
  .feature-grid, .steps, .news-grid, .footer-grid, .stat-band, .life-grid, .law-steps { grid-template-columns: 1fr; }
  .chapter-head { padding-left: 0; }
  .chapter-number { position: static; display: block; margin-bottom: 0.3rem; font-size: 2.2rem; }
  .path-card { grid-template-columns: 1fr; }
  .path-card .feature-icon { grid-row: auto; margin-bottom: 0.8rem; }
  .ledger-rows div { grid-template-columns: 1fr; gap: 0.1rem; }
  .status-address { width: 100%; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .data-list div { grid-template-columns: 1fr; gap: 0.1rem; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .notice-split { align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .flash-stack, .account-actions, .auth-aside, .hero-glow { display: none !important; }
  .parchment { box-shadow: none; border: 1px solid #999; background: #fff; }
  a { color: #111; }
}
