/* ===================================================================
   Heartwood Roleplay — Amtliches Register
   Alpine badge design system — abgestimmt auf das Logo
   (Anthrazit / Gold / Creme)
=================================================================== */

/* Google Fonts werden jetzt per <link> in includes/header.php geladen (schneller als @import). */

:root {
  --paper: #141517;
  --paper-raised: #202226;
  --ink: #eceef0;
  --charcoal: #1b1d20;
  --charcoal-2: #101113;
  --stone: #adb1b8;
  --line: #393c41;
  --line-dark: #36393e;

  --gold: #f58220;
  --gold-bright: #ffae62;
  --gold-deep: #ffab63;
  --gold-tint: #29231f;

  --cream: #f0f1f3;
  --cream-dim: #b7bbc2;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 68ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: var(--gold-deep); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img, svg { max-width: 100%; display: block; }

/* ---------- Layout shell ---------- */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 6 28px;
}

.wrap-wide { max-width: 1280px; }

.prose { max-width: var(--measure); }

/* ---------- Header ---------- */

.site-header {
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  width: auto;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.register-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.register-nav a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: 3px;
  position: relative;
}

.register-nav a:hover {
  background: rgba(245, 130, 32, 0.14);
  color: var(--cream);
}

.register-nav a[aria-current="page"] {
  color: var(--gold-bright);
  font-weight: 600;
}

.register-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  border-bottom: 1px solid var(--line-dark);
}

.hero .wrap {
  padding-top: 60px;
  padding-bottom: 72px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { max-width: 100ch; }

.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--cream);
}

.hero-lede {
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--cream-dim);
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badge { display: flex; justify-content: center; }

.hero-badge img { width: 100%; max-width: 420px; }

.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  opacity: 0.5;
  z-index: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary { background: var(--gold); color: var(--charcoal-2); }
.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost { border-color: var(--line-dark); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Sections ---------- */

section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.lede { color: var(--stone); max-width: 60ch; }

/* ---------- Faction / dossier grid ---------- */

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.dossier-card {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.dossier-card:nth-child(3n) { border-right: none; }

.dossier-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 14px;
}

.dossier-card p { color: var(--stone); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Two column feature rows ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.split-list { list-style: none; margin: 0; padding: 0; }

.split-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
}

.split-list li:last-child { padding-bottom: 0; }

.split-list .stat {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.5rem;
}

.split-list .stat-label { color: var(--stone); font-size: 0.95rem; }

/* ---------- Feature checklist ---------- */

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}

.feature-list svg { flex-shrink: 0; margin-top: 2px; }

@media (max-width: 560px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Timeline (join steps) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); }

.steps li {
  counter-increment: step;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--stone); margin-bottom: 0; }

/* ---------- Callout / seal box ---------- */

.callout {
  background: var(--gold-tint);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 34px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.callout svg { flex-shrink: 0; width: 42px; height: 42px; margin-top: 2px; }
.callout p { margin-bottom: 0; color: var(--ink); }

/* ---------- Page title band (Regelwerk / FAQ / Impressum) ---------- */

.regelwerk-header {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  border-bottom: 1px solid var(--line-dark);
}

.regelwerk-header .hero-eyebrow { margin-bottom: 10px; }

.regelwerk-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--cream);
  margin: 0 0 16px;
}

.regelwerk-header p.prose { color: var(--cream-dim); }

.regelwerk-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--cream-dim);
  font-size: 0.92rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 18px;
  margin-top: 22px;
}

.regelwerk-meta strong { color: var(--cream); font-weight: 600; }

.toc {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 26px 30px;
  margin: 40px 0 0;
}

.toc h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--cream); }

.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; }

.toc li { break-inside: avoid; margin-bottom: 8px; }

.toc a { text-decoration: none; color: var(--cream-dim); font-size: 0.95rem; }
.toc a:hover { color: var(--gold-bright); text-decoration: underline; }

.artikel { padding: 42px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }

.artikel-kopf { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }

.artikel-nummer {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.1rem;
  white-space: nowrap;
}

.artikel h2 { font-size: 1.4rem; }

.paragraphen { counter-reset: para; margin: 0; padding: 0; list-style: none; }

.paragraphen > li {
  counter-increment: para;
  padding-left: 2.4em;
  position: relative;
  margin-bottom: 14px;
}

.paragraphen > li::before {
  content: "§" counter(para);
  position: absolute;
  left: 0;
  color: var(--stone);
  font-size: 0.88rem;
  font-family: var(--serif);
}

.paragraphen ul { margin: 8px 0 0; padding-left: 1.2em; }

