:root {
  --creme:      #ffffff;
  --creme-hell: #fafafa;
  --creme-tief: #e6e4e0;

  --aubergine:      #5a2a4d;
  --aubergine-tief: #3f1c36;
  --senf:      #a8841f;
  --senf-hell: #d8b455;
  --tinte:     #33262f;

  --linie:      rgba(90, 42, 77, 0.30);
  --linie-fein: rgba(51, 38, 47, 0.16);

  --rand: 3.2vw;
  --spalte: 46rem;

  --sans: "Frutiger", "Frutiger LT Std", "Frutiger Neue LT", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  font-size: clamp(16px, min(1.45vw, 2.1vh), 26px);
}

body {
  height: 100%;
  overflow: hidden;
  background: var(--creme);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

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

.entwurfsmarke {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senf);
}

/* ---------- Ebenen und Kopf ---------- */

.ebene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  flex-direction: column;
  padding: calc(var(--rand) * 0.9) var(--rand);
  overflow: hidden;
}

.ebene--aktiv {
  display: flex;
  animation: ebene-auf 0.4s ease both;
}

@keyframes ebene-auf {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kopf {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}

.stationsmarke {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.45;
}

.stationsmarke span:first-child { color: var(--senf); }
.stationsmarke span:last-child  { color: var(--aubergine); }

.kopf-rechts {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.raum {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--senf);
}

.zaehler {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--aubergine);
}

.kapitel {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinte);
  opacity: 0.55;
}

.balken {
  flex: none;
  height: 6px;
  border-radius: 3px;
  background: var(--creme-tief);
  margin-bottom: 1.5rem;
}

.balken-fuellung {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--aubergine);
  transition: width 0.4s ease;
}

.mitte {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.mitte--start { justify-content: center; overflow: hidden; }
.mitte--fuellend { align-items: stretch; }
.mitte--fuellend > * { flex: 1 1 auto; min-height: 0; }

/* ---------- Typografie ---------- */

.schlagzeile {
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1.1;
  color: var(--aubergine);
  margin-bottom: 1.2rem;
}

.schlagzeile--klein { font-size: 2.2rem; max-width: 26ch; }

/* ---------- Messfeld auf dem Startbildschirm ---------- */

.messfeld {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

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


.messfeld::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 46% at 50% 46%,
    var(--creme) 0%, var(--creme) 58%, rgba(255, 255, 255, 0) 88%);
}

.mpunkt {
  opacity: 0;
  animation: mp-auf 26s ease-in-out infinite;
  animation-delay: var(--verz, 0s);
}

@keyframes mp-auf {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  64%  { opacity: 1; }
  73%  { opacity: 0; }
  100% { opacity: 0; }
}

.mkern { fill: var(--aubergine); opacity: 0.55; }
.mkern--licht { fill: var(--senf); opacity: 0.85; }


.mregung {
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: center;
  animation: mregung-lauf 4.2s ease-out infinite;
}

.mregung--b { animation-delay: 1.4s; }
.mregung--c { animation-delay: 2.8s; }

@keyframes mregung-lauf {
  0%   { transform: scale(0.5); opacity: 0; }
  18%  { opacity: 0.4; }
  100% { transform: scale(3.1); opacity: 0; }
}


.mring {
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.4;
  transform-origin: center;
  animation: mring-atmen 5.4s ease-in-out infinite;
}

@keyframes mring-atmen {
  0%, 100% { transform: scale(0.72); opacity: 0.18; }
  50%      { transform: scale(1.12); opacity: 0.5; }
}


.mschein {
  fill: var(--senf);
  opacity: 0.1;
  transform-origin: center;
  animation: mschein-glimmen 6.2s ease-in-out infinite;
}

@keyframes mschein-glimmen {
  0%, 100% { transform: scale(0.55); opacity: 0.06; }
  46%      { transform: scale(1.25); opacity: 0.22; }
}


.mwert {
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  fill: var(--senf);
  opacity: 0;
  animation: mwert-auf 26s ease-in-out infinite;
  animation-delay: var(--verz, 0s);
}

@keyframes mwert-auf {
  0%   { opacity: 0; transform: translateY(7px); }
  6%   { opacity: 0.88; transform: translateY(0); }
  30%  { opacity: 0.88; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(-7px); }
  100% { opacity: 0; }
}


.mfaden {
  stroke: var(--aubergine);
  stroke-width: 1;
  opacity: 0;
  animation: mfaden-knuepfen 26s ease-in-out infinite;
  animation-delay: var(--verz, 0s);
}

@keyframes mfaden-knuepfen {
  0%   { stroke-dashoffset: var(--lang, 400px); opacity: 0; }
  3%   { opacity: 0.26; }
  22%  { stroke-dashoffset: 0; opacity: 0.26; }
  30%  { opacity: 0.26; }
  36%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: var(--lang, 400px); opacity: 0; }
}

#screen-start .kopf,
#screen-start .mitte,
#screen-start .startfuss { position: relative; z-index: 1; }

#screen-start .schlagzeile { font-size: 3.6rem; max-width: 17ch; line-height: 1.03; margin-bottom: 1.5rem; }
#screen-start .szenario { font-size: 1.6rem; line-height: 1.55; max-width: 48ch; margin-bottom: 1.9rem; }
#screen-start .kernfrage { font-size: 2.3rem; max-width: 26ch; padding-top: 1.5rem; margin-bottom: 2.3rem; }

.frage-titel {
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--aubergine);
  max-width: 24ch;
  margin: 0 auto 0.7rem;
}

#screen-menue .frage-hinweis { font-size: 1.05rem; max-width: 58ch; }

.frage-hinweis {
  font-size: 1.2rem;
  color: var(--tinte);
  max-width: 54ch;
  margin: 0 auto 1.6rem;
}

.szenario {
  max-width: 52ch;
  font-size: 1.35rem;
  line-height: 1.65;
  margin: 0 auto 1.6rem;
}

