/* Amtszeit – Oberfläche Fassung 2
   Eigener Albumstil: Papierton, Tuschekontur, flächige Farben, Rasterpunkte, harte Schatten.
   Schriften lokal (OFL): Bangers für Titel und Lautmalerei, Comic Neue für Text. */

@import url("buehne/buehne.css");

@font-face { font-family: "Bangers"; src: url("schrift/bangers-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("schrift/comic-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("schrift/comic-neue-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("schrift/comic-neue-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --papier: #f1e1b8;
  --papier-hell: #fcf5e1;
  --tusche: #000;
  --himmel: #2f7fb5;
  --gelb: #ffd84a;
  --rot: #e23b2e;
  --gruen: #2a9a44;
  --orange: #f08a24;
  --blau: #1f5f99;
  --spieler: #cfe6fb;
  --grau: #5b5346;
  --meer: #3e9ad8;
  --land: #a8d65c;
  --schatten: 5px 5px 0 var(--tusche);
  --schatten-klein: 3px 3px 0 var(--tusche);
  --kontur: 3px solid var(--tusche);
  --titel: "Bangers", "Impact", sans-serif;
  --text: "Comic Neue", "Chalkboard SE", "Trebuchet MS", sans-serif;
  --raster: radial-gradient(circle, rgba(0,0,0,.09) 1px, transparent 1.6px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--papier) var(--raster) 0 0 / 7px 7px;
  color: var(--tusche);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blau); text-underline-offset: 2px; }
img { display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--tusche);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gelb);
}

.nur-vorleser {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gelb); border: var(--kontur); padding: 6px 12px; font-weight: 700;
}
.sprung:focus { top: 12px; }

