/* ------------------------------------------------------------------
   Faissal Makrini — Referenzseite
   Bildsprache: Leitstand bei Nacht. Navy-Grund, Bernstein als Signal,
   Jade als Laufzustand. Die Leiterbahn am linken Rand traegt den
   Lesefortschritt.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Bricolage';
  src: url('/schrift/bricolage-400-800.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Instrument';
  src: url('/schrift/instrument-400-700.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'PlexMono';
  src: url('/schrift/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('/schrift/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --grund: #0A111E;
  --panel: #101B2E;
  --panel-hoch: #16233B;
  --kante: rgba(142, 168, 205, 0.16);
  --kante-hell: rgba(142, 168, 205, 0.32);
  --text: #E9F0FA;
  --leise: #8FA5C4;
  --sehr-leise: #61748F;
  --signal: #F0A23C;
  --signal-tief: rgba(240, 162, 60, 0.14);
  --lauf: #78D2A9;
  --lauf-tief: rgba(120, 210, 169, 0.14);

  --anzeige: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --lesen: 'Instrument', 'Segoe UI', system-ui, sans-serif;
  --mono: 'PlexMono', ui-monospace, 'Cascadia Mono', monospace;

  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --bahn-breite: 0px;
  --breite: 1180px;
}

@media (min-width: 900px) {
  :root { --bahn-breite: 56px; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--lesen);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(240, 162, 60, 0.10), transparent 62%),
    radial-gradient(760px 520px at 4% 34%, rgba(120, 210, 169, 0.06), transparent 60%);
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--signal); color: #12100B; }

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

.nurleser {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprung {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--signal);
  color: #12100B;
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.sprung:focus { left: 0.6rem; top: 0.6rem; }

/* --- Fortschritt: der Balken ganz oben ----------------------------- */

.fortschritt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: rgba(142, 168, 205, 0.10);
  pointer-events: none;
}
.fortschritt span {
  display: block;
  height: 100%;
  width: calc(var(--fortschritt, 0) * 100%);
  background: linear-gradient(90deg, var(--lauf) 0%, var(--signal) 70%, #FFD08A 100%);
  box-shadow: 0 0 14px rgba(240, 162, 60, 0.7);
  transition: width 0.08s linear;
}

/* --- Leiterbahn: Lesefortschritt ---------------------------------- */

.bahn {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bahn-breite);
  z-index: 40;
  display: none;
  pointer-events: none;
}
@media (min-width: 900px) {
  .bahn { display: block; }
}

.bahn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bahn-grund {
  fill: none;
  stroke: rgba(142, 168, 205, 0.16);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* Die gefuellte Spur wird von oben freigelegt, nicht per Strichmuster:
   das viewBox ist vertikal gestreckt, Pfadlaengen waeren dadurch verzerrt. */
.bahn-decke {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 calc((1 - var(--fortschritt, 0)) * 100%) 0);
}

.bahn-fuell {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(240, 162, 60, 0.5));
}

