/* =====================================================================
   Journey of Money – Experience (visuelles Redesign)
   ---------------------------------------------------------------------
   Bühne = Stadt (fix im Hintergrund, eigene Ebene).
   Darüber = UI (Cockpit, Karten, Route). Grafik und Inhalt bleiben getrennt.
   ===================================================================== */

/* ---------------- Tokens ---------------- */
:root {
  --navy:        #0C1A2C;
  --navy-deep:   #08131F;
  --navy-panel:  #102338;
  --navy-line:   rgba(233, 226, 211, .14);
  --gold:        #C6A15B;
  --gold-soft:   #D6B876;
  --gold-deep:   #A67C36;
  --cream:       #E9E2D3;
  --cream-dim:   rgba(233, 226, 211, .72);
  --cream-faint: rgba(233, 226, 211, .48);
  --teal:        #007C89;
  --teal-lit:    #17A3B0;

  /* Kennzahlfarben – fest zugeordnet, damit sie überall gleich lesen */
  --c-cash:      #C6A15B;
  --c-wealth:    #17A3B0;
  --c-surplus:   #8FBFC7;
  --c-passive:   #9BD4A0;
  --c-security:  #5A9FD4;
  --c-quality:   #6FAE7C;
  --c-stress:    #E2725B;

  --ok:          #7BC08C;
  --warn:        #E2725B;

  --font-display: "Cormorant", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --shadow-card: 0 30px 70px -30px rgba(0, 0, 0, .85);
  --shadow-lift: 0 18px 44px -22px rgba(0, 0, 0, .8);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --stage-max: 940px;
}

/* ---------------- Basis ---------------- */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; margin: 0; }

/* =====================================================================
   BÜHNE: STADT
   ===================================================================== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy-deep);
}

.scene-cam {
  position: absolute;
  inset: -6%;
  --cam-scale: 1.06;
  --cam-x: 0%;
  --cam-y: 0%;
  transform: scale(var(--cam-scale)) translate(var(--cam-x), var(--cam-y));
  transform-origin: 50% 58%;
  transition: transform 1400ms var(--ease);
}

/* Sehr langsame Kamerabewegung im Ruhezustand */
.cam--drift { animation: camDrift 46s ease-in-out infinite alternate; }
@keyframes camDrift {
  from { transform: scale(var(--cam-scale)) translate(var(--cam-x), var(--cam-y)); }
  to   { transform: scale(calc(var(--cam-scale) * 1.05)) translate(calc(var(--cam-x) - 1.6%), calc(var(--cam-y) - 1%)); }
}

.scene-plate { position: absolute; inset: 0; }

.scene-frame {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.scene-frame.is-in  { opacity: 1; }
.scene-frame.is-out { opacity: 0; }

.scene-svg,
.scene-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Sobald ein finales Foto geladen ist, tritt der Platzhalter zurück */
.scene-frame.has-photo .scene-svg { opacity: 0; }
.scene-photo { animation: photoIn 900ms var(--ease) both; }
@keyframes photoIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* Lesbarkeit: Verlauf über der Kulisse
   ------------------------------------------------------------------
   Die Werte sind auf die HELLE Stadtserie geeicht. Die frühere, dunkle
   Serie vertrug deutlich kräftigere Verläufe; auf den hellen Motiven
   hätten dieselben Werte das Bild erstickt. Wer die Bilder erneut
   austauscht, muss hier nachziehen — Bild und Verlauf gehören zusammen.

   Aufteilung: links trägt der Verlauf die Schrift, rechts gibt er die
   Stadt frei. */
.scene-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 19, 31, .95) 0%, rgba(8, 19, 31, .90) 20%, rgba(8, 19, 31, .66) 38%, rgba(8, 19, 31, .22) 58%, rgba(8, 19, 31, 0) 76%),
    linear-gradient(180deg, rgba(8, 19, 31, .20) 0%, rgba(8, 19, 31, 0) 30%, rgba(8, 19, 31, .38) 100%);
}
/* Rollenwahl: Hier steht der Text MITTIG und alle vier Ortsmarken müssen
   sichtbar bleiben. Ein linksbetonter Verlauf würde die halbe Stadt
   zudecken, deshalb ein gleichmäßiges, flaches Band. */
body:has(section.roles) .scene-scrim {
  background:
    linear-gradient(180deg, rgba(8, 19, 31, .62) 0%, rgba(8, 19, 31, .58) 34%, rgba(8, 19, 31, .30) 52%, rgba(8, 19, 31, .16) 68%, rgba(8, 19, 31, .42) 100%);
}
/* Im Spiel liegt die Aufmerksamkeit auf der Ereignisszene – die Stadt wird
   gleichmäßig abgedunkelt, bleibt aber erkennbar. */