.new-clause {
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
  margin-top: 20px;
}

.new-clause .clause-tag {
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Regelwerk-Dokumente (Tabs) ---------- */

.doc-tabs { margin-top: 4px; }

.doc-tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.doc-tab-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.doc-tab-nav label {
  cursor: pointer;
  padding: 14px 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--stone);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transform: translateY(1px);
}

.doc-tab-nav label:hover { color: var(--ink); background: var(--gold-tint); }

.doc-panel { display: none; }

#tab-server:checked ~ .doc-tab-nav label[for="tab-server"],
#tab-fraktion:checked ~ .doc-tab-nav label[for="tab-fraktion"],
#tab-support:checked ~ .doc-tab-nav label[for="tab-support"],
#tab-guide:checked ~ .doc-tab-nav label[for="tab-guide"] {
  color: var(--gold-deep);
  background: var(--paper-raised);
  border-color: var(--line);
  border-bottom: 1px solid var(--paper-raised);
}

#tab-server:checked ~ .doc-panels #panel-server,
#tab-fraktion:checked ~ .doc-panels #panel-fraktion,
#tab-support:checked ~ .doc-panels #panel-support,
#tab-guide:checked ~ .doc-panels #panel-guide {
  display: block;
}

/* Allow direct linking to a tab via URL fragment (e.g. regelwerk.html#tab-fraktion) */
#tab-fraktion:target ~ .doc-tab-nav label[for="tab-fraktion"] {
  color: var(--gold-deep);
  background: var(--paper-raised);
  border-color: var(--line);
  border-bottom: 1px solid var(--paper-raised);
}
#tab-fraktion:target ~ .doc-panels #panel-fraktion { display: block; }
#tab-fraktion:target ~ .doc-panels #panel-server,
#tab-fraktion:target ~ .doc-panels #panel-support,
#tab-fraktion:target ~ .doc-panels #panel-guide { display: none; }

/* Allow direct linking to a tab via URL fragment (e.g. regelwerk.html#tab-guide) */
#tab-guide:target ~ .doc-tab-nav label[for="tab-guide"] {
  color: var(--gold-deep);
  background: var(--paper-raised);
  border-color: var(--line);
  border-bottom: 1px solid var(--paper-raised);
}
#tab-guide:target ~ .doc-panels #panel-guide { display: block; }
#tab-guide:target ~ .doc-panels #panel-server,
#tab-guide:target ~ .doc-panels #panel-fraktion,
#tab-guide:target ~ .doc-panels #panel-support { display: none; }

.doc-intro { max-width: var(--measure); color: var(--stone); margin-bottom: 22px; }

.status-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-tint);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 16px;
}

.toc-paper {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 30px;
  margin: 0 0 44px;
}

.toc-paper h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
}

.toc-paper ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc-paper li { break-inside: avoid; margin-bottom: 8px; }
.toc-paper a { text-decoration: none; color: var(--stone); font-size: 0.95rem; }
.toc-paper a:hover { color: var(--gold-deep); text-decoration: underline; }

/* Nested sub-points inside Fraktionsregelwerk paragraphs (1.1, 1.2 ...) */
.subpoints { list-style: none; margin: 10px 0 0; padding: 0; }

.subpoints > li {
  padding-left: 2.6em;
  position: relative;
  margin-bottom: 12px;
}

.subpoints > li .sub-num {
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
}

.subpoints ul, .subpoints ol.inline-steps {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: var(--ink);
}

ol.inline-steps { list-style: decimal; }

.doc-closing {
  background: var(--gold-tint);
  border-radius: 4px;
  padding: 30px 34px;
  margin-top: 8px;
  color: var(--ink);
}

.doc-closing p:last-child { margin-bottom: 0; }
.doc-closing p.signoff { color: var(--gold-deep); font-style: italic; font-family: var(--serif); margin-top: 18px; }

.guide-section { margin-top: 30px; }
.guide-section:first-of-type { margin-top: 0; }
.guide-section h3 { font-size: 1.08rem; margin-bottom: 8px; }
.guide-section p { color: var(--ink); }
.guide-section ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink); }
.guide-section ul li { margin-bottom: 6px; }

.announcement-list { display: flex; flex-direction: column; gap: 18px; }

.announcement-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: baseline;
}

.announcement-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.88rem;
  white-space: nowrap;
}

.announcement-body h3 { margin-bottom: 6px; }
.announcement-body p { color: var(--stone); margin-bottom: 0; }