/* Der Kopf der Spur: das Signal, das gerade vorne laeuft. */
.bahn-kopf {
  position: absolute;
  left: 50%;
  top: calc(var(--fortschritt, 0) * 100%);
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px 2px rgba(240, 162, 60, 0.65);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bahn-kopf.an { opacity: 1; }

.bahn-pads { position: absolute; inset: 0; }

.pad {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 1.5px solid var(--kante-hell);
  background: var(--grund);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.pad::after {
  content: attr(data-name);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pad.an {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px rgba(240, 162, 60, 0.14);
}
.pad.an::after { opacity: 1; color: var(--signal); }

/* --- Kopfzeile ----------------------------------------------------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem var(--rand) 0.9rem calc(var(--rand) + var(--bahn-breite));
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.kopf.geheftet { border-bottom-color: var(--kante); }

.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  margin-right: auto;
}
.marke-punkt {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lauf);
  box-shadow: 0 0 0 3px var(--lauf-tief);
}

.nav { display: none; gap: 1.6rem; }
@media (min-width: 860px) { .nav { display: flex; } }

.nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leise);
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transition: right 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav a:hover, .nav a.hier { color: var(--text); }
.nav a:hover::after, .nav a.hier::after { right: 0; }

/* --- Knoepfe ------------------------------------------------------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.72rem 1.15rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.knopf:active { transform: translateY(1px); }

.knopf-signal {
  background: var(--signal);
  color: #14100A;
  font-weight: 500;
}
.knopf-signal:hover { background: #FFB65A; }

.knopf-rand {
  background: transparent;
  border-color: var(--kante-hell);
  color: var(--text);
}
.knopf-rand:hover { border-color: var(--text); }

.knopf-klein {
  background: transparent;
  border-color: var(--kante-hell);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
}
.knopf-klein:hover { border-color: var(--signal); color: var(--signal); }

/* --- Held ---------------------------------------------------------- */

.held {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  padding: clamp(3rem, 9vh, 6rem) var(--rand) 0 calc(var(--rand) + var(--bahn-breite));
  overflow: hidden;
}

#szene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
#szene.da { opacity: 1; }

.held-inhalt {
  position: relative;
  z-index: 2;
  max-width: min(46rem, 100%);
  margin: 0 auto 0 0;
  width: 100%;
}

.augenbraue {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.augenbraue::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--signal);
  flex: none;
}

.held-titel {
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
}
.held-titel .zeile {
  display: block;
  overflow: hidden;
}
.held-titel .zeile > * ,
.held-titel .zeile {
  will-change: transform;
}
.held-titel em {
  font-style: normal;
  color: var(--signal);
  position: relative;
}
.held-titel em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 3px;
  background: var(--signal);
  opacity: 0.22;
}

.held-text {
  max-width: 40rem;
  color: var(--leise);
  margin: 0 0 2.2rem;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.16rem);
}

.held-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.held-fuss {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--sehr-leise);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.ampel {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lauf);
  flex: none;
  animation: puls 2.6s ease-in-out infinite;
}
@keyframes puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120, 210, 169, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(120, 210, 169, 0); }
}

/* Laufband mit Schlagworten */
.lauf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--kante);
  border-bottom: 1px solid var(--kante);
  overflow: hidden;
  background: color-mix(in srgb, var(--grund) 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.lauf-spur {
  display: flex;
  gap: 2.5rem;
  padding: 0.75rem 0;
  width: max-content;
  animation: schieben 46s linear infinite;
}
.lauf-spur span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  white-space: nowrap;
  position: relative;
}
.lauf-spur span::after {
  content: '';
  position: absolute;
  right: -1.4rem;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--kante-hell);
}
@keyframes schieben {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Abschnitte ---------------------------------------------------- */

.teil {
  position: relative;
  z-index: 1;
  max-width: calc(var(--breite) + var(--bahn-breite));
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8rem) var(--rand) 0 calc(var(--rand) + var(--bahn-breite));
}
.teil:last-of-type { padding-bottom: clamp(4.5rem, 11vh, 8rem); }

.teil-kopf { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.marker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--kante);
}

.teil-titel {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 24ch;
  margin: 0;
}
#profil .teil-titel, #ki .teil-titel { max-width: 30ch; }

.teil-hinweis {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--sehr-leise);
  margin: 1.1rem 0 0;
  max-width: 46ch;
}

/* Kriech-Enthuellung: Woerter steigen beim Scrollen auf */
[data-kriech] .wort {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.25, 1);
  transition-delay: var(--verzug, 0ms);
}
[data-kriech].sichtbar .wort {
  opacity: 1;
  transform: none;
}

/* --- Profiltext ---------------------------------------------------- */

.satz {
  display: grid;
  gap: 1.5rem;
  max-width: 62ch;
  margin-left: auto;
  color: var(--leise);
}
.satz p { margin: 0; }
.satz p:first-child {
  color: var(--text);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.5;
}

/* --- Projektplan --------------------------------------------------- */

.plan {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--kante);
}

.plan-zeile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--kante);
  position: relative;
}
@media (min-width: 900px) {
  .plan-zeile {
    grid-template-columns: minmax(15rem, 20rem) 1fr;
  }
}

.plan-zeit {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin: 0 0 0.5rem;
}
.plan-zeile[data-art="lernen"] .plan-zeit { color: var(--lauf); }

