@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Doto";
  src: url("../fonts/doto.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --beton: #DEDFDC;
  --papier: #EEEFEC;
  --schwarz: #000000;
  --grau: #45474C;
  --linie: #BDBFBB;
  --gehaeuse: #2E3033;
  --gehaeuse-kante: #1F2023;
  --gehaeuse-text: #EEEFEC;
  --gehaeuse-leise: #B9BBB6;
  --akzent: #1E6F5C;
  --violett: #5B3F8C;
  --signal: #B8481A;
  --tafel: #0E2A66;
  --tafel-linie: #2D4786;
  --tafel-zeile: #163578;
  --tafel-leise: #B7C3E0;
  --tafel-gelb: #FFD23F;
  --tafel-orange: #FF9A6B;
  --tafel-gruen: #8FE3B5;
  --lcd: #A9B49A;
  --lcd-text: #1B2412;
  --rand: clamp(20px, 4.5vw, 64px);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --punkt: "Doto", ui-monospace, "Courier New", monospace;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html:not(.js) .nur-js {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--beton);
  color: var(--schwarz);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-stretch: 72%;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--akzent);
}

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

.leitstand :focus-visible,
.tafel :focus-visible,
.fuss :focus-visible {
  outline-color: var(--tafel-gelb);
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--schwarz);
  color: var(--papier);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--papier);
}

.innen {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--rand);
}

.ziffern {
  font-variant-numeric: tabular-nums;
}

.punkt {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: blinken 1.1s infinite;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--schwarz);
  border-radius: 3px;
  background: transparent;
  color: var(--schwarz);
  font-weight: 700;
  text-decoration: none;
}

.knopf:hover {
  background: var(--schwarz);
  color: var(--papier);
}

.knopf-voll {
  background: var(--schwarz);
  color: var(--papier);
}

.knopf-voll:hover {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #FFFFFF;
}

.kopf {
  border-bottom: 3px solid var(--schwarz);
}

.kopf-innen {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 24px;
  min-height: 80px;
  padding-block: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--schwarz);
  text-decoration: none;
}

.logo:hover {
  color: var(--schwarz);
}

.logo-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--schwarz);
  display: grid;
  place-items: center;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo-text span {
  color: var(--akzent);
}

.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.hauptnav a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--schwarz);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.hauptnav a:hover {
  color: var(--akzent);
}

.hauptnav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--schwarz);
}

.nav-zahl {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.kopf-status {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--signal);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.kopf-ereignisse {
  font-size: 0.9375rem;
  color: var(--grau);
  white-space: nowrap;
}

.kopf-ereignisse strong {
  color: var(--schwarz);
}

.pause-knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--schwarz);
  border-radius: 3px;
  background: transparent;
  color: var(--schwarz);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.pause-knopf:hover {
  background: var(--schwarz);
  color: var(--papier);
}

.icon-weiter {
  display: none;
}

.ruhe .icon-weiter {
  display: block;
}

.ruhe .icon-pause {
  display: none;
}

@media (max-width: 1400px) {
  .kopf-ereignisse {
    display: none;
  }
}