.scene.is-play .scene-scrim {
  background:
    linear-gradient(180deg, rgba(8, 19, 31, .62) 0%, rgba(8, 19, 31, .50) 40%, rgba(8, 19, 31, .70) 100%);
}
/* Ergebnis: etwas dunkler, damit die goldene Linie trägt. */
.scene.is-result .scene-scrim {
  background:
    linear-gradient(180deg, rgba(8, 19, 31, .70) 0%, rgba(8, 19, 31, .58) 45%, rgba(8, 19, 31, .78) 100%);
}

/* Bewegte Details der Platzhalter-Kulisse */
.scene-car { animation-name: carRight; animation-timing-function: linear; animation-iteration-count: infinite; }
.car-left  { animation-name: carLeft; }
@keyframes carRight { from { transform: translateX(-120px); } to { transform: translateX(1720px); } }
@keyframes carLeft  { from { transform: translateX(1720px); } to { transform: translateX(-120px); } }

.scene-cloud { animation: cloudDrift linear infinite; }
@keyframes cloudDrift { from { transform: translateX(-260px); } to { transform: translateX(1860px); } }

.win-flicker { animation: winFlicker 7s ease-in-out infinite; }
@keyframes winFlicker { 0%, 92%, 100% { opacity: .65; } 95% { opacity: .18; } }

/* --- Goldene Route über der Stadt --- */
.scene-route {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 900ms var(--ease);
  pointer-events: none;
}
.scene-route.is-visible { opacity: 1; }

.route-line {
  fill: none;
  stroke: rgba(198, 161, 91, .22);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
}
.route-line--done {
  stroke: var(--gold);
  stroke-width: 4;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 10px rgba(198, 161, 91, .55));
  transition: stroke-dashoffset 1100ms var(--ease);
}
.route-marker__halo { fill: rgba(198, 161, 91, .28); animation: markerPulse 2.6s ease-in-out infinite; }
.route-marker__dot  { fill: var(--gold-soft); filter: drop-shadow(0 0 8px rgba(198, 161, 91, .9)); }
.route-marker { transition: transform 1100ms var(--ease); }
@keyframes markerPulse { 0%, 100% { opacity: .5; } 50% { opacity: .15; } }

/* --- Rollen-Hotspots ---
   Eigene Ebene ÜBER der UI: die Kulisse ist aria-hidden und darf keine
   Bedienelemente enthalten. Die Ebene selbst schluckt keine Klicks,
   nur die Marken darin. Kamerawerte kommen aus scene.js. */
.spot-layer {
  position: fixed;
  inset: -6%;
  z-index: 25;
  pointer-events: none;
  --cam-scale: 1.14;
  --cam-x: 0%;
  --cam-y: 0%;
  transform: scale(var(--cam-scale)) translate(var(--cam-x), var(--cam-y));
  transform-origin: 50% 58%;
  transition: transform 1400ms var(--ease);
}
.spot-layer[hidden] { display: none; }

.spot {
  position: absolute;
  left: var(--spot-x); top: var(--spot-y);
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  pointer-events: auto;
}

.spot__glow {
  position: absolute; left: 50%; top: 50%;
  width: 132px; height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, .40) 0%, rgba(198, 161, 91, .12) 42%, rgba(198, 161, 91, 0) 70%);
  opacity: .34;
  transition: opacity 380ms var(--ease), transform 380ms var(--ease);
}

