/* nexura-kommunal.de — Gestaltung nach nexura.gmbh */
@font-face {
  font-family: Archivo;
  src: url(fonts/archivo-var.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --blauschwarz: #121824;
  --anthrazit: #1f2532;
  --blaugrau: #646771;
  --hellgrau: #f4f4f5;
  --weiss: #ffffff;
  --signalgelb: #fcff71;
  --gruen: #00d392;
  --blau: #31a7ff;
  --rand: clamp(16px, 4vw, 48px);
  --breite: 1440px;
  --kopf-h: 72px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --grund: var(--hellgrau);
  --flaeche: var(--weiss);
  --flaeche-2: #e9e9ec;
  --text: var(--blauschwarz);
  --text-2: var(--blaugrau);
  --linie: rgb(18 24 36 / 0.12);
  --linie-stark: rgb(18 24 36 / 0.28);
  --tafel: var(--blauschwarz);
  --tafel-text: var(--hellgrau);
  --fokus: var(--blauschwarz);
  --kopf-grund: rgb(244 244 245 / 0.86);
  --schatten: 0 24px 60px -28px rgb(18 24 36 / 0.35);
  --schatten-gross: 0 50px 110px -44px rgb(18 24 36 / 0.55);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: var(--blauschwarz);
    --flaeche: var(--anthrazit);
    --flaeche-2: #283042;
    --text: var(--hellgrau);
    --text-2: #a3a6af;
    --linie: rgb(244 244 245 / 0.12);
    --linie-stark: rgb(244 244 245 / 0.3);
    --tafel: #0c111b;
    --fokus: var(--signalgelb);
    --kopf-grund: rgb(18 24 36 / 0.86);
    --schatten: 0 24px 60px -28px rgb(0 0 0 / 0.7);
    --schatten-gross: 0 50px 110px -44px rgb(0 0 0 / 0.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: var(--blauschwarz);
  --flaeche: var(--anthrazit);
  --flaeche-2: #283042;
  --text: var(--hellgrau);
  --text-2: #a3a6af;
  --linie: rgb(244 244 245 / 0.12);
  --linie-stark: rgb(244 244 245 / 0.3);
  --tafel: #0c111b;
  --fokus: var(--signalgelb);
  --kopf-grund: rgb(18 24 36 / 0.86);
  --schatten: 0 24px 60px -28px rgb(0 0 0 / 0.7);
  --schatten-gross: 0 50px 110px -44px rgb(0 0 0 / 0.9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font: 400 17px/1.55 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }

.sprung {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--signalgelb); color: var(--blauschwarz);
  padding: 10px 18px; border-radius: 999px; font-weight: 650; text-decoration: none;
}
.sprung:focus { top: 12px; }

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

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  font: 650 16px/1 Archivo, system-ui, sans-serif; font-stretch: 106%;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s;
}
.knopf:active { transform: scale(0.97); }
.knopf--primaer { background: var(--signalgelb); color: var(--blauschwarz); }
.knopf--primaer:hover { background: #f4f85a; }
.knopf--sekundaer { background: transparent; color: var(--text); border-color: var(--linie-stark); }
.knopf--sekundaer:hover { border-color: var(--text); }
.knopf--gross { height: 60px; padding: 0 36px; font-size: 18px; }
.knopf--klein { height: 40px; padding: 0 18px; font-size: 15px; }
.knopf svg { width: 1em; height: 1em; flex: none; }

/* Kopf */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.kopf.ist-unten {
  background: var(--kopf-grund);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--linie);
}
.kopf__innen { height: 100%; display: flex; align-items: center; gap: 8px; }
.marke { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: var(--text); }
.marke__signet { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.marke__wort { height: 20px; width: 104px; }
.kopf__nav { display: flex; align-items: center; gap: 2px; margin-right: 10px; }
.kopf__nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 560; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.kopf__nav a:hover { color: var(--text); background: rgb(127 127 127 / 0.12); }
.thema {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1.5px solid var(--linie);
  cursor: pointer; margin-left: 4px;
}
.thema:hover { border-color: var(--linie-stark); }
.thema svg { width: 18px; height: 18px; }
.thema .sonne { display: none; }
:root[data-theme="dark"] .thema .sonne { display: block; }
:root[data-theme="dark"] .thema .mond { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thema .sonne { display: block; }
  :root:not([data-theme="light"]) .thema .mond { display: none; }
}

/* Held mit Film */
.held {
  padding-top: calc(var(--kopf-h) + clamp(20px, 3.4vh, 44px));
  padding-bottom: clamp(48px, 7vw, 96px);
  background: radial-gradient(90% 70% at 50% 0%, var(--flaeche) 0%, transparent 70%);
}
.held__text { text-align: center; max-width: 1040px; margin-inline: auto; }
.dach {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
}
.dach::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--signalgelb); box-shadow: 0 0 0 1px rgb(18 24 36 / 0.25); }
h1 {
  margin-top: 12px;
  font-weight: 840; font-stretch: 114%;
  font-size: clamp(2.05rem, 4.5vw, 3.9rem);
  line-height: 0.97; letter-spacing: -0.035em;
  text-wrap: balance;
}
.held__lead {
  margin: 18px auto 0; max-width: 62ch;
  color: var(--text-2); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.5;
  text-wrap: pretty;
}

