/* ------------------------------------------------------------------
   Basis für alle Seiten: lokale Schrift, Barrierefreiheit, Consent-Banner
   ------------------------------------------------------------------ */

/* Schrift "Inter" wird vom eigenen Server geladen (keine Verbindung zu Google).
   Lizenz: SIL Open Font License 1.1, siehe assets/fonts/Inter-OFL-LICENSE.txt */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Sprunglink "Zum Inhalt" – erscheint bei Tastaturbedienung */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: #003f87; color: #fff !important; padding: 12px 18px; border-radius: 8px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Deutlich sichtbarer Tastaturfokus auf allen Bedienelementen */
:focus-visible {
  outline: 3px solid #003f87;
  outline-offset: 3px;
  border-radius: 4px;
}
.dark-section :focus-visible { outline-color: #c6f34c; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Footer-Link "Cookie-Einstellungen" als Button, sieht aus wie ein Link */
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
}
.linklike:hover { color: #0056b3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- Consent-Banner ---------------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900;
  max-width: 640px; margin: 0 auto;
  background: #ffffff; color: #181c1e;
  border: 2px solid #2d3748; border-radius: 16px;
  box-shadow: 0 24px 70px rgba(24, 28, 30, .28);
  padding: 22px 24px; font-size: .95rem; line-height: 1.55;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.consent[hidden] { display: none; }
.consent h2 { margin: 0 0 8px; font-size: 1.15rem; color: #2d3748; letter-spacing: -.01em; }
.consent p { margin: 0 0 12px; color: #424752; }
.consent a { color: #0056b3; text-decoration: underline; text-underline-offset: 3px; }
.consent fieldset { border: 1px solid #c2c6d4; border-radius: 10px; margin: 0 0 14px; padding: 10px 14px; }
.consent legend { font-weight: 800; color: #2d3748; padding: 0 6px; }
.consent-option { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.consent-option + .consent-option { border-top: 1px solid #e2e8f0; }
.consent-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #0056b3; }
.consent-option label { font-weight: 700; color: #181c1e; }
.consent-option small { display: block; font-weight: 400; color: #424752; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Alle Schaltflächen gleich groß und gleich auffällig – kein "Nudging" Richtung Zustimmung */
.consent-actions button {
  flex: 1 1 160px; min-height: 44px; padding: 10px 14px; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 800; border: 2px solid #0056b3; background: #ffffff; color: #003f87;
}
.consent-actions button:hover { background: #d7e2ff; }