.kernfrage {
  max-width: 42ch;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aubergine);
  padding-top: 1.2rem;
  border-top: 3px solid var(--senf-hell);
  margin: 0 auto 2rem;
}

.teaser-laeuft .teaser {
  animation: teaser-auf 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--verz, 0s);
}

@keyframes teaser-auf {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.startfuss {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
}

.anonym {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--senf);
  text-align: right;
}

/* ---------- Schaltflächen ---------- */

.navigation {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
}

.btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--voll {
  background: var(--aubergine);
  color: var(--creme-hell);
}

.btn--voll:active { background: var(--aubergine-tief); }

.btn--linie {
  border: 2px solid var(--aubergine);
  background: var(--creme-hell);
  color: var(--aubergine);
}

.btn--linie:active { background: var(--creme-tief); }

.btn[hidden] { visibility: hidden; display: inline-flex; }

.btn--start {
  align-self: center;
  padding: 1.5rem 3.6rem;
  font-size: 1.8rem;
  line-height: 1.2;
  text-align: left;
  gap: 1.5rem;
  white-space: nowrap;
}

.btn--start .hand { width: 2.9rem; height: 2.9rem; }

.btn--dgs { padding: 0.8rem 1.5rem; font-size: 1.05rem; font-weight: 600; }

.knopfreihe {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.pfeil {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hand {
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: tippen 2.4s ease-in-out infinite;
}

.hand--ruhig { width: 1.8rem; height: 1.8rem; animation: none; }

@keyframes tippen {
  0%, 32%, 100% { transform: translateY(0)       scale(1); }
  46%           { transform: translateY(0.65rem) scale(0.82); }
  60%           { transform: translateY(0)       scale(1); }
  70%           { transform: translateY(0.3rem)  scale(0.92); }
  80%           { transform: translateY(0)       scale(1); }
}

/* ---------- Ebene 2: die drei Bereiche ---------- */

/* ---------- Ebene 3: Smart-Karten ---------- */

.karten-raster {
  display: flex;
  gap: 1.6rem;
  align-items: stretch;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  text-align: left;
}

.lesefeld {
  flex: 0 0 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.6rem 1.2rem;
  border: 3px dashed var(--linie);
  border-radius: 8px;
  background: var(--creme-hell);
  text-align: center;
  cursor: pointer;
}

.lesefeld svg {
  width: 4.6rem;
  height: 4.6rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesefeld b {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--aubergine);
}

.lesefeld span {
  font-size: 1.02rem;
  line-height: 1.4;
  max-width: 28ch;
}

.lesefeld-hinweis {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 2px solid var(--linie-fein);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--senf);
}

.projektliste {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-content: start;
}

.karte {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.95rem 1.3rem;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--tinte);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.karte:active { background: var(--creme-tief); border-color: var(--aubergine); }

.karte svg {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.karte b { display: block; font-size: 1.15rem; font-weight: 700; }
.karte em { display: block; font-style: normal; font-size: 0.98rem; opacity: 0.7; margin-top: 0.15rem; }

.karte em { line-height: 1.3; }

.kartennr {
  display: inline;
  margin-right: 0.45rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--creme-tief);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tinte);
}

/* ---------- Ebene 4: Projektseite ---------- */

.projekt-raster {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
  max-width: 66rem;
  margin: 0 auto;
  text-align: left;
}

.projekt-text { flex: 1 1 auto; }

.projekt-text p { font-size: 1.15rem; line-height: 1.6; margin-bottom: 0.7rem; max-width: 62ch; }
.projekt-text p:last-child { margin-bottom: 0; }

.projekt-seite { flex: 0 0 34%; display: flex; flex-direction: column; gap: 0.9rem; }

.wert {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--linie-fein);
}

.wert:last-of-type { border-bottom: none; }
.wert span { font-size: 1.05rem; line-height: 1.3; }
.wert b { font-size: 1.5rem; font-weight: 700; color: var(--aubergine); white-space: nowrap; }
.wert b i { font-style: normal; font-size: 0.95rem; opacity: 0.7; margin-left: 0.2rem; }

.quelle {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--senf);
  line-height: 1.4;
}

.live {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 1rem 1.3rem;
  border-radius: 8px;
  background: var(--creme-hell);
  border-left: 6px solid var(--senf);
}

.live > div { flex: 1 1 auto; min-width: 0; }
.live b { display: block; font-size: 1.15rem; color: var(--senf); }
.live span { display: block; font-size: 1.05rem; line-height: 1.45; }
.live .btn { flex: none; padding: 0.6rem 1.3rem; font-size: 1rem; }

.feld--live { margin-top: 0.9rem; text-align: left; }
.feld--live .wert { padding: 0.35rem 0; }
.feld--live .wert b { color: var(--tinte); opacity: 0.5; }

/* ---------- Ebene 5: Datenspaziergang ---------- */

.spazier-raster {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  text-align: left;
  min-height: 0;
}

.vorrat {
  flex: 0 0 19%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.vorrat h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--senf);
  margin-bottom: 0.45rem;
}