@media (max-width: 560px) {
  .announcement-card { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); padding: 6px 0; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--gold-deep);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer { color: var(--stone); padding: 0 0 22px; max-width: 62ch; }

.faq-answer code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--ink);
}

.faq-answer ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}

.faq-answer ol li {
  margin-bottom: 10px;
}

.faq-answer ol li:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.faq-answer ul li {
  margin-bottom: 4px;
}

.faq-image {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: 100%;
}

.faq-answer--wide {
  max-width: none;
}

.faq-image--wide {
  max-width: 70%;
}

@media (max-width: 700px) {
  .faq-image--wide { max-width: 100%; }
}

.faq-image-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--stone);
}

.faq-subhead {
  margin-top: 18px;
  color: var(--ink);
}

.faq-subhead strong {
  color: var(--ink);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-group-label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1rem;
  margin: 40px 0 4px;
}

.faq-group-label:first-child { margin-top: 0; }

/* ---------- Impressum ---------- */

.impressum-block { margin-bottom: 34px; }
.impressum-block h2 { font-size: 1.15rem; margin-bottom: 10px; }
.impressum-block p { color: var(--ink); }

.placeholder {
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--charcoal); border-top: 1px solid var(--line-dark); }

.site-footer .wrap {
  padding: 36px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--cream-dim); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-bright); }

.footer-mark { color: var(--cream-dim); font-size: 0.88rem; }

/* Footer-Credit (Verlinkung auf herrkoer.de) */
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-credit { display: block; color: #5b9bd5; font-size: 0.82rem; line-height: 1.4; text-decoration: none; }
.footer-credit:hover, .footer-credit:focus-visible { color: #8dbcec; text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-badge { order: -1; }
  .hero-badge img { max-width: 260px; }
}

@media (max-width: 780px) {
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier-card { border-right: none !important; }
  .split { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .callout { flex-direction: column; }
}


/* =====================================================================
   MODERN UI LAYER
   ---------------------------------------------------------------------
   Diese Erweiterungen modernisieren ausschließlich die Darstellung.
   Die bestehende Heartwood Roleplay-Farbwelt (Anthrazit, Gold, Creme) bleibt
   bewusst erhalten. Es werden keine externen Fonts benötigt.
   ===================================================================== */

:root {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(28, 27, 24, 0.08);
  --shadow-hover: 0 18px 42px rgba(28, 27, 24, 0.14);
  --content-width: 1180px;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 130, 32, 0.07), transparent 28rem),
    var(--paper);
}

.wrap {
  max-width: var(--content-width);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 29, 32, 0.96);
  box-shadow: 0 8px 24px rgba(22, 20, 15, 0.16);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  gap: 14px;
}

.brand img {
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(245, 130, 32, 0.12));
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: 0.025em;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.social-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--cream-dim);
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-nav a:hover,
.social-nav a:focus-visible {
  color: var(--cream-dim);
  background: rgba(245, 130, 32, 0.12);
  border-color: rgba(245, 130, 32, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.register-nav {
  gap: 6px;
}

.register-nav a {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 13px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.register-nav a:hover,
.register-nav a[aria-current="page"] {
  background: rgba(245, 130, 32, 0.12);
  border-color: rgba(245, 130, 32, 0.22);
}

.register-nav a[aria-current="page"]::after {
  display: none;
}

.hero {
  /*
   * Hero wächst mit dem Inhalt – kein Abschneiden durch max-height.
   * Kompakt durch reduzierte Abstände und Typografie, aber vollständig sichtbar.
   */
  min-height: 0;
  max-height: none;
  overflow: visible;
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 130, 32, 0.12), transparent 26rem),
    linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
}

.site-header .wrap,
.hero .wrap {
  /* Breiter Inhaltsrahmen wie in der gewünschten Referenzgestaltung. */
  max-width: 1220px;
}

.hero .wrap {
  min-height: 0;
  padding-top: 52px;
  padding-bottom: 64px;
  gap: 50px;
  align-items: center;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
}

.hero h1 {
  /* Eine Zeile wie in der neuen Startseiten-Gestaltung. */
  max-width: none;
  font-size: clamp(2.7rem, 4.8vw, 4.2rem);
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.hero-lede {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 0 28px;
  color: var(--cream-dim);
}

.hero-badge img {
  /* Das Wappen ist bewusst kleiner als in der vorherigen Version,
     damit es optisch nicht mit der Überschrift konkurriert. */
  max-width: 280px;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.34));
}

.btn {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.18);
}

.btn-ghost {
  border-color: rgba(207, 201, 186, 0.35);
}