@media (max-width: 1080px) {
  .kopf-innen {
    grid-template-columns: 1fr auto;
    padding-bottom: 0;
  }

  .hauptnav {
    grid-column: 1 / -1;
    order: 3;
    margin-inline: calc(var(--rand) * -1);
    border-top: 1px solid var(--linie);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hauptnav::-webkit-scrollbar {
    display: none;
  }

  .hauptnav ul {
    justify-content: flex-start;
    padding: 2px calc(var(--rand) - 12px);
  }
}

@media (max-width: 600px) {
  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .pause-knopf {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .pause-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.ticker {
  display: flex;
  min-height: 48px;
  background: var(--schwarz);
  color: var(--papier);
  overflow: hidden;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 18px;
  background: var(--signal);
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 75%;
}

.ticker-bahn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-band {
  display: flex;
  width: max-content;
  animation: laufband 60s linear infinite;
}

.ticker-band p {
  margin: 0;
  padding-right: 40px;
  white-space: nowrap;
  font-weight: 600;
  font-stretch: 85%;
}

.held {
  padding-top: clamp(32px, 4vw, 52px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.held-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 56px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.held h1 {
  margin: 0;
  font-size: clamp(4rem, 10.4vw, 9.5rem);
  line-height: 0.84;
  font-weight: 850;
  font-stretch: 64%;
  letter-spacing: -0.015em;
}

.wort {
  display: inline-block;
  white-space: nowrap;
}

.wusel .wort span {
  display: inline-block;
  animation: gewusel 1.1s ease-in-out infinite;
}

.wusel .wort span:nth-child(2n) { animation-duration: 0.9s; animation-delay: -0.4s; }
.wusel .wort span:nth-child(3n) { animation-duration: 1.3s; animation-delay: -0.7s; }
.wusel .wort span:nth-child(5n) { animation-duration: 1s; animation-delay: -0.2s; }
.wusel .wort span:nth-child(7n) { animation-duration: 1.45s; animation-delay: -0.55s; }
.wusel .wort + .wort span:nth-child(odd) { animation-delay: -0.85s; }

.intro {
  margin: 0 0 6px;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
}

.leitstand {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
  gap: 28px;
  padding: 20px;
  border-radius: 10px;
  background: var(--gehaeuse);
  color: var(--gehaeuse-text);
}

.monitor {
  min-width: 0;
  padding: 10px;
  border-radius: 7px;
  background: var(--schwarz);
}

.kamera {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #1A1B1E;
}

.szene svg {
  display: block;
  width: 100%;
  height: auto;
}

.rauschen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

.wechsel .rauschen {
  display: block;
  animation: rauschen 0.45s steps(4, end) forwards;
}

.osd {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  font-family: var(--punkt);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.osd-feld {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  background: rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

.osd .punkt {
  background: #FF5A2E;
  animation-duration: 1.2s;
}

.kamera-unten {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 2px 16px 14px;
  background: #1A1B1E;
  color: #D9DAD6;
  font-size: 0.875rem;
}

.kamera-unten .ziffern {
  grid-column: 1 / -1;
  color: #A9ABA6;
}

.bedienfeld {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 6px 4px;
}

.tastenfeld {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.taste {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 150px;
  min-height: 60px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--gehaeuse-kante);
  border-bottom-width: 4px;
  border-radius: 4px;
  background: #474A4F;
  color: var(--gehaeuse-text);
  text-align: left;
}

.taste:hover {
  background: #52565C;
}

.taste[aria-pressed="true"] {
  background: #26282B;
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.taste-nr {
  grid-row: 1 / 3;
  font-family: var(--punkt);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.taste-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.taste-led {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1E2022;
}

.taste[aria-pressed="true"] .taste-led {
  background: #6BE39A;
}

.ausloeser-feld {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.ausloeser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--gehaeuse-text);
}

.kappe {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--signal);
  border: 10px solid var(--gehaeuse-kante);
  box-shadow: 0 7px 0 #7A2E0F inset, 0 0 0 3px #55585D;
  transition: transform 0.08s;
}

.ausloeser:hover .kappe {
  background: #C9531F;
}

.ausloeser:active .kappe,
.ausloeser[aria-disabled="true"] .kappe {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #7A2E0F inset, 0 0 0 3px #55585D;
}

.ausloeser[aria-disabled="true"] {
  cursor: progress;
}

.ausloeser-text {
  max-width: 11em;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.lcd {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 14px 16px;
  border: 4px solid var(--gehaeuse-kante);
  border-radius: 3px;
  background: var(--lcd);
  color: var(--lcd-text);
  font-family: var(--punkt);
  font-weight: 800;
}

.lcd-zeile {
  font-size: 1.0625rem;
  opacity: 0.8;
}

.lcd-text {
  font-size: 1.3125rem;
  line-height: 1.3;
}

.rueck-balken {
  display: none;
  height: 10px;
  margin-top: auto;
  background: rgba(27, 36, 18, 0.15);
}

.am-laden .rueck-balken {
  display: block;
}

.rueck-balken span {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lcd-text) 0 8px, transparent 8px 11px);
}

.am-laden .rueck-balken span {
  animation: fuellen 1.1s steps(12, end) forwards;
}

.drucker {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.drucker-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drucker-titel {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gehaeuse-leise);
}

.drucker-schlitz {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: #121314;
}

.drucker-rolle {
  position: relative;
  flex: 1 1 auto;
  margin: -4px 0 0 calc(0.875rem * 5 + 14px);
  padding: 12px 16px 22px;
  list-style: none;
  overflow: hidden;
  max-height: 250px;
  background: #F3F1EA;
  color: #22211E;
  font-family: var(--punkt);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
}

.drucker-rolle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background:
    linear-gradient(135deg, #F3F1EA 5px, transparent 0) 0 0 / 10px 10px repeat-x,
    linear-gradient(225deg, #F3F1EA 5px, transparent 0) 0 0 / 10px 10px repeat-x;
  background-color: var(--gehaeuse);
}

.drucker-rolle li {
  padding: 3px 0;
  border-bottom: 1px dashed #C9C5B9;
}

.drucker-rolle li:first-child {
  animation: drucken 0.35s steps(5, end);
}

.drucker-rolle .ziffern {
  margin-right: 8px;
  color: #6A675F;
}

.leitstand-status {
  margin: auto 0 0;
  font-size: 0.875rem;
  color: var(--gehaeuse-leise);
}

@media (max-width: 1100px) {
  .held-kopf {
    grid-template-columns: minmax(0, 1fr);
  }

  .leitstand {
    grid-template-columns: minmax(0, 1fr);
  }

  .monitor {
    max-width: 640px;
  }
}

@media (max-width: 640px) {
  .held h1 {
    font-size: clamp(3.5rem, 19vw, 6rem);
  }

  .leitstand {
    padding: 12px;
    gap: 20px;
  }

  .monitor {
    padding: 6px;
  }

  .osd {
    top: 8px;
    left: 8px;
    right: 8px;
    font-size: 0.8125rem;
  }

  .kamera-unten {
    grid-template-columns: minmax(0, 1fr);
    font-size: 0.8125rem;
  }

  .taste {
    min-width: 0;
    flex: 1 1 90px;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 10px;
  }

  .taste-nr {
    grid-row: auto;
    font-size: 1.5rem;
  }

  .ausloeser-feld {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .lcd {
    width: 100%;
  }

  .drucker-rolle {
    margin-left: 0;
  }
}

.akzent-fill {
  fill: var(--akzent);
}

.blase-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  fill: #1A1B1E;
}

.plakette {
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 700;
  font-stretch: 80%;
  fill: #F3F0E8;
}

.wolke { animation: wolke 42s linear infinite; }
.wolke-1 { animation-delay: -12s; }
.wolke-2 { animation-duration: 60s; animation-delay: -40s; }
.wolke-3 { animation-duration: 75s; animation-delay: -5s; }

.licht { animation: licht 7s steps(1, end) infinite; }
.licht-a { animation-duration: 6s; animation-delay: -2s; }
.licht-b { animation-duration: 9.5s; animation-delay: -5s; }
.licht-c { animation-duration: 5s; animation-delay: -1s; }
.licht-d { animation-duration: 11s; animation-delay: -6s; }
.licht-e { animation-duration: 8s; animation-delay: -3s; }
.licht-f { animation-duration: 12s; animation-delay: -9s; }

.flieger {
  animation: fliegen 13s linear infinite;
  animation-delay: -3s;
}

.fluegel {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flattern 0.3s ease-in-out infinite alternate;
}

.taube-pickt {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: picken 3.6s ease-in-out infinite;
}

.taube-pickt-spaet {
  animation-delay: -1.7s;
  animation-duration: 4.2s;
}

.taube-geht {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: spazieren 11s ease-in-out infinite;
}

.kopf-nickt {
  animation: nicken 0.55s ease-in-out infinite;
}

.taube-plustert {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: plustern 5s ease-in-out infinite;
}

.kopf-dreht {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: umdrehen 7s steps(1, end) infinite;
}

.blase { animation: sprechblase 5s ease-in-out infinite; }
.scan { animation: scan 5s linear infinite; }

.wasser {
  stroke-dasharray: 5 6;
  animation: wasser 0.6s linear infinite;
}

.welle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: welle 2.4s ease-out infinite;
}

.welle-2 { animation-delay: -1.2s; }

.blatt {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: blatt 11s linear infinite;
  animation-delay: -4s;
}

.hops {
  transform-box: fill-box;
}

.aufgeschreckt .hops {
  animation: hopsen 0.6s ease-out;
}

.abschnitt {
  padding-bottom: clamp(64px, 7vw, 104px);
}

.abschnitt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
  padding-top: 18px;
  border-top: 3px solid var(--schwarz);
}

.abschnitt-titel {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 0.9;
  font-weight: 850;
  font-stretch: 64%;
}

.stand {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--grau);
}

.protokoll {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  border: 2px solid var(--schwarz);
  background: var(--schwarz);
}

.zelle {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
  background: var(--papier);
}

.zelle h3 {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 750;
  line-height: 1.2;
}

.z-3 { grid-column: span 3; }
.z-4 { grid-column: span 4; }
.z-5 { grid-column: span 5; }
.z-8 { grid-column: span 8; }
.z-12 { grid-column: span 12; }

.notiz {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--grau);
}

.notiz strong {
  color: var(--schwarz);
}

.notiz-klein {
  font-size: 0.875rem;
}

.zelle-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legende {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9375rem;
}

.legende li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.strich {
  width: 20px;
  height: 3px;
  background: var(--akzent);
}

.strich-ereignis {
  background: var(--signal);
}

.verlauf-bild {
  display: block;
  width: 100%;
  height: 210px;
}

.flaeche-aktiv {
  fill: var(--akzent);
  fill-opacity: 0.12;
}

.linie-aktiv {
  stroke: var(--akzent);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.linie-ereignis {
  stroke: var(--signal);
  stroke-width: 3;
}

.achse {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-size: 0.8125rem;
  color: var(--grau);
}

.ereignisse-zelle {
  justify-content: space-between;
}

.zaehlwerk {
  display: flex;
  gap: 6px;
  margin: 0;
  font-size: clamp(4.5rem, 7.5vw, 6.75rem);
  font-weight: 700;
  font-stretch: 70%;
  line-height: 1;
}

.rolle {
  position: relative;
  display: block;
  width: 0.72em;
  height: 1.12em;
  overflow: hidden;
  border-radius: 3px;
  background: var(--schwarz);
  color: #F4F4F0;
  text-align: center;
}

.rolle > span,
.band > span {
  display: block;
  height: 1.12em;
  line-height: 1.12em;
}

.rolle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.band {
  display: block;
  transition: transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.alarm .band {
  transform: translateY(-1.12em);
}

.strichliste {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
}

.kopf-bild {
  display: block;
  width: 118px;
  height: auto;
}

.kopf-wende {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.25s ease;
}

.kopf-wende.links {
  transform: scaleX(-1);
}

.stimmung-skala {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
}

.nadel {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: zittern 2.4s ease-in-out infinite;
}

.skala-enden {
  display: flex;
  justify-content: space-between;
  max-width: 210px;
  margin-top: -8px;
  font-size: 0.8125rem;
  color: var(--grau);
}

.stimmung-wort {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1;
}

.anwesenheit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
  font-size: 0.9375rem;
}

.anwesenheit div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--linie);
}

.anwesenheit dt {
  font-weight: 700;
}

.anwesenheit dd {
  margin: 0;
  text-align: right;
  transition: background-color 0.6s;
}

.anwesenheit dd.frisch {
  background: #F2D98C;
  transition: none;
}

.anwesenheit dd.weg {
  color: var(--grau);
  font-style: italic;
}

.kruemel-bild {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
}

.gurr-bild {
  display: block;
  width: 100%;
  height: 90px;
}

.gurr-lauf {
  animation: gurren 3.2s linear infinite;
}

.laden-zelle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 24px;
  padding-block: 16px;
}

.laden-datei {
  margin: 0;
  font-weight: 600;
}

.laden-wert {
  margin: 0;
  min-width: 3.5em;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 72%;
  text-align: right;
}

.balken {
  height: 22px;
  border: 2px solid var(--schwarz);
  background: var(--papier);
  padding: 2px;
}

.balken-fuellung {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--akzent) 0 12px, transparent 12px 15px);
}