.vorrat-liste {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fuehler {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
  color: var(--tinte);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.fuehler svg {
  flex: none;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fuehler > span { min-width: 0; }
.fuehler b { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.fuehler em { display: block; font-style: normal; font-size: 0.88rem; opacity: 0.65; }

.fuehler--gewaehlt { background: var(--aubergine); border-color: var(--aubergine); color: var(--creme-hell); }
.fuehler--gewaehlt svg { stroke: var(--creme-hell); }

.zieht {
  position: fixed;
  z-index: 40;
  transform: translate(-50%, -168%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--aubergine);
  pointer-events: none;
}

.zieht span { display: none; }

.zieht svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: var(--creme-hell); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.zieht-gerade { cursor: grabbing; }


.strasse {
  fill: none;
  stroke: #ece9e2;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aue {
  fill: none;
  stroke: #eef4f3;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fluss {
  fill: none;
  stroke: #9dbcc4;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fluss-name {
  font-family: inherit;
  font-size: 19px;
  font-style: italic;
  fill: #7ea2ac;
}

.bahn {
  fill: none;
  stroke: #ddd8cf;
  stroke-width: 2;
  stroke-dasharray: 10 7;
}

.ortpunkt { fill: var(--tinte); opacity: 0.3; }


.ortname-teil {
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--tinte);
  opacity: 0.48;
}

.randpfeil { fill: var(--linie); }
.ortname .fern { font-size: 19px; font-weight: 600; opacity: 0.55; }

.anker { opacity: 0; transition: opacity 0.22s ease; }
.anker--weg { display: none; }
.ankerlinie {
  stroke: var(--aubergine);
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
  opacity: 0.6;
}

.ankerpunkt { fill: var(--aubergine); opacity: 0.7; }


@keyframes einrasten {
  0%   { r: 26px; }
  60%  { r: 10.5px; }
  100% { r: 12.5px; }
}
.standort--daneben .ortwert { fill: var(--senf); }

.sensortafel .quelle,
.popup-block .quelle {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.9;
}

.standort--daneben .feld { stroke: var(--senf); }
.standort--daneben .inhalt { stroke: var(--senf); }
.standort--daneben .ortwert { fill: var(--senf); }


.navigation-rechts { display: flex; align-items: center; gap: 0.7rem; justify-content: flex-end; }
.navigation-rechts .btn { padding: 0.85rem 1.4rem; font-size: 1.05rem; }


.popup-kopf { display: flex; align-items: center; gap: 1.1rem; text-align: left; margin-bottom: 1.1rem; }
.popup-zeichen {
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.popup-kopf .schlagzeile { margin-bottom: 0.2rem; }
.popup-kategorie {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--senf);
}

.popup-block {
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  background: var(--creme-hell);
  border-left: 6px solid var(--aubergine);
  margin-bottom: 0.7rem;
}
.popup-block--daneben { border-left-color: var(--senf); }
.popup-block--grenze { border-left-color: var(--senf-hell); }
.popup-block h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--senf);
  margin-bottom: 0.4rem;
}
.popup-block p { font-size: 1.08rem; line-height: 1.5; }
.popup-gebiet { text-align: left; font-size: 1rem; opacity: 0.7; margin-top: 0.4rem; }

.sensortafel {
  flex: 0 0 23%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sensortafel h2 { font-size: 1.7rem; font-weight: 700; line-height: 1.18; color: var(--aubergine); margin-bottom: 0.45rem; }
.sensortafel p { font-size: 1.12rem; line-height: 1.55; }

.fakten { margin-top: 0.7rem; }

.fakt {
  display: flex;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--linie-fein);
  font-size: 1.05rem;
  line-height: 1.4;
}

.fakt:last-child { border-bottom: none; }
.fakt b { flex: 0 0 40%; font-weight: 700; }
.sensortafel .fakt { flex-direction: column; gap: 0.1rem; padding: 0.3rem 0; }
.sensortafel .fakt b { flex: none; color: var(--senf); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Ebene 6: Abwägefragen ---------- */

.frage-symbol {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wahl {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.wahl .btn { min-width: 15rem; padding: 1.2rem 2.4rem; font-size: 1.35rem; }

.aufloesung {
  width: 100%;
  max-width: 56rem;
  margin: 1.4rem auto 0;
  padding: 1.3rem 1.6rem;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
  text-align: left;
  animation: teaser-auf 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aufloesung h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--senf);
  margin-bottom: 0.6rem;
}

.aufloesung p { font-size: 1.12rem; line-height: 1.6; }

.eigene-antwort {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--linie-fein);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aubergine);
}

/* ---------- Ebene 7: Abschluss ---------- */

.bilanz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
}

.bilanz-zeile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
  font-size: 1.08rem;
  line-height: 1.35;
}

.bilanz-zeile b {
  flex: none;
  font-weight: 700;
  color: var(--aubergine);
  min-width: 3.4rem;
}

/* ---------- Overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--rand);
  background: rgba(43, 51, 48, 0.55);
}

.overlay[hidden] { display: none; }

.overlay-karte {
  width: min(46rem, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.2rem;
  border: 3px solid var(--aubergine);
  border-radius: 10px;
  background: var(--creme);
  text-align: center;
}

.overlay-karte--breit { width: min(62rem, 100%); }
.overlay-karte .schlagzeile { margin-bottom: 1.2rem; }
.overlay-karte .btn { margin-top: 1.4rem; }
.overlay-karte p { font-size: 1.15rem; line-height: 1.6; }

.video-platzhalter {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 3px dashed var(--linie);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--aubergine);
}

.video-platzhalter .anonym { text-align: center; }

.schutz-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
  text-align: left;
}

.schutz-feld {
  padding: 1.1rem 1.3rem;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
}

.schutz-feld h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--senf);
  margin-bottom: 0.5rem;
}

.schutz-feld p { font-size: 1.05rem; line-height: 1.5; }

.lora-text { text-align: left; }
.lora-text p { margin-bottom: 0.8rem; }
.lora-text p:last-child { margin-bottom: 0; }

body[data-stand="beantwortet"] .frage-symbol,
body[data-stand="beantwortet"] .frage-hinweis { display: none; }

body[data-stand="beantwortet"] .frage-titel {
  font-size: 1.7rem;
  max-width: 48ch;
  margin-bottom: 0.5rem;
}

#screen-karten .schlagzeile--klein { margin-bottom: 0.7rem; }

/* ---------- Große Flächen ---------- */

