/* Agentic Success – Gestaltung
   Farben aus dem Logo (web\brand\hg-zeichen-dunkel.png): Fläche #000810–#081020,
   Akzent Bronze #B09068. Kontraste sind gegen die jeweilige Fläche gerechnet
   (WCAG 2.2, Zielband aus DREAMBOX\STYLEGUIDE.md: Text 7,2–8,6 · gedämpft
   4,8–6,2 · Akzent 4,8–6,2 · Linie 3,1–3,9 · Rahmen 3,4–4,4). */

@font-face {
  font-family: "Inter var";
  src: url("brand/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --seite: #060c12;
  --karte: #0c131c;
  --erhoeht: #121a24;
  --code: #18222e;
  --text: #a3aebc;        /* 8,73:1 auf der Seite */
  --hell: #e9eef4;        /* Überschriften, 15,6:1 */
  --leise: #8491a1;       /* 6,12:1 */
  --akzent: #a98a63;      /* 6,08:1 */
  --akzent-hell: #c2a176;
  --akzent-tief: #9e7f5a;
  --linie: #586a7d;       /* 3,53:1 */
  --rahmen: #64788c;      /* 4,31:1 */
  --warn: #dfaf77;
  --fokus: #dcc099;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-10: 40px; --sp-16: 64px; --sp-24: 96px;
  --r-small: 10px; --r-control: 14px; --r-card: 20px; --r-pill: 999px;
  --breite: 74rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--seite);
  color: var(--text);
  font-family: "Inter var", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--hell); line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; margin: 0 0 var(--sp-6); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 650; margin: 0 0 var(--sp-4); }
h3 { font-size: 1.15rem; font-weight: 620; margin: 0 0 var(--sp-2); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--akzent-hell); text-decoration: none; }
a:hover { color: #dcbf94; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

.breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--sp-6); }
.klein { font-size: 0.92rem; color: var(--leise); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; word-break: break-all; font-size: 0.92rem; }
.sprung { position: absolute; left: -999px; }
.sprung:focus { left: var(--sp-4); top: var(--sp-4); padding: var(--sp-2) var(--sp-4); background: var(--erhoeht); border: 1px solid var(--rahmen); z-index: 50; }

