/* Menüheld Status — 1:1 im Design von menuheld.de (Landing v4, Unterseiten wie /impressum):
   schwebende Pill-Navigation, gelber Kopf mit runder Unterkante, lila Fußzeile.
   Werte aus src/app/_components/landing/v4 (Nav.tsx, Logo.tsx, Fusszeile.tsx, Hero.tsx PillCta)
   und src/app/(website)/(legal). Nur hell — die Website hat keinen Dunkelmodus. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/static/fonts/caveat-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --tinte: #111;
  --tinte-80: rgba(17, 17, 17, 0.8);
  --tinte-70: rgba(17, 17, 17, 0.7);
  --tinte-60: rgba(17, 17, 17, 0.6);
  --tinte-50: rgba(17, 17, 17, 0.5);
  --tinte-10: rgba(17, 17, 17, 0.1);
  --tinte-05: rgba(17, 17, 17, 0.05);
  --gelb: #ffd23f;
  --gelb-hell: #fff3b8;
  --mint: #2ec4b6;
  --pink: #e0157a;
  --pink-dunkel: #c4106a;
  --lila: #3b1e8c;
  --orange: #ff8a1e;
  --blau: #60a5fa;

  /* Status: Farben aus der Website-Palette; Text-Varianten mit genug Kontrast auf Weiß */
  --ok: var(--mint);
  --ok-text: #0b7d73;
  --warn: var(--orange);
  --warn-text: #b4530a;
  --stoer: var(--pink);
  --stoer-text: var(--pink-dunkel);
  --wartung: var(--blau);
  --wartung-text: #1d5fc2;
  --leer: #ecebe6;

  --display: "Bricolage Grotesque", "Geist", Arial, sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", cursive;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ol, ul, dl, dd {
  margin: 0;
}
ol, ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--lila);
  outline-offset: 3px;
  border-radius: 8px;
}
svg {
  display: block;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--tinte);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus {
  top: 16px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.nur-schmal {
  display: none;
}
@media (max-width: 639px) {
  .nur-breit {
    display: none;
  }
  .nur-schmal {
    display: inline;
  }
}

/* ── Logo (Logo.tsx) ─────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-kachel {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  /* Neues Markenzeichen (09.11.2026): gelbe Kachel mit dunklem M, wie App-Icons und Favicon */
  background: linear-gradient(180deg, #ffe27a 0%, #ffd23f 55%, #ffb21e 100%);
  color: #16121f;
  transform: rotate(-8deg);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.logo-kachel svg {
  width: 24px;
  height: auto;
}
.logo-wort {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.045em;
  color: var(--tinte);
}
.logo--gross .logo-kachel {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.logo--gross .logo-kachel svg {
  width: 36px;
}
.logo--gross .logo-wort {
  font-size: 36px;
  line-height: 40px;
}
.logo--hell .logo-wort {
  color: #fff;
}
.nav-logo:hover .logo-kachel {
  transform: rotate(4deg);
}
@media (prefers-reduced-motion: reduce) {
  .logo-kachel {
    transition: none;
  }
}

/* ── Navigation (Nav.tsx) ────────────────────────────── */
.nav-huelle {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 50;
  padding: 0 16px;
}
.nav {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  padding: 8px 12px 8px 24px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-huelle.fest .nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.25);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-status {
  border-radius: 999px;
  background: var(--gelb-hell);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--tinte);
}
.nav-rechts {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-leise {
  display: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tinte-60);
  transition: color 0.15s;
}
.nav-leise:hover {
  color: var(--tinte);
}
@media (min-width: 1024px) {
  .nav-leise {
    display: inline-block;
  }
}

/* PillCta (Hero.tsx), Farbe „ink“ */
.cta {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  line-height: 28px;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: transform 0.15s;
}
.cta::-webkit-details-marker {
  display: none;
}
.cta:hover {
  transform: translateY(-2px);
}
.cta-text {
  background: var(--tinte);
  padding: 14px 24px;
  white-space: nowrap;
}
.cta-pfeil {
  display: grid;
  place-items: center;
  background: #2a2a2a;
  padding: 0 16px;
  transition: padding 0.15s;
}
.cta:hover .cta-pfeil {
  padding: 0 20px;
}
.cta-pfeil svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.abo[open] .cta-pfeil svg {
  transform: rotate(180deg);
}
@media (max-width: 639px) {
  .cta {
    font-size: 16px;
  }
  .cta-text {
    padding: 11px 18px;
  }
  .cta-pfeil {
    padding: 0 13px;
  }
  .nav {
    padding-left: 16px;
  }
  .nav-status {
    font-size: 12px;
    padding: 5px 10px;
  }
}
@media (max-width: 639px) {
  .nav-status {
    display: none;
  }
}

.abo {
  position: relative;
}
.abo-menue {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 270px;
  max-width: calc(100vw - 32px);
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--tinte-05);
}
.abo-menue a {
  display: block;
  border-radius: 20px;
  padding: 12px 16px;
  transition: background 0.15s;
}
.abo-menue a:hover,
.abo-menue a:focus-visible {
  background: var(--gelb-hell);
}
.abo-menue b {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.abo-menue span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-70);
}

