/* einspunktvier – Grundlagen: Schriften, Farben, Header, Footer */

/* Schriften: BR Firma, nur lokal bis zur Klärung der Weblizenz (siehe CLAUDE.md) */
@font-face { font-family: "BR Firma"; src: url("/assets/fonts/BRFirma-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "BR Firma"; src: url("/assets/fonts/BRFirma-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "BR Firma"; src: url("/assets/fonts/BRFirma-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BR Firma"; src: url("/assets/fonts/BRFirma-Black.otf") format("opentype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "BR Firma"; src: url("/assets/fonts/BRFirma-BlackItalic.otf") format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --dunkelblau: #0c2a3d;
  --gruen: #458b74;
  --senf: #f0ce55;
  --hellgrau: #f5f5f4;
  --linie: #e8e8e8;
  --weiss: #ffffff;

  --inhalt-max: 1560px;
  --rand: clamp(20px, 3vw, 44px);
  --rand-kopf: clamp(16px, 3vw, 40px);
  --kurve: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--dunkelblau);
  font-family: "BR Firma", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gruen); }
img { max-width: 100%; height: auto; }
input, textarea, button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gruen); outline-offset: 3px; }

.inhalt { max-width: var(--inhalt-max); margin: 0 auto; padding-inline: var(--rand); }

/* Sprunglink für Tastatur, nur sichtbar mit Fokus */
.sprunglink {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--dunkelblau); color: var(--weiss);
  padding: 12px 18px; font-weight: 700; font-size: 14px;
}
.sprunglink:focus { top: 12px; color: var(--weiss); }

/* Button grün */
.knopf {
  display: inline-block;
  background: var(--gruen); color: var(--weiss);
  font-weight: 700; font-size: 14px; line-height: 1;
  padding: 12px 22px;
  transition: transform .3s var(--kurve), box-shadow .3s ease;
}
.knopf:hover { color: var(--weiss); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12, 42, 61, .22); }

/* Hover: Fläche hebt sich leicht */
.kachel { transition: transform .35s var(--kurve), box-shadow .35s ease; }
.kachel:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 42, 61, .18); }

/* Platzhalter für fehlende Bilder (Schraffur) */
.platzhalter {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--linie) 0 10px, var(--hellgrau) 10px 20px);
  font-family: ui-monospace, monospace; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(12, 42, 61, .6);
}
.platzhalter--dunkel {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 10px, rgba(255, 255, 255, .02) 10px 20px);
  color: rgba(255, 255, 255, .7); font-size: 12px;
}

/* Link mitten im Fließtext (z. B. Kopftext Lista) */
.textlink-inline { text-decoration: underline; text-decoration-color: var(--gruen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.textlink {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--gruen); padding-bottom: 2px;
  transition: padding .25s ease, color .25s ease;
}
.textlink:hover { padding-bottom: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pause-Knopf für Bewegung (Videos, Animationen). Verhalten in assets/js/pause.js ---------- */
.pauseknopf {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(12, 42, 61, .55); color: var(--weiss);
  cursor: pointer; transition: border-color .25s ease, background-color .25s ease;
}
.pauseknopf[hidden] { display: none; }
.pauseknopf:hover { border-color: var(--weiss); background: rgba(12, 42, 61, .8); }
/* Zeichen: zwei Balken (anhalten) oder Dreieck (abspielen) */
.pauseknopf__zeichen { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.pauseknopf[data-angehalten] .pauseknopf__zeichen {
  width: 0; height: 0; border-right: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor;
  margin-left: 4px;
}
/* Variante auf hellem Grund (Projektleiste der Startseite) */
.pauseknopf--hell { width: 36px; height: 36px; border-color: var(--linie); background: transparent; color: var(--dunkelblau); }
.pauseknopf--hell:hover { border-color: var(--dunkelblau); background: transparent; }
.pauseknopf--hell .pauseknopf__zeichen { width: 10px; height: 12px; border-left-width: 3px; border-right-width: 3px; }
.pauseknopf--hell[data-angehalten] .pauseknopf__zeichen { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 10px; margin-left: 3px; }

/* ---------- Header ---------- */
.kopf { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kopf__innen {
  max-width: var(--inhalt-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.kopf__logo { display: flex; align-items: center; }
.kopf__logo img { height: clamp(24px, 2.6vw, 32px); width: auto; display: block; }
.kopf__aktionen { display: flex; align-items: center; gap: 10px; }

/* hell (Startseite) */
.kopf--hell { background: rgba(255, 255, 255, .88); border-bottom: 1px solid #f0f0ef; }
.kopf--hell .kopf__innen { min-height: clamp(84px, 8vw, 104px); padding: clamp(10px, 1vw, 14px) var(--rand-kopf) 0; }
.kopf__nav { display: flex; gap: clamp(18px, 2.4vw, 30px); font-weight: 500; font-size: 15px; }
.kopf__menueknopf {
  display: none;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--linie); border-radius: 0; background: var(--weiss);
  place-content: center; gap: 5px; cursor: pointer;
}
.kopf__menueknopf span { display: block; width: 18px; height: 2px; background: var(--dunkelblau); }
.kopf__menue {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 20px 22px; border-top: 1px solid #f0f0ef;
  font-weight: 500; font-size: 20px;
}
.kopf__menue[hidden] { display: none; }
.kopf__menue a { padding: 12px 4px; }

@media (max-width: 859.98px) {
  .kopf__nav { display: none; }
  .kopf__menueknopf { display: grid; }
}
@media (min-width: 860px) {
  .kopf__menue { display: none !important; }
}

/* dunkel (Unterseiten) */
.kopf--dunkel { background: rgba(12, 42, 61, .94); border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--weiss); }
.kopf--dunkel .kopf__innen { min-height: clamp(74px, 7vw, 92px); padding: 0 var(--rand-kopf); }
.kopf--dunkel .kopf__aktionen { gap: clamp(14px, 2vw, 26px); }
.kopf--dunkel .knopf:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.kopf__textlink {
  font-weight: 500; font-size: 15px; white-space: nowrap;
  border-bottom: 1px solid var(--gruen); padding-bottom: 2px;
  transition: padding .25s ease, color .25s ease;
}
.kopf__textlink:hover { padding-bottom: 6px; }
.kopf--dunkel .kopf__nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.kopf--dunkel .kopf__nav a:hover, .kopf--dunkel .kopf__nav a[aria-current="page"] { border-bottom-color: var(--gruen); }
.kopf--dunkel .kopf__menueknopf { background: transparent; border-color: rgba(255, 255, 255, .25); }
.kopf--dunkel .kopf__menueknopf span { background: var(--weiss); }
.kopf--dunkel .kopf__menue { border-top-color: rgba(255, 255, 255, .08); }
.kopf--dunkel .kopf__menue a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gruen); text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.fuss__innen {
  max-width: var(--inhalt-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(24px, 3vw, 40px);
  padding: clamp(36px, 4vw, 54px) var(--rand);
  font-size: 14px; font-weight: 300;
}
.fuss__innen > img { height: 26px; width: auto; display: block; }
.fuss__spalte { display: flex; flex-direction: column; gap: 4px; }
.fuss__titel { margin: 0; font-size: inherit; font-weight: 700; }
.fuss__spalte--leise { color: rgba(12, 42, 61, .72); }

/* Tippflächen mind. 24 px hoch (WCAG 2.2, 2.5.8): kleine Links im Footer und bei den Kontaktdaten */
.fuss__spalte a, .ap__kontakt a, .uu-person__kontakt a { display: inline-block; min-height: 24px; padding-block: 3px; line-height: 18px; }