.spot__pin {
  position: relative;
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, .22), 0 0 18px rgba(198, 161, 91, .8);
  transition: transform 380ms var(--ease);
}
.spot__pin::after {
  content: "";
  position: absolute; inset: -14px;
  border: 1px solid rgba(198, 161, 91, .45);
  border-radius: 50%;
  animation: spotRing 3.4s ease-out infinite;
}
@keyframes spotRing {
  0%   { transform: scale(.7); opacity: .8; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.spot__card {
  position: absolute;
  left: 50%; bottom: calc(100% + 16px);
  transform: translate(-50%, 8px);
  width: min(268px, 62vw);
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(12, 26, 44, .92);
  border: 1px solid rgba(198, 161, 91, .34);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(9px);
  opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms;
}
.spot__place  { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.spot__role   { font-family: var(--font-display); font-size: 21px; line-height: 1.15; color: var(--cream); }
.spot__teaser { font-size: 13px; line-height: 1.45; color: var(--cream-dim); }

.spot:hover .spot__card,
.spot:focus-visible .spot__card,
.spot.is-active .spot__card { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.spot:hover .spot__glow,
.spot:focus-visible .spot__glow,
.spot.is-active .spot__glow { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }

.spot:hover .spot__pin,
.spot:focus-visible .spot__pin,
.spot.is-active .spot__pin { transform: scale(1.3); }

.spot:focus-visible { outline: 2px solid var(--gold); outline-offset: 12px; border-radius: 50%; }

/* Solange die Detailkarte offen ist, treten die Hover-Vorschauen zurück. */
.spot-layer.is-picking .spot__card { opacity: 0; visibility: hidden; }

/* =====================================================================
   FORTSCHRITTSBALKEN (dünn, ganz oben)
   ===================================================================== */
.progress-track {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 40;
  background: rgba(233, 226, 211, .08);
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 14px rgba(198, 161, 91, .7);
  transition: width 700ms var(--ease);
}

/* =====================================================================
   APP-RAHMEN
   ===================================================================== */
.app {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(16px, 4vw, 40px);
}

.stage {
  flex: 1;
  width: 100%;
  max-width: var(--stage-max);
  /* Die Bühne füllt den ersten Bildschirm – der statische Text liegt darunter. */
  min-height: min(76vh, 820px);
  margin: 0 auto;
  padding: clamp(18px, 4vh, 46px) 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stage.entering > * { animation: stageIn 620ms var(--ease) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: var(--navy-line);
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 13px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
              background 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 46%, var(--gold-deep) 100%);
  --btn-fg: #08131F;
  --btn-bd: transparent;
  font-weight: 700;
  box-shadow: 0 10px 28px -12px rgba(198, 161, 91, .85), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(198, 161, 91, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
  filter: brightness(1.06);
}
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 16px 32px; font-size: 15px; }

.btn-ghost { --btn-bg: transparent; --btn-bd: rgba(233, 226, 211, .28); }
.btn-ghost:hover { --btn-bd: var(--gold); color: var(--gold-soft); }

.btn-line { --btn-bd: rgba(233, 226, 211, .22); font-size: 13px; padding: 10px 18px; }
.btn-line:hover { --btn-bd: var(--teal-lit); color: var(--teal-lit); }

/* =====================================================================
   HERO / STARTBILDSCHIRM
   ===================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 62vh;
}
.hero-copy { max-width: 34rem; }

.hero-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-badge::before {
  content: ""; display: inline-block;
  width: 34px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 12px;
}

.hero-title {
  font-size: clamp(40px, 7.4vw, 78px);
  line-height: 1.03;
  margin-bottom: 18px;
}
.hero-title em { display: block; font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--cream-dim);
  max-width: 30rem;
  margin: 0 0 30px;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 30px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-faint);
}
.hero-meta b { color: var(--cream); font-size: 15px; letter-spacing: 0; margin-right: 5px; }

.hero-hint {
  margin-top: 34px;
  font-size: 13px;
  color: var(--cream-faint);
  display: flex; align-items: center; gap: 10px;
}
.hero-hint::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold);
}

/* =====================================================================
   ROLLENWAHL
   ===================================================================== */
.roles-intro { text-align: center; margin-bottom: clamp(18px, 5vh, 52px); }

.section-kicker {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.1; margin-bottom: 10px; }
.section-sub { color: var(--cream-dim); max-width: 46ch; margin: 0 auto; font-size: 15px; }

/* Mobile Kartenleiste (auf Desktop verborgen, dort zählen die Hotspots) */
.role-rail {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  margin: 0 calc(clamp(16px, 4vw, 40px) * -1);
  padding-inline: clamp(16px, 4vw, 40px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.role-rail::-webkit-scrollbar { display: none; }

.role-card {
  flex: 0 0 min(264px, 74vw);
  scroll-snap-align: center;
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  background: rgba(12, 26, 44, .86);
  border: 1px solid var(--navy-line);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.role-card:hover, .role-card:focus-visible { transform: translateY(-4px); border-color: rgba(198, 161, 91, .5); }

/* Rollenporträt im Format 4:5 – Gesicht und Oberkörper bleiben im Bild */
.role-card__media { display: block; width: 100%; flex: none; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-panel); }
.role-card__media picture { display: block; width: 100%; height: 100%; }
.role-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.role-card__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; }

.role-place { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.role-name  { font-family: var(--font-display); font-size: 25px; line-height: 1.12; }
.role-tag   { font-size: 13.5px; color: var(--cream-dim); }
.role-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.role-facts span {
  font-size: 11.5px; padding: 4px 9px;
  border: 1px solid var(--navy-line); border-radius: 999px;
  color: var(--cream-dim);
}

.roles-hint {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--cream-faint);
}

/* --- Rollen-Detail: fährt seitlich ein --- */
.role-detail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  z-index: 60;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(12, 26, 44, .97), rgba(8, 19, 31, .99));
  border-left: 1px solid rgba(198, 161, 91, .3);
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, .9);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 520ms var(--ease);
}
.role-detail.is-open { transform: none; }
/* Nichts im Panel darf gestaucht werden – es scrollt lieber. */
.role-detail > * { flex: none; }

.role-detail__close {
  align-self: flex-start;
  background: none; border: 0; padding: 4px 0;
  color: var(--cream-faint); font: inherit; font-size: 13px; cursor: pointer;
}
.role-detail__close:hover { color: var(--gold); }

.role-detail__media {
  display: block; width: 100%;
  flex: none;                 /* sonst staucht der Flex-Container das 4:5-Format */
  aspect-ratio: 4 / 5;
  max-height: 34vh;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy-panel);
}
.role-detail__media picture { display: block; width: 100%; height: 100%; }
.role-detail__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }

.role-detail__place { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.role-detail__name  { font-family: var(--font-display); font-size: clamp(30px, 5vw, 40px); line-height: 1.08; }
.role-detail__tag   { color: var(--cream-dim); font-size: 15px; }

.role-detail__facts { display: flex; flex-direction: column; gap: 1px; background: var(--navy-line); border-radius: var(--r-md); overflow: hidden; }
.role-detail__fact {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 14px;
  background: rgba(12, 26, 44, .9);
  font-size: 14px;
}
.role-detail__fact span { color: var(--cream-faint); }
.role-detail__fact b { font-size: 17px; font-weight: 600; }
.role-detail__fact b.is-cash    { color: var(--c-cash); }
.role-detail__fact b.is-income  { color: var(--c-surplus); }
.role-detail__fact b.is-debt    { color: var(--c-stress); }

.role-detail__note { font-size: 13px; color: var(--cream-faint); }

/* =====================================================================
   EINFÜHRUNG (drei Schritte)
   ===================================================================== */
.steps { text-align: center; max-width: 30rem; margin: 0 auto; }

.step-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.step-dots i {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(233, 226, 211, .2);
  transition: background 320ms var(--ease);
}
.step-dots i.is-on { background: var(--gold); box-shadow: 0 0 10px rgba(198, 161, 91, .8); }

.step-num {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.step-line {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 48px);
  line-height: 1.14;
  margin-bottom: 30px;
}
.step-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   COCKPIT
   ===================================================================== */
.cockpit {
  position: sticky;
  top: 3px;
  z-index: 30;
  width: 100%;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 10px 14px;
  display: none;
  gap: 12px;
  align-items: center;
  background: rgba(8, 19, 31, .72);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift);
}
.cockpit.visible { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }

/* --- links: Rolle + Alter --- */
.ck-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ck-avatar {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(198, 161, 91, .4), 0 0 16px rgba(198, 161, 91, .35);
}
.ck-who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.ck-role { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-age  { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* --- Mitte: Geldwerte --- */
.ck-money { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-width: 0; }

.ck-stat {
  position: relative;
  min-width: 92px;
  /* obere Zeile bleibt für die Delta-Anzeige frei, sonst würde sie
     über den oberen Bildschirmrand hinauslaufen */
  padding: 16px 11px 5px;
  border-radius: var(--r-sm);
  background: rgba(233, 226, 211, .045);
  border: 1px solid transparent;
  transition: border-color 320ms var(--ease), background 320ms var(--ease);
}
.ck-stat.is-clickable { cursor: pointer; }
.ck-stat.is-clickable:hover,
.ck-stat.is-clickable:focus-visible { border-color: rgba(198, 161, 91, .55); background: rgba(198, 161, 91, .10); }
.ck-stat.is-clickable:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Sichtbares Zeichen, dass sich hinter der Kachel der Finanzbogen öffnet */
.ck-stat__tap {
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
  opacity: .85;
  transition: transform 220ms var(--ease);
}
.ck-stat.is-clickable:hover .ck-stat__tap { transform: scale(1.25); opacity: 1; }

.ck-stat__label {
  display: flex; align-items: center; gap: 4px;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream-faint);
  white-space: nowrap;
}
.ck-stat__val {
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ck-stat[data-key="cash"]           .ck-stat__val { color: var(--c-cash); }
.ck-stat[data-key="netWorth"]       .ck-stat__val { color: var(--c-wealth); }
.ck-stat[data-key="monthlySurplus"] .ck-stat__val { color: var(--c-surplus); }
.ck-stat[data-key="passiveIncome"]  .ck-stat__val { color: var(--c-passive); }

/* --- rechts: die drei Gefühlswerte als Ringe --- */
.ck-mood { display: flex; gap: 10px; }

/* Ring + Beschriftung als eigene Spalte: die Zelle ist so breit wie ihr Label,
   dadurch überlappen die Beschriftungen nicht mehr. */
.ck-ring {
  position: relative; flex: none;
  padding-top: 11px;   /* Platz für die Delta-Anzeige */
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ck-ring__viz { position: relative; width: 42px; height: 42px; }
.ck-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ck-ring circle { fill: none; stroke-width: 3.5; }
.ck-ring .ring-bg { stroke: rgba(233, 226, 211, .12); }
.ck-ring .ring-fg { stroke-linecap: round; transition: stroke-dashoffset 800ms var(--ease); }
.ck-ring[data-key="security"] .ring-fg { stroke: var(--c-security); }
.ck-ring[data-key="quality"]  .ring-fg { stroke: var(--c-quality); }
.ck-ring[data-key="stress"]   .ring-fg { stroke: var(--c-stress); }
.ck-ring__val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ck-ring__cap {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-faint); white-space: nowrap;
}

/* --- Delta-Anzeige --- */
.ck-delta {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, 5px);
  padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  z-index: 2;
}
.ck-delta.show { opacity: 1; transform: translate(-50%, 0); }
.ck-delta.good { background: rgba(123, 192, 140, .18); color: var(--ok);   border: 1px solid rgba(123, 192, 140, .4); }
.ck-delta.bad  { background: rgba(226, 114, 91, .18);  color: var(--warn); border: 1px solid rgba(226, 114, 91, .4); }

.ck-flash { animation: ckFlash 900ms var(--ease); }
@keyframes ckFlash {
  0%   { box-shadow: 0 0 0 0 rgba(198, 161, 91, .5); }
  40%  { box-shadow: 0 0 0 5px rgba(198, 161, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0); }
}

/* Info-Button an den Kennzahlen */
.ck-info {
  width: 13px; height: 13px; flex: none;
  border: 1px solid rgba(233, 226, 211, .34);
  border-radius: 50%;
  background: none; color: var(--cream-faint);
  font-size: 8.5px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.ck-info:hover { border-color: var(--gold); color: var(--gold); }

/* --- Fortschrittsroute unter dem Cockpit --- */
.route-strip {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(233, 226, 211, .08);
}
.route-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-faint);
  transition: color 320ms var(--ease);
}
.route-step__dot {
  width: 100%; height: 3px; border-radius: 2px;
  background: rgba(233, 226, 211, .14);
  transition: background 420ms var(--ease), box-shadow 420ms var(--ease);
}
.route-step.is-done .route-step__dot { background: rgba(198, 161, 91, .45); }
.route-step.is-on   { color: var(--gold); }
.route-step.is-on   .route-step__dot { background: var(--gold); box-shadow: 0 0 12px rgba(198, 161, 91, .8); }

.route-count {
  flex: none; padding-left: 10px;
  font-size: 10px; letter-spacing: .08em;
  color: var(--cream-faint); font-variant-numeric: tabular-nums;
}

/* =====================================================================
   EREIGNISSZENE
   Bild vollflächig, Navy-Verlauf von links, Text und Entscheidungen
   darüber. Die Szene bleibt stehen, während die Folge eingeblendet wird.
   ===================================================================== */
.event-scene {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--navy-deep);
}

.event-scene__media { position: absolute; inset: 0; }
.event-scene__media picture { display: block; width: 100%; height: 100%; }
.event-scene__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% 50%;   /* rechte Bildhälfte bleibt sichtbar, links liegt der Text */
  display: block;
  animation: photoIn 900ms var(--ease) both;
}

.event-scene__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 26, 44, .96) 0%, rgba(12, 26, 44, .85) 34%, rgba(12, 26, 44, .45) 62%, rgba(12, 26, 44, .12) 100%),
    linear-gradient(180deg, rgba(8, 19, 31, .35) 0%, rgba(8, 19, 31, 0) 30%, rgba(8, 19, 31, .45) 100%);
}