/* ── Kopf (LegalKopf) ────────────────────────────────── */
.kopf {
  background: var(--gelb);
  border-radius: 0 0 56px 56px;
  padding: 144px 0 64px;
}
@media (min-width: 640px) {
  .kopf {
    padding: 160px 0 80px;
  }
}
.kopf-notiz {
  font-family: var(--hand);
  font-size: 24px;
  line-height: 32px;
  color: var(--lila);
  transform: rotate(-2deg);
  transform-origin: left center;
}
@media (min-width: 640px) {
  .kopf-notiz {
    font-size: 30px;
    line-height: 36px;
  }
}
.kopf-titel {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--tinte);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.kopf-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 0.82em;
  height: 0.82em;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
}
.kopf-icon svg {
  width: 62%;
  height: 62%;
}
.kopf-icon--ok {
  background: var(--mint);
  color: var(--tinte);
}
.kopf-icon--eingeschraenkt {
  background: var(--orange);
  color: var(--tinte);
}
.kopf-icon--ausfall {
  background: var(--pink);
}
.kopf-icon--wartung {
  background: var(--blau);
  color: var(--tinte);
}
.kopf-icon--unbekannt {
  background: rgba(255, 255, 255, 0.7);
  color: var(--tinte);
}
.kopf-stand {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.punkt {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--tinte-50);
}
.punkt--ok,
.komp-status--ok .punkt {
  background: var(--ok);
}
.punkt--eingeschraenkt,
.komp-status--eingeschraenkt .punkt {
  background: var(--warn);
}
.punkt--ausfall,
.komp-status--ausfall .punkt {
  background: var(--stoer);
}
.punkt--wartung,
.komp-status--wartung .punkt {
  background: var(--wartung);
}

/* ── Inhalt ──────────────────────────────────────────── */
.haupt {
  padding-top: 64px;
  padding-bottom: 96px;
}
@media (min-width: 640px) {
  .haupt {
    padding-top: 96px;
    padding-bottom: 128px;
  }
}
.abschnitt + .abschnitt {
  margin-top: 72px;
}
.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 20px;
}
.abschnitt-titel {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) {
  .abschnitt-titel {
    font-size: 30px;
  }
}
.abschnitt-zusatz {
  font-size: 14px;
  font-weight: 600;
  color: var(--tinte-50);
}
.leer {
  font-size: 15px;
  font-weight: 500;
  color: var(--tinte-50);
}

/* Komponenten */
.komp-liste {
  border: 1px solid var(--tinte-10);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}
.komp {
  padding: 24px 28px 22px;
}
.komp + .komp {
  border-top: 1px solid var(--tinte-10);
}
@media (max-width: 639px) {
  .komp {
    padding: 20px 20px 18px;
  }
}
.komp-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.komp-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.komp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.komp-status--ok {
  color: var(--ok-text);
}
.komp-status--eingeschraenkt {
  color: var(--warn-text);
}
.komp-status--ausfall {
  color: var(--stoer-text);
}
.komp-status--wartung {
  color: var(--wartung-text);
}
.komp-status--unbekannt {
  color: var(--tinte-50);
}