.film {
  margin: clamp(22px, 3.4vh, 36px) auto 0;
  width: 100%;
  max-width: max(680px, min(1280px, calc((100svh - 300px) * 16 / 9)));
}
.film__rahmen {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  background: #0c111b;
  box-shadow: var(--schatten-gross), 0 0 0 1px var(--linie);
}
.film__rahmen video { width: 100%; height: 100%; object-fit: contain; background: #0c111b; }
.film__start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(rgb(12 17 27 / 0.08), rgb(12 17 27 / 0.34));
  border: 0; padding: 0; cursor: pointer; color: #fff;
  font: 650 16px/1 Archivo, system-ui, sans-serif; font-stretch: 106%;
}
.film__start[hidden] { display: none; }
.film__start i {
  --g: clamp(64px, 8vw, 104px);
  width: var(--g); height: var(--g); flex: none; border-radius: 50%;
  background: var(--signalgelb); color: var(--blauschwarz);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 44px -12px rgb(0 0 0 / 0.55);
  transition: transform 0.3s var(--ease-out);
}
.film__start i svg { width: 36%; height: 36%; margin-left: 6%; }
.film__start:hover i { transform: scale(1.06); }
.film__start:active i { transform: scale(0.97); }
.film__start span {
  background: rgb(12 17 27 / 0.82); padding: 9px 16px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.film__leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; font-size: 15px; color: var(--text-2);
}
.film__leiste .knopf[aria-pressed="true"] { background: var(--text); color: var(--grund); border-color: var(--text); }

.kapitel { margin: 22px auto 0; max-width: 1280px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kapitel a {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  background: var(--flaeche); box-shadow: 0 0 0 1px var(--linie);
  font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s;
}
.kapitel a time { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 500; }
.kapitel a:hover { box-shadow: 0 0 0 1.5px var(--linie-stark); }
.kapitel a.ist-an { background: var(--signalgelb); color: var(--blauschwarz); box-shadow: none; }
.kapitel a.ist-an time { color: rgb(18 24 36 / 0.7); }

/* Erklärungen */
.inhalt { padding-block: clamp(56px, 8vw, 128px) clamp(24px, 4vw, 56px); }
.inhalt__kopf { max-width: 760px; margin-bottom: clamp(28px, 4vw, 56px); }
h2 {
  font-weight: 830; font-stretch: 112%;
  font-size: clamp(1.9rem, 3.6vw, 2.88rem);
  line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.inhalt__kopf p { margin-top: 16px; color: var(--text-2); max-width: 54ch; }

.abschnitt {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 88px); align-items: center;
  padding-block: clamp(36px, 5.2vw, 76px);
  border-top: 1px solid var(--linie);
}
.abschnitt__nr {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 9px; border-radius: 10px;
  background: var(--signalgelb); color: var(--blauschwarz);
  font-weight: 800; font-stretch: 112%; font-size: 16px; font-variant-numeric: tabular-nums;
}
h3 {
  margin-top: 18px;
  font-weight: 780; font-stretch: 112%;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance;
}
.abschnitt p { margin-top: 14px; color: var(--text-2); max-width: 52ch; text-wrap: pretty; }
.abschnitt p + p { margin-top: 10px; }
.abschnitt .knopf { margin-top: 22px; }
.abschnitt .knopf time { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-2); }

.bild {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #0c111b;
  box-shadow: var(--schatten), 0 0 0 1px var(--linie);
}
.bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.bild::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--signalgelb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.2v13.6L19 12z' fill='%23121824'/%3E%3C/svg%3E") 55% 50% / 46% no-repeat;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.5);
  opacity: 0; transform: scale(0.85); transition: opacity 0.25s, transform 0.3s var(--ease-out);
}
.bild:hover img { transform: scale(1.015); }
.bild:hover::after, .bild:focus-visible::after { opacity: 1; transform: none; }

/* Schluss */
.schluss { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 112px); }
.schluss__tafel {
  background: var(--tafel); color: var(--tafel-text);
  border-radius: 14px; padding: clamp(32px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end;
  box-shadow: var(--schatten);
}
.schluss__tafel p { margin-top: 0; color: #c2c5cd; max-width: 46ch; }
.schluss__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.schluss__tafel .knopf--sekundaer { color: var(--hellgrau); border-color: rgb(244 244 245 / 0.3); }
.schluss__tafel .knopf--sekundaer:hover { border-color: var(--hellgrau); }
.schluss__tafel :focus-visible { outline-color: var(--signalgelb); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); }
.fuss__innen {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px clamp(24px, 5vw, 80px); padding-block: 56px 28px;
}
.fuss__marke .marke__signet { width: 40px; height: 40px; }
.fuss__marke .marke__wort { display: block; margin-top: 14px; height: 24px; width: 125px; }
.fuss__marke p { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 34ch; }
.fuss nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.fuss nav h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; font-stretch: 106%; letter-spacing: 0; line-height: 1.4; }
.fuss nav a { color: var(--text-2); text-decoration: none; width: fit-content; }
.fuss nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fuss__hinweis {
  grid-column: 1 / -1; border-top: 1px solid var(--linie); padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 13px; color: var(--text-2);
}

/* Schmal */
@media (max-width: 900px) {
  .kopf__nav { display: none; }
  .abschnitt { grid-template-columns: 1fr; gap: 22px; }
  .abschnitt__bild { order: -1; }
  .schluss__tafel { grid-template-columns: 1fr; align-items: start; }
  .fuss__innen { grid-template-columns: 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --kopf-h: 64px; }
  .marke__signet { width: 38px; height: 38px; }
  .marke__wort { height: 17px; width: 88px; }
  .kopf .knopf { height: 40px; padding: 0 16px; font-size: 15px; }
  .thema { display: none; }
  .film { max-width: none; }
  .film__rahmen, .bild { border-radius: 10px; }
  .film__start span { display: none; }
  .kapitel { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--rand) * -1); padding: 4px var(--rand) 10px; scrollbar-width: none; }
  .kapitel::-webkit-scrollbar { display: none; }
  .kapitel a { white-space: nowrap; flex: none; }
  .schluss__aktionen .knopf { width: 100%; }
}

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