@media (min-width: 1200px) {
  .frage-titel {
    font-size: clamp(2.2rem, 2.5vw, 3.8rem);
    max-width: 24ch;
    margin-bottom: clamp(0.6rem, 1.4vh, 1.2rem);
  }

  #screen-menue .frage-hinweis { font-size: clamp(1.05rem, 1vw, 1.5rem); }

  .frage-hinweis {
    font-size: clamp(1.15rem, 1.15vw, 1.8rem);
    max-width: 60ch;
    margin-bottom: clamp(0.8rem, 2.4vh, 2rem);
  }

  .schlagzeile--klein { font-size: clamp(2.2rem, 2.4vw, 3.6rem); max-width: 30ch; }
  #screen-start .schlagzeile {
    font-size: clamp(3.2rem, 5.1vw, 7rem);
    margin-bottom: clamp(0.6rem, 1.4vh, 1.5rem);
  }
  #screen-start .szenario {
    font-size: clamp(1.55rem, 1.68vw, 2.5rem);
    max-width: 46ch;
    margin-bottom: clamp(0.7rem, 1.8vh, 1.9rem);
  }
  #screen-start .kernfrage {
    font-size: clamp(2.15rem, 2.35vw, 3.5rem);
    padding-top: clamp(0.6rem, 1.4vh, 1.5rem);
    margin-bottom: clamp(0.8rem, 2vh, 2rem);
  }
  .btn--start {
    padding: clamp(1.3rem, 3vh, 2.4rem) clamp(3rem, 3.4vw, 5rem);
    font-size: clamp(1.9rem, 2.05vw, 3rem);
  }
  .btn--start .hand { width: clamp(3rem, 3.2vw, 4.8rem); height: clamp(3rem, 3.2vw, 4.8rem); }

  .bereiche,
  .karten-raster,
  .projekt-raster,
  .spazier-raster,
  .aufloesung,
  .bilanz { max-width: min(1500px, 94%); }

  .bereich { padding: clamp(1.4rem, 3.4vh, 3rem) clamp(1rem, 1.4vw, 2.2rem) clamp(1.2rem, 2.8vh, 2.4rem); }
  .bereich svg { width: clamp(4.4rem, 4.6vw, 7.5rem); height: clamp(4.4rem, 4.6vw, 7.5rem); }
  .bereich b { font-size: clamp(1.5rem, 1.6vw, 2.4rem); }
  .bereich span { font-size: clamp(1.1rem, 1.05vw, 1.6rem); }

  .karte {
    padding: clamp(0.9rem, 2vh, 1.7rem) clamp(1.2rem, 1.4vw, 2.2rem);
    font-size: clamp(1.2rem, 1.25vw, 1.9rem);
  }
  .karte svg { width: clamp(2.6rem, 2.6vw, 4.2rem); height: clamp(2.6rem, 2.6vw, 4.2rem); }
  .karte b { font-size: clamp(1.15rem, 1.2vw, 1.8rem); }
  .karte em { font-size: clamp(0.98rem, 0.95vw, 1.4rem); }

  .projekt-text p { font-size: clamp(1.15rem, 1.1vw, 1.7rem); }
  .wert b { font-size: clamp(1.5rem, 1.5vw, 2.3rem); }
  .feld p, .schutz-feld p { font-size: clamp(1.05rem, 1.02vw, 1.55rem); }

  .sensortafel h2 { font-size: clamp(1.5rem, 1.55vw, 2.4rem); }
  .sensortafel p, .fakt { font-size: clamp(1.04rem, 1vw, 1.5rem); }
  .sensortafel .fakt { padding: 0.25rem 0; }

  .frage-symbol { width: clamp(5rem, 4.6vw, 8rem); height: clamp(5rem, 4.6vw, 8rem); }
  .fuehler { padding: clamp(0.4rem, 0.8vh, 0.8rem) clamp(0.8rem, 0.9vw, 1.4rem); }
  .fuehler svg { width: clamp(1.8rem, 1.65vw, 2.7rem); height: clamp(1.8rem, 1.65vw, 2.7rem); }
  .fuehler b { font-size: clamp(1.02rem, 1vw, 1.5rem); }
  .sensortafel p { font-size: clamp(1.04rem, 1vw, 1.5rem); line-height: 1.5; }
  .popup-block p { font-size: clamp(1.04rem, 1.02vw, 1.55rem); }
  body[data-stand="beantwortet"] .frage-titel { font-size: clamp(1.7rem, 1.7vw, 2.6rem); }
  #screen-karten .karte { padding: clamp(0.6rem, 1.3vh, 1.2rem) clamp(1.1rem, 1.3vw, 2rem); }
  .lesefeld { padding: clamp(1rem, 2vh, 1.8rem) clamp(1rem, 1.1vw, 1.8rem); gap: 0.55rem; }
  .lesefeld b { font-size: clamp(1.35rem, 1.3vw, 2rem); }
  .lesefeld span { font-size: clamp(1.02rem, 0.98vw, 1.5rem); }
  .lesefeld svg { width: clamp(3.4rem, 3.2vw, 5rem); height: clamp(3.4rem, 3.2vw, 5rem); }
  #screen-karten .schlagzeile--klein { font-size: clamp(1.9rem, 2vw, 3rem); }
  .feld { padding: clamp(0.9rem, 1.8vh, 1.6rem) clamp(1.1rem, 1.2vw, 1.9rem); }
  .wert { padding: clamp(0.35rem, 0.9vh, 0.8rem) 0; }
  .wahl .btn { font-size: clamp(1.35rem, 1.35vw, 2.1rem); min-width: clamp(15rem, 17vw, 24rem); }
  .aufloesung p { font-size: clamp(1.12rem, 1.1vw, 1.7rem); }
  .bilanz-zeile { font-size: clamp(1.08rem, 1.05vw, 1.6rem); padding: clamp(0.6rem, 1.5vh, 1.3rem) 1.3rem; }

  .navigation .btn,
  .knopfreihe .btn {
    padding: clamp(1rem, 2vh, 1.6rem) clamp(2rem, 2.4vw, 3.4rem);
    font-size: clamp(1.2rem, 1.15vw, 1.8rem);
  }

  .navigation-rechts .btn {
    padding: clamp(0.85rem, 1.7vh, 1.4rem) clamp(1.2rem, 1.3vw, 2rem);
    font-size: clamp(1.05rem, 1vw, 1.5rem);
  }
}