.plan-titel {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.plan-ort {
  font-size: 0.9rem;
  color: var(--sehr-leise);
  margin: 0;
}

.plan-punkte {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--leise);
  font-size: 0.96rem;
}
.plan-punkte li {
  position: relative;
  padding-left: 1.4rem;
}
.plan-punkte li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--kante-hell);
}

.plan-balken {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(142, 168, 205, 0.10);
  position: relative;
  margin-top: 0.5rem;
  border-radius: 2px;
}
.plan-balken span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--links, 0%);
  width: 0%;
  background: var(--signal);
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.25, 1);
  transition-delay: 0.1s;
}
.plan-zeile[data-art="lernen"] .plan-balken span { background: var(--lauf); }
.plan-zeile.sichtbar .plan-balken span { width: var(--breit, 0%); }

/* --- Ausbildung ---------------------------------------------------- */

.bildung { margin-top: 3.5rem; }

.bildung-titel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  font-weight: 500;
  margin: 0 0 1.2rem;
}

.bildung-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.bildung-liste li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.2rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--kante);
  align-items: baseline;
}
@media (min-width: 760px) {
  .bildung-liste li { grid-template-columns: 4rem 1fr auto; }
}
.bildung-jahr {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--signal);
}
.bildung-was { font-weight: 600; }
.bildung-wo {
  grid-column: 2;
  color: var(--sehr-leise);
  font-size: 0.88rem;
}
@media (min-width: 760px) {
  .bildung-wo { grid-column: auto; text-align: right; }
}

/* --- Karten (KI-Praxis) -------------------------------------------- */

.karten {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .karten { grid-template-columns: repeat(3, 1fr); }
}

.karte {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(16, 27, 46, 0.55) 100%);
  border: 1px solid var(--kante);
  border-radius: 4px;
  padding: 1.6rem 1.5rem 1.7rem;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.3s ease;
}
.karte::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--kante-hell);
}
.karte-aktiv { border-color: rgba(120, 210, 169, 0.34); }
.karte-aktiv::before { background: var(--lauf); }
.karte:hover { border-color: var(--kante-hell); }

.karte-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  margin: 0 0 1rem;
}
.karte-aktiv .karte-meta { color: var(--lauf); }

.karte-titel {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.karte-text {
  color: var(--leise);
  font-size: 0.94rem;
  margin: 0 0 1.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--kante);
}

.karte-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--leise);
}
.karte-liste li {
  position: relative;
  padding-left: 1.1rem;
}
.karte-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.7;
}
.karte-aktiv .karte-liste li::before { background: var(--lauf); }

/* --- Koennen ------------------------------------------------------- */

.koennen-titel,
.nachweise .werk-titel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  font-weight: 500;
  margin: 0 0 1.6rem;
}

.koennen-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--kante);
  border: 1px solid var(--kante);
}
@media (min-width: 700px) {
  .koennen-liste { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1050px) {
  .koennen-liste { grid-template-columns: repeat(3, 1fr); }
}

.koennen-liste li {
  background: var(--grund);
  padding: 1.35rem 1.3rem 1.45rem;
  position: relative;
  transition: background 0.25s ease;
}
.koennen-liste li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.koennen-liste li:hover { background: var(--panel); }
.koennen-liste li:hover::before { width: 100%; }

.koennen-liste h4 {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.koennen-liste p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--leise);
}

.nachweise { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--kante); }
.nachweise-hinweis { margin: -0.8rem 0 1.8rem; }

/* --- Werk ---------------------------------------------------------- */

.werk {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--kante);
}
.werk-titel {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  font-weight: 500;
  margin: 0 0 1.6rem;
}
.werk-liste {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .werk-liste { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.werk-punkt h4 {
  font-family: var(--anzeige);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  padding-left: 1rem;
  border-left: 2px solid var(--signal);
}
.werk-punkt p {
  margin: 0;
  padding-left: 1rem;
  color: var(--leise);
  font-size: 0.92rem;
}

/* --- Zahlen -------------------------------------------------------- */

.zahlen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--kante);
  border: 1px solid var(--kante);
}
@media (min-width: 900px) {
  .zahlen { grid-template-columns: repeat(4, 1fr); }
}
.zahl {
  background: var(--grund);
  padding: 1.75rem 1.4rem;
}
.zahl dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  margin-bottom: 0.9rem;
}
.zahl dd {
  margin: 0 0 0.7rem;
  font-family: var(--anzeige);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--signal);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.zahl-einheit {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--leise);
}
.zahl-text { font-size: 0.82em; letter-spacing: -0.02em; }
.zahl p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sehr-leise);
  line-height: 1.45;
}