/* ---------- Knöpfe ---------- */
.knopf {
  font-family: var(--titel);
  font-size: 18px;
  letter-spacing: .04em;
  line-height: 1;
  padding: 9px 14px 8px;
  background: var(--gelb);
  border: var(--kontur);
  border-radius: 6px 9px 7px 8px;
  box-shadow: var(--schatten-klein);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
  white-space: nowrap;
}
.knopf:hover { background: #ffe680; }
.knopf:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--tusche); }
.knopf:disabled { cursor: not-allowed; background: #e4dccb; color: #6d6555; box-shadow: 1px 1px 0 var(--tusche); }
.knopf--rot { background: var(--rot); color: #fff; }
.knopf--rot:hover { background: #f0574a; }
.knopf--hell { background: #fff; }
.knopf--hell:hover { background: var(--papier-hell); }

/* ---------- Laden / Fehler beim Start ---------- */
.ladeschirm {
  min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px;
}
.ladeschirm p { font-family: var(--titel); font-size: 28px; letter-spacing: .03em; margin: 0 0 16px; }
.ladeschirm .klein { font-family: var(--text); font-size: 17px; max-width: 46ch; margin: 0 auto 16px; }

/* ================================================================
   STARTBILD
   ================================================================ */
.start {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 56px) 22px;
  max-width: 1320px;
  margin: 0 auto;
}
.start__kopf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 36px; align-items: end; }
.start__berater { display: grid; grid-template-columns: 200px 118px; gap: 16px; align-items: start; align-self: end; margin-bottom: -18px; }
.start__berater img { width: 100%; height: auto; }
.start__berater .blase { position: relative; margin-top: 14px; font-size: 15px; font-weight: 700; }
.start__berater .blase::before, .start__berater .blase::after { content: ""; position: absolute; top: 18px; border-style: solid; }
.start__berater .blase::before { right: -16px; border-width: 8px 0 8px 16px; border-color: transparent transparent transparent var(--tusche); }
.start__berater .blase::after { right: -11px; top: 20px; border-width: 6px 0 6px 12px; border-color: transparent transparent transparent #fff; }
.logo {
  font-family: var(--titel);
  font-size: clamp(64px, 9vw, 124px);
  line-height: .85;
  margin: 0;
  color: var(--gelb);
  -webkit-text-stroke: 3px var(--tusche);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--tusche);
  transform: rotate(-3deg);
  letter-spacing: .02em;
}
.logo span { display: block; font-size: .3em; color: #fff; -webkit-text-stroke: 2px var(--tusche); text-shadow: 3px 3px 0 var(--tusche); margin-top: 6px; letter-spacing: .06em; }
.start__satz { margin: 0 0 6px; font-size: 19px; max-width: 54ch; font-weight: 700; }
.start__satz small { display: block; font-weight: 400; font-size: 16px; margin-top: 6px; }
.stempel {
  display: inline-block;
  font-family: var(--titel);
  letter-spacing: .05em;
  color: var(--rot);
  border: 3px solid var(--rot);
  border-radius: 6px;
  padding: 4px 10px 2px;
  transform: rotate(-4deg);
  background: rgba(255,255,255,.55);
}
.start__wahl { margin: 4px 0 0; font-family: var(--titel); font-size: 26px; letter-spacing: .03em; }
.start__hinweis { margin: 0; padding: 10px 14px; background: var(--gelb); border: var(--kontur); box-shadow: var(--schatten-klein); font-weight: 700; max-width: 70ch; transform: rotate(-.6deg); }
.aemter { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; align-content: start; }
.amt {
  position: relative;
  background: var(--papier-hell);
  border: 4px solid var(--tusche);
  box-shadow: 8px 8px 0 var(--tusche);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: rotate(var(--kipp, -.8deg));
}
.amt:nth-child(2) { --kipp: .9deg; }
.amt__bild {
  aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 4px solid var(--tusche);
  background: var(--himmel) var(--raster) 0 0 / 6px 6px; position: relative;
}
.amt__bild img { width: 100%; height: 100%; object-fit: cover; }
.amt__bild .ersatz { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--titel); font-size: 64px; color: var(--gelb); -webkit-text-stroke: 2px var(--tusche); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--tusche); }
.amt__text { padding: 14px 18px 18px; display: grid; gap: 8px; align-content: start; }
.amt__land { margin: 0; font-family: var(--titel); font-size: 34px; line-height: 1; letter-spacing: .03em; }
.amt__rolle { margin: 0; font-weight: 700; font-size: 18px; }
.amt__kurz { margin: 0; font-size: 16px; max-width: 60ch; }
.amt__fuss { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 6px; }
.amt__fuss .knopf { font-size: 22px; padding: 11px 18px 9px; }
.amt__stand { font-size: 14px; color: var(--grau); }
.amt .stempel { position: absolute; top: 14px; right: 14px; font-size: 20px; }
.start__fuss { font-size: 15px; color: var(--grau); text-align: center; margin: 0; }

/* ================================================================
   SPIEL: Seitenraster
   ================================================================ */
.spiel {
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(262px, 23%) minmax(0, 1fr) minmax(330px, 29%);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "ticker ticker status"
    "balken buehne chat";
  gap: 14px;
  padding: 12px 14px 14px;
}
.panel {
  background: var(--papier-hell);
  border: var(--kontur);
  box-shadow: var(--schatten);
  border-radius: 3px 7px 4px 6px;
  min-width: 0;
}

/* ---------- Schlagzeilen-Band ---------- */
.ticker {
  grid-area: ticker;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  position: relative;
  height: 58px;
  transform: rotate(-.25deg);
  background: #fff var(--raster) 0 0 / 6px 6px;
}
.ticker__marke {
  font-family: var(--titel);
  font-size: 22px;
  letter-spacing: .04em;
  background: var(--rot);
  color: #fff;
  -webkit-text-stroke: 1px var(--tusche);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--tusche);
  display: flex; align-items: center;
  padding: 0 18px 0 14px;
  border-right: var(--kontur);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-right: -10px;
  position: relative; z-index: 2;
}
.ticker__fenster { overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker__fenster::before, .ticker__fenster::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 1; pointer-events: none;
}
.ticker__fenster::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.ticker__fenster::after { right: 0; background: linear-gradient(-90deg, #fff, rgba(255,255,255,0)); }
.ticker__band { display: flex; width: max-content; animation: band var(--dauer, 60s) linear infinite; }
.ticker:hover .ticker__band, .ticker:focus-within .ticker__band { animation-play-state: paused; }
.ticker__satz { display: flex; gap: 0; padding-left: 26px; }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.meldung {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; padding: 0 26px 0 0; font-size: 16px;
  position: relative;
}
.meldung::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; background: var(--tusche); transform: translateY(-50%) rotate(45deg); }
.meldung__datum { font-weight: 700; font-size: 13px; background: var(--tusche); color: #fff; padding: 2px 6px 1px; border-radius: 3px; }
.meldung__text { font-weight: 700; }
.meldung__quelle { font-size: 14px; }
.meldung--eigen .meldung__text { background: var(--gelb); padding: 1px 6px; border: 2px solid var(--tusche); }
.meldung__eigen { font-family: var(--titel); letter-spacing: .04em; font-size: 15px; color: var(--rot); border: 2px solid var(--rot); padding: 1px 6px 0; border-radius: 4px; transform: rotate(-3deg); background: #fff; }
.meldung--neu .meldung__text { animation: neu-blink 1.2s ease-in-out 3; }
@keyframes neu-blink { 50% { background: #fff1a8; box-shadow: 0 0 0 3px var(--rot); } }

.extrablatt {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: var(--gelb) var(--raster) 0 0 / 5px 5px;
  border: 0;
  transform-origin: left center;
  animation: extrablatt-rein .45s cubic-bezier(.2,1.6,.4,1) both;
}
.extrablatt.raus { animation: extrablatt-raus .35s ease-in both; }
.extrablatt strong {
  font-family: var(--titel); font-weight: 400; font-size: 30px; letter-spacing: .04em; color: var(--rot);
  -webkit-text-stroke: 1.5px var(--tusche); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--tusche);
  transform: rotate(-4deg); flex: none;
}
.extrablatt span { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes extrablatt-rein { from { transform: translateY(-110%) rotate(-3deg); } to { transform: none; } }
@keyframes extrablatt-raus { to { transform: translateY(110%); opacity: 0; } }

/* ---------- Status rechts oben ---------- */
.status {
  grid-area: status;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 6px 10px 6px 12px;
  height: 58px;
  transform: rotate(.35deg);
  position: relative;
}
.status__woche { grid-row: 1 / 3; display: flex; align-items: center; gap: 5px; font-family: var(--titel); letter-spacing: .03em; line-height: .9; }
.status__woche b { font-weight: 400; font-size: 40px; color: var(--rot); -webkit-text-stroke: 1.5px var(--tusche); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--tusche); display: inline-block; }
.status__woche small { font-size: 15px; display: grid; line-height: 1; gap: 1px; }
.status__woche b.knall { animation: woche-knall .6s cubic-bezier(.2,1.8,.4,1); }
@keyframes woche-knall { 0% { transform: scale(.3) rotate(-20deg); } 100% { transform: none; } }
.status__amt { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status__knoepfe { display: flex; gap: 8px; }
.status__knoepfe .knopf { font-size: 15px; padding: 5px 9px 4px; box-shadow: 2px 2px 0 var(--tusche); white-space: nowrap; }
.status__knoepfe:has(.knopf--bilanz:not([hidden])) { gap: 5px; }
.status__knoepfe:has(.knopf--bilanz:not([hidden])) .knopf { font-size: 13.5px; padding: 4px 6px 3px; }
.status__kaesten { display: flex; gap: 2px; margin-top: 3px; }
.status__kaesten i { width: 9px; height: 7px; border: 1.5px solid var(--tusche); background: #fff; }
.status__kaesten i.voll { background: var(--rot); }
.status__ende { font-family: var(--titel); font-size: 15px; color: var(--rot); letter-spacing: .04em; }

/* ---------- Balken ---------- */
.balkenfeld {
  grid-area: balken;
  display: flex; flex-direction: column;
  padding: 10px 12px 10px;
  overflow: auto;
  overscroll-behavior: contain;
}
.feldtitel {
  align-self: flex-start;
  font-family: var(--titel); font-weight: 400; font-size: 21px; letter-spacing: .04em; line-height: 1;
  margin: 0 0 6px; padding: 5px 10px 3px;
  background: var(--gelb); border: var(--kontur); box-shadow: var(--schatten-klein);
  transform: rotate(-1.2deg);
}
.gruppen { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 4px; }
.gruppe { margin: 0; padding: 0; border: 0; min-width: 0; }
.gruppe__name {
  display: inline-block;
  font-family: var(--titel); font-weight: 400; font-size: 15px; letter-spacing: .06em;
  background: var(--tusche); color: var(--papier-hell);
  padding: 2px 8px 1px; margin: 4px 0 2px; border-radius: 2px; transform: rotate(-1deg);
}
.gruppe__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.zeile {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0 8px;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 2px 4px;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.zeile:hover { background: rgba(255,216,74,.35); }
.zeile[aria-expanded="true"] { background: rgba(255,216,74,.55); }
.zeile__kopf { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
/* Der Name hat Vorrang; wird es eng, kürzt sich die Kennzahl (sie steht vollständig in den Einzelheiten). */
.zeile__name { flex: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.zeile__zahl { margin-left: auto; min-width: 0; font-size: 12px; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zeile__warn {
  flex: none; width: 15px; height: 15px; display: none; place-items: center;
  font-family: var(--titel); font-size: 13px; line-height: 1; color: #fff; background: var(--rot);
  border: 1.5px solid var(--tusche); border-radius: 50%; align-self: center;
}
.zeile[data-zustand="kritisch"] .zeile__warn { display: grid; }

.plakette {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--tusche);
  background: #fff;
  box-shadow: 2px 2px 0 var(--tusche);
  position: relative;
  grid-row: 1 / 3;
  display: grid; place-items: center;
  overflow: visible;
}
.plakette__bild { width: 100%; height: 100%; padding: 3px; object-fit: contain; pointer-events: none; }
.plakette__ersatz { font-family: var(--titel); font-size: 20px; line-height: 1; }
.plakette--ersatz { background: var(--gelb); }

.balken {
  position: relative; height: 13px; margin-top: 3px;
  border: 2px solid var(--tusche); border-radius: 7px;
  background: #fff var(--raster) 0 0 / 4px 4px;
  overflow: visible;
}
.balken__fuellung {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--g, 50) * 1%);
  border-radius: 5px 3px 3px 5px;
  background-color: hsl(calc(var(--g, 50) * 1.15), 78%, 48%);
  transition: width var(--fahrt, .9s) cubic-bezier(.3,.9,.3,1.15), background-color var(--fahrt, .9s);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35);
  border-right: 2px solid var(--tusche);
}
.zeile[data-zustand="kritisch"] .balken__fuellung {
  background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.33) 0 3px, transparent 3px 7px);
}
.zeile[data-zustand="mittel"] .balken__fuellung {
  background-image: radial-gradient(circle, rgba(0,0,0,.25) 1px, transparent 1.5px);
  background-size: 4px 4px;
}
.balken__start {
  position: absolute; top: -5px; bottom: -5px; width: 0;
  left: calc(var(--s, 50) * 1%);
  border-left: 2px dashed var(--tusche);
}
.balken__start::before {
  content: ""; position: absolute; top: -3px; left: -6px;
  border: 5px solid transparent; border-top: 6px solid var(--tusche);
}
.delta {
  position: absolute; right: -2px; top: -16px; z-index: 3;
  font-family: var(--titel); font-size: 20px; letter-spacing: .03em; line-height: 1;
  padding: 2px 6px 0; border: 2px solid var(--tusche); border-radius: 8px;
  background: #fff; box-shadow: 2px 2px 0 var(--tusche);
  pointer-events: none;
  animation: delta-pop 2.4s cubic-bezier(.2,1.6,.4,1) both;
}
.delta--besser { background: #c9f2cf; color: #0d6a25; }
.delta--schlechter { background: #ffd1cb; color: #a3140a; }
.delta--gleich { background: #eee; color: #444; }
@keyframes delta-pop {
  0% { transform: scale(0) rotate(-20deg); opacity: 0; }
  12% { transform: scale(1.35) rotate(6deg); opacity: 1; }
  22% { transform: scale(1) rotate(-3deg); }
  80% { transform: translateY(-4px) rotate(-3deg); opacity: 1; }
  100% { transform: translateY(-14px) rotate(-3deg); opacity: 0; }
}
.zeile.trifft .balken { animation: balken-ruck .5s ease-out; }
@keyframes balken-ruck { 30% { transform: scaleY(1.5); } 60% { transform: scaleY(.85); } }

.uhr {
  position: absolute; right: 2px; top: -3px;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 700; line-height: 1;
  background: #fff; border: 1.5px solid var(--tusche); border-radius: 9px; padding: 1px 5px 1px 3px;
  box-shadow: 1px 1px 0 var(--tusche);
}
.uhr svg { width: 11px; height: 11px; }
.uhr--besser { background: #dff6e2; }
.uhr--schlechter { background: #ffe1dc; }

/* --- vierzehn Zeichen-Bewegungen (gut) und ihre Gegenbewegungen (schlecht) --- */
.plakette.bewegt { z-index: 4; }
.plakette.bewegt[data-k="haushalt"] { animation: z-truhe .9s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 100%; }
.plakette.bewegt.schlecht[data-k="haushalt"] { animation: z-truhe-x .9s ease-out; }
@keyframes z-truhe { 0%{transform:none} 20%{transform:scale(1.15,.8)} 45%{transform:translateY(-16px) scale(.9,1.12) rotate(-6deg)} 70%{transform:translateY(0) scale(1.12,.86)} 85%{transform:translateY(-4px)} 100%{transform:none} }
@keyframes z-truhe-x { 0%{transform:none} 30%{transform:translateY(6px) scale(1.1,.75)} 45%,75%{transform:translateY(6px) scale(1.1,.75) translateX(-2px)} 60%,85%{transform:translateY(6px) scale(1.1,.75) translateX(2px)} 100%{transform:none} }

.plakette.bewegt[data-k="schulden"] { animation: z-kugel 1.1s ease-in-out; transform-origin: 50% -30%; }
.plakette.bewegt.schlecht[data-k="schulden"] { animation: z-kugel-x 1.1s ease-in; transform-origin: 50% -30%; }
@keyframes z-kugel { 0%{transform:none} 25%{transform:rotate(26deg)} 50%{transform:rotate(-20deg)} 72%{transform:rotate(11deg)} 88%{transform:rotate(-5deg)} 100%{transform:none} }
@keyframes z-kugel-x { 0%{transform:none} 25%{transform:translateY(12px) scale(1.15)} 40%{transform:translateY(8px) scale(1.15) rotate(6deg)} 55%{transform:translateY(10px) scale(1.15) rotate(-6deg)} 100%{transform:none} }

.plakette.bewegt[data-k="inflation"] { animation: z-ballon 1.1s ease-in-out; }
.plakette.bewegt.schlecht[data-k="inflation"] { animation: z-ballon-x 1s ease-out; }
@keyframes z-ballon { 0%{transform:none} 40%{transform:translateY(-14px) rotate(-5deg)} 65%{transform:translateY(-10px) rotate(4deg)} 100%{transform:none} }
@keyframes z-ballon-x { 0%{transform:none} 35%{transform:scale(1.45)} 45%{transform:scale(1.38) rotate(-5deg)} 55%{transform:scale(1.45) rotate(5deg)} 65%{transform:scale(1.4) rotate(-4deg)} 100%{transform:none} }

.plakette.bewegt[data-k="kaufkraft"] { animation: z-korb .9s ease-in-out; transform-origin: 50% 100%; }
.plakette.bewegt.schlecht[data-k="kaufkraft"] { animation: z-korb-x 1s ease-in-out; transform-origin: 50% 100%; }
@keyframes z-korb { 0%,100%{transform:none} 20%{transform:rotate(-14deg)} 40%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} 80%{transform:rotate(4deg)} }
@keyframes z-korb-x { 0%,100%{transform:none} 30%{transform:rotate(34deg) translateX(4px)} 45%{transform:rotate(30deg)} 60%{transform:rotate(34deg)} }

.plakette.bewegt[data-k="wachstum"] { animation: z-pflanze 1s cubic-bezier(.3,1.5,.5,1); transform-origin: 50% 100%; }
.plakette.bewegt.schlecht[data-k="wachstum"] { animation: z-pflanze-x 1.1s ease-in-out; transform-origin: 50% 100%; }
@keyframes z-pflanze { 0%{transform:none} 30%{transform:scale(.8,.6)} 65%{transform:scale(1.05,1.4)} 100%{transform:none} }
@keyframes z-pflanze-x { 0%{transform:none} 40%,70%{transform:rotate(-28deg) scale(.95,.8)} 100%{transform:none} }

.plakette.bewegt[data-k="arbeitslosigkeit"] { animation: z-hammer .9s linear; transform-origin: 80% 80%; }
.plakette.bewegt.schlecht[data-k="arbeitslosigkeit"] { animation: z-hammer-x 1.1s ease-in; transform-origin: 80% 80%; }
@keyframes z-hammer { 0%,100%{transform:none} 15%,48%,81%{transform:rotate(-38deg)} 30%,63%,94%{transform:rotate(8deg)} }
@keyframes z-hammer-x { 0%{transform:none} 30%{transform:rotate(-30deg)} 55%{transform:rotate(60deg) translateY(6px)} 80%{transform:rotate(58deg) translateY(6px)} 100%{transform:none} }

.plakette.bewegt[data-k="energie"] { animation: z-windrad 1.1s cubic-bezier(.2,.7,.4,1); }
.plakette.bewegt.schlecht[data-k="energie"] { animation: z-windrad-x 1.2s ease-out; }
@keyframes z-windrad { from{transform:rotate(0)} to{transform:rotate(720deg)} }
@keyframes z-windrad-x { 0%{transform:none} 40%{transform:rotate(80deg)} 55%{transform:rotate(70deg)} 70%{transform:rotate(78deg)} 100%{transform:none} }

.plakette.bewegt[data-k="zufriedenheit"] { animation: z-sonne 1s ease-in-out; }
.plakette.bewegt.schlecht[data-k="zufriedenheit"] { animation: z-sonne-x 1.1s ease-in-out; }
@keyframes z-sonne { 0%,100%{transform:none; filter:none} 25%{transform:scale(1.32) rotate(15deg); filter:brightness(1.25) saturate(1.4)} 50%{transform:scale(1)} 75%{transform:scale(1.25) rotate(-10deg); filter:brightness(1.2)} }
@keyframes z-sonne-x { 0%,100%{transform:none; filter:none} 40%,70%{transform:scale(.72); filter:grayscale(1) brightness(.75)} }

.plakette.bewegt[data-k="sicherheit"] { animation: z-schild .8s cubic-bezier(.5,0,.6,1.4); }
.plakette.bewegt.schlecht[data-k="sicherheit"] { animation: z-schild-x .8s linear; }
@keyframes z-schild { 0%{transform:none} 35%{transform:translateY(-14px) scale(1.35)} 55%{transform:translateY(2px) scale(1.15,.82)} 75%{transform:scale(.97,1.05)} 100%{transform:none} }
@keyframes z-schild-x { 0%,100%{transform:none} 10%,30%,50%,70%{transform:translateX(-4px) rotate(-6deg)} 20%,40%,60%,80%{transform:translateX(4px) rotate(6deg)} }

.plakette.bewegt[data-k="soziales"] { animation: z-herz 1s ease-in-out; }
.plakette.bewegt.schlecht[data-k="soziales"] { animation: z-herz-x 1.2s ease-in-out; }
@keyframes z-herz { 0%,100%{transform:none} 14%{transform:scale(1.3)} 28%{transform:scale(1)} 42%{transform:scale(1.36)} 62%{transform:scale(1)} }
@keyframes z-herz-x { 0%,100%{transform:none; filter:none} 30%{transform:scale(1.08)} 50%,80%{transform:scale(.8) translateY(3px); filter:grayscale(.9)} }

.plakette.bewegt[data-k="freiheit"] { animation: z-waage 1.1s ease-in-out; transform-origin: 50% 90%; }
.plakette.bewegt.schlecht[data-k="freiheit"] { animation: z-waage-x 1.1s ease-in-out; transform-origin: 50% 90%; }
@keyframes z-waage { 0%,100%{transform:none} 25%{transform:rotate(-16deg)} 55%{transform:rotate(12deg)} 80%{transform:rotate(-4deg)} }
@keyframes z-waage-x { 0%,100%{transform:none} 30%,75%{transform:rotate(30deg) translateY(3px)} }

.plakette.bewegt[data-k="rueckhalt"] { animation: z-haende 1s ease-in-out; transform-origin: 50% 100%; }
.plakette.bewegt.schlecht[data-k="rueckhalt"] { animation: z-haende-x 1s ease-in; transform-origin: 50% 100%; }
@keyframes z-haende { 0%,100%{transform:none} 15%,55%{transform:rotate(-18deg) translateY(-3px)} 35%,75%{transform:rotate(18deg) translateY(-3px)} }
@keyframes z-haende-x { 0%{transform:none} 40%,75%{transform:translateY(9px) scale(.85,.7)} 100%{transform:none} }

.plakette.bewegt[data-k="ansehen"] { animation: z-welt 1.1s ease-in-out; }
.plakette.bewegt.schlecht[data-k="ansehen"] { animation: z-welt-x 1.1s ease-in-out; }
@keyframes z-welt { from{transform:perspective(200px) rotateY(0)} to{transform:perspective(200px) rotateY(360deg)} }
@keyframes z-welt-x { 0%,100%{transform:none} 25%{transform:rotate(-22deg) translateX(-3px)} 50%{transform:rotate(18deg) translateX(3px)} 75%{transform:rotate(-10deg)} }

.plakette.bewegt[data-k="frieden"] { animation: z-taube 1.1s ease-in-out; }
.plakette.bewegt.schlecht[data-k="frieden"] { animation: z-taube-x 1s ease-in; }
@keyframes z-taube { 0%,100%{transform:none} 15%{transform:translateY(-6px) scaleX(.7)} 30%{transform:translateY(-10px) scaleX(1.1)} 45%{transform:translateY(-14px) scaleX(.7)} 60%{transform:translateY(-12px) scaleX(1.1)} 80%{transform:translateY(-4px)} }
@keyframes z-taube-x { 0%{transform:none} 35%{transform:translateY(10px) rotate(25deg)} 50%{transform:translateY(10px) rotate(15deg)} 65%{transform:translateY(10px) rotate(25deg)} 100%{transform:none} }

/* Plakette des Balkens bei Gesundheit 0 ist «Sturz»-rot umrandet */
.zeile[data-k="rueckhalt"][data-zustand="kritisch"] .plakette { box-shadow: 0 0 0 3px var(--rot), 2px 2px 0 3px var(--tusche); }

/* ---------- Mitte: Bühne ---------- */
.buehnenfeld { grid-area: buehne; display: flex; flex-direction: column; min-height: 0; position: relative; }
.buehne {
  --s1: #79c4ea; --s2: #a9dcf4; --boden: #8cc46a;
  position: relative; flex: 1; min-height: 0;
  overflow: hidden;
  transform: rotate(-.4deg);
  background: var(--s2);
  isolation: isolate;
  container-type: size;
}
.st-freude { --s1: #ffc93a; --s2: #ffe48a; --boden: #79c159; }
.st-zorn   { --s1: #e2452c; --s2: #f7854d; --boden: #b66d3e; }
.st-not    { --s1: #7b88a3; --s2: #a4afc4; --boden: #8d8571; }
.st-gefahr { --s1: #3b2440; --s2: #74384a; --boden: #4f4239; }
.st-streit { --s1: #9562c6; --s2: #c09ae6; --boden: #c6a26c; }
.st-ruhe   { --s1: #6fbfe8; --s2: #a8dcf5; --boden: #8cc46a; }
.strahlen {
  position: absolute; left: 50%; top: 42%;
  width: 260%; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(var(--s1) 0 9deg, var(--s2) 9deg 18deg);
  animation: strahlen-dreh 90s linear infinite;
  transition: background .8s;
  z-index: -3;
}
.buehne::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.35), rgba(255,255,255,0) 55%);
}
@keyframes strahlen-dreh { to { rotate: 360deg; } }

.globus {
  position: absolute; left: 50%; top: 5%;
  width: min(66%, 64vh, 470px); aspect-ratio: 1;
  translate: -50% 0;
  z-index: 1;
  filter: drop-shadow(6px 6px 0 var(--tusche));
}
.globus svg { width: 100%; height: 100%; overflow: visible; display: block; }
.globus .meer { fill: var(--meer); }
.globus .raster-meer { fill: url(#gl-punkte); }
.globus .netz { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1; }
.globus .land { fill: var(--land); stroke: var(--tusche); stroke-width: 1.6; stroke-linejoin: round; }
.globus .heimat { fill: var(--rot); stroke: var(--tusche); stroke-width: 2.4; stroke-linejoin: round; }
.globus .heimat-schraffur { fill: url(#gl-schraffur); pointer-events: none; }
.globus .rand { fill: none; stroke: var(--tusche); stroke-width: 5; }
.globus .schatten { fill: url(#gl-schatten); pointer-events: none; }
.globus .glanz { fill: #fff; opacity: .55; }
.globus .nadel { transition: opacity .3s; }
.globus .nadel circle { fill: var(--gelb); stroke: var(--tusche); stroke-width: 3; }
.globus .nadel .puls { fill: none; stroke: var(--gelb); stroke-width: 4; animation: nadel-puls 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nadel-puls { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

.boden {
  position: absolute; left: -2%; right: -2%; bottom: 0; height: 13%;
  background: var(--boden) var(--raster) 0 0 / 6px 6px;
  border-top: 4px solid var(--tusche);
  z-index: 2;
  transition: background-color .8s;
}
.gruppe-bild {
  /* Szenenbilder sind auf den Inhalt beschnitten: feste Breite, Füße an der Unterkante,
     Höhe ergibt sich aus dem Bild. Hohe Szenen ragen weiter in den Globus. */
  position: absolute; left: 50%; bottom: calc(13% - 5px);
  width: min(100cqw, 96cqh);
  translate: -50% 0;
  z-index: 3;
  pointer-events: none;
}
.gruppe-bild img { width: 100%; height: auto; }
.gruppe-bild.lebt-zorn img { animation: leb-zorn .46s steps(2, jump-none) infinite; }
.gruppe-bild.lebt-freude img { animation: leb-freude .7s cubic-bezier(.3,0,.5,1) infinite alternate; }
.gruppe-bild.lebt-not img { animation: leb-not 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.gruppe-bild.lebt-gefahr img { animation: leb-gefahr 2.8s linear infinite; }
.gruppe-bild.lebt-streit img { animation: leb-streit 1.3s ease-in-out infinite; transform-origin: 50% 100%; }
.gruppe-bild.lebt-ruhe img { animation: leb-ruhe 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes leb-zorn { 0% { transform: translateY(0) rotate(-.6deg); } 100% { transform: translateY(-5px) rotate(.6deg); } }
@keyframes leb-freude { from { transform: translateY(0) scale(1, .985); } to { transform: translateY(-14px) scale(1); } }
@keyframes leb-not { 0%,100% { transform: scaleY(1) translateX(0); } 40% { transform: scaleY(.975) translateX(-1px); } 45% { transform: scaleY(.975) translateX(1px); } 50% { transform: scaleY(.975) translateX(-1px); } }
@keyframes leb-gefahr { 0%, 70%, 100% { transform: none; } 72% { transform: translate(-6px, 2px) rotate(-.8deg); } 75% { transform: translate(5px, -3px) rotate(.8deg); } 78% { transform: translate(-4px, 1px); } 81% { transform: translate(3px, 0); } }
@keyframes leb-streit { 0%,100% { transform: skewX(0) rotate(0); } 25% { transform: skewX(-1.5deg) rotate(-.6deg); } 75% { transform: skewX(1.5deg) rotate(.6deg); } }
@keyframes leb-ruhe { 0%,100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }

.gruppe-bild.auftritt { animation: auftritt .75s cubic-bezier(.2,1.5,.45,1) both; }
.gruppe-bild.abgang { animation: abgang .45s ease-in both; }
@keyframes auftritt { from { transform: translateY(70%) scale(.9); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes abgang { to { transform: translateX(-35%) translateY(40%) rotate(-8deg); opacity: 0; } }

/* Ersatz, solange ein Szenenbild fehlt: Pappschild auf dem Boden */
.schild {
  position: absolute; left: 50%; bottom: 11%; translate: -50% 0; z-index: 3;
  display: grid; justify-items: center;
}
.schild__tafel {
  font-family: var(--titel); font-size: clamp(22px, 3vw, 36px); letter-spacing: .04em; line-height: 1;
  background: #fff3c9; border: 4px solid var(--tusche); box-shadow: var(--schatten);
  padding: 14px 22px 10px; transform: rotate(-3deg); white-space: nowrap;
}
.gruppe-bild.ersatz { display: grid; justify-items: center; }
.gruppe-bild.ersatz .schild { position: relative; left: auto; bottom: auto; translate: none; }
.schild__pfahl { width: 14px; height: 70px; background: #a9713f; border: 3px solid var(--tusche); border-top: 0; margin-top: -2px; }

.staub { position: absolute; left: 0; right: 0; bottom: 8%; height: 30%; z-index: 4; pointer-events: none; }
.staub i {
  position: absolute; bottom: 0; width: 70px; height: 70px; border-radius: 50%;
  background: #fff; border: 3px solid var(--tusche);
  animation: staub 1s ease-out both;
}
@keyframes staub { 0% { transform: scale(.2); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx, 0), -30px) scale(1.3); opacity: 0; } }

.wetter, .vordergrund { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wetter { z-index: 0; }
.vordergrund { z-index: 5; }
.konfetti {
  position: absolute; top: -20px; width: 9px; height: 14px; border: 1.5px solid var(--tusche);
  animation: konfetti var(--t, 3s) linear var(--v, 0s) infinite;
}
@keyframes konfetti { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--dx, 30px), 110cqh) rotate(720deg); } }
.vordergrund, .wetter { container-type: size; }
.regen {
  position: absolute; inset: -20% 0 0 0;
  background-image: repeating-linear-gradient(105deg, transparent 0 22px, rgba(255,255,255,.7) 22px 24px, transparent 24px 46px);
  background-size: 46px 60px;
  animation: regen .45s linear infinite;
  opacity: .8;
}
@keyframes regen { to { background-position: -16px 60px; } }
.blitz { position: absolute; inset: 0; background: #fff; opacity: 0; animation: blitz 3.4s linear infinite; }
@keyframes blitz { 0%, 64%, 70%, 100% { opacity: 0; } 65% { opacity: .85; } 67% { opacity: .1; } 68% { opacity: .7; } }
.blitzstrahl { position: absolute; top: 2%; width: 60px; height: 130px; opacity: 0; animation: blitz 3.4s linear infinite; }
.blitzstrahl polygon { fill: var(--gelb); stroke: var(--tusche); stroke-width: 4; stroke-linejoin: round; }
.rauch {
  position: absolute; bottom: 12%; width: 46px; height: 46px; border-radius: 50%;
  /* Wolke statt Scheibe: drei Buckel aus Schatten in der Rauchfarbe, Tuschrand rundherum */
  color: #5c5560; background: currentColor;
  box-shadow: -26px 12px 0 -5px, 26px 10px 0 -7px, 2px 16px 0 2px, -6px -18px 0 -11px;
  filter: drop-shadow(2px 0 0 var(--tusche)) drop-shadow(-2px 0 0 var(--tusche)) drop-shadow(0 2px 0 var(--tusche)) drop-shadow(0 -2px 0 var(--tusche));
  animation: rauch var(--t, 4s) ease-out var(--v, 0s) infinite;
  opacity: 0;
}
@keyframes rauch { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx, -20px), -34cqh) scale(2.2); opacity: 0; } }
/* Während Szene und Balken laufen, gilt die alte Bildzeile nicht mehr – sie kommt mit der neuen Schlagzeile zurück. */
.erzaehlkasten { transition: opacity .25s; }
body[data-phase="szene"] .erzaehlkasten, body[data-phase="balken"] .erzaehlkasten { opacity: 0; }
.blattflug {
  position: absolute; top: 20%; left: -60px; width: 30px; height: 38px;
  background: #fff repeating-linear-gradient(transparent 0 6px, #9aa 6px 7px) 0 6px / 100% 100% no-repeat;
  border: 2px solid var(--tusche);
  animation: blattflug var(--t, 4s) linear var(--v, 0s) infinite;
}
@keyframes blattflug { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(60cqw, -40px) rotate(260deg); } 100% { transform: translate(130cqw, 30px) rotate(540deg); } }
.wolke {
  position: absolute; width: 120px; height: 40px; border-radius: 40px;
  background: #fff; border: 3px solid var(--tusche);
  animation: wolke var(--t, 40s) linear var(--v, 0s) infinite;
}
.wolke::before, .wolke::after { content: ""; position: absolute; background: #fff; border: 3px solid var(--tusche); border-bottom-color: transparent; border-radius: 50%; }
.wolke::before { width: 52px; height: 52px; left: 16px; top: -28px; border-right-color: transparent; }
.wolke::after { width: 40px; height: 40px; left: 56px; top: -20px; border-left-color: transparent; }
@keyframes wolke { from { transform: translateX(-160px); } to { transform: translateX(calc(100cqw + 160px)); } }
.wolke--dunkel, .wolke--dunkel::before, .wolke--dunkel::after { background: #8a8d9b; }

/* Lautmalerei */
.laut {
  position: absolute; z-index: 6; pointer-events: none;
  display: grid; place-items: center;
  width: 190px; height: 130px;
  animation: laut-pop 2.2s cubic-bezier(.2,1.6,.4,1) both;
}
.laut svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.laut svg polygon { stroke: var(--tusche); stroke-width: 4; stroke-linejoin: round; }
.laut span {
  position: relative;
  font-family: var(--titel); font-size: 40px; letter-spacing: .03em; line-height: 1;
  color: var(--gelb);
  -webkit-text-stroke: 2.5px var(--tusche); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--tusche);
  transform: rotate(var(--r, -8deg));
  white-space: nowrap;
}
@keyframes laut-pop {
  0% { transform: scale(0) rotate(-25deg); opacity: 0; }
  14% { transform: scale(1.22) rotate(4deg); opacity: 1; }
  24% { transform: scale(1) rotate(0); }
  82% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.85); opacity: 0; }
}
.sturz-stempel {
  position: absolute; left: 50%; top: 36%; z-index: 7;
  translate: -50% -50%;
  font-family: var(--titel); font-size: clamp(48px, 8vw, 96px); letter-spacing: .04em;
  color: var(--rot); border: 8px solid var(--rot); border-radius: 12px; padding: 6px 24px 0;
  background: rgba(255,255,255,.8);
  transform: rotate(-12deg);
  animation: stempel .5s cubic-bezier(.5,0,.6,1.5) both;
}
@keyframes stempel { from { transform: rotate(-12deg) scale(3); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.buehne.bebt { animation: beben .6s linear; }
@keyframes beben { 0%,100% { transform: rotate(-.4deg); } 20% { transform: translate(-8px, 4px) rotate(-1.5deg); } 40% { transform: translate(7px, -5px) rotate(.8deg); } 60% { transform: translate(-5px, 3px); } 80% { transform: translate(3px, -2px); } }

.erzaehlkasten {
  position: relative; z-index: 8;
  align-self: center;
  max-width: min(92%, 620px);
  margin: -26px 0 0;
  padding: 9px 16px 8px;
  background: var(--gelb);
  border: var(--kontur);
  box-shadow: var(--schatten);
  font-weight: 700; font-size: 17px; line-height: 1.25;
  transform: rotate(-1.1deg);
  text-align: left;
}
.erzaehlkasten small { display: block; font-family: var(--titel); font-weight: 400; font-size: 14px; letter-spacing: .05em; color: #6a4f00; }
.erzaehlkasten.neu { animation: kasten-rein .6s cubic-bezier(.2,1.5,.4,1); }
@keyframes kasten-rein { from { transform: rotate(-6deg) translateY(30px); opacity: 0; } to { transform: rotate(-1.1deg); opacity: 1; } }

/* ---------- Chat ---------- */
.chatfeld { grid-area: chat; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat__kopf {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: var(--kontur);
  background: var(--himmel) var(--raster) 0 0 / 6px 6px;
}
.chat__kopf h2 {
  margin: 0; font-family: var(--titel); font-weight: 400; font-size: 23px; letter-spacing: .04em; line-height: 1;
  color: #fff; -webkit-text-stroke: 1.2px var(--tusche); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--tusche);
}
.musterhinweis {
  margin-left: auto;
  font-size: 12.5px; font-weight: 700; line-height: 1.15;
  background: #fff; border: 2px dashed var(--tusche); border-radius: 6px;
  padding: 3px 7px; max-width: 58%; text-align: right;
}
.verlauf {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 12px 10px;
  display: flex; flex-direction: column; gap: 14px;
  scroll-behavior: smooth;
}
.beitrag { display: grid; gap: 6px; }
.beitrag--berater { grid-template-columns: 60px minmax(0, 1fr); align-items: end; }
.beitrag--spieler { justify-items: end; padding-left: 44px; }
.figur {
  width: 60px; height: 84px; position: relative; align-self: end;
  overflow: hidden;
  border-bottom: 3px solid var(--tusche);
}
.figur img { width: 124%; height: auto; position: absolute; left: -12%; top: 0; }
.figur--leer { border-radius: 50% 50% 0 0; background: var(--blau); }
.figur--leer::after { content: ""; position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: #f6c8a0; border: 3px solid var(--tusche); }
.figur.ruckt { animation: figur-ruck .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes figur-ruck { from { transform: translateY(20px) scale(.8); } to { transform: none; } }

.blase {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--tusche);
  border-radius: 20px 22px 18px 20px;
  padding: 9px 13px 10px;
  box-shadow: var(--schatten-klein);
  max-width: 100%;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.blase p { margin: 0; }
.beitrag--berater .blase::before, .beitrag--berater .blase::after {
  content: ""; position: absolute; bottom: 10px; border-style: solid;
}
.beitrag--berater .blase::before { left: -16px; border-width: 8px 16px 8px 0; border-color: transparent var(--tusche) transparent transparent; }
.beitrag--berater .blase::after { left: -11px; bottom: 12px; border-width: 6px 12px 6px 0; border-color: transparent #fff transparent transparent; }
.beitrag--spieler .blase { background: var(--spieler); border-radius: 22px 18px 20px 20px; }
.beitrag--spieler .blase::before, .beitrag--spieler .blase::after { content: ""; position: absolute; bottom: 10px; border-style: solid; }
.beitrag--spieler .blase::before { right: -16px; border-width: 8px 0 8px 16px; border-color: transparent transparent transparent var(--tusche); }
.beitrag--spieler .blase::after { right: -11px; bottom: 12px; border-width: 6px 0 6px 12px; border-color: transparent transparent transparent var(--spieler); }
.blase.rein { animation: blase-rein .35s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes blase-rein { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.beitrag--berater .blase.rein { transform-origin: 0 100%; }
.beitrag--spieler .blase.rein { transform-origin: 100% 100%; }

.machbar {
  display: inline-block; margin: 0 0 4px;
  font-family: var(--titel); font-size: 15px; letter-spacing: .05em; line-height: 1;
  padding: 3px 7px 1px; border: 2px solid currentColor; border-radius: 4px;
  transform: rotate(-2deg);
}
.machbar--ja { color: var(--gruen); }
.machbar--teilweise { color: #b45f00; }
.machbar--nein { color: var(--rot); }
.machbar--auskunft { color: var(--blau); }
.keine-wirkung {
  margin-top: 7px; padding: 5px 8px; font-weight: 700; font-size: 14px;
  background: #ffe9e5; border: 2px solid var(--rot); border-radius: 6px;
}

.denkt { display: inline-flex; gap: 6px; padding: 4px 2px; }
.denkt i { width: 10px; height: 10px; border-radius: 50%; background: var(--tusche); animation: punkt 1s ease-in-out infinite; }
.denkt i:nth-child(2) { animation-delay: .15s; }
.denkt i:nth-child(3) { animation-delay: .3s; }
@keyframes punkt { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-7px); opacity: 1; } }

.wirkung {
  grid-column: 2;
  border: 2.5px solid var(--tusche); background: #fff; box-shadow: var(--schatten-klein);
  border-radius: 4px 6px 5px 4px;
  transform: rotate(.4deg);
  overflow: hidden;
}
.wirkung__titel { margin: 0; padding: 4px 9px 2px; background: var(--gelb); border-bottom: 2px solid var(--tusche); font-family: var(--titel); font-weight: 400; font-size: 15px; letter-spacing: .05em; }
.wirkung ul { list-style: none; margin: 0; padding: 2px 0; }
.wirkung li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 8px; align-items: start;
  padding: 5px 9px; border-top: 1px dashed #b9ae95;
}
.wirkung li:first-child { border-top: 0; }
.wirkung li.rein { animation: zeile-rein .35s ease-out both; }
@keyframes zeile-rein { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.wirkung .mini { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tusche); background: #fff; display: grid; place-items: center; overflow: hidden; }
.wirkung .mini img { width: 100%; height: 100%; padding: 2px; object-fit: contain; }
.wirkung .mini span { font-family: var(--titel); font-size: 14px; }
.wirkung__name { font-weight: 700; font-size: 14px; }
.wirkung__grund { display: block; font-size: 13.5px; line-height: 1.3; }
.wirkung__delta { font-family: var(--titel); font-size: 19px; letter-spacing: .03em; line-height: 1.1; white-space: nowrap; }
.wirkung__delta--besser { color: var(--gruen); }
.wirkung__delta--schlechter { color: var(--rot); }
.wirkung__delta--gleich { color: var(--grau); }
.wirkung li.spaet { background: repeating-linear-gradient(-45deg, #fff 0 6px, #f4eedf 6px 12px); border-left: 4px dashed var(--tusche); }
.marke {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  border: 1.5px solid var(--tusche); border-radius: 9px; padding: 2px 6px 1px 4px; margin-left: 4px;
  background: #fff;
}
.marke svg { width: 11px; height: 11px; }
.marke--grenze { border: 0; background: none; padding: 0; margin-left: 3px; color: var(--grau); }

/* Depesche */
.depesche {
  margin: 2px 4px 2px 10px;
  background: #fbf0cf;
  border: 3px solid var(--tusche);
  box-shadow: var(--schatten);
  transform: rotate(-.7deg);
  position: relative;
}
.depesche::before {
  content: ""; display: block; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--rot) 0 10px, #fbf0cf 10px 16px, var(--blau) 16px 26px, #fbf0cf 26px 32px);
  border-bottom: 2px solid var(--tusche);
}
.depesche.rein { animation: depesche-rein .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes depesche-rein { from { transform: translateX(110%) rotate(12deg); } to { transform: rotate(-.7deg); } }
.depesche__inhalt { padding: 8px 12px 12px; display: grid; gap: 6px; }
.depesche__kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.depesche__marke { font-family: var(--titel); font-size: 15px; letter-spacing: .06em; color: var(--rot); border: 2px solid var(--rot); border-radius: 3px; padding: 2px 6px 0; transform: rotate(-3deg); }
.depesche__herkunft { font-size: 13px; font-weight: 700; color: var(--grau); }
.depesche h3 { margin: 0; font-family: var(--titel); font-weight: 400; font-size: 22px; letter-spacing: .03em; line-height: 1.05; }
.depesche p { margin: 0; font-size: 15px; }
.depesche__frage { font-weight: 700; }
.wahl { display: grid; gap: 6px; margin-top: 2px; }
.wahl button {
  text-align: left; cursor: pointer;
  background: #fff; border: 2.5px solid var(--tusche); border-radius: 8px 10px 9px 8px;
  padding: 7px 10px; font-weight: 700; font-size: 14.5px; line-height: 1.25;
  box-shadow: 2px 2px 0 var(--tusche);
  transition: transform .08s, box-shadow .08s, background .1s;
}
.wahl button:hover { background: var(--gelb); }
.wahl button:active { transform: translate(2px, 2px); box-shadow: none; }
.wahl button:disabled { cursor: default; opacity: .55; background: #f1ead8; }
.depesche--erledigt { transform: rotate(.5deg) scale(.97); opacity: .8; }
.depesche--erledigt .wahl { display: none; }
.depesche__erledigt { font-family: var(--titel); color: var(--gruen); border: 2px solid var(--gruen); border-radius: 3px; padding: 2px 6px 0; font-size: 14px; letter-spacing: .05em; transform: rotate(3deg); margin-left: auto; }

.notiz {
  margin: 0 4px; padding: 9px 12px; background: #fff; border: 3px solid var(--rot); border-radius: 6px;
  box-shadow: var(--schatten-klein); transform: rotate(.5deg);
}
.notiz strong { display: block; font-family: var(--titel); font-weight: 400; font-size: 18px; letter-spacing: .04em; color: var(--rot); }
.notiz p { margin: 2px 0 0; font-size: 15px; }
.notiz .knopf { margin-top: 8px; font-size: 15px; padding: 6px 10px 5px; }

/* Eingabe */
.eingabe { border-top: var(--kontur); padding: 9px 10px 10px; background: var(--papier); display: grid; gap: 5px; }
.eingabe__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.eingabe textarea {
  resize: none; width: 100%; min-height: 70px; max-height: 140px;
  border: 2.5px solid var(--tusche); border-radius: 10px 12px 10px 11px;
  background: #fff; padding: 8px 10px; font-size: 16px; line-height: 1.3;
}
.eingabe textarea::placeholder { font-size: 15px; }
.eingabe textarea:disabled { background: #eee7d6; }
.eingabe .knopf { font-size: 22px; padding: 0 14px; background: var(--rot); color: #fff; -webkit-text-stroke: 1px var(--tusche); paint-order: stroke fill; }
.eingabe .knopf:disabled { -webkit-text-stroke: 0; }
.eingabe__fuss { display: flex; gap: 10px; justify-content: space-between; font-size: 12.5px; color: var(--grau); }
.eingabe__fuss > :last-child { white-space: nowrap; flex: none; }
.eingabe__frei { font-weight: 700; color: var(--rot); }
.eingabe__zaehler.voll { color: var(--rot); font-weight: 700; }

/* ---------- Balken-Einzelheiten (schwebend) ---------- */
.info {
  position: fixed; z-index: 30;
  width: min(330px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--papier-hell); border: var(--kontur); box-shadow: var(--schatten);
  border-radius: 4px 8px 5px 6px;
  animation: blase-rein .25s cubic-bezier(.2,1.5,.4,1) both;
}
.info__kopf { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--gelb); border-bottom: var(--kontur); }
.info__kopf h3 { margin: 0; font-family: var(--titel); font-weight: 400; font-size: 22px; letter-spacing: .03em; line-height: 1; flex: 1; }
.info__zu { background: #fff; border: 2px solid var(--tusche); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1; }
.info__rumpf { padding: 10px 12px 12px; display: grid; gap: 8px; font-size: 14.5px; }
.info__rumpf p { margin: 0; }
.info__zahlen { display: flex; gap: 14px; font-weight: 700; }
.info__zahlen span { font-weight: 400; color: var(--grau); display: block; font-size: 12.5px; }
.info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; font-size: 13.5px; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
.info h4 { margin: 4px 0 0; font-size: 14px; }
.verlaufslinie { width: 100%; height: 64px; border: 2px solid var(--tusche); background: #fff var(--raster) 0 0 / 5px 5px; border-radius: 4px; }
.verlaufslinie polyline { fill: none; stroke: var(--tusche); stroke-width: 2.5; stroke-linejoin: round; }
.verlaufslinie circle { fill: var(--gelb); stroke: var(--tusche); stroke-width: 2; }
.verlaufslinie line { stroke: var(--rot); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* ---------- Hintergrund-Blatt (Schublade) ---------- */
dialog { color: inherit; }
.blatt {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh;
  width: min(560px, 100vw); max-width: 100vw;
  padding: 0; border: 0; border-left: 4px solid var(--tusche);
  background: var(--papier-hell) var(--raster) 0 0 / 7px 7px;
  box-shadow: -8px 0 0 rgba(0,0,0,.85);
}
.blatt[open] { animation: blatt-rein .35s cubic-bezier(.2,1.1,.4,1); }
@keyframes blatt-rein { from { transform: translateX(100%); } to { transform: none; } }
.blatt::backdrop, .schluss::backdrop { background: rgba(20,14,0,.45); }
.blatt__kopf { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--gelb); border-bottom: var(--kontur); }
.blatt__kopf h2 { margin: 0; font-family: var(--titel); font-weight: 400; font-size: 30px; letter-spacing: .04em; line-height: 1; flex: 1; }
.blatt__rumpf { padding: 14px 18px 30px; display: grid; gap: 16px; }
.blatt section { display: grid; gap: 6px; }
.blatt h3 { margin: 0; font-family: var(--titel); font-weight: 400; font-size: 21px; letter-spacing: .04em; }
.blatt p { margin: 0; max-width: 62ch; }
.blatt ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.blatt .klein { font-size: 14px; color: var(--grau); }
.ereignis { list-style: none; margin-left: -20px; padding: 8px 10px; background: #fff; border: 2px solid var(--tusche); border-radius: 4px; box-shadow: 2px 2px 0 var(--tusche); }
.ereignis strong { display: block; }
.ereignis .klein { display: block; margin-top: 3px; }
.sachangabe { padding: 10px 12px; background: #fff; border: 2px dashed var(--tusche); border-radius: 6px; }

/* ---------- Schlussblatt (Bilanz) ---------- */
.schluss {
  width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 4px solid var(--tusche); box-shadow: 10px 10px 0 var(--tusche);
  background: var(--papier-hell) var(--raster) 0 0 / 7px 7px;
  overflow: auto;
}
.schluss[open] { animation: schluss-rein .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes schluss-rein { from { transform: translateY(40px) rotate(-3deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.schluss__kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 22px 14px; border-bottom: var(--kontur); background: var(--himmel) var(--raster) 0 0 / 6px 6px; }
.schluss--gestuerzt .schluss__kopf { background: var(--rot) var(--raster) 0 0 / 6px 6px; }
.schluss__kopf h2 {
  margin: 0; font-family: var(--titel); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: .95; letter-spacing: .03em;
  color: var(--gelb); -webkit-text-stroke: 2px var(--tusche); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--tusche);
}
.schluss__kopf p { margin: 4px 0 0; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 var(--tusche), -1px -1px 0 var(--tusche), 1px -1px 0 var(--tusche), -1px 1px 0 var(--tusche); }
.note {
  width: 120px; height: 120px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: #fff; border: 5px solid var(--tusche); box-shadow: var(--schatten);
  transform: rotate(8deg);
  font-family: var(--titel);
}
.note b { font-weight: 400; font-size: 52px; line-height: .9; color: var(--rot); }
.note small { display: block; font-size: 14px; letter-spacing: .05em; }
.schluss__rumpf { padding: 16px 22px 22px; display: grid; gap: 16px; }
.schluss__stufe { margin: 0; font-family: var(--titel); font-size: 28px; letter-spacing: .03em; }
.schluss__paar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.schluss__karte { background: #fff; border: 3px solid var(--tusche); box-shadow: var(--schatten-klein); padding: 10px 12px; }
.schluss__karte h3 { margin: 0 0 4px; font-family: var(--titel); font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.schluss__karte p { margin: 0; }
.schluss__karte--gut { background: #e6f7e8; }
.schluss__karte--schlecht { background: #ffe9e5; }
.schluss h3.abschnitt { margin: 0; font-family: var(--titel); font-weight: 400; font-size: 22px; letter-spacing: .04em; }
.endwerte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; }
.endwerte li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 14px; }
.endwerte .name { font-weight: 700; }
.endwerte .pfeil { font-weight: 700; white-space: nowrap; }
.endwerte .pfeil.besser { color: var(--gruen); }
.endwerte .pfeil.schlechter { color: var(--rot); }
.endwerte .doppel { grid-column: 1 / -1; position: relative; height: 12px; border: 2px solid var(--tusche); border-radius: 6px; background: #fff; overflow: hidden; }
.endwerte .doppel i { position: absolute; left: 0; top: 0; bottom: 0; }
.endwerte .doppel .s { background: repeating-linear-gradient(-45deg, #bbb 0 3px, #ddd 3px 6px); }
.endwerte .doppel .e { top: 3px; bottom: 3px; border-right: 2px solid var(--tusche); }
.endwerte .werte { grid-column: 1 / -1; font-size: 12.5px; color: var(--grau); }
.schlagzeilen { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.schlagzeilen li { background: var(--gelb); border: 2px solid var(--tusche); padding: 5px 10px; font-weight: 700; transform: rotate(-.4deg); }
.schlagzeilen li:nth-child(even) { transform: rotate(.4deg); }
.schluss__knoepfe { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.schluss__knoepfe .knopf { font-size: 22px; padding: 11px 18px 9px; }

/* ================================================================
   Mittlere Breite (1100–1300 px): etwas schmalere Seiten
   ================================================================ */
@media (max-width: 1320px) {
  .spiel { grid-template-columns: minmax(250px, 24%) minmax(0, 1fr) minmax(310px, 30%); gap: 12px; }
  .status__amt { font-size: 13px; }
  .status__woche b { font-size: 34px; }
  .status__woche small { font-size: 13px; }
  .status__knoepfe .knopf { font-size: 13.5px; padding: 4px 7px 3px; }
  .status__knoepfe:has(.knopf--bilanz:not([hidden])) { gap: 4px; }
  .status__knoepfe:has(.knopf--bilanz:not([hidden])) .knopf { font-size: 12px; padding: 3px 4px 2px; letter-spacing: 0; }
  .chat__kopf h2, .chat__titel { white-space: nowrap; }
  .musterhinweis { font-size: 11.5px; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .zeile__name { font-size: 13.5px; }
  .plakette { width: 32px; height: 32px; }
  .zeile { grid-template-columns: 32px minmax(0, 1fr); }
  .gruppe__name { margin: 2px 0 1px; font-size: 13.5px; }
  .feldtitel { font-size: 18px; margin-bottom: 2px; }
  .zeile { padding: 1px 4px; }
  .balken { height: 11px; margin-top: 2px; }
  .gruppen { gap: 0; }
  /* Startmarke flacher, damit sie nicht in den Namen darüber ragt */
  .balken__start { top: -2px; bottom: -3px; }
  .balken__start::before { top: -2px; left: -5px; border-width: 4px; border-top-width: 4px; }
}
@media (max-height: 780px) and (min-width: 901px) {
  .plakette { width: 28px; height: 28px; }
  .zeile { grid-template-columns: 28px minmax(0, 1fr); }
  .zeile__name { font-size: 13px; }
  .zeile__zahl { font-size: 11px; }
  .gruppe__name { font-size: 12.5px; padding: 1px 6px 0; }
}

/* ================================================================
   Schmal (bis 900 px): alles gestapelt, Seite rollt
   ================================================================ */
@media (max-width: 900px) {
  .spiel {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "ticker" "status" "buehne" "balken" "chat";
    gap: 12px; padding: 8px 10px 16px;
  }
  .ticker { height: 50px; transform: none; }
  .ticker__marke { font-size: 18px; padding: 0 14px 0 10px; }
  .status { height: auto; transform: none; padding: 6px 10px; }
  .status__knoepfe { flex-wrap: wrap; }
  .buehnenfeld { height: auto; }
  .buehne { flex: none; height: clamp(300px, 92vw, 480px); transform: none; }
  .globus { width: min(62%, 300px); top: 5%; }
  .laut { width: 140px; height: 96px; }
  .laut span { font-size: 30px; }
  .erzaehlkasten { font-size: 15.5px; margin-top: -18px; }
  .balkenfeld { overflow: visible; }
  .gruppen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 10px; }
  .zeile { grid-template-columns: 30px minmax(0, 1fr); gap: 0 6px; padding: 2px; }
  .plakette { width: 30px; height: 30px; border-width: 2px; }
  .zeile__name { font-size: 13px; }
  .zeile__zahl { display: none; }
  .chatfeld { height: min(86dvh, 760px); }
  .musterhinweis { max-width: 62%; }
  .beitrag--spieler { padding-left: 24px; }
  .info { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; max-height: 70dvh; }
}
@media (max-width: 520px) {
  .start { padding-top: 18px; }
  .start__kopf { grid-template-columns: 1fr; }
  .start__berater { display: none; }
  .aemter { grid-template-columns: 1fr; }
  .amt__land { font-size: 28px; }
  .amt__fuss .knopf { font-size: 19px; }
  .status { grid-template-columns: auto minmax(0, 1fr); }
  .status__woche b { font-size: 34px; }
  .gruppen { gap: 2px 8px; }
  .depesche { margin-left: 4px; }
  .schluss__kopf { grid-template-columns: 1fr; }
  .note { width: 96px; height: 96px; justify-self: end; margin-top: -10px; }
  .note b { font-size: 40px; }
  .blatt__kopf h2 { font-size: 26px; }
}

/* ================================================================
   Weniger Bewegung
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__band { animation: none !important; transform: none !important; }
  .ticker__fenster { overflow-x: auto; }
  .ticker__satz + .ticker__satz { display: none; }
  .wetter, .vordergrund .konfetti, .vordergrund .blattflug, .rauch, .blitz, .blitzstrahl, .regen { display: none; }
}

@media (min-width: 901px) {
  .schlagzeilen { grid-template-columns: 1fr 1fr; column-gap: 14px; }
}
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.buehne:has(.sturz-stempel) .laut { display: none; }

/* Kurzfassung: kompakte Wirkungskarte, Depesche und Beraterblase */
.wirkung li { padding: 3px 9px; align-items: center; }
.wirkung li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.wirkung__name { flex: none; font-size: 14px; }
.wirkung__grund { display: block; flex: 1 1 100%; min-width: 0; font-size: 12px; line-height: 1.25; color: var(--grau); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wirkung__grund + .wirkung__grund { display: none; }
.wirkung__delta { font-size: 17px; }
.wirkung .mini { width: 22px; height: 22px; }
.wirkung__titel { padding: 2px 9px 0; font-size: 14px; }
.blase { font-size: 15px; line-height: 1.3; padding: 7px 12px 8px; }
.depesche__inhalt { padding: 6px 12px 10px; gap: 4px; }
.depesche h3 { font-size: 20px; }
.depesche p { font-size: 14px; line-height: 1.3; }
.wahl { gap: 5px; }
.wahl button { padding: 5px 10px; font-size: 14px; }

/* ================================================================
   Umbau «weniger Text»: Leitzahl, Wochenpunkte, stumme Balken, Marken, Angebot, Hebel
   ================================================================ */
.status {
  height: auto; min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  grid-template-areas: "leit knoepfe" "leit leiste";
  gap: 5px 14px; padding: 6px 12px;
}
.leit { grid-area: leit; position: relative; display: grid; justify-items: center; align-content: center; font-family: var(--titel); line-height: .9; min-width: 78px; }
.leit small { font-size: 13px; letter-spacing: .08em; }
.leit__zahl { font-weight: 400; font-size: 44px; color: var(--rot); -webkit-text-stroke: 1.5px var(--tusche); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--tusche); display: inline-block; font-variant-numeric: tabular-nums; }
.leit__zahl.hupf { animation: woche-knall .6s cubic-bezier(.2,1.8,.4,1); }
.leit__flash {
  position: absolute; left: 100%; top: 14px; margin-left: 2px; white-space: nowrap;
  font-size: 22px; padding: 2px 6px 0; border: 2px solid var(--tusche); border-radius: 8px; background: #fff; box-shadow: 2px 2px 0 var(--tusche);
  opacity: 0; pointer-events: none; z-index: 3;
}
.leit__flash.hoch { background: #c9f2cf; color: #0d6a25; }
.leit__flash.runter { background: #ffd1cb; color: #a3140a; }
.leit__flash.zeigt { opacity: 1; animation: leit-flash 2.8s ease-out both; }
@keyframes leit-flash { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 10% { transform: scale(1.3) rotate(4deg); opacity: 1; } 20% { transform: none; } 80% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
.status__knoepfe { grid-area: knoepfe; justify-self: end; }
.wochenleiste { grid-area: leiste; display: flex; gap: 5px; align-items: center; justify-content: flex-end; }
.wpunkt {
  flex: none; width: 17px; height: 17px; padding: 0; border-radius: 50%; border: 2px solid var(--tusche);
  background: #fff; cursor: pointer; box-shadow: 1px 1px 0 var(--tusche); position: relative;
}
.wpunkt::after { content: ""; position: absolute; inset: -6px; }
.wpunkt--gut { background: var(--gruen); }
.wpunkt--schlecht { background: var(--rot); }
.wpunkt--gleich { background: #bdb6a3; }
.wpunkt--jetzt { background: var(--gelb); animation: puls-punkt 1.6s ease-in-out infinite; }
.wpunkt--spaeter { background: transparent; border-style: dashed; box-shadow: none; cursor: default; opacity: .7; }
@keyframes puls-punkt { 50% { transform: scale(1.3); } }

/* Balken ohne Zahlentext: nur Zeichen, Name, Balken */
.gruppe__name, .feldtitel { display: none; }
.gruppen { gap: 7px; }
.gruppe + .gruppe { padding-top: 0; }
.zeile__name { font-size: 15px; }
.zeile[data-brenn] .zeile__warn { display: grid; animation: puls-punkt 1s ease-in-out infinite; }
.zeile[data-brenn] .balken { animation: brenn-puls 1.1s ease-in-out infinite; border-color: var(--rot); }
.zeile[data-brenn] .zeile__name { color: var(--rot); }
@keyframes brenn-puls { 50% { box-shadow: 0 0 0 4px rgba(226,59,46,.45); } }
.info--hover { pointer-events: none; }

/* Wochen im Verlauf: nur der laufende Zug ist offen */
.verlauf { gap: 10px; }
.wochenbox { display: grid; gap: 10px; }
.wochenbox .wochenrumpf { display: grid; gap: 10px; }
.wochenkopf {
  display: none; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid var(--tusche); border-radius: 8px; padding: 4px 9px; font-size: 14px; box-shadow: 2px 2px 0 var(--tusche);
}
.wochenbox.zu .wochenkopf, .wochenbox.hand .wochenkopf { display: flex; }
.wochenbox.zu .wochenrumpf { display: none; }
.wk-punkt { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tusche); background: #fff; }
.wk--gut { background: var(--gruen); } .wk--schlecht { background: var(--rot); } .wk--gleich { background: #bdb6a3; }
.wochenkopf b { font-family: var(--titel); font-weight: 400; font-size: 17px; }
.wk-text { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Marken statt Wirkungsliste */
.wirkung { border: 0; background: none; box-shadow: none; transform: none; overflow: visible; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; }
.marke-w {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 2px 8px 1px 3px;
  border: 2.5px solid var(--tusche); border-radius: 999px; background: #fff; box-shadow: 2px 2px 0 var(--tusche);
  font-family: var(--titel); font-size: 18px; letter-spacing: .03em; line-height: 1.1;
}
.marke-w .mini { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tusche); background: #fff; display: grid; place-items: center; overflow: hidden; }
.marke-w .mini img { width: 100%; height: 100%; padding: 2px; object-fit: contain; }
.marke-w .mini span { font-size: 12px; }
.marke-w b { font-weight: 400; }
.marke-w--besser { background: #c9f2cf; color: #0d6a25; }
.marke-w--schlechter { background: #ffd1cb; color: #a3140a; }
.marke-w--gleich { background: #eee; color: #444; }
.marke-w.spaet { border-style: dashed; }
.marke-w__uhr svg { width: 12px; height: 12px; display: block; }
.marke-w[aria-expanded="true"] { outline: 3px solid var(--gelb); outline-offset: 1px; }
.marke-w.rein { animation: blase-rein .4s cubic-bezier(.2,1.6,.4,1) both; }
.marken__grund { margin: 6px 0 0; padding: 6px 9px; font-size: 14px; line-height: 1.3; background: #fff; border: 2px dashed var(--tusche); border-radius: 6px; }
.wirkung { grid-column: 2; }

/* Zahl fliegt zum Balken */
.flug {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform, opacity;
  font-family: var(--titel); font-size: 30px; letter-spacing: .03em; line-height: 1; padding: 3px 9px 1px;
  border: 3px solid var(--tusche); border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 var(--tusche);
}
.flug--besser { background: #c9f2cf; color: #0d6a25; }
.flug--schlechter { background: #ffd1cb; color: #a3140a; }

/* Berater: Stempel + kurze Antwort */
.blase--mehr { cursor: pointer; }
.blase--mehr:not(.blase--voll) p:last-of-type::after { content: " …"; color: var(--grau); }
.keine-wirkung { display: none; }

/* Depesche als Angebot */
.depesche { transform: none; margin: 2px 4px 2px 8px; }
.depesche::before { height: 7px; }
.depesche__inhalt { padding: 5px 10px 8px; gap: 3px; }
.depesche__lage { display: none; }
.depesche.auf .depesche__lage { display: block; }
.depesche h3 { font-size: 19px; }
.depesche__frage { font-size: 14px; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl button { padding: 3px 11px 3px; font-size: 13.5px; border-radius: 16px; min-height: 30px; text-align: left; white-space: normal; line-height: 1.2; }
.wahl button[aria-pressed="true"] { background: var(--gelb); }

/* Eingabe: Zeile, Hebel */
.eingabe { gap: 4px; padding: 6px 10px 8px; }
.eingabe__zug { font-family: var(--titel); font-size: 18px; letter-spacing: .05em; line-height: 1; color: var(--rot); -webkit-text-stroke: .6px var(--tusche); paint-order: stroke fill; }
.eingabe textarea { min-height: 54px; }
.eingabe textarea::placeholder { font-size: 15px; }
.eingabe__fuss:has(.eingabe__hinweis:empty):has(.eingabe__zaehler:empty) { display: none; }
.hebelzeile { display: grid; gap: 4px; }
.hebel { display: flex; flex-wrap: wrap; gap: 5px; }
.hebel[hidden], .hebelzeile[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; padding: 2px 9px 2px 6px; min-height: 30px;
  background: #fff; border: 2.5px solid var(--tusche); border-radius: 999px; box-shadow: 2px 2px 0 var(--tusche);
  font-weight: 700; font-size: 13.5px; line-height: 1; white-space: nowrap;
}
.chip .sym { width: 15px; height: 15px; flex: none; }
.chip:hover { background: var(--gelb); }
.chip:active { transform: translate(2px, 2px); box-shadow: none; }
.chip[aria-pressed="true"], .hebel__bremse.an { background: var(--gelb); }
.chip:disabled { opacity: .55; cursor: default; }
.hebel__bremse { background: #f1ead8; }

/* Schlusskarte */
.note--gross { width: 150px; height: 150px; }
.note--gross b { font-size: 54px; letter-spacing: -.01em; }
.nochmal { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 4px 0; }
.nochmal__frage { margin: 0; font-family: var(--titel); font-size: clamp(30px, 5vw, 44px); letter-spacing: .03em; line-height: 1; color: var(--rot); -webkit-text-stroke: 1.5px var(--tusche); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--tusche); }
.nochmal__beste { margin: 0; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.stempel { font-family: var(--titel); color: var(--gruen); border: 3px solid var(--gruen); border-radius: 4px; padding: 3px 8px 1px; transform: rotate(-4deg); font-size: 20px; letter-spacing: .05em; }
.nochmal .schluss__knoepfe { justify-content: center; }
details.mehr summary { cursor: pointer; font-family: var(--titel); font-size: 20px; letter-spacing: .04em; margin-bottom: 8px; }

@media (max-width: 900px) {
  .status { position: sticky; top: 4px; z-index: 25; grid-template-columns: auto minmax(0, 1fr); background: var(--papier-hell); }
  .wochenleiste { gap: 6px; }
  .wpunkt { width: 19px; height: 19px; }
  .gruppen { gap: 8px 10px; }
  .zeile__name { font-size: 13.5px; }
  .hebel { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .hebel--bremsen { flex-wrap: wrap; overflow: visible; }
  .chat__kopf { padding: 5px 10px; }
  .chatfeld { height: min(80dvh, 700px); }
}
@media (max-width: 520px) {
  .leit { min-width: 64px; }
  .leit__zahl { font-size: 38px; }
  .status__knoepfe .knopf { font-size: 12.5px; padding: 3px 5px 2px; }
  .note--gross { width: 110px; height: 110px; }
  .note--gross b { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .zeile[data-brenn] .balken, .wpunkt--jetzt, .zeile[data-brenn] .zeile__warn { animation: none !important; }
}
.depesche--erledigt { display: none; }
.wochenbox.beantwortet .beitrag--gruss { display: none; }
@media (max-width: 900px) { .musterhinweis { display: none; } }
@media (min-width: 901px) { .musterhinweis { font-size: 11px; } }
@media (max-width: 900px) {
  .depesche__frage { display: none; }
  .depesche.auf .depesche__frage { display: block; }
  .blase--voll p { -webkit-line-clamp: unset !important; display: block !important; }
}
@media (max-width: 520px) {
  .wochenleiste { gap: 4px; }
  .wpunkt { width: 16px; height: 16px; }
  .status { column-gap: 10px; }
}
.blase--tipp { cursor: pointer; }

/* ---- KI-Hinweis vor der ersten Nachricht, KI-Kennzeichnung ---- */
.kihinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; padding: 8px 10px; background: var(--gelb); border: var(--kontur); border-radius: 10px; box-shadow: var(--schatten-klein); font-size: 15px; line-height: 1.3; }
.kihinweis__text { margin: 0; flex: 1 1 260px; }
.kihinweis a { color: var(--tusche); font-weight: 700; text-decoration: underline; }
.kihinweis .knopf { flex: none; min-height: 40px; padding: 0 14px; font-size: 18px; }
.kihinweis--ruck { outline: 3px solid var(--rot); outline-offset: 2px; }
.ki-marke { margin: 4px 0 0; font-size: 12.5px; color: var(--grau); }