/* ---------- Höhenstufen ---------- */

@media (max-height: 900px) {
  #screen-start .schlagzeile { font-size: clamp(2.7rem, 3.9vw, 5rem); margin-bottom: clamp(0.5rem, 1.2vh, 1.1rem); }
  #screen-start .szenario { font-size: clamp(1.3rem, 1.38vw, 2rem); margin-bottom: clamp(0.6rem, 1.5vh, 1.3rem); }
  #screen-start .kernfrage { font-size: clamp(1.85rem, 1.95vw, 2.7rem); padding-top: clamp(0.5rem, 1.2vh, 1.1rem); margin-bottom: clamp(0.7rem, 1.7vh, 1.5rem); }
  .btn--start { padding: clamp(1.2rem, 2.5vh, 1.9rem) clamp(2.7rem, 3vw, 4.2rem); font-size: clamp(1.75rem, 1.8vw, 2.6rem); }
  .btn--start .hand { width: clamp(2.7rem, 2.8vw, 4rem); height: clamp(2.7rem, 2.8vw, 4rem); }
  .fuehler { padding: 0.35rem 0.65rem; gap: 0.5rem; }
  .fuehler svg { width: 1.6rem; height: 1.6rem; }
  .vorrat h3 { margin-bottom: 0.35rem; }
  .fortschritt { padding-top: 0.5rem; }
  .sensortafel h2 { font-size: 1.45rem; }
  .sensortafel p, .sensortafel .fakt { font-size: 1.02rem; }
  .popup-block p { font-size: 1.02rem; }
  .overlay-karte { padding: 1.7rem 2rem; }
  .lora-text p { margin-bottom: 0.6rem; }
  .feld--live { margin-top: 0.7rem; }
  #screen-karten .karte { padding: 0.65rem 1.1rem; }
  #screen-karten .schlagzeile--klein { font-size: 1.9rem; margin-bottom: 0.5rem; }
  .lesefeld { padding: 0.9rem 1rem; gap: 0.5rem; }
  .lesefeld svg { width: 3rem; height: 3rem; }
  .sensortafel h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
  .sensortafel p, .sensortafel .fakt { font-size: 1rem; }
  .kernfrage { margin-bottom: 1.4rem; padding-top: 1rem; }
  .szenario { margin-bottom: 1.2rem; }
  .fortschritt { padding-top: 0.7rem; }
}

@media (max-height: 820px) {
  .overlay-karte { padding: 1.5rem 1.8rem; }
  .lora-text p { margin-bottom: 0.55rem; }
  .overlay-karte .schlagzeile { margin-bottom: 0.7rem; }
  .overlay-karte .btn { margin-top: 0.9rem; }
  .schutz-feld { padding: 0.85rem 1.1rem; }
  .schutz-raster { gap: 0.7rem; margin-top: 0.8rem; }
  .popup-block { padding: 0.8rem 1.1rem; margin-bottom: 0.5rem; }
  .video-platzhalter { font-size: 1.1rem; }
}

@media (max-height: 800px) {
  .btn--start { padding: 1.3rem 3rem; }
  .bereich { gap: 0.7rem; }
  .projektliste { gap: 0.55rem; }
  .bilanz { gap: 0.4rem; }
  .karte { padding: 0.7rem 1.1rem; }
  .feld { padding: 0.9rem 1.1rem; }
  .lesefeld { padding: 0.9rem 1rem; gap: 0.5rem; }
  .lesefeld svg { width: 3rem; height: 3rem; }
  .projekt-text p { margin-bottom: 0.5rem; }
  #screen-karten .schlagzeile--klein { font-size: 1.8rem; margin-bottom: 0.5rem; }
  .fuehler { padding: 0.28rem 0.55rem; }
  .fuehler svg { width: 1.4rem; height: 1.4rem; }
  .fortschritt-punkte { margin-top: 0.35rem; }
  .fortschritt-zahl { font-size: 1.1rem; }
  .fortschritt-punkte i { width: 0.6rem; height: 0.6rem; }
}

@media (max-height: 760px) {
  #screen-start .schlagzeile { font-size: clamp(2.5rem, 3.6vw, 4.6rem); margin-bottom: 0.8rem; }
  #screen-start .szenario { font-size: clamp(1.25rem, 1.25vw, 1.85rem); margin-bottom: 0.9rem; }
  #screen-start .kernfrage { font-size: clamp(1.7rem, 1.75vw, 2.5rem); padding-top: 0.8rem; margin-bottom: 1.1rem; }
  .btn--start { font-size: clamp(1.5rem, 1.5vw, 2.2rem); padding: 1.1rem 2.6rem; }
  .schlagzeile { margin-bottom: 0.9rem; }
  .balken { margin-bottom: 1.1rem; }
  .aufloesung { padding: 1rem 1.3rem; }
}

@media (max-height: 700px) {
  .overlay-karte { padding: 1.2rem 1.5rem; }
  .lora-text p { margin-bottom: 0.45rem; }
  .feld--live .wert { padding: 0.25rem 0; }
  .kopf { margin-bottom: 0.4rem; }
  .navigation, .startfuss { padding-top: 0.8rem; }
  .frage-hinweis { margin-bottom: 1rem; }
  .live { margin-top: 0.7rem; padding: 0.8rem 1.1rem; }
  #screen-karten .karte { padding: 0.5rem 1rem; }
  .lesefeld { padding: 0.7rem 0.9rem; gap: 0.4rem; }
  .lesefeld svg { width: 2.6rem; height: 2.6rem; }
  .lesefeld-hinweis { margin-top: 0.35rem; padding-top: 0.35rem; }
  .projekt-text p { margin-bottom: 0.4rem; }
  .bilanz-zeile { padding: 0.5rem 1rem; }
  .wert { padding: 0.3rem 0; }
  .sensortafel h2 { font-size: 1.28rem; margin-bottom: 0.3rem; }
  .sensortafel .quelle, .popup-block .quelle { margin-top: 0.3rem; font-size: 0.85rem; }
  .sensortafel p { font-size: 0.98rem; }
  .sensortafel .fakt { font-size: 0.98rem; padding: 0.2rem 0; }
  .fakten { margin-top: 0.5rem; }
  .projekt-raster { gap: 1.4rem; }
  .projekt-seite { gap: 0.6rem; }
  .feld h3, .schutz-feld h3 { margin-bottom: 0.45rem; }
  .schlagzeile--klein { margin-bottom: 0.6rem; }
}