@media (max-width: 1100px) {
  .protokoll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .z-3,
  .z-4,
  .z-5 {
    grid-column: span 1;
  }

  .z-8,
  .z-12 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .protokoll {
    grid-template-columns: minmax(0, 1fr);
  }

  .z-3,
  .z-4,
  .z-5 {
    grid-column: 1 / -1;
  }

  .verlauf-bild {
    height: 160px;
  }

  .laden-zelle {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .laden-zelle h3,
  .laden-zelle .balken {
    grid-column: 1 / -1;
  }
}

.tafel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 6px;
  background: var(--tafel);
  color: #FFFFFF;
}

.tafel-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.tafel-titel {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 0.9;
  font-weight: 850;
  font-stretch: 64%;
}

.tafel-stand {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  color: var(--tafel-leise);
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0;
}

.countdown-label {
  font-size: 0.9375rem;
  color: var(--tafel-leise);
}

.countdown-wert,
.countdown-verschoben {
  font-family: var(--punkt);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--tafel-gelb);
}

.countdown-verschoben {
  color: var(--tafel-orange);
  animation: blinken 0.6s infinite;
}

.tafel-zahlen {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border-top: 1px solid var(--tafel-linie);
  border-bottom: 1px solid var(--tafel-linie);
}

.tafel-zahlen div {
  flex: 1 1 140px;
  padding: 12px 18px 12px 0;
}

