/* Website: für Handys gebaut, hell und dunkel. */
:root {
  --hg: #f6efe0;
  --karte: #fffaf0;
  --rand: #e3d4b3;
  --text: #2b1d0b;
  --leise: #7a6748;
  --akzent: #b07a1c;
  --akzent-hg: #f3e2bd;
  --see: #0b2f47;
  --see-hell: #1d5d7e;
  --gut: #2e7d43;
  --schlecht: #b23a2e;
  --schatten: 0 1px 2px rgba(60, 40, 10, .08), 0 4px 14px rgba(60, 40, 10, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hg: #0a1a26;
    --karte: #112636;
    --rand: #23415a;
    --text: #f1e7d2;
    --leise: #a5b2bd;
    --akzent: #e3b45a;
    --akzent-hg: #2b3a33;
    --see: #071d2c;
    --see-hell: #2a7aa0;
    --gut: #6fd08a;
    --schlecht: #ff8a80;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --hg: #0a1a26; --karte: #112636; --rand: #23415a; --text: #f1e7d2; --leise: #a5b2bd;
  --akzent: #e3b45a; --akzent-hg: #2b3a33; --see: #071d2c; --see-hell: #2a7aa0;
  --gut: #6fd08a; --schlecht: #ff8a80; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--akzent); }

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--see);
  color: #f3e6c8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.logo {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
  color: #e3b45a;
  text-decoration: none;
  white-space: nowrap;
}
.kopf nav { display: flex; gap: 4px; }
.kopf nav a {
  color: #f3e6c8;
  text-decoration: none;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.kopf nav a.aktiv { background: rgba(243, 230, 200, .16); }
/* Eigenes Gold oben rechts */
.kopf-gold {
  order: 3;
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e3b45a;
  color: #2b1d0b;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.kopf-gold[hidden] { display: none; }
.kopf-gold.blinkt { animation: goldBlink .9s ease-out; }
@keyframes goldBlink { 30% { transform: scale(1.12); background: #ffe08a; } }

main { max-width: 760px; margin: 0 auto; padding: 16px; }

.held {
  background: linear-gradient(160deg, var(--see-hell), var(--see));
  color: #f3e6c8;
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--schatten);
}
.held h1 { font-family: "Cinzel", serif; margin: 0 0 6px; font-size: 26px; color: #e3b45a; }
.held p { margin: 0 0 12px; }
.schritte { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.schritte li { background: rgba(0, 0, 0, .18); border-radius: 12px; padding: 8px 12px; }
.schritte code {
  font-family: inherit;
  font-weight: 900;
  color: #e3b45a;
}

.suche { display: flex; gap: 8px; margin: 0 0 16px; }
.suche input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--rand);
  background: var(--karte);
  color: var(--text);
}
.suche button, .knopf {
  font: inherit;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
}
.treffer { display: grid; gap: 6px; margin: -8px 0 16px; }
.treffer a { padding: 10px 14px; background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; font-weight: 800; text-decoration: none; }

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--schatten);
}
.karte h2 { margin: 0 0 10px; font-size: 18px; }
.karte h2 small { font-weight: 700; color: var(--leise); font-size: 14px; }
.leise { color: var(--leise); }
/* Gezeichnete Warenbilder (gemeinsam/waren) im Fließtext */
.ware-bild { width: 1.35em; height: 1.35em; vertical-align: -0.35em; }

.rangliste { list-style: none; margin: 0; padding: 0; }
.rangliste li a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--rand);
  color: var(--text);
  text-decoration: none;
}
.rangliste li:last-child a { border-bottom: 0; }
.rang { font-weight: 900; color: var(--leise); text-align: center; }
.rang.p1 { color: #c9a227; font-size: 20px; }
.rang.p2 { color: #9aa4ad; font-size: 18px; }
.rang.p3 { color: #b0723a; font-size: 18px; }
.rangliste .name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gold { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

.kontor-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--see-hell), var(--see));
  color: #f3e6c8;
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--schatten);
}
.kontor-kopf h1 { margin: 0; font-size: 24px; word-break: break-word; }
.kontor-kopf .unter { opacity: .8; font-size: 14px; }
.kontor-kopf .gross { font-size: 34px; font-weight: 900; color: #e3b45a; line-height: 1.1; text-align: right; }
.kontor-kopf .gross small { display: block; font-size: 14px; color: #f3e6c8; opacity: .8; font-weight: 700; }

.balken { height: 12px; border-radius: 999px; background: var(--akzent-hg); overflow: hidden; margin: 8px 0; }
.balken > div { height: 100%; background: var(--akzent); border-radius: 999px; transition: width .4s; }


.schiff { border-top: 1px solid var(--rand); padding-top: 12px; margin-top: 12px; }
.schiff:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.schiff-kopf { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; flex-wrap: wrap; }
.etikett { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--akzent-hg); white-space: nowrap; }
.etikett.see { background: var(--see-hell); color: #fff; }
.fahrt-balken { position: relative; height: 10px; border-radius: 999px; background: var(--akzent-hg); margin: 10px 0 6px; overflow: hidden; }
.fahrt-balken span { position: absolute; inset: 0 auto 0 0; background: var(--see-hell); border-radius: 999px; transition: width .8s linear; }
.fahrt-balken i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--akzent); }
.zeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 14px; }
.zeiten b { display: block; font-size: 17px; }

