/* Basis für alle Abschnitte: Tokens aus korodur-corporate-design/tokens.css (Version 2.0),
   Kopf, Fuß, Sprachwahl. Abschnittsspezifisches liegt je Abschnitt in einer eigenen Datei. */

/* Schrift Gabarito liegt im Repo, nicht bei Google Fonts (keine externen Hosts).
   Quelle @fontsource/gabarito 5.3.0, Teilmenge latin, Lizenz SIL OFL 1.1 in assets/fonts/OFL.txt. */
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/gabarito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/gabarito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/gabarito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../assets/fonts/gabarito-latin-900-normal.woff2") format("woff2"); }

:root {
  --primary:    #002d59;   /* Navy, Pantone 295 C */
  --secondary:  #009ee3;   /* Cyan, Akzent */
  --cta-hover:  #0090d0;
  --light-gray: #ececed;
  --mid-gray:   #d9dada;
  --white:      #ffffff;
  --text:       #002d59;
  --text-leise: #5a6a7a;
  --font: "Gabarito", Arial, sans-serif;
  --max-w: 1320px;     /* Inhaltsrahmen; Abschnitte nutzen seine volle Breite */
  --text-w: 70ch;      /* Zeilenlänge für Fließtext und Überschriften */
  --btn-radius: 0;     /* keine Rundungen; #2 nutzt das Token weiter */
  --border: 1px solid rgba(0, 45, 89, 0.07);
}

/* Keine Rundungen an Knöpfen, Kästchen und Leisten, auch nicht an Formularelementen mit Browser-Vorgabe. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Sprache: jedes Textpaar trägt class="t" und lang; sichtbar ist nur die Sprache des <html>. */
html[lang="de"] .t[lang="en"],
html[lang="en"] .t[lang="de"] { display: none; }

.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--secondary); color: var(--white);
  padding: 8px 16px; z-index: 10; font-weight: 700;
  border-radius: var(--btn-radius); text-decoration: none;
}
.skip-link:focus { top: 8px; }

.rahmen { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Kopf */
.kopf { border-bottom: var(--border); }
.kopf__innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.kopf__logo img { height: 56px; width: auto; }

.sprachwahl { display: flex; gap: 4px; }
.sprachwahl__knopf {
  font: 700 15px/1 var(--font);
  color: var(--primary); background: transparent;
  border: 2px solid transparent; border-radius: var(--btn-radius);
  padding: 8px 12px; cursor: pointer;
}
.sprachwahl__knopf[aria-pressed="true"] { border-color: var(--primary); }
.sprachwahl__knopf:hover { background: var(--light-gray); }

/* Hauptbereich und Abschnitte */
main { flex: 1 0 auto; }
.abschnitt { padding: 72px 0; }
.abschnitt h1, .abschnitt h2, .abschnitt p { max-width: var(--text-w); }

h1 {
  font-size: 44px; font-weight: 900; line-height: 1.1;
  margin-bottom: 20px;
}

/* Knopf nach CD */
.btn {
  display: inline-block;
  font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.2;
  padding: 16px 30px;
  border-radius: var(--btn-radius);
  background: var(--secondary); color: var(--white);
  text-decoration: none; text-align: center;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--cta-hover); box-shadow: 0 6px 24px rgba(0, 158, 227, 0.28); }

/* Kästchen eckig: das native Kästchen rundet Chrome und Safari unabhängig von border-radius.
   Gilt auch für die Auswahl in #2, samt Zwischenzustand (indeterminate). */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  display: inline-grid; place-content: center; flex: none;
  width: 20px; height: 20px; margin: 0;
  border: 2px solid var(--primary); background: var(--white);
  cursor: pointer;
}
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate { background: var(--secondary); border-color: var(--secondary); }
input[type="checkbox"]:checked::before {
  content: ""; width: 10px; height: 6px;
  border-left: 3px solid var(--white); border-bottom: 3px solid var(--white);
  transform: translateY(-1px) rotate(-45deg);
}
input[type="checkbox"]:indeterminate::before { content: ""; width: 10px; height: 3px; background: var(--white); }

/* Fuß */
.fuss { background: var(--light-gray); font-size: 15px; }
.fuss__innen {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 24px; padding-bottom: 24px;
}
.fuss__links { display: flex; gap: 24px; }
.fuss__links a { color: var(--primary); }

@media (max-width: 768px) {
  .rahmen { padding-left: 20px; padding-right: 20px; }
  .kopf__logo img { height: 44px; }
  .abschnitt { padding: 48px 0; }
  h1 { font-size: 32px; }
  .btn { font-size: 16px; padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