.event-scene__panel {
  position: relative;
  width: min(560px, 62%);
  padding: clamp(22px, 3.4vw, 38px);
}
.event-scene__panel.is-swapping { animation: stageIn 420ms var(--ease) both; }

.event__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233, 226, 211, .14);
}
.event__place { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.event__meta  { font-size: 11px; color: var(--cream-faint); letter-spacing: .06em; }

.event__title { font-size: clamp(24px, 3.8vw, 34px); line-height: 1.14; margin-bottom: 12px; }
.event__story { color: var(--cream-dim); font-size: 15.5px; margin: 0 0 8px; }

.event__cost {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 12px 0 4px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(226, 114, 91, .34);
  background: rgba(226, 114, 91, .1);
  font-size: 12.5px; color: #F0A48F;
}

.options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.option {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  color: inherit; font: inherit;
  background: rgba(233, 226, 211, .05);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.option:hover, .option:focus-visible {
  transform: translateX(4px);
  border-color: rgba(198, 161, 91, .55);
  background: rgba(198, 161, 91, .09);
}
.option.dim    { opacity: .3; transform: none; }
.option.chosen { border-color: var(--gold); background: rgba(198, 161, 91, .16); }

.option__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.option__label { font-size: 15.5px; font-weight: 600; }
.option__detail { font-size: 13px; color: var(--cream-faint); }
.option__cost {
  flex: none;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.option__cost.neg { color: var(--warn); }
.option__cost.pos { color: var(--ok); }

.opt-uncertain {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(198, 161, 91, .4);
  border-radius: 999px; padding: 1px 7px; margin-left: 7px;
  vertical-align: middle;
}

/* =====================================================================
   KONSEQUENZ
   ===================================================================== */
.consequence {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: rgba(12, 26, 44, .86);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  padding: clamp(24px, 4vw, 38px);
}
.cons-kicker { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.cons-text { font-family: var(--font-display); font-size: clamp(19px, 3vw, 26px); line-height: 1.34; margin: 0 0 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid var(--navy-line);
  background: rgba(233, 226, 211, .05);
  color: var(--cream-dim);
}
.chip b { font-variant-numeric: tabular-nums; }
.chip.good b { color: var(--ok); }
.chip.bad  b { color: var(--warn); }
.chip.perm { border-style: dashed; }
.chip.perm i { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); }
.perm-row { margin-top: 8px; }

.cons-insight {
  margin: 20px auto 0; max-width: 44ch;
  padding: 13px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(198, 161, 91, .07);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; color: var(--cream-dim); text-align: left;
}
.consequence .btn { margin-top: 26px; }

/* =====================================================================
   FINANZBOGEN
   ===================================================================== */
.finance-check {
  max-width: 640px; margin: 0 auto;
  background: rgba(12, 26, 44, .9);
  border: 1px solid var(--navy-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  padding: clamp(22px, 4vw, 34px);
}
.finance-check .section-title { text-align: center; }
.finance-check .section-sub { text-align: center; margin-bottom: 20px; }

.fc-total {
  text-align: center; margin-bottom: 18px;
  font-size: 14px; color: var(--cream-dim);
}
.fc-total b { color: var(--c-cash); font-size: 17px; }

.fc-row, .fc-debt { margin-bottom: 15px; }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 5px; }
.fc-amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-cash); }
.fc-amt.neg { color: var(--warn); }
.fc-hint { font-size: 12px; color: var(--cream-faint); margin-top: 4px; }

.finance-check input[type="range"] {
  width: 100%; height: 22px; margin: 0;
  appearance: none; -webkit-appearance: none; background: none; cursor: pointer;
}
.finance-check input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px; background: rgba(233, 226, 211, .16);
}
.finance-check input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .22);
}
.finance-check input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 2px; background: rgba(233, 226, 211, .16);
}
.finance-check input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, .22);
}

.fc-debt { padding-top: 14px; border-top: 1px solid rgba(233, 226, 211, .1); }
.fc-cash {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding: 13px 16px;
  background: rgba(198, 161, 91, .08);
  border: 1px solid rgba(198, 161, 91, .26);
  border-radius: var(--r-md);
  font-size: 14px;
}
.fc-warn { font-size: 12.5px; color: var(--cream-faint); margin: 10px 0 18px; min-height: 1.2em; }
.finance-check .btn { width: 100%; margin-bottom: 8px; }

/* =====================================================================
   ABSCHLUSS: JOURNEY CARD
   ===================================================================== */