section {
  padding: 86px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  letter-spacing: -0.025em;
}

.dossier-grid {
  gap: 18px;
  border: 0;
  overflow: visible;
}

.dossier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dossier-card:nth-child(3n) {
  border-right: 1px solid var(--line);
}

.dossier-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(138, 101, 26, 0.35);
}

.dossier-tag,
.status-badge {
  border-radius: 999px;
  background: rgba(245, 130, 32, 0.09);
  padding: 5px 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.split {
  gap: 70px;
}

.feature-list {
  gap: 12px;
}

.feature-list li {
  min-height: 50px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(28, 27, 24, 0.04);
}

.feature-list svg {
  width: 22px;
  height: 22px;
}

.steps {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: var(--shadow-soft);
}

.steps li {
  padding: 24px 28px;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  background: var(--gold-tint);
  border-radius: 12px;
}

.callout {
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
}

.regelwerk-header {
  padding: 72px 0 52px;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 130, 32, 0.10), transparent 24rem),
    linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
}

.regelwerk-header h1 {
  letter-spacing: -0.035em;
}

.regelwerk-meta {
  gap: 10px 28px;
}

.toc-paper {
  border-radius: var(--radius-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-soft);
}

.artikel {
  padding: 48px 0;
}

.announcement-list {
  gap: 16px;
}

