/* Tallygate - statische Seite. Keine externen Schriften, keine Frameworks. Mobil zuerst. */
:root {
  --navy: #0A2A5E;      /* Tiefblau, Kontrast auf Weiss 13,95:1 */
  --text: #14213D;
  --grau: #4A5568;      /* auf Weiss ca. 7,5:1 */
  --hell: #F2F5F9;
  --linie: #CBD2DD;
  --blau: #1E6BFF;      /* Ampelfarben exakt wie anzeige.FARBEN */
  --gruen: #1FA64A;
  --gelb: #FFC400;
  --rot: #E5252A;
  --fokus: #FFC400;
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--fokus); }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

/* Kopf */
header.site { border-bottom: 1px solid var(--linie); background: #fff; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
header.site .logo img { display: block; height: 2.25rem; width: auto; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
nav a { display: inline-block; padding: .55rem 0; min-height: 44px; text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
nav a[aria-current] { text-decoration: underline; }

/* Held */
.hero { background: var(--navy); color: #fff; padding: 3rem 0 3.25rem; }
.hero .eyebrow { margin: 0 0 .5rem; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #C9D3E6; }
.hero h1 .eyebrow { display: block; font-weight: 400; line-height: 1.6; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.2rem, 8vw, 3.75rem); line-height: 1.08; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.25rem; max-width: 36rem; margin: 0 0 1.5rem; }
.status { display: inline-block; margin: 0 0 1.75rem; padding: .5rem .85rem; border-left: 6px solid var(--gruen); background: rgba(255,255,255,.1); font-size: 1rem; }
.btn { display: inline-block; min-height: 48px; padding: .75rem 1.4rem; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; border: 2px solid #fff; border-radius: 4px; }
.btn:hover { background: var(--fokus); border-color: var(--fokus); }
.btn.dunkel { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.dunkel:hover { background: #fff; color: var(--navy); }

.btn.rand { background: transparent; color: #fff; border-color: #C9D3E6; margin-left: .5rem; }
.btn.rand:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero-raster { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.hero-bild svg { display: block; width: 100%; height: auto; max-width: 32rem; margin: 0 auto; }
.hero-bild .bildtext { margin: .5rem auto 0; max-width: 32rem; font-size: .85rem; color: #C9D3E6; text-align: center; }

/* Bewegtes Kopfbild: eine Person geht hinein, eine hinaus, der Zähler folgt. Ohne Bewegung bleibt das Standbild. */
.hero-bild .zahl-b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-bild .geht-ein { animation: geht-ein 10s linear infinite; }
  .hero-bild .geht-aus { animation: geht-aus 10s linear infinite; }
  .hero-bild .zahl-a { animation: zahl-a 10s linear infinite; }
  .hero-bild .zahl-b { animation: zahl-b 10s linear infinite; }
}
@keyframes geht-ein {
  0% { transform: translateY(46px); opacity: 0; } 6% { opacity: 1; }
  40% { transform: translateY(-26px); opacity: 1; } 46%, 100% { transform: translateY(-30px); opacity: 0; }
}
@keyframes geht-aus {
  0%, 50% { transform: translateY(-34px); opacity: 0; } 56% { opacity: 1; }
  90% { transform: translateY(36px); opacity: 1; } 96%, 100% { transform: translateY(40px); opacity: 0; }
}
@keyframes zahl-a { 0%, 24.9% { opacity: 1; } 25%, 74.9% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes zahl-b { 0%, 24.9% { opacity: 0; } 25%, 74.9% { opacity: 1; } 75%, 100% { opacity: 0; } }

/* Schaubild im Abschnitt System: am Handy zu klein zum Lesen, dort stehen die Karten darunter für sich */
.schaubild { display: none; max-width: none; margin: 1.5rem 0 2rem; }
.schaubild img { display: block; width: 100%; height: auto; }

/* Kennzahlen unter dem Kopfbild */
.zahlen { background: #fff; border-bottom: 1px solid var(--linie); }
.zahlen ul { list-style: none; margin: 0; padding: 1.25rem 0; max-width: none; display: grid; gap: 1rem 1.5rem; grid-template-columns: 1fr 1fr; }
.zahlen li { display: flex; gap: .75rem; align-items: baseline; }
.zahlen strong { flex: none; min-width: 1.6rem; font-size: 2.2rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.zahlen span { font-size: .95rem; color: var(--grau); }

/* Abschnitte */
section { padding: 2.75rem 0; }
section.hell { background: var(--hell); }
h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.2; color: var(--navy); }
h3 { margin: 0 0 .5rem; font-size: 1.2rem; color: var(--navy); }
p, ul, ol { margin: 0 0 1rem; max-width: 46rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.karte { background: #fff; border: 1px solid var(--linie); border-top: 5px solid var(--navy); padding: 1.1rem 1.25rem; }
.karte ul { padding-left: 1.2rem; margin-bottom: 0; }
.hinweis { border-left: 6px solid var(--navy); background: var(--hell); padding: .75rem 1rem; max-width: 46rem; }
section.hell .hinweis { background: #fff; }

.karte.schlicht { border-top: 1px solid var(--linie); border-left: 5px solid var(--navy); }
.karte.schlicht p { margin-bottom: 0; }
.karte h3 { margin-bottom: .6rem; }
.abstand { margin-top: 2.25rem; }
.saeule { background: #fff; border: 1px solid var(--linie); padding: 1.1rem 1.25rem .4rem; }
.haken { list-style: none; padding: 0; }
.haken li { position: relative; padding: 0 0 .9rem 2rem; }
.haken li::before { content: ""; position: absolute; left: .15rem; top: .3rem; width: .55rem; height: 1rem; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.klein { font-size: .85rem; color: #C9D3E6; }

/* Ampeln: Farbe immer mit Text */
.ampel { list-style: none; padding: 0; margin: 0 0 1rem; }
.ampel li { display: flex; gap: .75rem; align-items: flex-start; padding: .4rem 0; }
.punkt { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .25rem; border-radius: 50%; border: 2px solid var(--navy); }
.punkt.blau { background: var(--blau); } .punkt.gruen { background: var(--gruen); }
.punkt.gelb { background: var(--gelb); } .punkt.rot { background: var(--rot); }
.schritte { counter-reset: s; list-style: none; padding: 0; max-width: 46rem; }
.schritte li { counter-increment: s; position: relative; padding: 0 0 1rem 3rem; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); color: #fff; text-align: center; font-weight: 700; line-height: 2.1rem; }

/* Platzhalter und Entwurf */
mark.platzhalter { background: #FFF176; color: #000; padding: 0 .2em; }
.kl { font-size: calc(1em - 2pt); font-style: italic; }
.entwurf { border: 2px solid #B45309; background: #FFF7E0; padding: .75rem 1rem; margin: 1rem 0; max-width: 46rem; }

/* Fuss */
footer.site { background: var(--navy); color: #fff; padding: 2rem 0; font-size: .95rem; }
footer.site a { color: #fff; }
footer.site ul { list-style: none; padding: 0; display: flex; gap: .5rem 1.25rem; flex-wrap: wrap; margin: 0 0 1rem; }
footer.site a { display: inline-block; padding: .5rem 0; min-height: 44px; }
footer.site p { max-width: 46rem; }

/* Textseiten */
main.text h1 { color: var(--navy); font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 2rem 0 1rem; }
main.text h2 { font-size: 1.35rem; margin-top: 2rem; }
main.text h2.gross { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 2.5rem 0 1rem; }
main.text #english h3 { font-size: 1.35rem; margin-top: 2rem; }
dl.pflicht dt { font-weight: 700; margin-top: 1rem; }
dl.pflicht dd { margin: 0 0 .25rem; }

@media (min-width: 40rem) {
  .zahlen ul { grid-template-columns: repeat(4, 1fr); }
  .zahlen li { flex-direction: column; gap: .35rem; }
  .grid.zwei { grid-template-columns: 1fr 1fr; }
  .schaubild { display: block; }
  .grid.drei { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 4.5rem 0 4.75rem; }
  section { padding: 3.5rem 0; }
}
@media (min-width: 58rem) {
  .hero-raster { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: 3.4rem; }
}
@media (max-width: 26rem) {
  .btn.rand { margin: .6rem 0 0; }
}
@media print {
  .skip, nav { display: none; }
  .hero { background: #fff; color: #000; }
  mark.platzhalter { background: #fff; outline: 1px solid #000; }
}