.tafel-zahlen div + div {
  padding-left: 18px;
  border-left: 1px solid var(--tafel-linie);
}

.tafel-zahlen dt {
  font-size: 0.875rem;
  color: var(--tafel-leise);
}

.tafel-zahlen dd {
  margin: 2px 0 0;
  font-family: var(--punkt);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.reiter {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--tafel-linie);
}

.reiter-knopf {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--tafel-leise);
  font-weight: 700;
  box-shadow: inset 0 0 0 transparent;
}

.reiter-knopf:hover {
  color: #FFFFFF;
}

.reiter-knopf[aria-selected="true"] {
  color: #FFFFFF;
  box-shadow: inset 0 -4px 0 var(--tafel-gelb);
}

.tabelle-scroll {
  overflow-x: auto;
}

.tafel table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: left;
}

.tafel th {
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--tafel-linie);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tafel-leise);
}

.tafel td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--tafel-linie);
  vertical-align: baseline;
}

.tafel tbody tr:last-child td {
  border-bottom: 0;
}

.tafel th:last-child,
.tafel td:last-child {
  padding-right: 0;
}

.sp-zeit { width: 96px; }
.sp-ort { width: 150px; }
.sp-status { width: 210px; }
.sp-hinweis { width: 280px; }

.zeit {
  font-family: var(--punkt);
  font-size: 1.375rem;
  font-weight: 900;
}