@media (max-height: 680px) {
  .btn--start .hand { width: 2.8rem; height: 2.8rem; }
  .frage-symbol { margin-bottom: 0.6rem; }
  .feld { padding: 0.9rem 1.1rem; }
  #screen-start .schlagzeile { font-size: clamp(2.2rem, 2.4vw, 3.2rem); margin-bottom: 0.7rem; }
  .szenario { margin-bottom: 0.9rem; }
  .kernfrage { padding-top: 0.8rem; margin-bottom: 1.1rem; }
  .projekt-text p { margin-bottom: 0.3rem; line-height: 1.5; }
  .live { margin-top: 0.6rem; }
  #screen-projekt .schlagzeile--klein { font-size: 1.7rem; margin-bottom: 0.45rem; }
}

@media (max-height: 620px) {
  .wahl { margin-top: 1rem; }
  .knopfreihe { margin-top: 1.1rem; }
  .bilanz-zeile { padding: 0.45rem 1rem; }
}

@media (max-height: 560px) {
  .kernfrage { padding-top: 0.7rem; margin-bottom: 1rem; }
  .bereich { padding: 1rem 0.9rem; }
  .projekt-text p { margin-bottom: 0.45rem; }
}

@media (max-height: 500px) {
  .btn--start { padding: 1rem 2.4rem; font-size: 1.35rem; }
  .btn--start .hand { width: 2.2rem; height: 2.2rem; }
  .fakt { padding: 0.3rem 0; }
}

@media (max-height: 440px) {
  .balken { margin-bottom: 0.7rem; }
  .navigation, .startfuss { padding-top: 0.5rem; }
  .aufloesung { padding: 0.8rem 1.1rem; }
}

/* ---------- Kleine und flache Bildschirme ---------- */

@media (max-width: 760px) {
  :root { --rand: 5vw; }

  .startfuss { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .anonym { text-align: left; }
  .btn { padding: 0.95rem 1.5rem; }
  .knopfreihe { gap: 0.8rem; }

  .bereiche { flex-direction: column; }
  .karten-raster, .projekt-raster, .spazier-raster { flex-direction: column; }
  .lesefeld, .projekt-seite, .sensortafel, .vorrat { flex: none; }
  .vorrat-liste { display: grid; grid-template-columns: 1fr 1fr; }
  .fuehler { padding: 0.5rem 0.8rem; }
  .projektliste { grid-template-columns: 1fr; }
  .schutz-raster { grid-template-columns: 1fr; }
  .kartenflaeche { min-height: 40vh; }
}

@media (prefers-reduced-motion: reduce) {
  .mpunkt { opacity: 1; }
  .mfaden { opacity: 0.2; stroke-dashoffset: 0; }
  .mwert { opacity: 0.6; }
  .mregung { opacity: 0.18; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Leiste am unteren Bildschirmrand ---------- */

/* Datenspaziergang, Abwaegefragen und Gebaerdensprache sind von jedem
   Schirm aus erreichbar. Nur auf dem Startschirm bleibt sie weg. */
.bodenleiste {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0.6rem var(--rand) 0.7rem;
  background: var(--creme-hell);
  border-top: 2px solid var(--linie-fein);
}

.bodenleiste { display: none; }

body[data-ebene="screen-karten"] .bodenleiste { display: flex; }

body[data-ebene="screen-karten"] .ebene--aktiv {
  padding-bottom: calc(var(--rand) * 0.9 + 6.2rem);
}

.bodenknopf {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 1rem 0.3rem;
  border-radius: 10px;
  color: var(--tinte);
}

.bodenknopf:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 2px; }

.bodenname {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bodenzeichen svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: var(--aubergine);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bodenzeichen .funk-kern { fill: var(--aubergine); stroke: none; }
.bodenzeichen .waage-schale { fill: var(--creme); }

/* Die Zeichen bewegen sich leise weiter, damit die Leiste auffaellt,
   ohne vom Bildschirminhalt abzulenken. */
.funk-welle { animation: funk-puls 2.6s ease-in-out infinite; transform-origin: 24px 16px; }
.funk-welle--2 { animation-delay: 0.45s; }

@keyframes funk-puls {
  0%, 70%, 100% { opacity: 0.25; }
  25%           { opacity: 1; }
}

.waage-arm { animation: waage-kipp 4s ease-in-out infinite; transform-origin: 24px 14px; }

@keyframes waage-kipp {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}


@media (prefers-reduced-motion: reduce) {
  .funk-welle, .waage-arm { animation: none; }
  .funk-welle { opacity: 0.6; }
}

/* ---------- Datenspaziergang ---------- */

.vorrat-stand {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tinte);
  opacity: 0.7;
}

.vorrat-liste { overflow-y: auto; min-height: 0; }

.sensortafel { overflow-y: auto; }

/* ---------- Deine Antwort neben denen der anderen ---------- */

.bilanz-zeile--vergleich {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.bilanz-kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.bilanz-kopf b { min-width: 0; }

.eigene-marke {
  flex: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tinte);
  opacity: 0.6;
}

.eigene-marke--ja,
.eigene-marke--nein { color: var(--aubergine); opacity: 1; }

.anteilsbalken {
  display: flex;
  height: 2rem;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid var(--linie-fein);
}

.anteil {
  flex: 0 0 var(--anteil, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--tinte);
}

.anteil--ja { background: var(--senf-hell); }
.anteil--nein { background: var(--creme-tief); }
.anteil--eigen { background: var(--aubergine); color: var(--creme); }

.anteil-laedt {
  padding-left: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.6;
}

#ergebnis-quelle { text-transform: none; letter-spacing: 0.01em; font-weight: 600; }

/* ---------- So funktioniert's und Gebaerdensprache ---------- */

.schritte-liste {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.8rem 0 1.2rem;
  text-align: left;
}

.schritte-liste li { display: flex; align-items: flex-start; gap: 0.8rem; line-height: 1.45; }

.schritt-nr {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--aubergine);
  color: var(--creme);
  font-weight: 700;
}

.video-hinweis { font-size: 0.95rem; font-weight: 600; opacity: 0.75; text-align: center; }

/* Keine sichtbaren Rollbalken - die Station wird mit dem Finger bedient. */
.mitte,
.vorrat-liste,
.sensortafel,
.overlay-karte,
.projekt-text,
.projekt-seite {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mitte::-webkit-scrollbar,
.vorrat-liste::-webkit-scrollbar,
.sensortafel::-webkit-scrollbar,
.overlay-karte::-webkit-scrollbar,
.projekt-text::-webkit-scrollbar,
.projekt-seite::-webkit-scrollbar { width: 0; height: 0; }

/* ---------- Karte des Datenspaziergangs ---------- */

.kartenflaeche {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  aspect-ratio: 1000 / 908;
  max-height: 100%;
  border: 2px solid var(--linie-fein);
  border-radius: 8px;
  background: var(--creme-hell);
  overflow: hidden;
}

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

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

.strasse {
  fill: none;
  stroke: #ece9e2;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bahn {
  fill: none;
  stroke: #ddd8cf;
  stroke-width: 2;
  stroke-dasharray: 10 7;
}

.aue {
  fill: none;
  stroke: #eef4f3;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fluss {
  fill: none;
  stroke: #9dbcc4;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fluss-name {
  font-family: inherit;
  font-size: 19px;
  font-style: italic;
  fill: #7ea2ac;
}

.ortpunkt { fill: var(--tinte); opacity: 0.3; }

.ortname-teil {
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--tinte);
  opacity: 0.48;
}

.anker { opacity: 0; transition: opacity 0.22s ease; }

.ankerlinie {
  stroke: var(--aubergine);
  stroke-width: 1.8;
  stroke-dasharray: 4 4;
  opacity: 0.6;
}

.ankerpunkt { fill: var(--aubergine); opacity: 0.7; }

.standort { cursor: pointer; }

.standort .treffer { fill: transparent; }

.standort .feld {
  fill: var(--creme);
  stroke: var(--linie);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  transition: fill 0.18s ease, stroke 0.18s ease, r 0.18s ease, stroke-width 0.18s ease;
}

.standort { transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1); }