.announcement-card {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.announcement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.faq-search {
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.faq-item {
  padding: 4px 0;
}

.faq-item summary {
  border-radius: 10px;
  padding: 18px 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.faq-item summary:hover {
  background: rgba(245, 130, 32, 0.07);
}

.faq-answer {
  padding: 4px 14px 24px;
}

.site-footer {
  margin-top: 10px;
}

.site-footer .wrap {
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-links {
  gap: 8px;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: 8px;
}

.footer-links a:hover {
  background: rgba(245, 130, 32, 0.09);
}

/* Formulare erhalten dieselbe visuelle Sprache wie die neuen Karten. */
input[type="text"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea,
select {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #222428;
  color: var(--ink);
  padding: 11px 13px;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

label {
  font-weight: 600;
}

.admin-toolbar {
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(28, 27, 24, 0.06);
}

/* Mobile: Navigation und Hero werden kompakter, ohne Funktionen zu verstecken. */
@media (max-width: 780px) {
  .site-header {
    position: relative;
  }

  .site-header .wrap {
    gap: 12px;
  }

  .social-nav {
    margin-left: 0;
  }

  .register-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .register-nav a {
    flex: 0 0 auto;
  }

  .hero {
    /* Auf kleinen Displays darf der Hero wieder mit dem Inhalt wachsen. */
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hero .wrap {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 72px;
    gap: 26px;
  }

  .hero-badge {
    order: -1;
  }

  .hero-badge img {
    max-width: 210px;
  }

  section {
    padding: 64px 0;
  }

  .dossier-grid {
    gap: 12px;
  }

  .dossier-card {
    padding: 24px;
  }

  .split {
    gap: 36px;
  }

  .steps li {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .callout {
    padding: 22px;
  }

  .announcement-card {
    padding: 20px;
  }

  .toc-paper {
    padding: 22px;
  }
}


/* --- SEO / Barrierefreiheit ------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold, #f58220);
  color: #17181b;
  padding: 8px 14px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }
.hero-badge img { height: auto; }
.brand picture { display: inline-flex; }
.brand img { width: auto; }
.seo-intro p, .seo-intro .lede { max-width: none; } /* volle Breite des Inhaltsbereichs, wie die Überschrift */
.seo-intro .seo-links { margin-top: 14px; }


/* --- Startseite: kompakterer Hero-Bereich ------------------------------ */
.hero h1 {
  font-size: clamp(2.1rem, 3.7vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 12px;
}
.hero-eyebrow { font-size: 0.74rem; margin-bottom: 10px; }
.hero-lede {
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 54ch;
  margin-bottom: 20px;
}
.hero-actions { gap: 10px; }
.hero-actions .btn { min-height: 40px; padding: 8px 15px; font-size: 0.9rem; }
@media (min-width: 901px) {
  .hero .wrap { padding-top: 34px; padding-bottom: 42px; gap: 36px; }
  .hero-badge img { max-width: 320px; }
}
@media (max-width: 900px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero-badge img { max-width: 160px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
}


/* --- Startseite: Streamer ---------------------------------------------- */
.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;
}
.streamer-lede { max-width: 62ch; margin-bottom: 26px; }
.streamer-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 590px), 590px));
  justify-content: center;
  gap: 16px;
}
.streamer-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 22px 22px 20px;
  height: 296px; /* Platz für Profilbild + Live-Infos */
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.streamer-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(28, 27, 24, 0.08));
}
.streamer-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.streamer-card h3 { margin: 0 0 14px; font-size: 1.25rem; }
.streamer-id { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; min-width: 0; }
.streamer-id h3 { margin: 0; overflow-wrap: anywhere; }
.streamer-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gold-tint);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
}
.streamer-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.streamer-avatar--leer { color: var(--gold-deep); font-weight: 700; font-size: 1.35rem; }
.streamer-link {
  margin-top: auto;
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.9rem;
  background: var(--gold);
  color: var(--charcoal-2);
  border: 1px solid var(--gold);
  text-decoration: none;
}
.streamer-link:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* Streamer: Online/Offline-Status */
.streamer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-bottom: 10px; }
.streamer-top .streamer-tag { margin-bottom: 0; }
.streamer-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--stone);
}
.streamer-status[hidden] { display: none; }
.streamer-status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a39d8e;
}
.streamer-status.is-online { color: #1e7e34; }
.streamer-status.is-online::before { background: #2fb344; box-shadow: 0 0 0 3px rgba(47, 179, 68, 0.2); }
.streamer-card.is-live { border-color: #2fb344; }

/* --- Streamer-Seite: Live-Bereich ------------------------------------- */
.live-section { padding: 36px 0 0; }
.live-section h2 { margin-bottom: 18px; }
.live-grid-public { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 22px; }
.live-item-public { background: var(--paper-raised); border: 1px solid #2fb344; border-radius: 10px; overflow: hidden; }
.live-item-public-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; }
.live-item-public-head h3 { margin: 0; font-size: 1.2rem; }
.live-item-public-head h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 50%; background: #2fb344; box-shadow: 0 0 0 3px rgba(47,179,68,.2); }
.live-player-public { position: relative; width: 100%; height: 480px; background: #000; }
.live-player-public iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-none { margin: 30px 0 0; color: var(--stone); }


/* ---------- Hero: Wolken ziehen im Hintergrund von links nach rechts ---------- */
/* Liegt hinter Inhalt (.wrap, z-index 1) und hinter den Bergen (.mountains kommen später im DOM). */
.hero-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;      /* Wolken verschwinden sauber am Rand der Hero-Fläche */
  z-index: 0;
  pointer-events: none;
}

.hero-clouds .cloud {
  position: absolute;
  left: 0;
  width: var(--w, 240px);
  height: auto;
  color: #f1e6cf;        /* warmes Creme, passend zum Gold-Ton der Seite */
  filter: blur(1.5px);
  will-change: transform;
  animation: cloud-drift var(--dur, 100s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.hero-clouds .cloud--far  { opacity: 0.06; }
.hero-clouds .cloud--mid  { opacity: 0.09; }
.hero-clouds .cloud--near { opacity: 0.12; filter: blur(2.5px); }

@keyframes cloud-drift {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(100vw, 0, 0); }
}

/* Bewegungsempfindlichkeit respektieren: Wolken stehen still, bleiben aber sichtbar */
@media (prefers-reduced-motion: reduce) {
  .hero-clouds .cloud { animation: none; transform: translate3d(30vw, 0, 0); }
}

/* Auf kleinen Displays etwas kleinere Wolken */
@media (max-width: 600px) {
  .hero-clouds .cloud { width: calc(var(--w, 240px) * 0.6); }
}

/* Hinweis unter den Streamer-Karten */
.streamer-cta {
  margin: 28px 0 0;
  max-width: 62ch;
  color: var(--stone);
}
.streamer-cta a { font-weight: 600; }

/* Wolken auch im dunklen Seitenkopf der Unterseiten (Regelwerk, Gesetze, FAQ, Streamer, Impressum, …) */
.regelwerk-header { position: relative; overflow: hidden; }
.regelwerk-header > .wrap { position: relative; z-index: 1; }

/* Vote-Logo im Startseiten-Hero: verlinkt auf Top-Games, hebt sich beim Drüberfahren hervor */
.hero-vote {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.22s ease;
}
.hero-vote img {
  display: block;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.hero-vote:hover img,
.hero-vote:focus-visible img {
  transform: scale(1.07) translateY(-4px);
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(245, 130, 32, 0.55)) brightness(1.06);
}
.hero-vote:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .hero-vote, .hero-vote img { transition: none; }
  .hero-vote:hover img, .hero-vote:focus-visible img { transform: none; }
}

/* Header aufgeräumt: Social-Icons unter dem Logo, Navigation rechts */
.brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-col .social-nav { margin-left: 0; gap: 4px; }
.brand-col .social-nav a { width: 32px; height: 32px; border-radius: 8px; }
.brand-col .social-nav svg { width: 18px; height: 18px; }
.site-header .wrap { justify-content: space-between; }
.register-nav { margin-left: auto; }
@media (max-width: 780px) {
  .brand-col { width: 100%; }
}

/* Streamer: Titel + Kategorie bei Live-Streams */
.streamer-info { margin: -6px 0 14px; display: flex; flex-direction: column; gap: 2px; width: 100%; font-size: 0.9rem; line-height: 1.4; }
.streamer-info[hidden] { display: none; }
.streamer-game { font-weight: 600; color: var(--gold-deep, #ffab63); }
.streamer-title { color: var(--muted, #5c564b); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.streamer-game:empty, .streamer-title:empty { display: none; }
.live-meta { margin: 0 0 12px; padding: 0 16px; }

/* Streamer-Karten: 590 × 250 px; zwei nebeneinander ragen auf großen Bildschirmen leicht über den Inhaltsrahmen */
@media (min-width: 1260px) { .streamer-grid { margin-inline: -8px; } }
@media (max-width: 780px) { .streamer-card { height: auto; min-height: 250px; } }

/* ---------- Team-Seite (team.php) ---------- */
.team-section { padding: 34px 0 6px; }
.team-section:last-child { padding-bottom: 56px; }
.team-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 22px 16px 20px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(28, 27, 24, 0.08));
}
.team-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-tint);
  background: var(--paper);
  margin-bottom: 10px;
}
.team-avatar--leer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold-deep);
}
.team-card h3 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.team-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gold-deep);
  border: 1px solid var(--gold-deep);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ---------- Tastaturbelegung (tastaturbelegung.php) ---------- */