/* --- Kontakt ------------------------------------------------------- */

.kontakt {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .kontakt { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}

.kontakt-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--kante);
}
.kontakt-liste li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--kante);
}
.kontakt-art {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  min-width: 5.5rem;
}
.kontakt-liste a {
  text-decoration: none;
  border-bottom: 1px solid var(--kante-hell);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.kontakt-liste a:hover { color: var(--signal); border-color: var(--signal); }
.kontakt-wert { color: var(--leise); }

.kontakt-tat {
  background: var(--panel);
  border: 1px solid var(--kante);
  border-radius: 4px;
  padding: 1.75rem 1.6rem;
  align-self: start;
}
.kontakt-tat p {
  margin: 0 0 1.4rem;
  color: var(--leise);
  font-size: 0.92rem;
}

/* --- Fusszeile ----------------------------------------------------- */

.fuss {
  position: relative;
  z-index: 1;
  max-width: calc(var(--breite) + var(--bahn-breite));
  margin: 0 auto;
  padding: 2rem var(--rand) 2.5rem calc(var(--rand) + var(--bahn-breite));
  border-top: 1px solid var(--kante);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sehr-leise);
}
.fuss p { margin: 0; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--signal); }

/* --- Assistent ----------------------------------------------------- */

.chat {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  top: auto;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-top: 1px solid var(--kante-hell);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(102%);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.chat.auf { transform: none; }
@media (min-width: 720px) {
  .chat {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 25rem;
    max-height: min(38rem, 82vh);
    border: 1px solid var(--kante-hell);
    border-radius: 6px;
    transform: translateY(calc(100% + 2rem));
  }
}

.chat-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem 0.9rem;
  border-bottom: 1px solid var(--kante);
  flex: none;
}
.chat-augenbraue {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lauf);
  margin: 0 0 0.35rem;
}
.chat-titel {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.chat-zu {
  background: transparent;
  border: 1px solid var(--kante);
  border-radius: 3px;
  color: var(--leise);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-zu:hover { color: var(--text); border-color: var(--kante-hell); }

.chat-verlauf {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--kante-hell) transparent;
}

.blase {
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.75rem 0.95rem;
  border-radius: 4px;
  max-width: 92%;
}
.blase p { margin: 0 0 0.6rem; }
.blase p:last-child { margin-bottom: 0; }

.blase-bot {
  background: var(--panel-hoch);
  border: 1px solid var(--kante);
  justify-self: start;
  border-top-left-radius: 0;
}
.blase-ich {
  background: var(--signal-tief);
  border: 1px solid rgba(240, 162, 60, 0.3);
  color: var(--text);
  justify-self: end;
  border-top-right-radius: 0;
}
.blase-fehler {
  background: rgba(220, 90, 70, 0.12);
  border: 1px solid rgba(220, 90, 70, 0.35);
  justify-self: start;
  color: #F3C4BB;
}

.tippt { display: inline-flex; gap: 4px; align-items: center; }
.tippt i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--leise);
  animation: tippen 1.1s ease-in-out infinite;
}
.tippt i:nth-child(2) { animation-delay: 0.16s; }
.tippt i:nth-child(3) { animation-delay: 0.32s; }
@keyframes tippen {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-vorschlag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.2rem 0.9rem;
  flex: none;
}
.chat-vorschlag button {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid var(--kante);
  border-radius: 999px;
  color: var(--leise);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-vorschlag button:hover { color: var(--signal); border-color: var(--signal); }
.chat-vorschlag.weg { display: none; }

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--kante);
  flex: none;
}
.chat-eingabe {
  flex: 1;
  background: var(--grund);
  border: 1px solid var(--kante);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--lesen);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
}
.chat-eingabe::placeholder { color: var(--sehr-leise); }
.chat-eingabe:focus { outline: none; border-color: var(--signal); }
.chat-senden {
  background: var(--signal);
  border: none;
  border-radius: 3px;
  color: #14100A;
  width: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.chat-senden:hover { background: #FFB65A; }
.chat-senden[disabled] { opacity: 0.45; cursor: not-allowed; }

.chat-fuss {
  margin: 0;
  padding: 0 1.2rem 0.95rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--sehr-leise);
  flex: none;
}

.honig {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- Rechtstexte --------------------------------------------------- */

.recht {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) var(--rand) 4rem;
}
.recht h1 {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}
.recht h2 {
  font-family: var(--anzeige);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.8rem;
}
.recht p, .recht li { color: var(--leise); }
.recht a { color: var(--signal); }
.recht .zurueck {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--leise);
  display: inline-block;
  margin-bottom: 2.5rem;
}
.recht .zurueck:hover { color: var(--signal); }