.leiste {
  display: flex;
  gap: 3px;
  height: 36px;
  margin-top: 16px;
  border-radius: 4px;
}
.leiste:focus-visible {
  outline-offset: 4px;
}
.tag {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 3px;
  background: var(--leer);
  transition: opacity 0.12s;
}
.tag--ok {
  background: var(--ok);
}
.tag--eingeschraenkt {
  background: var(--warn);
}
.tag--ausfall {
  background: var(--stoer);
}
.tag--wartung {
  background: var(--wartung);
}
.leiste.aktiv .tag:not(.an) {
  opacity: 0.45;
}
@media (max-width: 639px) {
  .leiste .tag:nth-child(-n + 60) {
    display: none;
  }
}
.komp-fuss {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tinte-50);
  white-space: nowrap;
}
.komp-linie {
  flex: 1;
  height: 1px;
  background: var(--tinte-10);
}

/* Tooltip der Tagesleiste */
.tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--tinte);
  color: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 260px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s;
}
.tip.zeigen {
  opacity: 1;
  transform: none;
}
.tip strong {
  display: block;
  font-weight: 700;
}
.tip span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
}

/* Aktuelle Meldungen / geplante Wartungen (Infokästen wie im Impressum) */
.karten {
  display: grid;
  gap: 12px;
}
.karte {
  border-radius: 24px;
  background: var(--gelb-hell);
  padding: 24px;
}
.karte-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.marke {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
}
.marke--ausfall {
  background: var(--pink);
  color: #fff;
}
.marke--eingeschraenkt {
  background: var(--orange);
  color: var(--tinte);
}
.marke--wartung {
  background: var(--blau);
  color: var(--tinte);
}
.karte-zeit {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-60);
}
.karte-titel {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.karte-titel a:hover,
.vf-titel a:hover,
.upd-titel a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.karte-text,
.detail-text,
.upd-text,
.zl-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tinte-80);
}
.karte-text {
  margin-top: 8px;
}
.karte-text p + p,
.detail-text p + p,
.upd-text p + p,
.zl-text p + p {
  margin-top: 12px;
}
.karte-text ul,
.detail-text ul,
.upd-text ul,
.zl-text ul {
  list-style: disc;
  padding-left: 20px;
}
.karte-text a,
.detail-text a,
.upd-text a,
.zl-text a {
  color: var(--lila);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.karte-betroffen {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-60);
}

/* Vorfallverlauf nach Tagen */
.tag-block {
  border-top: 1px solid var(--tinte-10);
  padding: 20px 0;
}
.tage .tag-block:last-child {
  border-bottom: 1px solid var(--tinte-10);
}
.tag-datum {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.vf + .vf {
  margin-top: 20px;
}
.vf-datum {
  font-size: 13px;
  font-weight: 600;
  color: var(--tinte-50);
  margin-bottom: 2px;
}
.vf-titel {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.vf--ausfall .vf-titel {
  color: var(--stoer-text);
}
.vf--eingeschraenkt .vf-titel {
  color: var(--warn-text);
}
.vf--wartung .vf-titel {
  color: var(--wartung-text);
}
.vf-updates li {
  margin-top: 10px;
}
.vf-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tinte-80);
}
.vf-text b {
  color: var(--tinte);
  font-weight: 700;
}
.vf-updates time {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--tinte-50);
}
.mehr {
  margin-top: 24px;
}
.mehr a,
.zurueck a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.mehr a span,
.zurueck a span {
  display: inline-block;
  transition: transform 0.15s;
}
.mehr a:hover span {
  transform: translateX(4px);
}
.zurueck {
  margin-bottom: 40px;
}
.zurueck a {
  font-size: 15px;
  color: var(--tinte-70);
}
.zurueck a:hover {
  color: var(--tinte);
}
.zurueck a:hover span {
  transform: translateX(-4px);
}

/* Detailseite */
.fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 24px;
  border-radius: 24px;
  background: var(--gelb-hell);
  padding: 24px;
}
.fakten dt {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tinte-60);
}
.fakten dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}
.detail-text {
  margin-top: 32px;
  max-width: 72ch;
}
.zeitleiste {
  margin-top: 40px;
  max-width: 72ch;
}
.zeitleiste li {
  position: relative;
  padding: 0 0 28px 24px;
  border-left: 2px solid var(--tinte-10);
}
.zeitleiste li:last-child {
  padding-bottom: 0;
}
.zeitleiste li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--tinte);
}
.zl-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.zl-kopf b {
  font-weight: 700;
}
.zl-kopf time {
  font-size: 13px;
  font-weight: 500;
  color: var(--tinte-50);
}
.zl-text {
  margin-top: 4px;
}