.kb-section { padding: 34px 0 56px; }
.kb-scroll { overflow-x: auto; padding-bottom: 6px; }
.kb-board {
  container-type: inline-size;
  min-width: 760px;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft, 0 10px 30px rgba(28, 27, 24, 0.08));
}
.kb-grid {
  --u: calc(100cqw / 23);          /* Breite einer Tasteneinheit (Board innen) */
  display: grid;
  grid-template-columns: repeat(92, 1fr);
  grid-template-rows: var(--u) calc(var(--u) * 0.5) repeat(5, var(--u));
  font-size: calc(var(--u) * 0.26);
}
.kb-key { padding: calc(var(--u) * 0.04); min-width: 0; }
.kb-cap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0.35em 0.5em;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--cream-dim);
  border-bottom-width: 3px;
  border-radius: calc(var(--u) * 0.1);
  line-height: 1.05;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-single { display: block; }
.kb-top, .kb-bottom { display: block; }
.kb-key.is-bound .kb-cap {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: var(--gold-deep);
  color: var(--charcoal-2);
  font-weight: 600;
}
.kb-key.is-bound { cursor: help; }
.kb-key.is-bound:focus-visible { outline: none; }
.kb-key.is-bound:focus-visible .kb-cap { box-shadow: 0 0 0 3px rgba(255, 174, 98, 0.75); }
.kb-tip {
  position: fixed;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 16px));
  padding: 9px 14px;
  background: var(--charcoal-2);
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
.kb-tip[hidden] { display: none; }
.kb-tip::after {
  content: "";
  position: absolute;
  left: var(--pfeil, 50%);
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--charcoal-2);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}
.kb-tip.is-below::after { bottom: auto; top: -6px; transform: rotate(225deg); }
.kb-tip-key {
  flex: none;
  padding: 2px 9px;
  background: var(--gold-bright);
  color: var(--charcoal-2);
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}
.kb-key.is-active .kb-cap {
  background: #fff;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(255, 174, 98, 0.75), 0 6px 18px rgba(255, 174, 98, 0.35);
  transform: translateY(-2px);
  position: relative;
  z-index: 2;
}
.kb-title { margin: 38px 0 18px; }
.kb-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.kb-col {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 12px;
}
.kb-col h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--gold-deep); }
.kb-col ul { list-style: none; margin: 0; padding: 0; }
.kb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  border-radius: 6px;
  outline-offset: -2px;
  transition: background 0.15s ease;
}
.kb-item:first-child { border-top: 0; }
.kb-item:hover, .kb-item:focus-visible, .kb-item.is-active { background: var(--gold-tint); }
.kb-kbd {
  flex: 0 0 auto;
  min-width: 4.6em;
  text-align: center;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal-2);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid var(--gold-deep);
  border-bottom-width: 3px;
  border-radius: 6px;
  white-space: nowrap;
}
.kb-fn { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Navigation: Dropdown „Wissenswertes“ ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit;
  font-size: 0.94rem;
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: rgba(245, 130, 32, 0.14);
  color: var(--cream);
}
.nav-dropdown-toggle[data-current="true"] {
  color: var(--gold-bright);
  font-weight: 600;
  background: rgba(245, 130, 32, 0.12);
  border-color: rgba(245, 130, 32, 0.22);
}
.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}
.nav-dropdown.is-open .nav-caret { transform: translateY(1px) rotate(225deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 200;
  min-width: 100%;
  margin-top: 6px;
  padding: 6px;
  background: var(--charcoal-2);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* Hover-Brücke */
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
@media (hover: hover) and (min-width: 781px) {
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-caret { transform: translateY(1px) rotate(225deg); }
}
.register-nav .nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
  padding: 9px 14px;
}
@media (max-width: 780px) {
  /* Auf dem Handy bricht die Navigation um (statt seitlich zu scrollen), damit das Dropdown nicht abgeschnitten wird */
  .register-nav { flex-wrap: wrap; overflow: visible; position: relative; }
  .nav-dropdown { position: static; flex: 0 0 auto; }
  .nav-dropdown-menu { left: 0; right: 0; }
}


/* ---------- Slider „Stimmen aus Los Santos“ (Startseite) ---------- */
.stimmen { background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%); border-bottom: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.stimmen h2 { color: var(--cream); }
.stimmen-slider {
  --stimmen-h: 300px; /* Höhe */
  max-width: 700px; /* Breite */
  margin: 0 auto;
  position: relative;
  height: var(--stimmen-h);
  overflow: hidden;
  border: 2px solid var(--gold); /* #f58220 */
  border-radius: 4px;
  background:
    radial-gradient(ellipse 55% 70% at 22% 88%, rgba(245, 130, 32,.20), transparent 70%),
    linear-gradient(180deg, #26282c 0%, #17181b 100%);
  isolation: isolate;
}
.stimmen-slider::before { /* Bergsilhouette wie im Header */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpolygon points='0,180 0,90 180,20 340,110 480,45 620,120 760,55 900,130 1040,60 1200,110 1200,180' fill='%23332d20'/%3E%3Cpolygon points='0,180 0,130 220,70 420,140 600,90 800,150 1000,95 1200,150 1200,180' fill='%23282318'/%3E%3Cpolygon points='0,180 0,155 260,120 520,165 780,125 1050,168 1200,150 1200,180' fill='%231b1810'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.stimme {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: calc((var(--stimmen-h) - 10px) * 2 / 3) 1fr;
  align-items: end;
  gap: 28px;
  padding: 0 56px;
  opacity: 0; visibility: hidden; transform: translateX(32px);
  transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}
.stimme.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s ease; }
.stimme-figure { height: calc(var(--stimmen-h) - 10px); aspect-ratio: 2 / 3; justify-self: center; align-self: end; position: relative; }
.stimme-figure img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 20px rgba(0,0,0,.55)); }
.stimme-text { align-self: center; padding-bottom: 26px; }
.stimme-role {
  display: inline-block; margin: 0;
  font-family: var(--sans); font-weight: 600; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--charcoal-2); background: var(--gold); padding: 4px 12px; border-radius: 3px;
}
.stimmen blockquote {
  margin: 14px 0 0; position: relative;
  padding: 16px 20px 16px 22px;
  background: rgba(246,243,234,.05);
  border: 1px solid var(--line-dark); border-left: 4px solid var(--gold); border-radius: 4px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.45;
  color: var(--cream);
}
.stimmen blockquote::before { display: none; }
.stimme-place { display: none; margin: 14px 0 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-dim); font-weight: 600; }