.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabelle th { text-align: left; font-size: 13px; color: var(--leise); font-weight: 800; padding: 6px 4px; border-bottom: 1px solid var(--rand); }
.tabelle td { padding: 8px 4px; border-bottom: 1px solid var(--rand); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .zahl { text-align: right; white-space: nowrap; }
.plus { color: var(--gut); font-weight: 800; }
.minus { color: var(--schlecht); font-weight: 800; }

.minikarte { border-radius: 14px; overflow: hidden; margin: 10px 0 0; border: 1px solid var(--rand); }
.minikarte svg { display: block; width: 100%; height: auto; }

.leer { text-align: center; padding: 30px 10px; color: var(--leise); }
.fuss { max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; color: var(--leise); font-size: 13px; text-align: center; }
.fuss p { margin: 4px 0; }

.blitz { animation: blitz 1s ease-out; }
@keyframes blitz { from { background: var(--akzent-hg); } }

@media (max-width: 420px) {
  .kontor-kopf .gross { text-align: left; }
  .tabelle .optional { display: none; }
}

/* ---------------------------------------------------------------- Anmeldung */
.knopf { display: inline-block; text-decoration: none; }
.knopf.hell { background: var(--akzent-hg); color: var(--text); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.anleitung { padding-left: 22px; margin: 0 0 12px; }
.anleitung li { margin: 0 0 10px; }
.code-gross {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--see); color: #e3b45a;
}
.code-gross span { font-size: 32px; font-weight: 900; letter-spacing: 2px; }
.hinweis { background: var(--akzent-hg); border-radius: 12px; padding: 10px 12px; }
.fehler { color: var(--schlecht); font-weight: 800; }
.erfolg { color: var(--gut); font-weight: 800; font-size: 20px; }
.privat-hinweis p:first-of-type { margin-top: 0; }
.geraete { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.geraete li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: var(--akzent-hg); }
.qr-bereich { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.qr { width: 220px; max-width: 100%; background: #fff; border-radius: 12px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-bereich > div:last-child { flex: 1; min-width: 200px; }
@media (max-width: 420px) {
  .kopf { gap: 6px; padding: 10px 10px; }
  .kopf nav { gap: 0; min-width: 0; }
  .kopf nav a { padding: 6px 7px; font-size: 14px; white-space: nowrap; }
  .logo { font-size: 18px; letter-spacing: 1px; }
}
/* Sehr schmal: nur der Anker statt des Schriftzugs, damit alle Links Platz haben */
@media (max-width: 340px) {
  .logo span { display: none; }
}

.rangliste .gold small, .kontor-kopf .gross small { font-size: 12px; font-weight: 700; }

/* Schätze */
.schatz-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.schatz { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--akzent-hg); text-decoration: none; color: var(--text); opacity: .7; }
.schatz.besessen { opacity: 1; border: 2px solid var(--akzent); }
.schatz-symbol { font-size: 28px; }
.etikett.komplett { background: var(--akzent); color: #fff; }
.auktion-banner { border: 2px solid var(--akzent); }
.rangliste .gold .unterzeile { display: block; font-weight: 700; color: var(--leise); }

/* Spielanleitung */
.inhaltsverzeichnis { line-height: 1.9; }
.liste { margin: 0; padding-left: 20px; }
.liste li { margin: 0 0 6px; }
.held code, .karte td code, .liste code { font-weight: 900; color: var(--akzent); white-space: nowrap; }

/* Kopfzeile mit vielen Reitern: auf schmalen Geräten in zwei Zeilen.
   Oben: Logo links, Gold rechts. Darunter die Reiter. "Mein Kontor" entfällt dort, das Gold führt hin. */
@media (max-width: 640px) {
  .kopf { flex-wrap: wrap; row-gap: 4px; }
  .kopf .kopf-leo, .kopf .kopf-gold { order: 1; }
  .kopf nav { order: 2; width: 100%; overflow-x: auto; justify-content: space-between; }
  .kopf nav a.ich-angemeldet { display: none; }
}

/* Was soll ich tun? */
.berater { border: 2px solid var(--akzent); }
.rat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rat li { display: flex; gap: 10px; align-items: flex-start; }
.rat-symbol { font-size: 20px; line-height: 1.3; }
.rat code { font-weight: 900; color: var(--akzent); white-space: nowrap; }

/* Reiter nie umbrechen */
.kopf nav a { white-space: nowrap; }

/* Befehle zum Antippen: kopiert den Befehl für den Live-Chat */
code.befehl { cursor: pointer; font-family: inherit; font-weight: 900; color: var(--akzent); white-space: nowrap; background: var(--akzent-hg); border-radius: 8px; padding: 1px 7px; }
code.befehl:hover { outline: 2px solid var(--akzent); }
.held code.befehl { background: rgba(0, 0, 0, .25); color: #e3b45a; }
.meldung {
  position: fixed; left: 50%; bottom: 20px; z-index: 1000; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--see); color: #f3e6c8; font-weight: 800; box-shadow: var(--schatten);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.meldung.sichtbar { opacity: 1; transform: translate(-50%, 0); }

/* Startseite: Reiter für die Ranglisten */
.held-link { margin: 12px 0 0 !important; }
.held-link a { color: #e3b45a; font-weight: 800; }
.reiter { display: flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 14px; background: var(--akzent-hg); }
.reiter button {
  flex: 1; min-width: 0; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.2;
  padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
  /* Lange Wörter ("Handelshaus") am Handy trennen statt in den Nachbarn zu ragen */
  hyphens: auto; overflow-wrap: anywhere;
}
@media (max-width: 420px) { .reiter button { font-size: 13px; padding: 8px 3px; } }
.reiter button[aria-selected="true"] { background: var(--karte); color: var(--akzent); box-shadow: var(--schatten); }
.reiter-erklaerung { margin: 0 0 4px; font-size: 14px; }
.rangliste .name .unterzeile { display: block; font-size: 12px; font-weight: 700; color: var(--leise); }
.titel-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.titel-stein { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 6px; border-radius: 12px; background: var(--akzent-hg); text-align: center; font-size: 14px; }
.titel-stein > span:first-child { font-size: 24px; }

/* Kontor-Kopf: Titel, Gold, Plätze, Weg zum nächsten Titel */
.kontor-kopf .titel-zeile { font-weight: 800; color: #e3b45a; font-size: 15px; }
.kontor-kopf .kopf-name { flex: 1 1 260px; min-width: 0; }
.schatz-symbole { font-size: 20px; white-space: nowrap; }
.kopf-unten { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; opacity: .9; }
.kopf-unten b { color: #e3b45a; }
.kopf-titel { flex: 1 1 100%; font-size: 14px; }
.balken.hell { background: rgba(243, 230, 200, .2); margin: 2px 0 6px; height: 10px; }
.balken.hell > div { background: #e3b45a; }

/* Erste Schritte */
h3.klein { font-size: 15px; margin: 14px 0 6px; }
.einstieg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.einstieg li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--akzent-hg); }
.einstieg li > span:nth-child(2) { flex: 1; min-width: 0; }
.einstieg li code { white-space: normal; }
.einstieg .nr { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--karte); }
.einstieg li.aktuell { outline: 2px solid var(--akzent); }
.einstieg li.komplett { opacity: .6; }
.einstieg li.komplett .nr { background: var(--gut); color: #fff; }
/* Händler am Kai: Rückfrage direkt im Lager */
.kai-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff7e0; border: 2px solid var(--akzent); }
.kai-frage span { flex: 1 1 100%; font-size: 15px; }
.kai-frage .knopf { flex: 1; }
.belohnung { font-weight: 800; color: var(--gut); white-space: nowrap; font-size: 14px; }

/* Häfen */
.haefen { display: grid; gap: 10px; }
.hafen { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--akzent-hg); }
.hafen-text { flex: 1 1 200px; min-width: 0; }
.hafen-zeile { font-size: 14px; margin-top: 2px; }
.hafen > code.befehl { background: var(--karte); padding: 6px 10px; }
.buchstabe {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--see); color: #e3b45a; font-family: "Cinzel", serif; font-weight: 900; font-size: 24px;
}
.buchstabe.klein { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
.nachfrage.wenig { color: var(--schlecht); }
.nachfrage.viel { color: var(--gut); }
@media (max-width: 420px) {
  .hafen { flex-wrap: wrap; }
  .hafen > code.befehl { margin-left: 56px; }
}

/* Ausbau */
.ausbau-zeile { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ausbau-zeile code.befehl { padding: 6px 12px; font-size: 17px; }

/* Schätze */
.schatz.naechster { opacity: 1; border: 2px dashed var(--akzent); }

/* Spielanleitung: auf eine Bildschirmseite */
main:has(.anleitung-raster) { max-width: 1280px; padding-top: 12px; }
.held.kompakt { padding: 14px 18px; margin-bottom: 12px; }
.held.kompakt h1 { font-size: 22px; margin-bottom: 2px; }
.held.kompakt p { margin: 0; }
.anleitung-raster { font-size: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.anleitung-raster .karte { margin: 0; padding: 12px 14px; }
.anleitung-raster .karte h2 { font-size: 16px; margin-bottom: 6px; }
.anleitung-raster .tabelle td, .anleitung-raster .tabelle th { padding: 4px 4px; }
.klein-text { font-size: 14px; margin: 6px 0 0; }
.anleitung-raster code { font-family: inherit; font-weight: 900; color: var(--akzent); white-space: nowrap; }
.leiter { margin: 0; padding-left: 22px; font-size: 14px; }
.leiter li { padding: 1px 0; }
.leiter .zahl { float: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hafen .etikett { background: var(--karte); }

/* ---------------------------------------------------------------- Börse (Startseite und Kontor) */
.boerse.offen { border: 2px solid var(--gut); }
.boerse h2 .etikett { vertical-align: 2px; }
.etikett.live { background: var(--gut); color: #fff; }
.boerse.offen h2 .etikett.live { animation: puls 1.6s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .boerse.offen h2 .etikett.live { animation: none; } }

.ware-gross { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--akzent-hg); font-size: 32px; line-height: 1; }
.ware-gross .ware-bild { width: 44px; height: 44px; vertical-align: 0; }

.boerse-jetzt, .verkauf-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.boerse-ware { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.boerse-ware > div { display: flex; flex-direction: column; min-width: 0; }
.boerse-ware > div > b { font-size: 22px; line-height: 1.2; }
.boerse-ware .leise { font-size: 14px; }
.boerse-preis { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.boerse-preis b { font-size: 46px; font-weight: 900; color: var(--akzent); font-variant-numeric: tabular-nums; }
.boerse-preis.klein b { font-size: 34px; }
.boerse-preis .leise { font-size: 13px; }
.boerse-naechst { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--akzent-hg); font-size: 15px; font-variant-numeric: tabular-nums; }
.boerse-naechst:empty { display: none; }
.boerse-nachfrage { margin: 12px 0 0; }
.boerse-nachfrage .zeile { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.boerse-nachfrage .balken > div { background: var(--gut); }
.boerse .klein-text { margin-top: 10px; }

.boerse-zu { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.boerse-zu > div:first-child { display: flex; flex-direction: column; }
.boerse-zu b { font-size: 26px; font-weight: 900; }
.boerse-zu .leise b { font-size: 18px; color: var(--text); }
.bestand { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.bestand-stein { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 12px; background: var(--akzent-hg); text-align: center; font-size: 14px; }
.bestand-stein .ware-gross { background: var(--karte); width: 48px; height: 48px; }
.bestand-stein .ware-gross .ware-bild { width: 38px; height: 38px; }

.verkaeufe, .boerse-runde { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.verkaeufe li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--rand); }
.verkaeufe li:last-child { border-bottom: 0; }
.verkaeufe li a { font-weight: 800; }
.verkaeufe li .leise { margin-left: auto; }
.boerse-runde li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 10px; border-radius: 12px; background: var(--akzent-hg); }
.boerse-runde li .rechts { margin-left: auto; font-weight: 700; white-space: nowrap; }
.boerse-runde li.jetzt { outline: 2px solid var(--gut); }
.boerse-runde li.vorbei { opacity: .6; }

/* Kontor: Lager */
.lager-karte h2 { margin-bottom: 10px; }
.lager { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lager li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--akzent-hg); }
.lager li .ware-gross { background: var(--karte); width: 48px; height: 48px; }
.lager li .ware-gross .ware-bild { width: 38px; height: 38px; }
.lager li.dran { outline: 2px solid var(--gut); }
.lager-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.lager-text .leise { font-size: 14px; }
.lager-menge { font-size: 24px; font-weight: 900; text-align: right; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lager-menge small { display: block; font-size: 12px; font-weight: 700; color: var(--leise); }
/* Händler am Kai: Knopf unter der Ware (eigene Zeile) */
.lager li { flex-wrap: wrap; }
/* "Sofort verkaufen": klar als Knopf erkennbar (kräftige Farbe, Rand, Schatten, drückt sich beim Antippen) */
.knopf.kai-knopf {
  flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 14px; font-size: 16px; font-weight: 900; cursor: pointer;
  background: var(--gut); color: #fff; border: 2px solid #1f5a2f; border-radius: 12px;
  box-shadow: 0 3px 0 #1f5a2f, 0 4px 10px rgba(0, 0, 0, .15);
}
.knopf.kai-knopf:hover { filter: brightness(1.07); }
.knopf.kai-knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 #1f5a2f; }
.kai-knopf small { font-size: 12px; font-weight: 700; opacity: .95; }
.kai-hinweis { margin: 8px 0 0; }

/* Kontor: Verkaufen */
#verkauf-box:not(:empty) { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rand); }
.boerse-hinweis { margin: 0; }
.verkauf { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 12px 0 0; }
.verkauf-menge { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; color: var(--leise); }
.verkauf-menge input {
  font: inherit; font-size: 22px; font-weight: 900; color: var(--text); width: 100%; min-height: 50px;
  padding: 8px 12px; border-radius: 12px; border: 2px solid var(--rand); background: var(--karte);
}
.verkauf-menge input:focus { outline: none; border-color: var(--akzent); }
.verkauf-knoepfe { display: flex; gap: 8px; flex: 1 1 260px; }
.verkauf-knoepfe .knopf { flex: 1; min-height: 50px; white-space: nowrap; }
.verkauf-knoepfe .knopf:disabled { opacity: .5; cursor: wait; }
.verkauf-vorschau { margin: 10px 0 0; font-size: 15px; }
.verkauf-vorschau:empty { display: none; }
.erfolg.klein { font-size: 16px; }
#verkauf-box .fehler, #verkauf-box .erfolg { margin: 10px 0 0; }
#verkauf-box .hinweis { margin: 10px 0 0; }

/* Kontor: Schiffsklasse */
.schiffsklasse { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; }
.schiffsklasse > div:first-child { display: flex; flex-direction: column; }
.klasse-name { font-size: 20px; }
.stufen { display: flex; gap: 4px; }
.stufen i { width: 18px; height: 10px; border-radius: 999px; background: var(--akzent-hg); }
.stufen i.voll { background: var(--akzent); }

@media (max-width: 420px) {
  .boerse-preis b { font-size: 40px; }
  .boerse-jetzt .boerse-preis, .verkauf-kopf .boerse-preis { flex-direction: row; align-items: baseline; gap: 6px; }
  .ware-gross { width: 48px; height: 48px; }
  .ware-gross .ware-bild { width: 38px; height: 38px; }
  .verkauf-knoepfe { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- Stadt (k/<slug>/stadt) */
main:has(.stadt-buehne) { max-width: 1200px; }
.stadt-kopf {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px;
  background: linear-gradient(160deg, var(--see-hell), var(--see)); color: #f3e6c8;
  border-radius: 18px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--schatten);
}
.stadt-kopf .titel-zeile { font-weight: 800; color: #e3b45a; font-size: 14px; }
.stadt-kopf h1 { margin: 0; font-size: 22px; line-height: 1.2; word-break: break-word; }
.stadt-name { flex: 1 1 200px; min-width: 0; }
.stadt-zahlen { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.stadt-zahlen b { color: #e3b45a; font-size: 18px; }
.stadt-zahlen small { opacity: .8; font-weight: 700; }
.stadt-einwohner { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.stadt-einwohner .ew-zahl { font-size: 22px; font-weight: 900; white-space: nowrap; }
.stadt-einwohner .ew-zahl b { color: #ffd36b; font-size: 30px; }
.stadt-einwohner small { font-size: 13px; font-weight: 700; opacity: .85; }
.kopf-einwohner b { font-size: 1.15em; }
.stadt-zurueck { color: #f3e6c8; font-weight: 800; text-decoration: none; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(243, 230, 200, .14); white-space: nowrap; }

.stadt-buehne {
  position: relative; height: clamp(340px, calc(100dvh - 210px), 860px);
  border-radius: 18px; overflow: hidden; background: #3a84ad; box-shadow: var(--schatten); border: 1px solid var(--rand);
}
.stadt-buehne canvas { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; -webkit-user-select: none; }
.stadt-buehne canvas.zieht { cursor: grabbing; }
.stadt-knoepfe { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.stadt-knoepfe button, .stadt-bauen {
  font: inherit; font-weight: 900; border: 0; cursor: pointer; color: var(--see);
  background: rgba(255, 250, 238, .93); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.stadt-knoepfe button { width: 42px; height: 42px; border-radius: 12px; font-size: 22px; line-height: 1; }
.stadt-bauen { position: absolute; top: 10px; left: 10px; padding: 10px 14px; border-radius: 999px; font-size: 16px; }
.stadt-bauen[aria-pressed="true"] { background: var(--akzent); color: #fff; }
.stadt-tipp { margin: 10px 2px 14px; font-size: 15px; }

/* Tafel unten in der Stadt: Baumenü und Infos */
.stadt-tafel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; overflow: auto;
  background: var(--karte); color: var(--text); border-radius: 18px 18px 0 0; padding: 12px 14px 14px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .25);
}
.stadt-tafel[hidden] { display: none; }
@media (min-width: 760px) {
  .stadt-tafel { left: auto; top: 62px; right: 62px; bottom: 12px; width: 360px; max-height: none; border-radius: 16px; }
}
.tafel-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; margin-bottom: 4px; }
.tafel-zu { font: inherit; font-size: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--akzent-hg); color: var(--text); cursor: pointer; flex: none; }
.tafel-zeile { margin: 6px 0; }
.tafel-antwort { margin: 8px 0 0; font-weight: 800; }
.tafel-antwort:empty { display: none; }
.tafel-gebaeude { display: flex; gap: 12px; align-items: center; }
.tafel-gebaeude > div { flex: 1; min-width: 0; }
.bau-wahl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; margin: 8px 0 10px; }
.bau-wahl {
  font: inherit; color: var(--text); cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px 8px;
  border-radius: 14px; border: 2px solid transparent; background: var(--akzent-hg);
}
.bau-wahl:hover:not(:disabled) { border-color: var(--rand); }
.bau-wahl.gewaehlt { border-color: var(--akzent); background: var(--karte); box-shadow: var(--schatten); }
.bau-wahl:disabled { cursor: default; opacity: .5; filter: grayscale(.6); }
.bau-name { font-weight: 900; font-size: 14px; line-height: 1.2; }
.bau-info { font-size: 12px; color: var(--leise); font-weight: 700; }
.bau-sperre { font-size: 12px; font-weight: 800; color: var(--schlecht); }
.bau-bild { width: 64px; height: 64px; display: block; }
.bau-bild.gross { width: 96px; height: 96px; flex: none; }
.bau-los { width: 100%; font-size: 17px; }
/* Bauen-Knopf klebt oben im Menü, damit man ihn nach der Wahl sofort sieht */
.bau-aktion { position: sticky; top: 0; z-index: 2; padding: 6px 0; background: var(--karte, #fffaf0); }
.bau-los:disabled { opacity: .6; cursor: wait; }

/* Liste unter der Stadt */
.bau-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.bau-stein { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px; background: var(--akzent-hg); text-align: center; font-size: 14px; }
.bau-stein.gesperrt { opacity: .6; }
.bau-stein .etikett { background: var(--karte); font-size: 12px; }

@media (max-width: 640px) {
  main:has(.stadt-buehne) { padding: 8px 8px 12px; }
  .stadt-kopf { padding: 10px 12px; border-radius: 14px; margin-bottom: 8px; }
  .stadt-kopf h1 { font-size: 19px; }
  .stadt-zahlen { font-size: 14px; gap: 2px 12px; }
  .stadt-zahlen b { font-size: 16px; }
  .stadt-einwohner .ew-zahl { font-size: 18px; }
  .stadt-einwohner .ew-zahl b { font-size: 24px; }
  .stadt-buehne { height: clamp(340px, calc(100dvh - 215px), 900px); border-radius: 14px; }
}

/* Kontor-Seite: Vorschau der Stadt als großer Link */
.stadt-vorschau { display: block; position: relative; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); }
.stadt-vorschau canvas { display: block; width: 100%; height: 230px; background: #3a84ad; }
.stadt-vorschau-text {
  position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  padding: 8px 14px; border-radius: 12px; background: rgba(255, 250, 238, .94); color: #2b1d0b; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.stadt-vorschau-text b { font-size: 18px; color: #8a5c10; }
.stadt-vorschau-text .leise { color: #6d5b3e; font-weight: 700; font-size: 14px; }
.stadt-vorschau:hover .stadt-vorschau-text b { text-decoration: underline; }

/* Stadtstufe (Dorf … Metropole) im Kopf der Stadtseite */
.ew-stufe { display: block; font-weight: 900; font-size: 15px; color: var(--akzent, #b8862b); }

/* Stadt Teil 2: Aufwerten, Wahrzeichen, zweite Insel */
.bau-gruppe { font-size: 15px; margin: 14px 0 6px; }
.bau-gruppe small { font-weight: 700; color: var(--leise); font-size: 13px; }
.bau-wahl.wahrzeichen { background: linear-gradient(160deg, var(--akzent-hg), var(--karte)); border-color: var(--rand); }
.bau-wahl.wahrzeichen.gewaehlt { border-color: var(--akzent); }
.bau-sperre.gut { color: var(--gut); }
.bau-stein .klein { font-size: 12px; font-weight: 700; }
.aufwerten { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rand); }
.aufwerten .bau-los { white-space: normal; line-height: 1.25; }
.aufwerten .bau-los:disabled { cursor: not-allowed; opacity: .55; }
.aufwerten .tafel-zeile { margin: 6px 0 0; font-size: 14px; }
.tafel-kopf .etikett { font-size: 12px; vertical-align: 2px; }
.insel-hinweis { display: inline-block; }
.insel-hinweis.frei b { color: var(--gut); }

/* Startseite: Stadt des Tages und der Woche */
.stadt-tage:empty { display: none; }
.stadt-tage { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stadt-tage .stadt-tag { margin: 0; padding: 12px; }
.karte h2.stadt-tag-titel { font-size: 17px; margin: 0 0 8px; }
.stadt-tag-link { display: block; position: relative; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); }
.stadt-tag-bild { display: block; width: 100%; height: 210px; background: #3a84ad; }
.stadt-tag-text {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
  padding: 7px 12px; border-radius: 12px; background: rgba(255, 250, 238, .94); color: #2b1d0b; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.stadt-tag-name { font-size: 18px; color: #8a5c10; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.stadt-tag-zahlen { font-size: 14px; font-weight: 800; color: #4d3d22; }
.stadt-tag-grund { flex-basis: 100%; font-size: 14px; font-weight: 800; color: #2e7d43; }
.stadt-tag-mehr { margin-left: auto; font-size: 13px; font-weight: 800; color: #8a5c10; }
.stadt-tag-link:hover .stadt-tag-mehr { text-decoration: underline; }
/* Handy: Kästen nur als Text (oben läuft schon die große Stadt) */
.stadt-tage.nur-text { grid-template-columns: 1fr 1fr; gap: 10px; }
.stadt-tage.nur-text .stadt-tag { padding: 10px 12px; }
.stadt-tage.nur-text .karte h2.stadt-tag-titel, .stadt-tage.nur-text h2.stadt-tag-titel { font-size: 15px; margin-bottom: 4px; }
.stadt-tage.nur-text .stadt-tag-text { position: static; padding: 0; background: none; box-shadow: none; color: var(--text); flex-direction: column; align-items: flex-start; gap: 1px; }
.stadt-tage.nur-text .stadt-tag-name { font-size: 16px; color: var(--akzent); }
.stadt-tage.nur-text .stadt-tag-zahlen { color: var(--leise); font-size: 13px; }
.stadt-tage.nur-text .stadt-tag-grund { color: var(--gut); font-size: 13px; }
.stadt-tage.nur-text .stadt-tag-mehr { margin-left: 0; color: var(--akzent); }
@media (max-width: 360px) { .stadt-tage.nur-text { grid-template-columns: 1fr; } }

/* Startseite: große Stadt zur Begrüßung */
.begruessung { padding: 12px; }
.begruessung-kopf h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.begruessung-art { color: var(--leise); font-weight: 800; }
.begruessung-kopf h2 b { color: var(--akzent); }
.begruessung-zahlen { font-weight: 700; font-size: 15px; white-space: nowrap; }
.begruessung-grund { margin: -4px 0 8px; font-weight: 800; color: var(--gut); font-size: 14px; }
.begruessung-buehne { display: block; position: relative; border-radius: 14px; overflow: hidden; text-decoration: none; }
.begruessung-buehne canvas { display: block; width: 100%; height: clamp(260px, 52vh, 460px); background: #3a84ad; }
.begruessung-mehr {
  position: absolute; right: 10px; bottom: 10px; padding: 8px 14px; border-radius: 999px; font-weight: 900;
  background: rgba(255, 250, 238, .94); color: #8a5c10; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.begruessung-buehne:hover .begruessung-mehr { text-decoration: underline; }
.begruessung .leo { margin-top: 12px; }

/* Live-Hinweis ganz oben */
.live-balken {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; margin: 0 0 12px; padding: 12px 16px;
  border-radius: 14px; background: #d42a2a; color: #fff; text-align: center; text-decoration: none; font-size: 17px;
  box-shadow: 0 4px 14px rgba(212, 42, 42, .35); animation: live-puls 2s ease-in-out infinite;
}
a.live-balken:hover { background: #b71f1f; }
.live-balken.aus { background: var(--akzent-hg); color: var(--text); border: 1px solid var(--rand); box-shadow: none; animation: none; }
.live-pfeil { font-weight: 900; }
.live-profil { font-weight: 800; opacity: .9; }
@keyframes live-puls { 50% { box-shadow: 0 4px 22px rgba(212, 42, 42, .7); } }
@media (prefers-reduced-motion: reduce) { .live-balken { animation: none; } }

/* Leo mit Sprechblase */
.leo { display: flex; gap: 12px; align-items: flex-start; }
.leo[hidden] { display: none; }
.leo-bild {
  flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--akzent);
  background: radial-gradient(circle at 50% 35%, #2a7aa0, #0b2f47); box-shadow: var(--schatten);
}
.leo-gesicht { display: block; width: 100%; height: 100%; background: url("../overlay/leo/leo-basis.png") 50% 4% / 165% auto no-repeat; }
.leo.spricht .leo-bild { animation: leo-spricht .5s ease-in-out infinite alternate; }
@keyframes leo-spricht { to { transform: scale(1.05); box-shadow: 0 0 0 4px var(--akzent-hg); } }
.leo-rechts { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.leo-schild { font-size: 12px; font-weight: 900; letter-spacing: .3px; padding: 2px 10px; border-radius: 999px; background: var(--see); color: #e3b45a; }
.leo-blase {
  position: relative; align-self: stretch; padding: 10px 14px; border-radius: 4px 16px 16px 16px;
  background: var(--akzent-hg); min-height: 3.4em;
}
.leo-blase::before { content: ""; position: absolute; left: -9px; top: 0; border: 9px solid transparent; border-top-color: var(--akzent-hg); border-right-color: var(--akzent-hg); }
.leo-text { margin: 0; font-weight: 700; font-size: 15px; }
.leo-text.neu { animation: leo-satz .4s ease-out; }
@keyframes leo-satz { from { opacity: 0; transform: translateY(4px); } }
.leo-knopf { padding: 8px 14px; font-size: 15px; }
.leo-knopf[hidden] { display: none; }
@media (max-width: 420px) {
  .leo-bild { width: 64px; height: 64px; }
  .leo-text { font-size: 14px; }
}

/* Geschenke-Tabelle */
.geschenke td { vertical-align: middle; }
.geschenk-name { white-space: nowrap; width: 1%; padding-right: 12px !important; }
.geschenk-symbol { font-size: 22px; margin-right: 6px; vertical-align: -3px; }
.geschenke .leise { font-size: 14px; }
.geschenk-satz { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--akzent-hg); font-weight: 800; font-size: 15px; }
.anleitung-raster .geschenk-satz { font-size: 14px; }
@media (max-width: 420px) {
  .geschenk-name { white-space: normal; width: auto; }
  .geschenk-symbol { display: block; margin: 0 0 2px; }
}
@media (max-width: 560px) {
  .begruessung-zahlen { display: block; font-size: 14px; }
  .begruessung-punkt { display: none; }
}

/* Leo als Helfer: immer oben rechts, erklärt die Seite */
#leo-helfer { position: absolute; right: 10px; z-index: 900; display: flex; align-items: flex-start; gap: 8px; pointer-events: none; }
#leo-helfer > * { pointer-events: auto; }
.lh-bild { position: relative; width: 58px; height: 58px; padding: 0; border-radius: 50%; overflow: visible; border: 3px solid #d9a441; background: #0f3048; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; flex: none; }
.lh-bild img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; display: block; }
.lh-schild { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: #0f3048; color: #ffe08a; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 999px; border: 1.5px solid #d9a441; }
#leo-helfer:not(.offen) .lh-bild { animation: lhWinken 3s ease-in-out 1.5s 2; }
@keyframes lhWinken { 0%, 100% { transform: none; } 20% { transform: rotate(-8deg) scale(1.06); } 40% { transform: rotate(6deg) scale(1.06); } 60% { transform: none; } }
/* Leo in der Kopfzeile: klein, neben dem Gold */
.kopf-leo { order: 2; display: flex; align-items: center; margin-left: auto; }
.kopf-leo:not(:empty) + .kopf-gold { margin-left: 8px; }
.kopf-leo:empty { display: none; }
.kopf-leo .lh-bild { width: 40px; height: 40px; border-width: 2px; animation: lhWinken 3s ease-in-out 1.5s 2; }
.kopf-leo .lh-schild { font-size: 9px; padding: 0 5px; bottom: -7px; }
.lh-blase { order: -1; max-width: min(320px, calc(100vw - 96px)); background: #fffaf0; color: #2b1d0b; border: 2px solid #d9a441; border-radius: 16px 4px 16px 16px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 15px; line-height: 1.4; animation: lhRein .25s ease-out; }
.lh-blase.versteckt { display: none; }
.lh-text { font-weight: 700; min-height: 2.8em; }
.lh-knoepfe { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.lh-knoepfe button { font: inherit; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; border: 1.5px solid #d9a441; background: #fff3d6; color: #2b1d0b; cursor: pointer; }
.lh-knoepfe .lh-zu { margin-left: auto; padding: 4px 9px; }
@keyframes lhRein { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .lh-bild { width: 48px; height: 48px; } .kopf-leo .lh-bild { width: 36px; height: 36px; } .lh-blase { font-size: 14px; } }

/* Startseite: Bereiche mit Überschrift (Stadt, Stadt des Tages) */
.start-block { margin: 0 0 16px; }
.start-block[hidden] { display: none; }
.start-titel { margin: 6px 4px 10px; font-size: 21px; }
.start-titel small { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; opacity: .7; }
/* Alle Seiten: Überschrift über der Kachel (app.js titelUeberKacheln); die Karte darunter rückt etwas heran */
.kachel-titel { margin-top: 18px; }
.kachel-titel + .karte { margin-top: 0; }
/* Startseite: die Überschrift steht über der Karte, die eigene Überschrift in der Karte entfällt */
.ohne-kopf .karte > h2:first-child, .ohne-kopf #lager-liste > h2:first-child { display: none; }

/* Stadt im Vollbild (Knopf ⛶ oder beim Bauen) */
.stadt-buehne.vollbild { position: fixed; inset: 0; z-index: 950; height: auto; border-radius: 0; border: 0; }
.stadt-buehne.vollbild .stadt-knoepfe { top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); }
.stadt-buehne.vollbild .stadt-bauen { top: calc(10px + env(safe-area-inset-top)); left: calc(10px + env(safe-area-inset-left)); }
.stadt-buehne.vollbild .stadt-tafel { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
body.stadt-vollbild { overflow: hidden; }
body.stadt-vollbild #leo-helfer { display: none; }

/* Stadt: Regler für den Blickwinkel am linken Rand */
.stadt-neigung { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 46px; height: 210px; z-index: 2;
  background: rgba(255, 250, 238, .88); border-radius: 23px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.stadt-neigung[hidden] { display: none; }
.stadt-neigung input { position: absolute; left: -47px; top: 93px; width: 140px; height: 24px; margin: 0; transform: rotate(-90deg); accent-color: var(--akzent); cursor: pointer; touch-action: none; }
.stadt-neigung span { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 900; line-height: 1.05; color: var(--see); }
.neigung-oben { top: 7px; }
.neigung-unten { bottom: 8px; }
/* ✕ fürs Vollbild: ganz oben rechts, rund und dunkel */
.vollbild-zu { display: none; }
.stadt-buehne.vollbild .vollbild-zu {
  display: grid; place-items: center; position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right));
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: rgba(11, 47, 71, .88); color: #fff;
  font: inherit; font-size: 24px; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}
.stadt-buehne.vollbild .vollbild-zu:hover { background: #b71f1f; }
.stadt-buehne.vollbild .stadt-knoepfe { top: calc(72px + env(safe-area-inset-top)); }
.stadt-buehne.vollbild [data-k="voll"] { display: none; }
.schatz-gross { flex: none; width: 84px; font-size: 56px; line-height: 1; text-align: center; }

/* Impressum und Datenschutz */
.rechtliches { max-width: 760px; margin: 0 auto 16px; line-height: 1.6; }
.rechtliches h1 { margin: 4px 0 2px; }
.rechtliches h2 { font-size: 1.05rem; margin: 20px 0 4px; }
.rechtliches ul { padding-left: 20px; }
.fuss a { color: inherit; }
.hinweis.warnung { border-left: 4px solid #c0392b; }