/* --- Bewegung sparsam --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .lauf-spur { animation: none; }
  [data-kriech] .wort { opacity: 1; transform: none; }
  .plan-balken span { width: var(--breit, 0%); }
}

/* --- Sprint-Planung ------------------------------------------------ */

.spiel {
  border: 1px solid var(--kante);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--panel) 0%, rgba(16, 27, 46, 0.5) 100%);
  padding: 1.5rem 1.4rem 1.6rem;
}

.spiel-laden {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--sehr-leise);
}

.spiel-kopf {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.6rem 2rem;
  align-items: end;
  padding-bottom: 1.1rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--kante);
  position: relative;
}
.spiel-stand { display: flex; flex-direction: column; gap: 0.3rem; }
.spiel-marke {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sehr-leise);
}
.spiel-stand strong {
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.spiel-balken {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: rgba(142, 168, 205, 0.12);
  overflow: hidden;
  margin-top: 0.4rem;
}
.spiel-balken span {
  display: block;
  height: 100%;
  background: var(--signal);
  transition: width 0.25s cubic-bezier(0.2, 0.7, 0.25, 1);
}

.spiel-liste {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .spiel-liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .spiel-liste { grid-template-columns: repeat(3, 1fr); } }

.ticket {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--grund);
  border: 1px solid var(--kante);
  border-left: 2px solid var(--kante-hell);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--lesen);
  padding: 0.8rem 0.9rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.ticket:hover { border-color: var(--kante-hell); }
.ticket:active { transform: translateY(1px); }
.ticket-an {
  background: var(--signal-tief);
  border-color: rgba(240, 162, 60, 0.4);
  border-left-color: var(--signal);
}
.ticket-zu { opacity: 0.4; cursor: not-allowed; }

.ticket-kopf {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}
.ticket-titel { font-size: 0.9rem; line-height: 1.35; font-weight: 600; }
.ticket-blocker {
  flex: none;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F3B0A2;
  border: 1px solid rgba(220, 110, 90, 0.5);
  border-radius: 2px;
  padding: 0.15rem 0.35rem;
  white-space: nowrap;
}

.ticket-zahlen { display: flex; gap: 1rem; }
.ticket-zahl {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sehr-leise);
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.ticket-zahl em {
  font-family: var(--anzeige);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.ticket-wert em { color: var(--lauf); }
.ticket-an .ticket-zahl em { color: var(--text); }
.ticket-an .ticket-wert em { color: var(--lauf); }

.spiel-hinweis {
  margin: 0 0 0.9rem;
  min-height: 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--signal);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.spiel-hinweis.an { opacity: 1; }

.spiel-tasten {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.spiel-frei {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--sehr-leise);
}

.spiel-log {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--kante);
  display: grid;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--sehr-leise);
}
.spiel-log li { padding-left: 1rem; position: relative; }
.spiel-log li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--kante-hell);
}

.spiel-ende { display: grid; gap: 0.9rem; }
.spiel-punkte {
  margin: 0;
  font-family: var(--anzeige);
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  letter-spacing: -0.02em;
  color: var(--leise);
}
.spiel-punkte span {
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 800;
  color: var(--signal);
  display: block;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.spiel-urteil { margin: 0; max-width: 56ch; }
.spiel-brueck {
  margin: 0;
  max-width: 56ch;
  padding-top: 0.9rem;
  border-top: 1px solid var(--kante);
  color: var(--sehr-leise);
  font-size: 0.9rem;
}