.stimmen-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(22,20,15,.7); color: var(--cream);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
  transition: background .2s, color .2s, border-color .2s;
}
.stimmen-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal-2); }
.stimmen-nav.prev { left: 10px; }
.stimmen-nav.next { right: 10px; }
.stimmen-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 7px; z-index: 5; }
.stimmen-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(246,243,234,.35); cursor: pointer; transition: width .2s, background .2s; }
.stimmen-dot:hover { background: var(--cream-dim); }
.stimmen-dot.is-active { width: 22px; border-radius: 6px; background: var(--gold); }
.stimmen-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); z-index: 5; }

@media (max-width: 720px) {
  .stimmen-slider { max-width: none; }
  .stimme { grid-template-columns: 110px 1fr; grid-template-rows: auto; gap: 12px; padding: 0 14px; align-items: center; }
  .stimme-figure { height: calc(var(--stimmen-h) - 14px); align-self: end; }
  .stimme-text { align-self: center; padding-bottom: 24px; }
  .stimme-role { font-size: .66rem; padding: 3px 9px; }
  .stimmen blockquote { margin-top: 8px; padding: 10px 12px 10px 14px; font-size: .9rem; line-height: 1.35; }
  .stimmen-nav { display: none; } /* auf dem Handy: Wischen und Punkte */
}
@media (prefers-reduced-motion: reduce) {
  .stimme, .stimme.is-active { transition: opacity .2s; transform: none; }
}

