@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/Poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/Poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/Poppins-700.woff2") format("woff2"); }

:root {
  --navy: #071B3C;
  --blau: #0865F5;
  --blau-dunkel: #0757D4;
  --cyan: #08CBE5;
  --mint: #20D9A6;
  --grund: #F5F8FC;
  --flaeche: #FFFFFF;
  --flaeche-hell: #EEF3FA;
  --text: #0F172A;
  --text-2: #334155;
  --leise: #5B6B82;
  --linie: #E2E8F1;
  --text-hell: #B9C6DB;

  --schrift: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --breite: 48rem;                       
  --m: clamp(20px, 4vw, 40px);           
  --seite: 1200px;                       
  --polster: clamp(20px, 5vw, 56px);     

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--navy); color: #fff; }

.sprung {
  position: absolute;
  left: var(--m);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.sprung:focus { top: 12px; }

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--linie);
  color: var(--navy);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.kopf-innen,
.fuss-innen {
  width: 100%;
  max-width: calc(var(--seite) + 2 * var(--m));
  margin: 0 auto;
  padding: 0 var(--m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.kopf-innen { min-height: 68px; }

.wortmarke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wortmarke .symbol { width: 32px; height: 32px; flex: none; }

.zurueck {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #CBD5E3;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .zurueck:hover { border-color: var(--navy); }
}

.titel {
  color: var(--text-2);
  padding: clamp(40px, 6vw, 80px) var(--m) clamp(28px, 4vw, 40px);
}
.titel-innen,
.text {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
}
.titel h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.einleitung {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.45;
}
.stand {
  margin: 14px 0 0;
  font-size: 1rem;
}

.seite {
  flex: 1 0 auto;
  width: 100%;
}
.text {
  margin-top: 0;
  margin-bottom: clamp(40px, 6vw, 88px);
  padding: var(--polster);
  border: 1px solid var(--linie);
  border-radius: 16px;
  background: var(--flaeche);
  color: var(--text-2);
  overflow-wrap: break-word;
}
.text > :first-child,
.text > section:first-child > :first-child { margin-top: 0; }

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  text-wrap: balance;
  hyphens: auto;
  -webkit-hyphens: auto;
}
h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
h3 {
  margin: 1.9em 0 0.4em;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
}
h2 + h3 { margin-top: 0.9em; }

p, li, dd, address {
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 0.4em; }
li::marker { color: var(--leise); }
strong { color: var(--text); font-weight: 600; }

a {
  color: var(--blau-dunkel);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: transparent; }
}

:focus-visible {
  outline: 3px solid var(--blau);
  outline-offset: 3px;
}
.fuss :focus-visible { outline-color: #fff; }

.kasten {
  margin: 0 0 1.25em;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--flaeche-hell);
  color: var(--text);
  font-style: normal;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten > h3:first-child { margin-top: 0; }
div.kasten { margin-top: 1.5em; }

.kurz {
  margin: 0 0 8px;
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--flaeche-hell);
}
.kurz h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}
.kurz ul { margin: 0; }
.kurz li:last-child { margin-bottom: 0; }

.fakten {
  display: grid;
  grid-template-columns: minmax(8.5rem, max-content) 1fr;
  gap: 6px 20px;
  margin: 0 0 1.25em;
}
.fakten dt {
  color: var(--text);
  font-weight: 600;
}
.fakten dd { margin: 0; }
@media (max-width: 560px) {
  .fakten { grid-template-columns: 1fr; gap: 0; }
  .fakten dd { margin-bottom: 10px; }
}

.verzeichnis {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--flaeche-hell);
}
.verzeichnis h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}
.verzeichnis ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 15rem;
  column-gap: 32px;
}
.verzeichnis li {
  margin: 0;
  padding: 3px 0;
  break-inside: avoid;
}
.verzeichnis a { color: var(--text); text-decoration-color: rgba(7, 27, 60, 0.35); }
@media (hover: hover) and (pointer: fine) {
  .verzeichnis a:hover { color: var(--blau-dunkel); text-decoration-color: currentColor; }
}

ol.absaetze {
  list-style: none;
  counter-reset: absatz;
  padding-left: 0;
}
ol.absaetze > li {
  counter-increment: absatz;
  position: relative;
  padding-left: 2.4em;
  margin-bottom: 0.75em;
}
ol.absaetze > li::before {
  content: "(" counter(absatz) ")";
  position: absolute;
  left: 0;
  color: var(--leise);
  font-variant-numeric: tabular-nums;
}
ol.absaetze ul,
ol.absaetze ol { margin: 0.5em 0 0.25em; }
ol.buchstaben { list-style: lower-alpha; }

html { scroll-padding-top: 84px; }

.fuss {
  flex: none;
  background: var(--navy);
  color: var(--text-hell);
  font-size: 0.9375rem;
}
.fuss-innen {
  flex-wrap: wrap;
  padding-top: 32px;
  padding-bottom: 32px;
}
.fuss ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fuss li { margin: 0; }
.fuss a { color: var(--text-hell); text-decoration-color: rgba(185, 198, 219, 0.4); }
.fuss .wortmarke { color: #fff; }
.fuss a:not(.wortmarke) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.fuss a[aria-current="page"] { color: #fff; text-decoration-color: var(--mint); }
@media (hover: hover) and (pointer: fine) {
  .fuss a:not(.wortmarke):hover { color: #fff; text-decoration-color: currentColor; }
}

@media (max-width: 600px) {
  .text { padding: 28px 16px 32px; border-radius: 0; border-left: 0; border-right: 0; }
  .kurz, .verzeichnis { padding: 18px 16px; }
  .kasten { padding: 16px; }
  h2 { margin-top: 2.2em; }
  .fuss-innen { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media print {
  body { background: #fff; color: #000; display: block; }
  .sprung, .zurueck, .verzeichnis { display: none; }
  .kopf { position: static; border: 0; }
  .kopf, .titel { background: none; color: #000; padding: 0; }
  .titel h1 { color: #000; font-size: 2rem; }
  .text { margin: 0; padding: 0; max-width: none; border: 0; color: #000; }
  .fuss { background: none; color: #000; }
  .fuss a { color: #000; }
  a { color: #000; }
  h2, h3 { break-after: avoid; }
}
