/* Impressum & Datenschutz – Grundlagen wie in index.html */

/* Archivo, lokal gehostet (SIL Open Font License, siehe fonts/OFL.txt) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gelb: #F2C230;
  --gelb-kante: #D6A615;
  --blau: #1D3A5C;
  --blau-tief: #142A44;
  --rot: #C62828;
  --tinte: #1A2533;
  --text-2: #4A5563;
  --papier: #FFFFFF;
  --flaeche: #EEF1F4;
  --linie: #D5DDE6;
  --karo: #E1E8F0;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --breite: 1120px;
  --radius: 6px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px); }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blau); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--gelb-kante); outline-offset: 3px; border-radius: 2px; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 {
  font-family: var(--font);
  font-stretch: 72%;
  color: var(--blau);
  margin: 0;
}

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top, 0px);
  margin-top: calc(-1 * env(safe-area-inset-top, 0px));
}
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marke {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 850; font-stretch: 72%; font-size: 1.6rem; color: var(--blau);
  text-decoration: none; letter-spacing: -0.01em;
}
.marke svg { width: 34px; height: 20px; }
.zurueck { font-weight: 600; font-size: .95rem; color: var(--blau); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--blau); color: #fff;
  font: 700 1.0625rem/1 var(--font); font-stretch: 90%;
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--blau-tief);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.knopf:hover { background: #24476F; }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blau-tief); }

/* ---------- Rechtstext ---------- */
.recht h1, .recht h2, .recht h3 { hyphens: auto; overflow-wrap: break-word; }
.recht { padding: 56px 0 80px; }
.text { max-width: 56ch; } /* ≈ 65–70 Zeichen pro Zeile bei Archivo */
.recht h1 {
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.012em;
}
.recht .unterzeile { color: var(--text-2); margin: 14px 0 0; }
.recht h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 56px 0 0;
  padding-top: 20px;
  border-top: 4px solid var(--gelb);
}
.recht h3 {
  font-size: 1.2rem; font-weight: 750; line-height: 1.25; font-stretch: 85%;
  margin: 32px 0 0;
}
.recht p, .recht ul { margin: 12px 0 0; }
.recht ul { padding-left: 1.2em; }
.recht li + li { margin-top: 4px; }
.recht address { font-style: normal; margin: 12px 0 0; }

.inhalt {
  margin: 32px 0 0; padding: 18px 22px;
  background: var(--flaeche); border-radius: var(--radius);
}
.inhalt strong { display: block; font-stretch: 85%; }
.inhalt ol { margin: 8px 0 0; padding-left: 1.4em; }

.hinweis {
  margin: 28px 0 0; padding: 14px 18px;
  border-left: 4px solid var(--blau); background: var(--flaeche);
}
.quelle, .stand { color: var(--text-2); font-size: .95rem; }
.stand { margin-top: 48px !important; }

mark {
  background: #FFF1B8; color: var(--tinte);
  outline: 2px dashed var(--rot); outline-offset: 1px;
  padding: 0 .25em; font-weight: 600;
}

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 28px 0 40px; font-size: .95rem; color: var(--text-2); }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.fuss a, .fuss button { color: var(--text-2); }
.fuss button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.fuss [aria-current="page"] { color: var(--tinte); font-weight: 700; }

/* ---------- Cookie-Hinweis ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--tinte);
  border: 2px solid var(--blau); border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px -16px rgba(20,42,68,.45);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 14px; font-size: .95rem; }
.cookie-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-knoepfe .knopf { flex: 1 1 140px; min-height: 46px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