/* ---- Kopf ---- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 12, 18, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #17202b;
}
.kopf-inhalt { display: flex; align-items: center; gap: var(--sp-6); min-height: 68px; }
.marke {
  margin: 0; font-weight: 680; font-size: 1.02rem; letter-spacing: 0.02em;
  color: var(--hell); display: flex; align-items: center; gap: var(--sp-2);
}
.marke::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--akzent); display: inline-block;
}
.marke-link { color: inherit; text-decoration: none; }
.marke-link:hover { text-decoration: none; color: var(--hell); }
.unterzeile { margin: 0; color: var(--leise); font-size: 0.9rem; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-6); }
.nav a {
  color: var(--text); font-size: 0.95rem; text-decoration: none;
  padding: var(--sp-2) 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--hell); border-bottom-color: var(--akzent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--hell); border-bottom-color: var(--akzent); }

/* ---- Knöpfe ---- */
.knopf {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 48px; padding: 0.7rem 1.3rem;
  background: #b09068; color: #080d13;
  font-weight: 620; font-size: 0.98rem; text-decoration: none;
  border: 1px solid #b09068; border-radius: var(--r-control);
  transition: background 140ms ease, border-color 140ms ease;
}
.knopf:hover, .knopf:focus { background: var(--akzent-hell); border-color: var(--akzent-hell); color: #080d13; text-decoration: none; }
.knopf:active { background: var(--akzent-tief); }
.knopf--leise { background: #16202b; color: var(--hell); border: 1px solid var(--rahmen); }
.knopf--leise:hover, .knopf--leise:focus { background: #1e2a38; color: #fff; border-color: var(--akzent); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 0; }
.knopf-reihe--mitte { justify-content: center; }

/* ---- Startseite ---- */
.buehne {
  position: relative; padding: var(--sp-24) 0 var(--sp-16);
  text-align: center; overflow: hidden;
}
.buehne::before {
  content: ""; position: absolute; inset: -30% 20% auto; height: 460px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(176, 144, 104, 0.16), transparent 70%);
  pointer-events: none;
}
.buehne > * { position: relative; }
.etikett {
  display: inline-block; margin: 0 0 var(--sp-6);
  padding: 5px 12px; border: 1px solid #2b3644; border-radius: var(--r-pill);
  color: var(--akzent-hell); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.buehne h1 { max-width: 22ch; margin-inline: auto; }
.buehne .lead { max-width: 62ch; margin-inline: auto; font-size: 1.12rem; }

.beweise {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: var(--sp-16) 0 0; padding: 0; list-style: none; text-align: left;
}
.beweise li {
  border: 1px solid #1b2430; border-radius: var(--r-card);
  background: var(--karte); padding: var(--sp-6);
}
.beweise strong { display: block; color: var(--hell); font-size: 1.55rem; font-weight: 680; }
.beweise span { color: var(--leise); font-size: 0.92rem; }

.abschnitt { padding: var(--sp-24) 0; border-top: 1px solid #131c26; }
.abschnitt--eng { padding: var(--sp-16) 0; }
.abschnitt-kopf { max-width: 62ch; margin-bottom: var(--sp-10); }

.raster {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.karte {
  display: flex; flex-direction: column;
  border: 1px solid #1b2430; border-radius: var(--r-card);
  background: var(--karte); padding: var(--sp-6);
  transition: border-color 160ms ease, transform 160ms ease;
}
.karte:hover { border-color: #3c4a5b; transform: translateY(-2px); }
.karte h3 { margin-bottom: var(--sp-2); }
.karte p { color: var(--text); margin-bottom: var(--sp-4); }
.karte .mehr { margin-top: auto; font-weight: 560; }
.karte--gesperrt { opacity: 0.72; }
.karte--gesperrt:hover { transform: none; border-color: #1b2430; }
.zustand {
  display: inline-block; align-self: flex-start; margin-bottom: var(--sp-3);
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid #3a4554; color: var(--leise);
}
.zustand--offen { border-color: var(--akzent); color: var(--akzent-hell); }

.liste { padding-left: 1.1rem; }
.liste li { margin: 0.4rem 0; }

/* ---- Unterseiten ---- */
.seitenkopf { padding: var(--sp-16) 0 var(--sp-10); border-bottom: 1px solid #131c26; }
.seitenkopf h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 26ch; }
.seitenkopf .lead { max-width: 62ch; font-size: 1.08rem; }
.brotkrume { font-size: 0.9rem; color: var(--leise); margin: 0 0 var(--sp-4); }
.brotkrume a { color: var(--leise); }
.brotkrume a:hover { color: var(--akzent-hell); }

/* ---- Download ---- */
.laden {
  margin: var(--sp-10) 0 0; border: 1px solid #1b2430; border-radius: var(--r-card);
  background: var(--karte); padding: var(--sp-6) var(--sp-6) var(--sp-10);
}
.hinweis {
  padding: var(--sp-3) var(--sp-4); border: 1px solid #2b3644; border-radius: var(--r-small);
  background: var(--erhoeht); color: var(--text);
}
.hinweis--warn { border-color: #6b4a1f; background: #1b150f; color: var(--warn); }
.datei { margin-top: var(--sp-6); }
.daten {
  display: grid; gap: var(--sp-4) var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 0 0 var(--sp-6);
}
.daten div { border-bottom: 1px solid #223040; padding-bottom: var(--sp-2); }
.daten dt { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leise); }
.daten dd { margin: 3px 0 0; color: var(--hell); font-weight: 560; }

/* ---- Spenden ---- */
.spenden {
  margin: var(--sp-16) 0 0; padding: var(--sp-6);
  border: 1px solid #1b2430; border-radius: var(--r-card); background: var(--karte);
  text-align: center;
}
.spenden-titel { font-size: 1.05rem; margin: 0 0 var(--sp-3); }

/* ---- Fuß ---- */
.fuss {
  border-top: 1px solid #131c26; padding: var(--sp-16) 0 var(--sp-10);
  background: #04080d; text-align: center;
}
.fuss-inhalt { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.fuss p { margin: 0; max-width: 68ch; }
.fuss .marke { justify-content: center; }
.fuss-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-6); margin: var(--sp-2) 0; }
.fuss-nav a { color: var(--text); font-size: 0.94rem; }
.fuss-nav a:hover { color: var(--akzent-hell); }
.fuss .klein { color: var(--leise); max-width: 70ch; }
.fuss strong { color: var(--hell); font-weight: 600; }

/* ---- Rechtstexte ---- */
.recht { padding: var(--sp-16) 0; max-width: 52rem; }
.recht h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.recht h2 { font-size: 1.25rem; margin-top: var(--sp-10); padding-bottom: var(--sp-2); border-bottom: 1px solid #1b2430; }
.recht p, .recht ul { max-width: 72ch; }
.recht .klein { color: var(--leise); }

/* ---- Tabellen ---- */
.tabelle { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid #1b2430; vertical-align: top; }
.tabelle th { background: var(--erhoeht); color: var(--hell); font-weight: 600; }
.tabelle tr:nth-child(even) td { background: #101821; }

/* ---- 404 ---- */
.fehler { padding: var(--sp-24) 0; text-align: center; }
.fehler .mono { color: var(--akzent-hell); letter-spacing: 0.1em; }

/* ---- Bildflächen und Zweispalter ---- */
.held {
  display: grid; gap: var(--sp-16);
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
}
.held--text-zuerst { grid-template-columns: 1.05fr 0.95fr; }
.held > .text { max-width: 40ch; }
.rahmen {
  border: 1px solid #1b2430; border-radius: var(--r-card);
  background: #0a1017; padding: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.rahmen img { display: block; width: 100%; height: auto; border-radius: 12px; }
figure.bild { margin: 0; }
figure.bild figcaption {
  margin-top: var(--sp-2); color: var(--leise); font-size: 0.85rem; text-align: center;
}

.zahlen {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  padding: var(--sp-10) 0; margin: 0;
  border-top: 1px solid #131c26; border-bottom: 1px solid #131c26;
  list-style: none; text-align: center;
}
.zahlen li strong { display: block; color: var(--hell); font-size: 2rem; font-weight: 700; }
.zahlen li span { color: var(--leise); font-size: 0.92rem; }

.band {
  border: 1px solid #2b3644; border-radius: var(--r-card);
  background: linear-gradient(160deg, #121a24 0%, #0c131c 60%);
  padding: var(--sp-16) var(--sp-10); text-align: center;
}
.band h2 { margin-bottom: var(--sp-3); }
.band p { max-width: 56ch; margin-inline: auto; }

.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.schritte li { counter-increment: schritt; border-left: 2px solid var(--akzent); padding-left: var(--sp-4); }
.schritte li::before {
  content: counter(schritt, decimal-leading-zero);
  display: block; color: var(--akzent-hell); font-size: 0.85rem; letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

@media (max-width: 62rem) {
  .held, .held--text-zuerst { grid-template-columns: 1fr; gap: var(--sp-10); }
  .held > .text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .karte:hover { transform: none; }
}

@media (max-width: 46rem) {
  body { font-size: 16px; }
  .kopf-inhalt { flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-3) 0; }
  .nav { gap: var(--sp-4); width: 100%; overflow-x: auto; }
  .buehne { padding: var(--sp-16) 0 var(--sp-10); }
  .abschnitt { padding: var(--sp-16) 0; }
  .recht { padding: var(--sp-10) 0; }
}