.finale { max-width: 760px; margin: 0 auto; }

.finale-lead { text-align: center; margin-bottom: 22px; }
.finale-lead .section-kicker { margin-bottom: 10px; }

.jcard {
  position: relative;
  background: linear-gradient(160deg, rgba(16, 35, 56, .95), rgba(8, 19, 31, .97));
  border: 1px solid rgba(198, 161, 91, .32);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.jcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(198, 161, 91, .14), transparent 65%);
  pointer-events: none;
}
.jcard__head {
  position: relative;
  padding: clamp(26px, 4vw, 38px) clamp(22px, 4vw, 36px) 22px;
  text-align: center;
  border-bottom: 1px solid rgba(233, 226, 211, .1);
}
.jcard__kicker { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.jcard__name { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; margin-bottom: 12px; }
.jcard__desc { color: var(--cream-dim); font-size: 15.5px; max-width: 48ch; margin: 0 auto; }

.jcard__grid {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: rgba(233, 226, 211, .1);
}
.jc-item { padding: 18px clamp(20px, 3.4vw, 30px); background: rgba(10, 22, 37, .92); }
.jc-item__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.jc-item__text { font-size: 14.5px; color: var(--cream-dim); }

.jc-compare { padding: clamp(20px, 3.4vw, 30px); background: rgba(10, 22, 37, .92); }
.jc-compare__head { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

.jc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto auto;
  align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(233, 226, 211, .07);
  font-size: 13.5px;
}
.jc-row:last-child { border-bottom: 0; }
.jc-row__label { color: var(--cream-faint); }
.jc-row__from  { color: var(--cream-faint); font-variant-numeric: tabular-nums; }
.jc-row__arrow { color: var(--cream-faint); font-size: 11px; }
.jc-row__to    { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.jc-row__to.up   { color: var(--ok); }
.jc-row__to.down { color: var(--warn); }
.jc-row__to.flat { color: var(--cream); }

.jcard__note {
  padding: 16px clamp(20px, 3.4vw, 30px);
  font-size: 12.5px; color: var(--cream-faint);
  background: rgba(8, 19, 31, .9);
  border-top: 1px solid rgba(233, 226, 211, .08);
}

.finale-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 26px;
}
.finale-share { text-align: center; margin-top: 26px; }
.finale-share__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 10px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* =====================================================================
   HILFE-OVERLAY (Erklärungen zu den Kennzahlen)
   ===================================================================== */
.help {
  position: fixed; inset: 0; z-index: 90;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(4, 12, 22, .82);
  backdrop-filter: blur(6px);
}
.help.is-open { display: flex; }

.help__panel {
  width: min(560px, 100%);
  max-height: 84vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  background: linear-gradient(160deg, rgba(16, 35, 56, .98), rgba(8, 19, 31, .99));
  border: 1px solid rgba(198, 161, 91, .3);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  animation: stageIn 380ms var(--ease) both;
}
.help__title { font-size: 26px; margin-bottom: 6px; }
.help__sub { color: var(--cream-faint); font-size: 13.5px; margin: 0 0 20px; }

.help__item { padding: 13px 0; border-top: 1px solid rgba(233, 226, 211, .1); }
.help__item:first-of-type { border-top: 0; }
.help__item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.help__item span { font-size: 13.5px; color: var(--cream-dim); }
.help__item[data-key="cash"] b     { color: var(--c-cash); }
.help__item[data-key="netWorth"] b { color: var(--c-wealth); }
.help__item[data-key="security"] b { color: var(--c-security); }
.help__item[data-key="quality"] b  { color: var(--c-quality); }
.help__item[data-key="stress"] b   { color: var(--c-stress); }

.help__close { margin-top: 20px; width: 100%; }

/* =====================================================================
   STATISCHER TEXTBLOCK + FUSSZEILE (rechtliche Hinweise bleiben)
   ===================================================================== */
.static-intro {
  position: relative; z-index: 10;
  max-width: 640px;
  margin: 60px auto 0;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(8, 19, 31, .88);
  border: 1px solid rgba(233, 226, 211, .1);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  color: var(--cream-faint);
  font-size: 14px;
}
.static-intro h2 { font-size: 20px; color: var(--cream-dim); margin-bottom: 10px; }
.static-intro p { margin: 0 0 10px; }
.static-intro p:last-child { margin-bottom: 0; }
.static-intro__cta { color: var(--gold); text-decoration: none; font-weight: 600; }
.static-intro__cta:hover { text-decoration: underline; }

/* Aufklapper: zugeklappt nur eine Zeile, damit er im Spiel nicht ablenkt. */
.static-intro__summary {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--cream-dim);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.static-intro__summary::-webkit-details-marker { display: none; }
.static-intro__summary::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 260ms var(--ease);
}
.static-intro[open] .static-intro__summary { margin-bottom: 14px; }
.static-intro[open] .static-intro__summary::before { transform: rotate(45deg); }
.static-intro__summary:hover { color: var(--cream); }
.static-intro__summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