.standort .ortname { transition: opacity 0.2s ease; }

.standort .inhalt { stroke: var(--aubergine); }

.standort .ortname {
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  fill: var(--tinte);
  paint-order: stroke;
  stroke: var(--creme);
  stroke-width: 5;
  stroke-linejoin: round;
}

.standort .ortwert {
  font-size: 23px;
  font-weight: 700;
  fill: var(--aubergine);
}

.standort:focus { outline: none; }

.standort:focus-visible .feld { stroke: var(--senf); stroke-width: 5; stroke-dasharray: none; }

.standort .treffer { fill: transparent; }

.standort .feld {
  fill: var(--creme);
  stroke: var(--linie);
  stroke-width: 2;
  stroke-dasharray: 4 4;
  transition: fill 0.18s ease, stroke 0.18s ease, r 0.18s ease, stroke-width 0.18s ease;
}

.standort .ortname { transition: opacity 0.2s ease; }

.standort .ortname {
  font-family: inherit;
  font-size: 27px;
  font-weight: 700;
  fill: var(--tinte);
  paint-order: stroke;
  stroke: var(--creme);
  stroke-width: 5;
  stroke-linejoin: round;
}

.standort .ortwert {
  font-size: 23px;
  font-weight: 700;
  fill: var(--aubergine);
}

.standort .inhalt { stroke: var(--aubergine); }

.standort--belegt .randpfeil { fill: var(--aubergine); }

.standort--belegt .feld { fill: var(--creme-hell); stroke: var(--aubergine); stroke-dasharray: none; }

.randpfeil { fill: var(--linie); }