.stimmen .section-head { justify-content: center; }

/* ---------- Steckbrief „Auf einen Blick“ (Startseite unten, Server-Überblick) ---------- */

.steckbrief-section { background: linear-gradient(180deg, var(--paper) 0%, var(--gold-tint) 100%); }
.steckbrief-karte {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--gold-deep);
  border-radius: 6px;
  box-shadow: 0 18px 40px -24px rgba(22, 20, 15, 0.45);
  overflow: hidden;
  margin: 0 0 8px;
}
.sb-kopf {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-2) 100%);
  border-bottom: 3px solid var(--gold);
}
.sb-kopf img { display: block; width: 72px; height: auto; }
.sb-kopf-text { flex: 1; min-width: 0; }
.sb-eyebrow {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 0.95rem;
}
.sb-kopf h2 { color: var(--cream); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sb-stempel {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 6px 12px;
  transform: rotate(-4deg);
}
.sb-felder {
  position: relative;
  margin: 0;
  padding: 10px 28px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 28px;
}
.sb-feld { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.sb-feld--breit { grid-column: 1 / -1; border-bottom: none; }
.sb-feld--doppelt { grid-column: span 2; }
.sb-feld dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 6px;
}
.sb-feld dd { margin: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); line-height: 1.4; }
.sb-hint { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--stone); margin-top: 2px; }
.sb-feld a { color: var(--gold-deep); }
.sb-fuss {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px 26px;
  border-top: 1px solid var(--line);
  background: var(--gold-tint);
}
.sb-btn { border-color: var(--gold-deep); color: var(--ink); background: transparent; }
.sb-btn:hover { background: var(--paper-raised); color: var(--gold-deep); }
.ueberblick .steckbrief-karte { margin-bottom: 16px; }

@media (max-width: 900px) {
  .sb-felder { grid-template-columns: repeat(2, 1fr); }
  .sb-feld--doppelt { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sb-kopf { padding: 18px 18px; gap: 12px; flex-wrap: wrap; }
  .sb-kopf h2 { font-size: 1.35rem; }
  .sb-kopf-text { flex: 1 1 calc(100% - 72px); }
  .sb-stempel { order: 3; transform: none; margin-left: 68px; padding: 4px 10px; }
  .sb-feld--doppelt { grid-column: auto; }
  .sb-kopf img { width: 56px; }
  .sb-felder { grid-template-columns: 1fr; padding: 4px 18px; }
  .sb-fuss { padding: 16px 18px 22px; }
  .sb-fuss .btn { flex: 1 1 100%; justify-content: center; }
}

/* Server-Überblick (fivem-rp-server-deutsch.php) */
.ueberblick { padding: 48px 0 8px; }
.ueberblick section { padding: 40px 0; }
.ueberblick h2 { font-family: var(--serif); }
.ueberblick .prose p, .ueberblick .prose li { color: var(--ink); }
.ueberblick-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; }
.ueberblick-cta .btn-ghost { color: var(--ink); border-color: var(--line); }
.ueberblick-cta .btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.ueberblick .stand { font-size: 0.85rem; color: var(--stone); }

/* Heartwood Roleplay: dark surfaces and orange identity. */
:root { color-scheme: dark; --serif: 'Segoe UI', system-ui, sans-serif; --sans: 'Segoe UI', system-ui, sans-serif; }
.wrap { padding-left: 28px; padding-right: 28px; }
.brand img { height: 76px; width: auto; object-fit: contain; }
.hero-badge img { filter: drop-shadow(0 12px 32px #0009); }
.btn-primary { color: #151515; }
.kb-key.is-active .kb-cap { background: #34373c; }
.site-header { border-bottom-color: #f5822040; }
.hero-clouds { opacity: .28; }
::selection { background: #f58220; color: #111214; }