.ereignis {
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 85%;
}

.ort {
  color: var(--tafel-leise);
}

.status {
  font-family: var(--punkt);
  font-size: 1.1875rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-aus { color: var(--tafel-orange); }
.status-spaet { color: var(--tafel-gelb); }
.status-gut { color: var(--tafel-gruen); }
.status-grau { color: var(--tafel-leise); }

.hinweis {
  font-size: 0.9375rem;
  color: var(--tafel-leise);
}

.zeile-live td {
  background: var(--tafel-zeile);
}

.zeile-live td:first-child {
  padding-left: 10px;
}

.blinkt {
  animation: blinken 1.6s infinite;
}

.durchsage {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--tafel-linie);
  line-height: 1.5;
}

.durchsage-label {
  margin-right: 10px;
  font-family: var(--punkt);
  font-weight: 900;
  color: var(--tafel-gelb);
}

@media (max-width: 900px) {
  .sp-hinweis,
  .tafel .hinweis {
    display: none;
  }
}

@media (max-width: 600px) {
  .tafel table {
    min-width: 0;
  }

  .sp-ort,
  .tafel .ort {
    display: none;
  }

  .sp-status {
    width: auto;
  }

  .zeit,
  .status {
    font-size: 1rem;
  }

  .sp-zeit {
    width: 62px;
  }

  .tafel .ereignis {
    font-size: 1.0625rem;
    font-stretch: 75%;
    hyphens: manual;
  }

  .tafel-zahlen {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tafel-zahlen div + div {
    padding-left: 0;
    border-left: 0;
  }

  .tafel-zahlen div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--tafel-linie);
  }

  .tafel-zahlen div:nth-child(n + 3) {
    border-top: 1px solid var(--tafel-linie);
  }

  .status {
    white-space: normal;
  }

  .countdown {
    align-items: flex-start;
  }
}