.karte-hinweis {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: var(--senf);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Der angetippte Messfuehler wird an seinem Standort gefuellt. */
.standort--leuchtet .feld {
  fill: var(--aubergine);
  stroke: var(--aubergine);
  stroke-width: 3;
}

.standort--leuchtet .inhalt { stroke: var(--creme); }
.standort--leuchtet .ortname { font-weight: 700; fill: var(--aubergine); }
.standort--leuchtet .treffer { fill: rgba(90, 42, 77, 0.12); }

.anker--leuchtet .ankerlinie { stroke: var(--aubergine); }

.kartenspalte {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 0;
}

.kartenspalte .kartenflaeche { align-self: stretch; }

.kartenquelle {
  flex: none;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
  color: var(--tinte);
  opacity: 0.65;
}

/* Der Startfuss traegt links den Datenschutz und rechts die
   Gebaerdensprache; dazwischen bleibt der Platz frei. */
.startfuss .btn--dgs { margin-left: auto; }

/* Der Abschluss soll ohne Rollen auf den Bildschirm passen. Ueberschrift,
   Rueckmeldung, sechs Zeilen und die Quelle sind viel auf einmal, darum
   haengen die Groessen hier an der Fensterhoehe. */
body[data-ebene="screen-ergebnis"] .mitte {
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}

body[data-ebene="screen-ergebnis"] .schlagzeile--klein {
  font-size: clamp(1.4rem, 3.4vh, 2.2rem);
  max-width: 30ch;
  margin-bottom: clamp(0.3rem, 1vh, 0.7rem);
}

body[data-ebene="screen-ergebnis"] .szenario {
  max-width: 76ch;
  font-size: clamp(0.95rem, 2vh, 1.25rem);
  line-height: 1.45;
  margin-bottom: clamp(0.5rem, 1.6vh, 1.2rem);
}

body[data-ebene="screen-ergebnis"] .bilanz {
  max-width: 72rem;
  gap: clamp(0.3rem, 0.9vh, 0.6rem);
}

body[data-ebene="screen-ergebnis"] .bilanz-zeile {
  padding: clamp(0.35rem, 1vh, 0.7rem) clamp(0.7rem, 1vw, 1.1rem);
  font-size: clamp(0.92rem, 1.8vh, 1.08rem);
}

body[data-ebene="screen-ergebnis"] .anteilsbalken {
  height: clamp(1.4rem, 3vh, 2rem);
}

body[data-ebene="screen-ergebnis"] #ergebnis-quelle {
  margin-top: clamp(0.4rem, 1.2vh, 0.8rem);
  font-size: clamp(0.78rem, 1.5vh, 0.9rem);
}

/* Die acht Projektkarten plus Lesefeld muessen zwischen Ueberschrift und
   der Leiste am unteren Rand Platz finden. Darum haengen Karten, Lesefeld
   und Abstaende an der Fensterhoehe. */
body[data-ebene="screen-karten"] .karten-raster { gap: clamp(0.7rem, 2vh, 1.6rem); }
body[data-ebene="screen-karten"] .projektliste { gap: clamp(0.3rem, 1vh, 0.7rem); }
body[data-ebene="screen-karten"] .karte {
  padding: clamp(0.4rem, 1.3vh, 0.95rem) clamp(0.8rem, 1vw, 1.3rem);
  font-size: clamp(0.95rem, 2vh, 1.2rem);
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}
body[data-ebene="screen-karten"] .lesefeld {
  padding: clamp(0.7rem, 2vh, 1.6rem) 1.2rem;
  gap: clamp(0.3rem, 1vh, 0.8rem);
}
body[data-ebene="screen-karten"] .lesefeld svg {
  width: clamp(2.4rem, 7vh, 4.6rem);
  height: clamp(2.4rem, 7vh, 4.6rem);
}
body[data-ebene="screen-karten"] .lesefeld b { font-size: clamp(1rem, 2.4vh, 1.35rem); }
body[data-ebene="screen-karten"] .lesefeld span { font-size: clamp(0.85rem, 1.8vh, 1.02rem); }
body[data-ebene="screen-karten"] .schlagzeile--klein {
  font-size: clamp(1.3rem, 3.2vh, 2.2rem);
}

/* Im Hochformat stehen die Projektkarten untereinander statt neben dem
   Lesefeld - nebeneinander wird es sonst zu schmal. */
@media (max-width: 900px) {
  .karten-raster { flex-direction: column; }
  .lesefeld { flex: 0 0 auto; }
  .projektliste { grid-template-columns: 1fr; }
}

/* Auf kleinen Schirmen nimmt die Leiste am unteren Rand zu viel Hoehe weg. */
@media (max-height: 900px), (max-width: 1250px) {
  .bodenleiste { padding: 0.3rem var(--rand) 0.4rem; gap: clamp(0.8rem, 2vw, 2rem); }
  .bodenzeichen svg { width: 1.9rem; height: 1.9rem; }
  .bodenname { font-size: 0.85rem; }
  body[data-ebene="screen-karten"] .ebene--aktiv {
    padding-bottom: calc(var(--rand) * 0.9 + 4.1rem);
  }
  body[data-ebene="screen-karten"] .mitte { gap: 0.3rem; }
  body[data-ebene="screen-karten"] .schlagzeile--klein { margin-bottom: 0; }
}

/* Im Hochformat stehen die Projektkarten in zwei Spalten, sonst wird die
   Liste zu lang. */
@media (max-width: 900px) {
  .projektliste { grid-template-columns: 1fr 1fr; }
  body[data-ebene="screen-karten"] .lesefeld span { display: none; }
}

/* Im Hochformat steht der Datenspaziergang untereinander: Liste, Karte,
   Tafel. Nebeneinander wird die Liste sonst zu schmal und laeuft heraus. */
@media (max-width: 900px) {
  .spazier-raster { flex-direction: column; gap: 0.6rem; }
  .vorrat, .sensortafel { flex: 0 0 auto; }
  .vorrat-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  /* Die Karte nimmt, was uebrig bleibt, und draengt die Tafel nicht hinaus. */
  .kartenspalte { flex: 1 1 auto; min-height: 0; }
  .kartenflaeche { max-height: 34vh; }
  .sensortafel h2 { font-size: 1.3rem; }
  .sensortafel p { font-size: 0.95rem; }
}

/* Auf der Kartenseite steht ueber der Navigation viel Luft, weil die
   Projektliste kuerzer ist als die Seite. Der Knopf rutscht darum ganz
   nach unten, dicht ueber die Bodenleiste. */
/* "Zum Start" sitzt in der Bodenleiste selbst, links neben den beiden
   Bereichsknoepfen - also ganz unten auf dem Schirm. In der Ebene haette
   er hinter der Leiste gelegen, weil die Ebene einen eigenen Stapel bildet. */
.bodenleiste{position:fixed}
.bodenleiste-start{position:absolute;left:var(--rand);top:50%;transform:translateY(-50%)}
body[data-ebene="screen-karten"] .ebene--aktiv{
  padding-bottom:var(--leiste-h, 9.8rem)}