/* Updates */
.upd {
  display: grid;
  gap: 6px 32px;
  border-top: 1px solid var(--tinte-10);
  padding: 24px 0;
}
.upd:last-child {
  border-bottom: 1px solid var(--tinte-10);
}
@media (min-width: 768px) {
  .upd {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
.upd-datum {
  font-size: 14px;
  font-weight: 700;
  color: var(--tinte-60);
  padding-top: 3px;
}
.upd-titel {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.upd-text {
  margin-top: 6px;
  max-width: 68ch;
}

/* ── Fußzeile (Fusszeile.tsx auf lila Grund) ─────────── */
.fuss {
  overflow: hidden;
  border-radius: 56px 56px 0 0;
  background: var(--lila);
  color: #fff;
  padding: 56px 20px 40px;
}
@media (min-width: 640px) {
  .fuss {
    padding: 56px 32px 40px;
  }
}
.fuss-wrap {
  max-width: 1152px;
  margin: 0 auto;
}
.fuss-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 1024px) {
  .fuss-raster {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  }
}
.fuss-claim {
  margin-top: 12px;
  max-width: 320px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
}
.fuss-kontakt {
  margin-top: 24px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.fuss-kontakt a {
  color: rgba(255, 255, 255, 0.85);
}
.fuss-kontakt a:hover {
  color: #fff;
}
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
}
@media (min-width: 640px) {
  .fuss-spalten {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fuss-titel {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gelb);
}
.fuss-spalten ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.fuss-spalten a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}
.fuss-spalten a:hover {
  color: #fff;
}
.fuss-unten {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 640px) {
  .fuss-unten {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.fuss-recht {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.fuss-recht a:hover {
  color: #fff;
}
.fuss-schriftzug {
  pointer-events: none;
  user-select: none;
  margin: 32px 0 -0.2em;
  white-space: nowrap;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 19vw, 15.5rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.07);
}

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

/* Sehr schmale Handys: Knopf ohne Pfeil-Segment, damit Logo und Knopf nebeneinander passen. */
@media (max-width: 439px) {
  .cta {
    font-size: 15px;
  }
  .cta-text {
    padding: 10px 16px;
  }
  .cta-pfeil {
    display: none;
  }
  .nav {
    gap: 8px;
    padding: 8px 8px 8px 14px;
  }
}


/* ── Kennzahlen (10.11.2026) ─────────────────────────── */
.kz-abschnitt {
  padding-bottom: 0;
}
.kz-leiste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .kz-leiste {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.kz {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--tinte-10);
  border-radius: 22px;
  background: #fff;
}
.kz-wert {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kz-label {
  font-size: 14px;
  font-weight: 700;
}
.kz-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--tinte-50);
}
.kz-fuss {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tinte-50);
}

/* ── Antwortzeiten-Diagramme ─────────────────────────── */
.dg-liste {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .dg-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dg-karte {
  min-width: 0;
  padding: 20px 22px 14px;
  border: 1px solid var(--tinte-10);
  border-radius: 24px;
  background: #fff;
}
.dg-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  margin-bottom: 8px;
}
.dg-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.dg-werte {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--tinte-60);
  font-variant-numeric: tabular-nums;
}
.dg-werte b {
  color: var(--tinte);
}
.dg-flaeche-wrap {
  position: relative;
}
.dg {
  display: block;
  width: 100%;
  height: 170px;
  overflow: visible;
  touch-action: pan-y;
}
.dg-raster {
  stroke: var(--tinte-10);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dg-y,
.dg-x {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--tinte-50);
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  visibility: hidden; /* bis app.js positioniert (CSP erlaubt keine style-Attribute) */
}
.dg-y.platziert,
.dg-x.platziert {
  visibility: visible;
}
.dg-y {
  transform: translate(-100%, -50%);
}
.dg-x {
  transform: translateX(-50%);
}
.dg-x--tag {
  font-weight: 700;
  color: var(--tinte-70);
}
.dg-linie {
  fill: none;
  stroke: var(--lila);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dg-flaeche {
  fill: rgba(59, 30, 140, 0.08);
}
.dg-cursor {
  stroke: var(--tinte-50);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

/* Ruhige Tage im Vorfallverlauf, zusammengefasst */
.tag-block--ruhig .leer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ruhe-haken {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
}
.ruhe-haken svg {
  width: 13px;
  height: 13px;
}