.aktuell-raster {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  border-bottom: 1px solid var(--linie);
}

.filter-knopf {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--grau);
  font-weight: 600;
}

.filter-knopf:hover {
  color: var(--schwarz);
}

.filter-knopf[aria-pressed="true"] {
  color: var(--schwarz);
  box-shadow: inset 0 -3px 0 var(--schwarz);
}

.meldungsliste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meldungsliste li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--linie);
}

.meldung-zeit {
  padding-top: 3px;
  font-size: 0.875rem;
  color: var(--grau);
}

.meldung-text {
  margin: 0;
  max-width: 44em;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.kat {
  margin-right: 4px;
  font-weight: 800;
  font-stretch: 80%;
  color: var(--akzent);
}

.neu {
  margin-right: 6px;
  font-weight: 800;
  font-stretch: 80%;
  color: var(--signal);
}

.meldung-leer {
  display: block !important;
  padding: 16px 0;
  color: var(--grau);
}

.mehr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.mehr-ende {
  margin: 0;
  color: var(--grau);
}

.seitenleiste {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.spalte {
  padding-top: 12px;
  border-top: 3px solid var(--schwarz);
}

.spalte h3 {
  margin: 0 0 6px;
  font-size: 1.625rem;
  font-weight: 850;
  line-height: 1;
}

.meistgelesen ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meistgelesen li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
}

.rang {
  flex-shrink: 0;
  width: 24px;
  font-size: 2rem;
  font-weight: 850;
  font-stretch: 64%;
  line-height: 1;
  color: var(--akzent);
}

.meist-titel {
  margin: 0;
  font-weight: 650;
  line-height: 1.35;
}

.meist-zahl {
  margin: 3px 0 0;
  font-size: 0.875rem;
  color: var(--grau);
}

.zitat figure,
.zitat blockquote {
  margin: 0;
}

.zitat blockquote p {
  margin: 8px 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  font-stretch: 80%;
  line-height: 1.2;
}

.zitat figcaption {
  font-size: 0.9375rem;
  color: var(--grau);
}

@media (max-width: 1000px) {
  .aktuell-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .meldungsliste li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.fehlerseite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.fehler-code {
  margin: 0;
  font-family: var(--punkt);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--signal);
}

.fehlerseite h1 {
  margin: 0 0 18px;
  font-size: clamp(3.25rem, 8vw, 6.5rem);
  line-height: 0.88;
  font-weight: 850;
  font-stretch: 64%;
}

.fehlerseite p {
  max-width: 32em;
  margin: 0 0 28px;
  font-size: 1.25rem;
}

.fehler-taube {
  width: min(320px, 60vw);
  height: auto;
}

@media (max-width: 800px) {
  .fehlerseite {
    grid-template-columns: minmax(0, 1fr);
  }

  .fehler-taube {
    order: -1;
  }
}

.fuss {
  background: var(--gehaeuse);
  color: var(--gehaeuse-text);
}

.fuss-innen {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: center;
  gap: 32px 56px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.testbild {
  display: block;
  width: 100%;
  height: auto;
  border: 10px solid var(--schwarz);
  border-radius: 14px;
}

.testbild-text {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  font-stretch: 70%;
  fill: #FFFFFF;
}

.fuss-titel {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.9;
  font-weight: 850;
  font-stretch: 64%;
}

.fuss-text p {
  margin: 0 0 12px;
  max-width: 32em;
  font-size: 1.125rem;
}

.fuss a {
  color: var(--gehaeuse-text);
}

.fuss a:hover {
  color: var(--tafel-gelb);
}

.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #4A4D52;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--gehaeuse-leise);
}

@media (max-width: 900px) {
  .fuss-innen {
    grid-template-columns: minmax(0, 1fr);
  }

  .testbild {
    max-width: 520px;
  }
}

.alarm .live,
.alarm .ticker-label {
  animation: alarm 0.3s steps(1, end) 6;
}

.alarm .kopf-ereignisse strong {
  color: var(--signal);
}

.ruhe *,
.ruhe *::before,
.ruhe *::after {
  animation-play-state: paused !important;
}

.ruhe .aufgeschreckt .hops,
.ruhe .am-laden .rueck-balken span,
.ruhe.alarm .live,
.ruhe.alarm .ticker-label {
  animation-play-state: running !important;
}

.ruhe .rauschen {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html:not(.js) *,
  html:not(.js) *::before,
  html:not(.js) *::after {
    animation-play-state: paused !important;
  }

  .aufgeschreckt .hops {
    animation: none;
  }

  .band,
  .kopf-wende {
    transition: none;
  }
}

@keyframes laufband { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blinken { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.2; } }
@keyframes gewusel {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(0, -0.05em) rotate(-4deg); }
  50% { transform: translate(0.025em, 0) rotate(0deg); }
  75% { transform: translate(0, -0.025em) rotate(3deg); }
}
@keyframes wolke { from { transform: translateX(-180px); } to { transform: translateX(620px); } }
@keyframes fliegen {
  0% { transform: translate(-160px, 40px); }
  40% { transform: translate(620px, -30px); }
  100% { transform: translate(620px, -30px); }
}
@keyframes flattern { from { transform: scaleY(1); } to { transform: scaleY(-0.6); } }
@keyframes spazieren {
  0% { transform: translateX(0) scaleX(1); }
  44% { transform: translateX(130px) scaleX(1); }
  50% { transform: translateX(130px) scaleX(-1); }
  94% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}
