/* ===================================================================
   EdelweissRP — 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: #f3f0e6;
  --paper-raised: #faf8f2;
  --ink: #1c1b18;
  --charcoal: #211e19;
  --charcoal-2: #16140f;
  --stone: #726c5e;
  --line: #ddd6c3;
  --line-dark: #38352c;

  --gold: #d9a51c;
  --gold-bright: #f0c239;
  --gold-deep: #8a651a;
  --gold-tint: #f2e6c4;

  --cream: #f6f3ea;
  --cream-dim: #cfc9ba;

  --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(217, 165, 28, 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; }

/* ---------- 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 EdelweissRP-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(217, 165, 28, 0.07), transparent 28rem),
    var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(33, 30, 25, 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(217, 165, 28, 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(217, 165, 28, 0.12);
  border-color: rgba(217, 165, 28, 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(217, 165, 28, 0.12);
  border-color: rgba(217, 165, 28, 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(217, 165, 28, 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(217, 165, 28, 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(217, 165, 28, 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(217, 165, 28, 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(217, 165, 28, 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(217, 165, 28, 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: #fffdf8;
  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(217, 165, 28, 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, #d9a51c);
  color: #1b1810;
  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 { max-width: 70ch; }
.seo-intro .seo-links { margin-top: 14px; }