/* Rechtlicher Hinweis, immer sichtbar */
.static-note {
  position: relative; z-index: 10;
  max-width: 640px;
  margin: 14px auto 0;
  padding: 0 clamp(22px, 3vw, 30px);
  font-size: 12.5px;
  color: var(--cream-faint);
  text-align: center;
}

.app-footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 26px 16px 30px;
  font-size: 11.5px; letter-spacing: .06em;
  color: var(--cream-faint);
}
.app-footer a { color: inherit; }

/* =====================================================================
   RESPONSIV
   ===================================================================== */

/* Tablet: Cockpit umbrechen, Kennzahlen bleiben in einer Reihe lesbar */
@media (max-width: 1024px) {
  .cockpit.visible { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .ck-mood { grid-column: 1 / -1; justify-content: space-around; padding-top: 6px; margin-top: 2px; border-top: 1px solid rgba(233, 226, 211, .08); }
  .ck-money { justify-content: flex-end; }
  .ck-stat { min-width: 84px; }
  .jcard__grid { grid-template-columns: 1fr 1fr; }
}

/* Ab 768 px trägt die Stadt die Rollenwahl, darunter die Kartenleiste
   (Bruchpunkt aus dem Auftrag). */
@media (min-width: 768px) {
  .role-rail { display: none; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 68vh; }
}
@media (max-width: 767px) {
  .spot-layer { display: none !important; }
  .roles-hint { display: none; }
  .scene-cam { --cam-scale: 1.1 !important; }

  /* Ereignis: Bild oben, Entscheidungen darunter – sonst wird der Text
     über dem Bild zu klein. */
  .event-scene { display: block; min-height: 0; }
  .event-scene__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .event-scene__img { object-position: 50% 50%; }
  .event-scene__scrim {
    inset: auto 0 0 0; height: 38%;
    background: linear-gradient(180deg, rgba(12, 26, 44, 0), rgba(12, 26, 44, .96));
  }
  .event-scene__panel { width: 100%; background: rgba(12, 26, 44, .96); }
  .cockpit.visible { grid-template-columns: 1fr; }
  .ck-identity { justify-content: flex-start; }
  .ck-money { justify-content: flex-start; }
  .ck-stat { min-width: 0; flex: 1 1 78px; }
  .ck-mood { justify-content: space-between; }
  .jcard__grid { grid-template-columns: 1fr; }
  .role-detail {
    width: 100%; top: auto; bottom: 0; height: min(86vh, 640px);
    border-left: 0; border-top: 1px solid rgba(198, 161, 91, .3);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%);
  }
  .role-detail.is-open { transform: none; }
}

@media (max-width: 560px) {
  .stage { padding-top: 14px; }
  .hero { min-height: 56vh; }
  .event__body { padding: 20px 17px; }
  .option { padding: 13px 15px; }
  .jc-row { font-size: 12.5px; }

  /* Cockpit auf dem Smartphone: Kennzahlen in zwei Spalten statt einer
     überlaufenden Reihe, Ringe kleiner, Route mit etwas Luft darüber. */
  .cockpit.visible { padding: 8px 10px; row-gap: 8px; align-items: stretch; }
  .ck-money { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ck-stat { min-width: 0; padding: 14px 9px 4px; }
  .ck-stat__label { font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
  .ck-stat__val { font-size: 14px; }
  .ck-mood { gap: 6px; justify-content: space-between; }
  .ck-ring__viz { width: 36px; height: 36px; }
  .ck-ring__cap { font-size: 7.5px; letter-spacing: .04em; }
  .route-strip { margin-top: 2px; }
  .route-step { font-size: 8px; }
  .route-count { padding-left: 6px; }
}

/* =====================================================================
   BEWEGUNG REDUZIEREN
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .scene-cam { transition: none; animation: none; }
  .scene-car, .scene-cloud, .win-flicker { display: none; }
  .route-marker__halo { display: none; }
  .stage.entering > * { animation: none; opacity: 1; transform: none; }
  .scene-frame { opacity: 1; }
}