@keyframes nicken { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
@keyframes picken {
  0%, 52%, 100% { transform: rotate(0deg); }
  60% { transform: rotate(26deg); }
  66% { transform: rotate(6deg); }
  72% { transform: rotate(26deg); }
  82% { transform: rotate(0deg); }
}
@keyframes plustern { 0%, 70%, 100% { transform: scale(1); } 76%, 88% { transform: scale(1.1, 1.07); } }
@keyframes sprechblase {
  0%, 62% { opacity: 0; transform: translateY(8px); }
  70%, 90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes licht { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(540px); } }
@keyframes umdrehen { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes wasser { to { stroke-dashoffset: -22; } }
@keyframes welle { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes blatt {
  0% { transform: translate(-40px, 478px) rotate(0deg); }
  25% { transform: translate(120px, 462px) rotate(200deg); }
  50% { transform: translate(280px, 486px) rotate(380deg); }
  75% { transform: translate(440px, 466px) rotate(560deg); }
  100% { transform: translate(620px, 480px) rotate(720deg); }
}
@keyframes hopsen {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  70% { transform: translateY(0); }
  85% { transform: translateY(-5px); }
}
@keyframes rauschen { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fuellen { to { width: 100%; } }
@keyframes alarm { 0% { background: #000000; } 50% { background: #B8481A; } }
@keyframes zittern {
  0%, 100% { transform: rotate(-34deg); }
  30% { transform: rotate(-18deg); }
  55% { transform: rotate(-28deg); }
  80% { transform: rotate(-12deg); }
}
@keyframes drucken { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes gurren { from { transform: translateX(0); } to { transform: translateX(-300px); } }
