/* =====================================================================
   Fünf Wunder – Gestaltung
   Art déco × historischer Handelsatlas
   ===================================================================== */

@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --navy: #102b3b;
  --navy-1: #0b1f2c;
  --navy-2: #163649;
  --navy-3: #1f4760;
  --gold: #d7ac61;
  --gold-l: #f0d08e;
  --gold-d: #a87a35;
  --gold-t: #7a5418;   /* Goldton für Text auf Pergament (ausreichender Kontrast) */
  --petrol-t: #365f5a;
  --parch: #f5e9d1;
  --parch-2: #ecdcb9;
  --parch-3: #e2cd9f;
  --ink: #1d2b35;
  --ink-2: #4a4234;
  --muted: #605239;
  --petrol: #527e78;
  --red: #933824;
  --green: #2e6230;
  --line: rgba(168, 122, 53, .38);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(3, 12, 20, .35), 0 2px 6px rgba(3, 12, 20, .25);
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--navy-1);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(215, 172, 97, .14), transparent 55%),
    repeating-linear-gradient(45deg, rgba(215, 172, 97, .025) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(215, 172, 97, .025) 0 1px, transparent 1px 22px);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--gold-t); }
code { font-size: .88em; background: rgba(16, 43, 59, .08); padding: 1px 5px; border-radius: 2px; word-break: break-all; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }
.r { text-align: right; }
.c { text-align: center; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.mini-lock { width: 12px; height: 12px; opacity: .8; }

/* ---------------------------------------------------------------- Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; gap: 0;
  height: var(--header-h);
  background: linear-gradient(180deg, #14364a 0%, var(--navy) 55%, #0c2331 100%);
  border-bottom: 1px solid var(--gold-d);
  box-shadow: 0 1px 0 rgba(240, 208, 142, .35), 0 6px 18px rgba(0, 0, 0, .35);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-d) 15%, var(--gold-l) 50%, var(--gold-d) 85%, transparent);
  opacity: .55; pointer-events: none;
}
.brand { display: flex; align-items: center; padding: 0 20px 0 16px; border-right: 1px solid rgba(215, 172, 97, .28); flex: none; }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.mainnav { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 0 16px; min-width: 92px;
  color: #d9c9a6; text-decoration: none; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  border-right: 1px solid rgba(215, 172, 97, .14);
  transition: background .2s, color .2s;
}
.mainnav a .ic { width: 24px; height: 24px; color: var(--gold); }
.mainnav a:hover { background: rgba(255, 255, 255, .05); color: #fff3d6; }
.mainnav a.active { background: linear-gradient(180deg, rgba(240, 208, 142, .14), rgba(240, 208, 142, .04)); color: #fff3d6; }
.mainnav a.active::before { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--gold-d)); }
.mainnav a.locked { color: #8f9aa0; }
.mainnav a.locked .ic:not(.mini-lock) { color: #8a8e86; }
.mainnav a .mini-lock { position: absolute; top: 12px; right: calc(50% - 22px); color: var(--gold); }

.topbar-right { display: flex; align-items: center; gap: 18px; padding: 0 16px 0 18px; border-left: 1px solid rgba(215, 172, 97, .28); flex: none; }
.era { color: #f2e2bf; min-width: 210px; }
.era-year { font-size: 18px; font-weight: 600; letter-spacing: .02em; color: #fff4dc; }
.era-name { font-size: 12.5px; color: #d9c9a6; margin-bottom: 4px; }
.era .bar { height: 5px; }
.era-next { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #b5ad95; margin-top: 3px; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; color: #f2e2bf; }
.usermenu summary::-webkit-details-marker { display: none; }
.mini-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 3px rgba(215, 172, 97, .25); background: var(--parch-2); flex: none; }
.mini-avatar img, .mini-avatar svg { width: 100%; height: 100%; object-fit: cover; }
.um-name { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-chev { width: 16px; height: 16px; color: var(--gold); transition: transform .2s; }
.usermenu[open] .um-chev { transform: rotate(180deg); }
.um-menu {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 250px; z-index: 60;
  background: var(--parch); border: 1px solid var(--gold-d); box-shadow: var(--shadow), inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--line);
  padding: 8px;
}
.um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.um-head strong { display: block; font-size: 16px; }
.um-head small { color: var(--muted); }
.um-menu a, .um-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none;
  font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left;
}
.um-menu a:hover, .um-menu button:hover { background: var(--parch-2); }
.um-menu .ic { color: var(--gold-d); }

/* ---------------------------------------------------------------- Reiseleiste */
.travelbar {
  display: flex; align-items: center; gap: 14px; padding: 8px 24px; color: #f2e2bf; font-size: 14px;
  background: linear-gradient(90deg, #1b4058, #163649); border-bottom: 1px solid rgba(215, 172, 97, .35);
}
.travelbar .ic { color: var(--gold); }
.tb-bar { flex: 1; max-width: 360px; height: 6px; background: rgba(0, 0, 0, .35); border-radius: 3px; overflow: hidden; }
.tb-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); transition: width 1s linear; }
.tb-time { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Seite */
.page { max-width: 1680px; margin: 0 auto; padding: 22px 22px 40px; }
.page-head { margin: 4px 4px 18px; color: #f2e2bf; }
.page-head h1 { font-size: 30px; font-weight: 600; letter-spacing: .01em; }
.page-head .muted { color: #b5ad95; }
.foot { display: flex; justify-content: center; gap: 12px; padding: 18px 16px 30px; color: #a8a493; font-size: 12.5px; letter-spacing: .04em; flex-wrap: wrap; }
.foot-orn { color: var(--gold-d); }

/* ---------------------------------------------------------------- Karten */
.card { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); }
.parchment {
  background-color: var(--parch);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 252, 240, .7), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(201, 165, 103, .18), transparent 55%);
  border: 1px solid #b88e48;
  box-shadow: var(--shadow), inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--line);
  padding: 18px 20px;
}
.parchment::before, .parchment::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 1px solid var(--gold-d); opacity: .75;
}
.parchment::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.parchment::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.card-title {
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.card-title-aside { font-size: 12px; letter-spacing: .04em; text-transform: none; color: var(--muted); font-weight: 400; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.navy-card { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border: 1px solid var(--gold-d); color: #f2e2bf; }

.bar { height: 7px; background: rgba(16, 43, 59, .14); border-radius: 4px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--petrol)); border-radius: 4px; }
.topbar .bar, .travelbar .bar { background: rgba(0, 0, 0, .35); }
.topbar .bar > span { background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); }
.bar.thin { height: 4px; }
.bar.wide { max-width: 420px; margin: 10px auto 0; height: 8px; }

/* ---------------------------------------------------------------- Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 2px; border: 1px solid transparent;
  font: 600 13px/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: filter .15s, transform .05s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }
.btn .ic { width: 18px; height: 18px; }
.btn-navy { background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; border-color: var(--gold-d); box-shadow: inset 0 0 0 1px rgba(240, 208, 142, .25); }
.btn-navy:hover:not(:disabled) { filter: brightness(1.15); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #f3d895, var(--gold) 55%, #b98a42); color: #2a1d0c; border-color: #8f652a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover:not(:disabled) { filter: brightness(1.06); color: #1a1206; }
.btn-ghost { background: rgba(16, 43, 59, .55); color: #f6e6c2; border-color: rgba(240, 208, 142, .55); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(16, 43, 59, .8); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--navy); border-color: var(--gold-d); }
.btn-ghost-dark:hover { background: var(--parch-2); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 14px; }
.btn-sm { padding: 6px 10px; font-size: 11px; letter-spacing: .08em; }

/* ---------------------------------------------------------------- Meldungen */
.toasts { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; max-width: min(440px, calc(100vw - 36px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; font-size: 14px;
  background: var(--parch); color: var(--ink); border: 1px solid var(--gold-d); border-left-width: 5px;
  box-shadow: var(--shadow); animation: toast-in .35s ease-out; position: relative; overflow: hidden;
}
.toast .ic { margin-top: 1px; }
.toast span { flex: 1; }
.toast-success { border-left-color: var(--green); } .toast-success > .ic { color: var(--green); }
.toast-error { border-left-color: var(--red); } .toast-error > .ic { color: var(--red); }
.toast-info { border-left-color: var(--navy-3); } .toast-info > .ic { color: var(--navy-3); }
.toast-rank { border-left-color: var(--gold); background: linear-gradient(90deg, #fff1cf, var(--parch)); } .toast-rank > .ic { color: var(--gold-d); }
.toast-x { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); }
.toast-x .ic { width: 16px; height: 16px; }
.toast.static { animation: none; box-shadow: none; margin-bottom: 12px; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: all .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(82, 126, 120, .12); border: 1px solid rgba(82, 126, 120, .45); margin: 0 0 14px; font-size: 14px; }
.notice .ic { color: var(--petrol); }

/* ---------------------------------------------------------------- Übersicht */
.dash {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1fr);
  grid-template-areas:
    "hero epoch quests quests"
    "hero epoch cargo market"
    "wonders auction cargo market"
    "news news news news";
}
.hero { grid-area: hero; } .epoch { grid-area: epoch; } .wonders { grid-area: wonders; }
.auction { grid-area: auction; } .worldmarket { grid-area: market; } .quests { grid-area: quests; }
.cargo-card { grid-area: cargo; } .news { grid-area: news; }
/* Kacheln einer Reihe sind gleich hoch; Knöpfe sitzen jeweils unten */
.dash > .card.parchment { display: flex; flex-direction: column; }
.dash > .card.parchment > .btn-block { margin-top: auto; }
.dash > .card.parchment > .checklist, .dash > .card.parchment > .auction-body { margin-bottom: 16px; }
.dash .cargo { display: flex; flex-direction: column; flex: 1; }
.dash .cargo .fineprint { margin-top: auto; padding-top: 10px; }
.dash .quests .goals { flex: 1; align-content: start; }
.dash .quests .next-rank { margin-top: auto; }
.dash .wonders .wonder-row { flex: 1; align-content: center; }
.dash .news .newslist { flex: 1; align-content: start; }

.hero {
  overflow: hidden; min-height: 470px; border: 1px solid #b88e48;
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(245, 233, 209, .0);
  display: flex; background: var(--navy);
}
.hero-bg, .hero-veil { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.art svg { width: 100%; height: 100%; display: block; }
.hero-veil { background: linear-gradient(90deg, rgba(245, 233, 209, .97) 0%, rgba(245, 233, 209, .92) 58%, rgba(245, 233, 209, .55) 70%, rgba(245, 233, 209, 0) 84%); }
.hero::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(240, 208, 142, .6); pointer-events: none; }
.hero-body { position: relative; display: flex; gap: 26px; padding: 30px 30px 28px; width: 100%; align-items: flex-start; }
.hero-portrait { flex: none; }
.oval {
  width: 190px; height: 232px; border-radius: 50%; overflow: hidden; background: var(--parch-2);
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 2px #7a5a24, 0 0 0 7px rgba(240, 208, 142, .55), 0 0 0 8px #8f652a, 0 12px 28px rgba(0, 0, 0, .35);
}
.oval img, .oval svg { width: 100%; height: 100%; object-fit: cover; }
.hero-info { min-width: 0; max-width: 250px; }
.hero-name { font-size: 32px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.hero-house { font-size: 17px; font-style: italic; color: var(--ink-2); margin: 2px 0 18px; }
.hero-stats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 9px; }
.hero-stats li { display: flex; gap: 10px; align-items: center; }
.hero-stats .ic { width: 28px; height: 28px; color: var(--gold-d); }
.hero-stats small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.hero-stats strong { font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; gap: 8px; flex-wrap: nowrap; }
.hero-actions .btn { padding: 9px 13px; white-space: nowrap; }
.hero-actions .btn-ghost { color: var(--navy); background: rgba(245, 233, 209, .7); border-color: var(--gold-d); }
.hero-quote {
  position: absolute; right: 26px; bottom: 24px; margin: 0; max-width: 250px; padding: 12px 18px;
  font-style: italic; font-size: 15px; text-align: center; color: var(--navy);
  background: rgba(245, 233, 209, .92); border: 1px solid var(--gold-d); box-shadow: inset 0 0 0 3px rgba(245, 233, 209, .9), inset 0 0 0 4px var(--line), 0 6px 14px rgba(0, 0, 0, .25);
}

.epoch-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.epoch-num { font-size: 58px; line-height: .9; font-weight: 500; color: var(--navy); font-family: var(--serif); letter-spacing: -.02em; }
.epoch-num.small { font-size: 26px; min-width: 40px; text-align: center; }
.epoch-years { font-size: 18px; font-weight: 600; }
.epoch-name { font-size: 18px; }
.epoch-img { height: 150px; width: 100%; object-fit: cover; border: 1px solid var(--gold-d); margin-bottom: 12px; overflow: hidden; }
.epoch-img.art svg { width: 100%; height: 100%; display: block; }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--navy-3); display: grid; place-items: center; flex: none; }
.chk .ic { width: 13px; height: 13px; color: #fff; }
li.done .chk { background: var(--petrol); border-color: var(--petrol); }
.cl-title { flex: 1; }
.cl-num { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

.wonder-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wonder { margin: 0; text-align: center; }
.wonder-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border: 1px solid var(--gold-d); background: linear-gradient(180deg, #1d4660, var(--navy)); display: grid; place-items: center; overflow: hidden; }
.wonder-img.art { color: var(--gold); }
.wonder-art { width: 78%; height: auto; filter: drop-shadow(0 0 6px rgba(240, 208, 142, .35)); }
.wonder figcaption { font-size: 12.5px; line-height: 1.25; margin-top: 6px; min-height: 2.5em; }
.wonder-state { color: var(--muted); font-size: 12px; }

.auction-body { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.auction-lock { width: 64px; height: 80px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold-d); background: linear-gradient(180deg, #1d4660, var(--navy)); color: var(--gold); }
.auction-lock .ic { width: 30px; height: 30px; }
.auction-body strong { font-size: 17px; }
.auction-body p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }

.mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini-table th { font-weight: 500; font-size: 12px; color: var(--muted); text-align: left; padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.mini-table th.r { text-align: right; }
.mini-table td { padding: 7px 6px; border-bottom: 1px solid rgba(168, 122, 53, .2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table tfoot td { border-top: 1px solid var(--line); font-weight: 600; }
.mini-table td small { display: block; font-size: 11.5px; color: var(--muted); }
.good { display: inline-flex; align-items: center; gap: 9px; }
.good small { display: block; font-size: 11.5px; color: var(--muted); }
.good-ic { width: 26px; height: 26px; flex: none; object-fit: contain; }
.good-lg .good-ic { width: 36px; height: 36px; }
.trend { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; }
.trend .ic { width: 10px; height: 10px; }
.trend-up { color: var(--green); } .trend-down { color: var(--red); } .trend-flat { color: var(--muted); }

.chapter-head { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(16, 43, 59, .06); border: 1px solid var(--line); margin-bottom: 8px; }
.chapter-head .ic { width: 30px; height: 30px; color: var(--gold-d); }
.chapter-head small { display: block; color: var(--muted); font-style: italic; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 26px; }
.goals li { padding: 9px 0 10px; border-bottom: 1px solid var(--line); }

.goal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.goal-title { flex: 1; font-size: 14.5px; }
.goal-title small { display: block; color: var(--muted); font-size: 12px; }
.goal-num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.goals li.done .goal-title { color: var(--ink-2); }
.goals li.done .bar > span { background: var(--petrol); }
.next-rank { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.next-rank .ic { color: var(--gold-d); }

.cargo-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.cargo-eh { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; margin-bottom: 12px; }
.cargo-eh strong { font-size: 20px; color: var(--navy); }
.cargo-vehicle { display: flex; gap: 14px; align-items: center; margin: 4px 0 12px; }
.cargo-vehicle > div:last-child { flex: 1; }
.cargo-vehicle strong { display: block; }
.cargo-vehicle small { display: block; color: var(--muted); margin-bottom: 6px; }
.vehicle-img { width: 96px; height: 60px; object-fit: cover; border: 1px solid var(--gold-d); flex: none; overflow: hidden; }
.vehicle-img.art svg { width: 100%; height: 100%; display: block; }
.cargo-empty { font-style: italic; margin: 6px 0 0; }
.fineprint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.newslist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 26px; }
.newslist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-ic .good-ic, .news-ic .ic { width: 32px; height: 32px; color: var(--gold-d); }
.newslist strong { display: block; font-size: 14.5px; }
.newslist p { margin: 2px 0 4px; font-size: 13px; color: var(--ink-2); }
.newslist small { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Dialog */
.dialog { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%; }
.dialog::backdrop { background: rgba(5, 15, 24, .7); backdrop-filter: blur(2px); }
.dialog-inner { position: relative; padding: 26px 28px; }
.dialog-title { font-size: 22px; margin-bottom: 8px; }
.dialog-x { position: absolute; top: 12px; right: 12px; border: 0; background: none; cursor: pointer; color: var(--ink-2); z-index: 2; }
.epoch-list { list-style: none; padding: 0; margin: 14px 0 0; }
.epoch-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: .65; }
.epoch-list li.current { opacity: 1; }
.epoch-list li.current .epoch-num { color: var(--gold-d); }
.epoch-list p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- Handel */
.city-banner { position: relative; height: 180px; border: 1px solid var(--gold-d); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.city-img { width: 100%; height: 100%; object-fit: cover; }
.city-img.art svg { width: 100%; height: 100%; display: block; }
.city-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 233, 209, .95) 0, rgba(245, 233, 209, .75) 26%, rgba(245, 233, 209, 0) 55%); }
.city-banner-text { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); z-index: 1; }
.city-banner h1 { font-size: 42px; font-weight: 600; color: var(--navy); }
.city-country { font-size: 16px; font-style: italic; color: var(--ink-2); }
.tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 8px 0 0; border-bottom: 2px solid var(--gold-d); overflow-x: auto; }
.tabs a {
  padding: 9px 20px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--navy); background: var(--parch-2); border: 1px solid var(--gold-d); border-bottom: 0; display: inline-flex; gap: 6px; align-items: center;
}
.tabs a.active { background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; }
.tabs a.locked { color: var(--muted); }
.tabs a.locked.active { color: #f6e6c2; }
.tabs a.locked.active .mini-lock { opacity: .75; }
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.trade-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 14px); }
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.market-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.market-table th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--gold-d); white-space: nowrap; }
.market-table th.r { text-align: right; } .market-table th.c { text-align: center; }
.market-table td { padding: 10px 8px; border-bottom: 1px solid rgba(168, 122, 53, .25); vertical-align: middle; }
@media (hover: hover) and (pointer: fine) { .market-table tr:hover td { background: rgba(255, 252, 240, .55); } }
.market-table tr.is-cheap td:first-child { box-shadow: inset 3px 0 0 var(--petrol); }
.market-table tr.is-dear td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.market-table td.num { font-weight: 600; white-space: nowrap; }
.tag-cheap, .tag-dear { font-style: normal; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 5px; border-radius: 2px; }
.tag-cheap { background: rgba(82, 126, 120, .16); color: #2f5c56; }
.tag-dear { background: rgba(215, 172, 97, .25); color: #7a5520; }
.trade-form { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper { display: inline-flex; border: 1px solid var(--gold-d); background: #fffaf0; }
.stepper button { width: 28px; border: 0; background: var(--parch-2); cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.stepper button:hover { background: var(--parch-3); }
.stepper .ic { width: 14px; height: 14px; }
.stepper input { width: 64px; border: 0; text-align: center; font: 600 15px var(--serif); padding: 6px 2px; background: transparent; -moz-appearance: textfield; color: var(--ink); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick { display: flex; gap: 8px; }
.quick button { border: 0; background: none; padding: 0; font: 11.5px var(--serif); color: var(--navy-3); cursor: pointer; text-decoration: underline dotted; }
.quick button:disabled { color: #b4a68a; cursor: default; text-decoration: none; }
.actions { white-space: nowrap; text-align: right; }
.actions .btn { min-width: 98px; }
.actions .btn + .btn { margin-left: 4px; }
.preview { font-size: 12px; color: var(--ink-2); min-height: 18px; margin-top: 4px; white-space: normal; text-align: right; }
.preview .warn { color: var(--red); }
.lead { font-size: 16.5px; color: var(--ink-2); margin: 0 0 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips-label { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); background: #fffaf0; font-size: 13.5px; }
.chip .good-ic { width: 20px; height: 20px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th { font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--gold-d); text-align: left; white-space: nowrap; }
.compare-table th.r { text-align: right; }
.compare-table td { padding: 8px; border-bottom: 1px solid rgba(168, 122, 53, .22); }
.compare-table .here { background: rgba(215, 172, 97, .16); }
.compare-table td.best { color: var(--green); font-weight: 700; }
.compare-table td.worst { color: var(--red); font-weight: 700; }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.legend::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.legend.best::before { background: var(--green); } .legend.worst::before { background: var(--red); }
.travel-form { display: flex; flex-direction: column; gap: 12px; }
.travel-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.travel-facts div { background: rgba(16, 43, 59, .05); border: 1px solid var(--line); padding: 8px 10px; }
.travel-facts dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.travel-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.travel-eta { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.locked-panel { text-align: center; padding: 40px 30px; }
.locked-panel h2 { font-size: 26px; margin: 10px 0; }
.locked-panel p { max-width: 520px; margin: 0 auto 10px; color: var(--ink-2); }
.locked-ic { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #1d4660, var(--navy)); color: var(--gold); border: 2px solid var(--gold); }
.locked-ic .ic { width: 34px; height: 34px; }
.unlock { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-t); font-weight: 600; }

/* ---------------------------------------------------------------- Formulare */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .inline-form input, .inline-form select {
  font: 15px var(--serif); padding: 9px 11px; color: var(--ink);
  background: #fffaf0; border: 1px solid #c4a26a; border-radius: 2px; width: 100%;
}
.field input:focus, .field select:focus, .stepper:focus-within { outline: 2px solid rgba(82, 126, 120, .55); outline-offset: 1px; }
.field-row { display: flex; gap: 12px; } .field-row .field { flex: 1; } .field-row .field.small { flex: 0 0 110px; }
.field-group { border: 1px solid var(--line); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.field-group legend { padding: 0 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--navy); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: 1 / -1; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.avatar-opt { position: relative; cursor: pointer; }
.avatar-opt input { position: absolute; opacity: 0; }
.avatar-opt img { aspect-ratio: 5 / 6; object-fit: cover; width: 100%; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); }
.avatar-opt input:checked + img { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 172, 97, .45); }
.avatar-opt input:focus-visible + img { outline: 2px solid var(--petrol); }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.mode-opt { cursor: pointer; }
.mode-opt input { position: absolute; opacity: 0; }
.mode-opt > span { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--line); background: #fffaf0; height: 100%; }
.mode-opt .ic { width: 26px; height: 26px; color: var(--gold-d); margin-bottom: 4px; }
.mode-opt small { color: var(--muted); }
.mode-opt input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.mode-opt input:disabled + span { opacity: .6; cursor: not-allowed; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.stat-grid div { border: 1px solid var(--line); padding: 10px 12px; background: rgba(255, 252, 240, .5); }
.stat-grid dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-grid dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-tools { display: flex; flex-direction: column; gap: 10px; }
.admin-tools form { margin: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form select, .inline-form input { width: auto; flex: 1 1 140px; }
.city-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.city-toggle { margin: 0; }
.city-toggle button { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; border: 1px solid var(--line); background: #fffaf0; font: 14px var(--serif); cursor: pointer; text-align: left; }
.city-toggle small { width: 100%; padding-left: 18px; color: var(--muted); font-size: 11.5px; }
.city-toggle .dot { width: 10px; height: 10px; border-radius: 50%; background: #b9ad98; }
.city-toggle.on button { border-color: var(--petrol); background: rgba(82, 126, 120, .1); }
.city-toggle.on .dot { background: var(--green); }

/* ---------------------------------------------------------------- Gesperrte Bereiche */
.locked-hero { text-align: center; color: #f2e2bf; padding: 34px 20px 26px; }
.locked-hero h1 { font-size: 38px; font-weight: 600; margin: 16px 0 10px; color: #fff3d6; }
.locked-hero .lead { color: #d9c9a6; max-width: 640px; margin: 0 auto 14px; }
.locked-hero .unlock { color: var(--gold-l); font-weight: 400; display: block; }
.locked-hero .unlock a { color: var(--gold-l); }
.locked-hero .bar { background: rgba(0, 0, 0, .35); }
.locked-hero .bar > span { background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); }
.locked-medal { position: relative; width: 110px; height: 110px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 35%, #24506b, var(--navy-1)); border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(215, 172, 97, .15), 0 0 40px rgba(215, 172, 97, .25); }
.locked-medal > .ic { width: 52px; height: 52px; }
.locked-badge { position: absolute; right: -2px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); border: 2px solid var(--navy); }
.locked-badge .ic { width: 18px; height: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 16px; }
.feature .ic { width: 34px; height: 34px; color: var(--gold-d); }
.feature small { color: var(--muted); }

/* ---------------------------------------------------------------- Weltkarte */
.map-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; height: min(calc(100vh - var(--header-h) - 60px), 900px); min-height: 520px; }
body:has(.travelbar) .map-layout { height: min(calc(100vh - var(--header-h) - 98px), 900px); }
.map-side { padding: 14px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.map-search { display: flex; align-items: center; gap: 8px; background: rgba(245, 233, 209, .95); border: 1px solid var(--gold-d); padding: 7px 10px; color: var(--muted); }
.map-search input { border: 0; background: none; font: 14px var(--serif); width: 100%; color: var(--ink); outline: none; }
.map-filters, .map-regions { display: flex; flex-direction: column; gap: 3px; }
.mf, .mr {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; background: none;
  font: 14px var(--serif); color: #d9c9a6; cursor: pointer; text-align: left; border-radius: 2px;
}
.mf .ic { color: var(--gold); width: 18px; height: 18px; }
.mf:hover:not(:disabled), .mr:hover { background: rgba(255, 255, 255, .06); color: #fff3d6; }
.mf.active { color: #fff3d6; background: rgba(240, 208, 142, .1); border-color: rgba(240, 208, 142, .3); }
.mf:disabled { opacity: .45; cursor: not-allowed; }
.mf .mini-lock { margin-left: auto; }
.map-regions { border-top: 1px solid rgba(215, 172, 97, .3); padding-top: 12px; }
.mr { border: 1px solid rgba(215, 172, 97, .3); justify-content: center; letter-spacing: .06em; }
.mr.active { background: linear-gradient(180deg, #1f4a63, #143448); color: #fff3d6; border-color: var(--gold); }
.map-legend { margin-top: auto; font-size: 12.5px; color: #b9b096; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(215, 172, 97, .3); padding-top: 12px; }
.map-legend div { display: flex; align-items: center; gap: 8px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: #9a907b; border: 2px solid #f1e3c3; }
.lg-dot.active { background: var(--gold); border-color: var(--navy); box-shadow: 0 0 0 1px var(--gold); }
.lg-line { width: 26px; height: 0; border-top: 2px dashed #f3e2bf; }
.lg-line.rail { border-top: 3px dotted #c49a5c; }

.map-stage { position: relative; overflow: hidden; background: #3f6672; border: 1px solid var(--gold-d); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.map-zoom button, .map-locate { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.map-stage::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(240, 208, 142, .5); pointer-events: none; }
.worldmap { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.worldmap.dragging { cursor: grabbing; }
.worldmap .grat { fill: none; stroke: rgba(244, 230, 196, .2); stroke-width: .8; }
.worldmap .grat-major { stroke: rgba(240, 208, 142, .55); stroke-width: 1.1; stroke-dasharray: 10 6; }
.worldmap .grat-tropic { stroke: rgba(240, 208, 142, .32); stroke-width: .9; stroke-dasharray: 3 6; fill: none; }
.worldmap .ring { fill: none; stroke: #cfe0d6; stroke-linejoin: round; }
.worldmap .ring.r1 { stroke-width: 4; opacity: .32; }
.worldmap .ring.r2 { stroke-width: 10; opacity: .14; }
.worldmap .ring.r3 { stroke-width: 19; opacity: .07; }
.worldmap .ring, .worldmap .landmass, .worldmap .land-inner, .worldmap .inland-sea, .worldmap .grat, .worldmap .grat-major, .worldmap .grat-tropic, .worldmap .route, .worldmap .route-preview, .worldmap .journey { vector-effect: non-scaling-stroke; }
.worldmap .landmass { fill: url(#landfill); stroke: #6e5634; stroke-width: 1.3; stroke-linejoin: round; }
.worldmap .land-inner { fill: none; stroke: #c9ab74; stroke-width: 12; opacity: .5; stroke-linejoin: round; }
.worldmap .ocean { fill: #5a838c; }
.map-grain {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 120px rgba(8, 24, 34, .55);
}
.worldmap .inland-sea { fill: #6f969d; stroke: #6e5634; stroke-width: 1.1; }
.worldmap .ocean-label { font: italic 22px var(--serif); letter-spacing: .5em; fill: rgba(244, 232, 205, .45); text-anchor: middle; }
.worldmap .sea-label { font: italic 11px var(--serif); letter-spacing: .25em; fill: rgba(244, 232, 205, .55); text-anchor: middle; }
.worldmap .route { fill: none; stroke-linecap: round; }
.worldmap .route-sea { stroke: rgba(248, 236, 206, .8); stroke-width: 1.6; stroke-dasharray: 6 6; }
.worldmap .route-rail { stroke: #5b3e1e; stroke-width: 2.4; stroke-dasharray: 2 4; }
.worldmap .route-preview { fill: none; stroke: var(--gold-l); stroke-width: 3.2; stroke-dasharray: 9 7; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); animation: march 1.2s linear infinite; pointer-events: none; }
.worldmap .journey { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 9 7; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.worldmap .voyager-ring { fill: var(--navy); stroke: var(--gold); stroke-width: 2.5; }
.worldmap .voyager svg { color: var(--gold-l); }
.worldmap .city { cursor: pointer; outline: none; }
.worldmap .city-dot { fill: #9a907b; stroke: #f6ead0; stroke-width: 2; }
.worldmap .is-active .city-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 2.5; }
.worldmap .city-core { fill: var(--navy); }
.worldmap .city-label rect { fill: var(--navy); stroke: var(--gold); stroke-width: 1; }
.worldmap .city-label text:not(.inactive-label) { font: 600 15px var(--serif); fill: #f6e6c2; text-anchor: middle; letter-spacing: .02em; }
.worldmap .city-goods rect { fill: #f5e9d1; stroke: var(--gold-d); stroke-width: 1; }
.worldmap .inactive-label { font: italic 12px var(--serif) !important; fill: #4b3c26 !important; paint-order: stroke; stroke: rgba(241, 227, 195, .85); stroke-width: 3px; }
.worldmap .is-inactive { opacity: .85; }
.worldmap .city:hover .city-label rect, .worldmap .city:focus .city-label rect, .worldmap .city.selected .city-label rect { fill: #24506b; stroke: var(--gold-l); }
.worldmap .city:hover .city-dot, .worldmap .city.selected .city-dot { stroke: var(--gold-l); }
.worldmap .is-here .city-dot { fill: var(--gold-l); }
.worldmap .here-pulse { fill: rgba(240, 208, 142, .25); stroke: var(--gold-l); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.worldmap .city-event circle { fill: var(--red); stroke: #fff3d6; stroke-width: 1.5; }
.worldmap .city-event text { font: 700 10px var(--serif); fill: #fff; text-anchor: middle; }
.worldmap.no-events [data-layer="ereignisse"] { display: none; }
/* Verkehrswege treten zurück, solange die eigenen Routen gezeigt werden */
.worldmap .routes { transition: opacity .2s; }
.worldmap:has(.own-routes):not(.no-agents) .routes { opacity: .45; }
.worldmap .city.dim { opacity: .2; }
.map-cartouche {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 8px 26px; text-align: center; pointer-events: none;
  background: rgba(245, 233, 209, .92); border: 1px solid var(--gold-d); box-shadow: inset 0 0 0 3px rgba(245, 233, 209, .9), inset 0 0 0 4px var(--line), 0 4px 12px rgba(0, 0, 0, .3);
}
.map-cartouche span { display: block; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.map-cartouche small { font-style: italic; color: var(--ink-2); }
.map-compass { position: absolute; left: 18px; bottom: 18px; width: 92px; height: 92px; pointer-events: none; opacity: .9; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.map-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy); color: var(--gold-l); border: 1px solid var(--gold-d); cursor: pointer; }
.map-zoom button:hover { background: var(--navy-3); }
.map-card { position: absolute; width: 310px; z-index: 5; padding: 16px 18px; font-size: 14px; }
.map-card h3 { font-size: 21px; padding-right: 24px; }
.map-card .mc-country { font-style: italic; color: var(--ink-2); margin-bottom: 8px; }
.map-card .mc-img { height: 92px; width: 100%; object-fit: cover; border: 1px solid var(--gold-d); margin-bottom: 8px; }
.map-card p { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; }
.map-card .mc-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.map-card .mc-goods { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.map-card .mc-goods span { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; }
.map-card .mc-goods .good-ic { width: 20px; height: 20px; }
.map-card .mc-ev { font-size: 13px; padding: 5px 8px; background: rgba(164, 68, 47, .08); border-left: 3px solid var(--red); margin-bottom: 4px; }
.map-card .mc-travel { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.map-card .mc-facts { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.map-card .mc-facts strong { display: block; font-size: 15px; }
.map-card .mc-x { position: absolute; top: 10px; right: 10px; border: 0; background: none; cursor: pointer; color: var(--ink-2); z-index: 2; }
.map-card form { margin: 0; }
.map-card .mc-note { font-style: italic; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------------------------------------------------------------- Anmeldung */
.auth-body { min-height: 100vh; }
.auth-bg { position: fixed; inset: 0; z-index: -1; }
.auth-bg-img { width: 100%; height: 100%; object-fit: cover; }
.auth-bg-img.art svg { width: 100%; height: 100%; display: block; }
.auth-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11, 31, 44, .45), rgba(11, 31, 44, .88)); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.auth-card {
  width: 100%; max-width: 440px; padding: 30px 32px 26px; text-align: left;
  background: linear-gradient(180deg, rgba(20, 54, 74, .96), rgba(11, 31, 44, .97));
  border: 1px solid var(--gold-d); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 5px rgba(11, 31, 44, .9), inset 0 0 0 6px rgba(215, 172, 97, .45);
  color: #f2e2bf;
}
.auth-card.wide { max-width: 620px; }
.auth-logo { width: 100%; max-width: 330px; height: auto; margin: 0 auto 6px; }
.auth-tag { text-align: center; font-style: italic; color: #cbbd9c; margin: 0 0 22px; font-size: 14px; }
.auth-card .field > span, .auth-card .field-group legend { color: #d9c9a6; }
.auth-card .field-group { border-color: rgba(215, 172, 97, .35); }
.auth-card .fineprint { color: #b5ad95; }
.auth-card .check { color: #d9c9a6; }
.auth-switch { text-align: center; margin: 18px 0 0; color: #cbbd9c; }
.auth-switch a { color: var(--gold-l); }
.auth-closed { text-align: center; }
.install-checks { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; display: grid; gap: 4px; }
.install-checks .ok { color: #9fd08f; } .install-checks .bad { color: #f0a08f; }

/* ---------------------------------------------------------------- Mobile Navigation */
.tabbar { display: none; }
.moresheet { position: fixed; inset: auto 0 64px 0; z-index: 80; padding: 10px; }
.moresheet-inner { background: var(--parch); border: 1px solid var(--gold-d); box-shadow: var(--shadow); display: grid; }
.moresheet-inner a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.moresheet-inner .ic { color: var(--gold-d); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1440px) {
  .mainnav a { min-width: 76px; padding: 0 10px; letter-spacing: .08em; }
  .era { min-width: 170px; }
  .um-name { display: none; }
}
@media (max-width: 1320px) {
  .hero-info { max-width: 420px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .hero-veil { background: linear-gradient(90deg, rgba(245, 233, 209, .97) 0%, rgba(245, 233, 209, .9) 48%, rgba(245, 233, 209, .5) 60%, rgba(245, 233, 209, 0) 74%); }
  .dash {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "hero hero" "quests quests" "epoch cargo" "epoch market" "wonders auction" "news news";
  }
  .trade-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1160px) {
  .mainnav a span { font-size: 10px; }
  .era-next { display: none; }
  .hide-m { display: none; }
  .trade-layout { grid-template-columns: minmax(0, 1fr); }
  .trade-side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .brand img { height: 44px; }
  .mainnav { display: none; }
  .topbar { justify-content: space-between; }
  .topbar-right { border-left: 0; }
  .mini-avatar { width: 40px; height: 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: linear-gradient(180deg, var(--navy-2), var(--navy-1)); border-top: 1px solid var(--gold-d);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: #cbbd9c; text-decoration: none; font: 11px var(--serif); background: none; border: 0; cursor: pointer; }
  .tabbar .ic { color: var(--gold); width: 22px; height: 22px; }
  .tabbar a.active { color: #fff3d6; background: rgba(240, 208, 142, .1); }
  body { padding-bottom: 70px; }
  .dash { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "quests" "cargo" "epoch" "market" "wonders" "auction" "news"; }
  .dash > .card.parchment > .btn-block { margin-top: 4px; }
  .newslist { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(420px, 1fr); height: auto !important; }
  .map-side { flex-direction: column; }
  .map-filters, .map-regions { flex-direction: row; flex-wrap: wrap; }
  .mf, .mr { width: auto; }
  .mf:disabled { display: none; }
  .map-legend { display: none; }
  .map-stage { height: 62vh; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .toasts { top: auto; bottom: 80px; }
}
@media (max-width: 700px) {
  .page { padding: 14px 10px 30px; }
  .era { min-width: 0; }
  .era-name { display: none; }
  .era-year { font-size: 15px; }
  .hero { min-height: 0; }
  .hero-veil { background: linear-gradient(180deg, rgba(245, 233, 209, .2) 0, rgba(245, 233, 209, .92) 150px, rgba(245, 233, 209, .97) 100%); }
  .hero-body { flex-direction: column; align-items: center; padding: 22px 16px; text-align: center; }
  .oval { width: 140px; height: 172px; }
  .hero-info { max-width: none; }
  .hero-stats { text-align: left; }
  .hero-actions { justify-content: center; }
  .hero-quote { position: static; margin-top: 4px; }
  .wonder-row { grid-template-columns: repeat(3, 1fr); }
  .trade-side { grid-template-columns: minmax(0, 1fr); }
  .city-banner { height: 130px; }
  .city-banner h1 { font-size: 30px; }
  .hide-s { display: none; }
  .market-table thead { display: none; }
  .market-table, .market-table tbody { display: block; }
  .market-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "good buy sell" "form act act"; column-gap: 14px; align-items: center; padding: 10px 2px 10px 8px; border-bottom: 1px solid rgba(168, 122, 53, .3); }
  .market-table td { display: block; padding: 0; border: 0; }
  .market-table td:first-child { grid-area: good; }
  .market-table .td-buy { grid-area: buy; } .market-table .td-sell { grid-area: sell; }
  .market-table .td-buy::before, .market-table .td-sell::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
  .market-table .td-have, .market-table .hide-s, .market-table .hide-m { display: none; }
  .market-table .td-form { grid-area: form; margin-top: 8px; }
  .market-table .td-form .trade-form { align-items: flex-start; }
  .market-table .actions { grid-area: act; margin-top: 8px; align-self: start; }
  .market-table tr.is-cheap td:first-child, .market-table tr.is-dear td:first-child { box-shadow: none; }
  .market-table tr.is-cheap { box-shadow: inset 3px 0 0 var(--petrol); } .market-table tr.is-dear { box-shadow: inset 3px 0 0 var(--gold); }
  .market-table tr:hover td { background: none; }
  @media (hover: hover) and (pointer: fine) { .market-table tr:hover { background: rgba(255, 252, 240, .55); } }
  .actions .btn { min-width: 0; }
  .stepper input { width: 46px; }
  .stepper button { width: 24px; }
  .good-lg .good-ic { width: 28px; height: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .mode-options { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .map-cartouche { display: none; }
  .map-compass { width: 60px; height: 60px; }
  .map-card { left: 8px !important; right: 8px; width: auto; top: auto !important; bottom: 8px; max-height: 70%; overflow-y: auto; }
  .travelbar { padding: 8px 12px; font-size: 13px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.worldmap:not(.zoomed) .city-goods { display: none; }
.dash .epoch .epoch-img { flex: 1 1 150px; min-height: 150px; max-height: 340px; }
.dash .quests .goals { grid-template-columns: repeat(auto-fill, minmax(max(250px, 30%), 1fr)); }
.goal-num { white-space: nowrap; }
.dash .cargo-vehicle .vehicle-img { width: 84px; height: 54px; }
.mini-table td.r { white-space: nowrap; }
.goal-title { min-width: 0; }

/* ---------------------------------------------------------------- Phase B: Aufgaben, Epochen, Kosten */
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--gold-t); }
.card-title-aside a { color: var(--navy-3); }
.qtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gold-d); margin: -2px 0 12px; }
.qtab {
  border: 1px solid var(--line); border-bottom: 0; background: var(--parch-2); padding: 7px 14px; cursor: pointer;
  font: 12px var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 6px;
}
.qtab small { font-size: 11px; color: var(--muted); letter-spacing: 0; }
.qtab.active { background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; border-color: var(--gold-d); }
.qtab.active small { color: #d9c9a6; }
.qpanel { display: none; }
.qpanel.active { display: flex; flex-direction: column; flex: 1; }
.dash .quests .qpanel .goals { flex: 1; }
.quest-empty { font-style: italic; margin: 6px 0 0; }
.quest-good .good-ic { width: 26px; height: 26px; }
.quest-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.quest-foot .ic { width: 14px; height: 14px; color: var(--gold-d); }
.quest-reward, .quest-time, .quest-claimed { display: inline-flex; align-items: center; gap: 4px; }
.quest-time { color: var(--muted); }
.quest-claimed { color: var(--petrol-t); margin-left: auto; }
.quest-claimed .ic { color: var(--petrol); }
.quest-claim { margin: 0 0 0 auto; }
.quest-list li.q-done { background: linear-gradient(90deg, rgba(215, 172, 97, .16), transparent 70%); }
.quest-list li.q-claimed .goal-title, .quest-list li.q-claimed .goal-num { opacity: .65; }
.claim-badge { background: var(--gold); color: #2a1d0c; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(215, 172, 97, .3); } }
.dot-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 600 11px var(--serif); }
.um-badge { position: absolute; left: -4px; top: -2px; z-index: 2; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #2a1d0c; display: grid; place-items: center; font: 700 11px var(--serif); border: 2px solid var(--navy); }
.usermenu summary { position: relative; }
.epoch-advance { margin: 0; margin-top: auto; }
.epoch-advance .btn { white-space: normal; line-height: 1.3; animation: glow 2s ease-in-out infinite; }
.epoch-complete { display: flex; gap: 8px; align-items: center; margin: auto 0 0; padding: 10px 12px; background: rgba(215, 172, 97, .18); border: 1px solid var(--gold-d); font-weight: 600; }
.epoch-complete .ic { color: var(--gold-d); }
.news-live { color: var(--petrol-t); font-weight: 600; }
.travel-facts .tf-cost { grid-column: 1 / -1; }
.travel-facts .tf-cost small { display: block; font-size: 11.5px; color: var(--muted); }
.map-card .mc-cost { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 8px 10px; margin-bottom: 10px; background: rgba(16, 43, 59, .05); border: 1px solid var(--line); font-size: 13px; }
.map-card .mc-cost strong { font-size: 16px; }
.map-card .mc-cost small { width: 100%; color: var(--muted); }
.stat-grid div small { display: block; font-size: 11px; color: var(--muted); }
.ledger-table .nowrap, .ledger-table td.r { white-space: nowrap; }
.ltype { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 2px; background: rgba(16, 43, 59, .08); white-space: nowrap; }
.ltype-verkauf, .ltype-belohnung { background: rgba(63, 122, 61, .14); color: #2c5a2b; }
.ltype-kauf, .ltype-reise { background: rgba(164, 68, 47, .1); color: #7d3020; }
.quests-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; grid-template-areas: "chapter daily" "chapter weekly" "chapter event"; align-items: start; }
.qp-chapter { grid-area: chapter; } .qp-daily { grid-area: daily; } .qp-weekly { grid-area: weekly; } .qp-event { grid-area: event; }
.quests-page .goals { grid-template-columns: 1fr; }
.qp-chapter .goals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lead.small { font-size: 14.5px; }
@media (max-width: 960px) {
  .quests-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "daily" "event" "weekly" "chapter"; }
}
.quest-meta { display: flex !important; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.quest-meta .ic { width: 13px; height: 13px; color: var(--gold-d); margin-right: 3px; }
.quest-claim { margin: 0; }
.quest-claim .btn { padding: 6px 12px; }
.quest-claimed { margin-left: 0; font-size: 12.5px; white-space: nowrap; }
.newslist small { display: block; }
.newslist small .trend { display: inline-flex; }
.dash .quests .quest-list { grid-template-columns: repeat(auto-fill, minmax(max(340px, 30%), 1fr)); }
.dash .quests .quest-list li { padding: 7px 0 8px; }
.quest-more { margin: 8px 0 0; font-size: 13px; }
.quest-meta > span:first-child { margin-right: 4px; }
.qtabs { overflow-x: auto; scrollbar-width: none; }
.qtabs::-webkit-scrollbar { display: none; }
.qtab { white-space: nowrap; flex: none; }
.express-check { align-items: flex-start; padding: 8px 10px; border: 1px dashed var(--gold-d); background: rgba(215, 172, 97, .1); font-size: 13.5px; cursor: pointer; }
.express-check input { margin-top: 3px; }
.map-card .express-check { margin-bottom: 8px; }
.warn-line { color: var(--red); font-size: 13px; margin: -4px 0 0; }
.bribe-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--gold-d); background: rgba(215, 172, 97, .12); }
.bribe-box p { font-size: 13px; color: var(--ink-2); margin: 4px 0 10px; }
.tb-bribe { margin: 0 0 0 auto; }
.tb-bribe .btn { white-space: nowrap; }

/* ================================================================ Startseite */
.landing { background-color: var(--navy-1); }
.lp-top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 0 22px; height: 68px;
  background: linear-gradient(180deg, #14364a, var(--navy) 60%, #0c2331); border-bottom: 1px solid var(--gold-d);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.lp-top .brand { border: 0; padding: 0; }
.lp-top .brand img { height: 50px; }
.lp-nav { display: flex; gap: 2px; margin: 0 auto; }
.lp-nav a { color: #d9c9a6; text-decoration: none; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; }
.lp-nav a:hover { color: #fff3d6; }
.lp-top-actions { display: flex; gap: 8px; }
.lp-top-actions .btn { padding: 8px 14px; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.lp-hero { position: relative; min-height: min(760px, calc(100vh - 68px)); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--gold-d); }
.lp-hero-bg { position: absolute; inset: 0; }
.lp-hero-img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-img.art svg { width: 100%; height: 100%; display: block; }
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9, 26, 38, .94) 0%, rgba(9, 26, 38, .82) 42%, rgba(9, 26, 38, .35) 70%, rgba(9, 26, 38, .55) 100%); }
.lp-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 60px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: center; }
.lp-hero-text { color: #f2e2bf; max-width: 640px; }
.beta-badge { display: inline-block; padding: 5px 14px; border: 1px solid var(--gold); color: var(--gold-l); background: rgba(215, 172, 97, .12); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.lp-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; line-height: 1.08; color: #fff4dc; letter-spacing: -.005em; margin-bottom: 18px; }
.lp-hero h1 span { display: block; font-size: .5em; font-weight: 400; font-style: italic; color: var(--gold-l); margin-top: 12px; line-height: 1.3; }
.lp-lead { font-size: 18px; line-height: 1.6; color: #e3d4b3; margin: 0 0 20px; }
.lp-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 6px; }
.lp-points li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.lp-points .ic { color: var(--gold); width: 18px; height: 18px; }
.lp-login { background: var(--parch); color: var(--ink); padding: 24px 26px; border: 1px solid var(--gold-d); box-shadow: var(--shadow), inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--line); }
.lp-login h2 { font-size: 20px; margin-bottom: 14px; }
.lp-login-alt { text-align: center; margin: 14px 0 0; font-size: 14px; }

.lp-facts { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1280px; margin: 0 auto; padding: 26px 28px; gap: 10px; text-align: center; color: #d9c9a6; border-bottom: 1px solid rgba(215, 172, 97, .25); }
.lp-facts strong { display: block; font-size: 38px; font-weight: 600; color: var(--gold-l); line-height: 1.1; }
.lp-facts span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

.lp-section { padding: 80px 28px; }
.lp-section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.lp-head { text-align: center; max-width: 760px; margin-bottom: 44px; color: #f2e2bf; }
.lp-head h2, .lp-split h2, .lp-beta h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; color: #fff3d6; margin: 6px 0 14px; }
.lp-head p { font-size: 17px; line-height: 1.6; color: #cbbd9c; margin: 0; }
.lp-kicker { display: block; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.lp-dark { background: linear-gradient(180deg, #102b3b, #0b1f2c); border-top: 1px solid rgba(215, 172, 97, .25); border-bottom: 1px solid rgba(215, 172, 97, .25); }
.lp-parch { background: var(--parch) radial-gradient(ellipse at 20% 0%, rgba(255, 252, 240, .8), transparent 60%); }
.lp-parch .lp-head, .lp-parch .lp-head p { color: var(--ink-2); }
.lp-parch .lp-head h2 { color: var(--navy); }
.lp-parch .lp-kicker { color: var(--gold-d); }

.lp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-steps li { position: relative; background: var(--parch); padding: 28px 22px 22px; border: 1px solid var(--gold-d); box-shadow: var(--shadow), inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--line); }
.lp-step-n { position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-l); border: 2px solid var(--gold); font-weight: 600; }
.lp-step-ic { width: 34px; height: 34px; color: var(--gold-d); margin-bottom: 8px; }
.lp-steps h3 { font-size: 19px; margin-bottom: 6px; color: var(--navy); }
.lp-steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.lp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-features article { padding: 22px 20px; border: 1px solid rgba(215, 172, 97, .35); background: rgba(255, 255, 255, .03); color: #d9c9a6; }
.lp-features .ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; }
.lp-features h3 { font-size: 18px; color: #fff3d6; margin-bottom: 6px; }
.lp-features p { margin: 0; font-size: 14.5px; line-height: 1.55; }

.lp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.lp-shot { margin: 0; }
.lp-shot a { display: block; border: 1px solid var(--gold-d); box-shadow: var(--shadow); overflow: hidden; background: var(--navy); }
.lp-shot img { width: 100%; height: auto; transition: transform .4s; }
.lp-shot a:hover img { transform: scale(1.025); }
.lp-shot figcaption { color: #cbbd9c; font-size: 14px; line-height: 1.5; margin-top: 10px; }
.lp-shot figcaption strong { display: block; color: #fff3d6; font-size: 16px; }
.lp-shot-main { grid-column: 1 / span 2; grid-row: span 2; }
.lp-shot-phone { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-shot-cta { grid-column: 3; grid-row: 3; align-self: center; padding: 28px 26px; border: 1px solid var(--gold-d); background: radial-gradient(ellipse at 50% 0%, rgba(215, 172, 97, .18), transparent 70%), rgba(255, 255, 255, .03); color: #d9c9a6; display: flex; flex-direction: column; gap: 10px; }
.lp-shot-cta .ic { width: 40px; height: 40px; color: var(--gold); }
.lp-shot-cta h3 { font-size: 22px; color: #fff3d6; }
.lp-shot-cta p { margin: 0 0 8px; line-height: 1.55; }
.lp-shot-phone a { width: 100%; max-width: 260px; border-radius: 22px; border-width: 3px; }

.lp-epochs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-epochs li { background: #fffaf0; border: 1px solid var(--gold-d); box-shadow: 0 6px 16px rgba(60, 40, 10, .15); }
.lp-epoch-img { height: 150px; width: 100%; object-fit: cover; border-bottom: 1px solid var(--gold-d); overflow: hidden; }
.lp-epoch-img.art svg { width: 100%; height: 100%; display: block; }
.lp-epoch-body { padding: 16px 18px 18px; }
.lp-epoch-body .epoch-num { color: var(--gold-d); display: block; text-align: left; }
.lp-epoch-body h3 { font-size: 19px; color: var(--navy); margin: 2px 0 6px; }
.lp-epoch-body h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.lp-epoch-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; color: #d9c9a6; }
.lp-split p { font-size: 16px; line-height: 1.6; }
.lp-ranks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 2px; }
.lp-ranks li { display: grid; grid-template-columns: 34px 150px 1fr; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid rgba(215, 172, 97, .2); }
.lp-ranks span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-l); font-size: 13px; }
.lp-ranks strong { color: #fff3d6; font-weight: 600; }
.lp-ranks small { font-size: 13px; color: #a9a088; }
.lp-wonders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lp-wonders figcaption small { display: none; }
.lp-wonders figure { margin: 0; }
.lp-wonders figcaption { margin-top: 8px; font-size: 13px; }
.lp-wonders figcaption strong { display: block; color: #fff3d6; font-size: 15px; }

.lp-beta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; color: #d9c9a6; align-items: start; }
.lp-beta p { font-size: 16px; line-height: 1.6; }
.lp-beta a:not(.btn) { color: var(--gold-l); }
.lp-roadmap { background: rgba(255, 255, 255, .03); border: 1px solid rgba(215, 172, 97, .35); padding: 24px 26px; }
.lp-roadmap h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.lp-roadmap ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.lp-roadmap ul:last-child { margin-bottom: 0; }
.lp-roadmap li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.lp-roadmap .ic { width: 18px; height: 18px; margin-top: 2px; }
.lp-done .ic { color: #8fc48a; }
.lp-next li { color: #b9b096; }
.lp-next .ic { color: var(--gold-d); }

.lp-faq { max-width: 860px; display: grid; gap: 10px; }
.lp-faq details { background: var(--parch); border: 1px solid var(--gold-d); padding: 0 20px; }
.lp-faq summary { cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--gold-d); font-size: 22px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; }

.lp-final { text-align: center; padding: 80px 28px 90px; color: #f2e2bf; background: radial-gradient(ellipse at center, rgba(215, 172, 97, .16), transparent 65%); border-top: 1px solid rgba(215, 172, 97, .25); }
.lp-final h2 { font-size: clamp(30px, 3.6vw, 44px); color: #fff3d6; margin-bottom: 10px; }
.lp-final p { font-size: 18px; font-style: italic; color: #cbbd9c; margin: 0 0 26px; }
.lp-final .btn { margin: 4px; }
.lp-foot a { color: #b9b096; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 15, 24, .88); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; border: 1px solid var(--gold-d); cursor: zoom-out; }
.lightbox-cap { color: #f2e2bf; text-align: center; margin: 10px 0 0; }
.lightbox .dialog-x { color: #f2e2bf; top: -6px; right: -6px; }
.auth-home { display: block; }

@media (max-width: 1100px) {
  .lp-nav { display: none; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .lp-login { max-width: 420px; }
  .lp-steps, .lp-features, .lp-epochs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-shot-main { grid-column: 1 / -1; grid-row: auto; }
  .lp-shot-phone, .lp-shot-cta { grid-column: auto; grid-row: auto; }
  .lp-split, .lp-beta { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 640px) {
  .lp-top { padding: 0 12px; height: 60px; }
  .lp-top .brand img { height: 40px; }
  .lp-top-actions .btn-ghost { display: none; }
  .lp-hero-inner { padding: 40px 16px; }
  .lp-lead { font-size: 16px; }
  .lp-facts { grid-template-columns: repeat(3, 1fr); padding: 20px 16px; }
  .lp-facts strong { font-size: 28px; }
  .lp-section { padding: 56px 16px; }
  .lp-steps, .lp-features, .lp-epochs, .lp-shots { grid-template-columns: minmax(0, 1fr); }
  .lp-wonders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-steps { gap: 30px; }
  .lp-ranks li { grid-template-columns: 34px 1fr; }
  .lp-ranks small { grid-column: 2; }
  .landing { padding-bottom: 0; }
}

/* ================================================================ Impressum & Datenschutz */
.legal { padding: 50px 22px 30px; }
.legal-doc {
  position: relative; max-width: 860px; margin: 0 auto; padding: 44px 52px 40px;
  background-color: var(--parch);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 252, 240, .75), transparent 60%);
  border: 1px solid #b88e48; box-shadow: var(--shadow), inset 0 0 0 5px var(--parch), inset 0 0 0 6px var(--line);
  font-size: 16.5px; line-height: 1.7; color: var(--ink);
}
.legal-doc .lp-kicker { color: var(--gold-d); }
.legal-doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; color: var(--navy); margin: 4px 0 14px; }
.legal-doc h2 { font-size: 21px; font-weight: 600; color: var(--navy); margin: 38px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc address { font-style: normal; padding: 14px 18px; background: rgba(255, 252, 240, .7); border-left: 3px solid var(--gold); }
.legal-doc a { color: var(--navy-3); }
.legal-lead { font-size: 18px; color: var(--ink-2); }
.legal-toc { margin: 24px 0 8px; padding: 16px 20px; border: 1px solid var(--line); background: rgba(255, 252, 240, .6); font-size: 15px; }
.legal-toc strong { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.legal-toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 30px; }
.legal-toc li { break-inside: avoid; margin-bottom: 2px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-date { margin-top: 34px !important; font-size: 14px; color: var(--muted); font-style: italic; }
.lp-nav a[aria-current="page"] { color: var(--gold-l); }
.foot a { color: #b9b096; }
@media (max-width: 1100px) { .legal-page .lp-nav { display: flex; margin-left: auto; } }
@media (max-width: 640px) {
  .legal { padding: 20px 10px; }
  .legal-doc { padding: 28px 20px; font-size: 15.5px; }
  .legal-toc ol { columns: 1; }
  .legal-page .lp-nav { display: none; }
  .legal-page .lp-top-actions { margin-left: auto; }
  .legal-page .lp-top-actions .btn { padding: 7px 10px; font-size: 11px; }
}
.auth-legal { text-align: center; font-size: 12.5px; color: #b5ad95; margin: 10px 0 0; }
.auth-legal a { color: #cbbd9c; }

/* ================================================================ Rechtstexte: Inhalt & Editor */
.legal-body h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 600; color: var(--navy); margin: 4px 0 18px; }
.legal-body h2 { font-size: 21px; font-weight: 600; color: var(--navy); margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-body h3 { font-size: 17.5px; font-weight: 600; color: var(--navy-3); margin: 24px 0 8px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 24px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy-3); word-break: break-word; }
.legal-body ul.index { columns: 2; column-gap: 30px; padding: 16px 20px 16px 38px; border: 1px solid var(--line); background: rgba(255, 252, 240, .6); font-size: 15px; }
.legal-body ul.index li { break-inside: avoid; margin-bottom: 3px; }
.legal-body ul.glossary li { margin-bottom: 10px; font-size: 15px; }
.legal-body .seal { font-size: 13px; margin-top: 30px; }
.legal-body .seal a { color: var(--muted); }
.legal-doc > .legal-body > h1:first-child { margin-top: 4px; }
@media (max-width: 640px) { .legal-body ul.index { columns: 1; } }

.legal-editor { padding: 18px 20px; }
.le-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px; background: var(--parch-2); border: 1px solid var(--gold-d); border-bottom: 0; position: sticky; top: calc(var(--header-h) + 4px); z-index: 5; }
.le-tools, .le-modes { display: flex; gap: 4px; flex-wrap: wrap; }
.le-btn { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: #fffaf0; color: var(--navy); font: 600 14px var(--serif); cursor: pointer; border-radius: 2px; }
.le-btn:hover { border-color: var(--gold-d); background: #fff; }
.le-btn[data-cmd="italic"] { font-style: italic; }
.le-btn.active { background: var(--navy); color: #f6e6c2; border-color: var(--navy); }
.le-source-mode .le-tools { opacity: .35; pointer-events: none; }
.le-visual { min-height: 460px; max-height: 70vh; overflow-y: auto; padding: 22px 26px; background: #fffdf7; border: 1px solid var(--gold-d); outline: none; font-size: 16px; line-height: 1.65; }
.le-visual:focus { box-shadow: inset 0 0 0 2px rgba(82, 126, 120, .35); }
.le-source { display: block; width: 100%; min-height: 460px; max-height: 70vh; padding: 14px; border: 1px solid var(--gold-d); background: #1a2a36; color: #e8dcc0; font: 13px/1.55 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.le-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.le-status { color: var(--muted); font-size: 13.5px; }
.le-reset { margin-left: auto; }
.terms-check { align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #d9c9a6; }
.terms-check input { margin-top: 3px; }
.terms-check a { color: var(--gold-l); }
.ban-cell { min-width: 150px; }
.ban-details summary { cursor: pointer; color: var(--navy-3); font-size: 13px; }
.ban-form { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ban-form input, .ban-form select { font: 13px var(--serif); padding: 4px 6px; border: 1px solid #c4a26a; background: #fffaf0; }
.ban-form small { color: var(--muted); }

.legal-toc ul { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 30px; }
.legal-toc ul li { break-inside: avoid; margin-bottom: 3px; }
@media (max-width: 640px) { .legal-toc ul { columns: 1; } }
.rank-req { display: inline-flex; align-items: center; gap: 3px; margin: 2px 6px 0 0; padding: 1px 8px; border-radius: 10px; font-size: 12.5px; white-space: nowrap; }
.rank-req .ic { width: 12px; height: 12px; }
.rank-req.ok { background: rgba(63, 122, 61, .14); color: #2c5a2b; }
.rank-req.open { background: rgba(164, 68, 47, .1); color: #7d3020; font-weight: 600; }
.next-rank > span { display: block; }
.danger-zone { border-color: #a4442f; box-shadow: var(--shadow), inset 0 0 0 4px var(--parch), inset 0 0 0 5px rgba(164, 68, 47, .35); }
.danger-zone .card-title { color: var(--red); }
.danger-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.danger-grid p { margin: 0 0 10px; }
.danger-list { margin: 0 0 12px; padding-left: 22px; }
.btn-danger { background: linear-gradient(180deg, #b9553d, #8a2f1d); color: #fff4e8; border-color: #6d2416; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); color: #fff; }
@media (max-width: 960px) { .danger-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---------------------------------------------------------------- 0.3.9: Touch-Bedienung */
/* Stadtkarte auf der Weltkarte: nie höher als die Karte, eigener Scrollbereich */
.map-card { max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
/* Mengenwahl: kein Doppeltipp-Zoom, kein Markieren beim Gedrückthalten, 16 px gegen Auto-Zoom in iOS */
.stepper button { touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.stepper input { font-size: 16px; }
.market-table .have-m { display: none; }
@media (pointer: coarse) {
  .stepper button { width: 40px; min-height: 40px; }
  .stepper .ic { width: 18px; height: 18px; }
  .stepper input { width: 58px; }
}
@media (max-width: 700px) {
  .market-table .have-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 3px; color: var(--navy) !important; font-size: 12.5px; }
  .have-m span { display: inline-flex; gap: 4px; white-space: nowrap; }
  .have-m .have-avg { color: var(--muted); }
  .have-m .ic { width: 14px; height: 14px; color: var(--gold-d); flex: none; }
  .have-m b { font-weight: 700; }
}

/* 0.3.10: Schnellwahl als kleine Schaltflächen */
.quick { gap: 6px; margin-top: 6px; }
.quick button {
  padding: 4px 10px; border: 1px solid var(--gold-d); border-radius: 3px; background: var(--parch-2);
  font: 600 12.5px var(--serif); color: var(--navy); text-decoration: none; letter-spacing: .02em;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.quick button:hover:not(:disabled) { background: var(--parch-3); }
.quick button:disabled { color: #b4a68a; border-color: #d8c9a8; background: transparent; }
@media (pointer: coarse) {
  .quick button { padding: 7px 11px; font-size: 13.5px; min-height: 36px; }
}

/* 0.3.11: eigener Standort auf der Weltkarte */
.worldmap .city.is-here .city-label > rect,
.worldmap .city.is-here:hover .city-label > rect,
.worldmap .city.is-here.selected .city-label > rect { fill: var(--red); stroke: #ffe6b0; stroke-width: 1.5; }
.worldmap .city.is-here .city-label text:not(.inactive-label) { fill: #fff; }
.worldmap .city.is-here .here-pin { color: #ffe6b0; overflow: visible; }
.worldmap .city.is-here .here-pin use { stroke-width: 2.2; }
.worldmap .is-here .city-dot { fill: var(--red); stroke: #ffe6b0; stroke-width: 3; }
.worldmap .is-here .city-core { fill: #ffe6b0; }
.worldmap .is-here .here-pulse { fill: rgba(164, 68, 47, .22); stroke: var(--red); stroke-width: 2.5; }
.lg-dot.here { background: var(--red); border-color: #ffe6b0; box-shadow: 0 0 0 2px rgba(164, 68, 47, .35); }
.map-zoom .map-locate { background: var(--red); color: #ffe6b0; }
.map-zoom .map-locate:hover { background: #8e3826; }

/* 0.3.12: Aktionsprotokoll */
.log-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.log-filter select { padding: 6px 8px; border: 1px solid var(--gold-d); background: #fffaf0; font: 14px var(--serif); color: var(--ink); max-width: 100%; }
.log-filter .check { margin: 0; }
.log-table { font-size: 13px; }
.log-table td { vertical-align: top; }
.log-table code { font-size: 12px; background: rgba(16, 43, 59, .06); padding: 1px 4px; }
.log-details { max-width: 260px; font-size: 12px; color: var(--ink-2); }
.log-details span { display: inline-block; margin-right: 6px; white-space: nowrap; }
.log-err td { background: rgba(164, 68, 47, .07); }
.log-ip { font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--navy-3); }

/* 0.3.13: Städte nach Rang */
.rank-cities { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12.5px; color: var(--navy-3); }
.rank-cities .ic { width: 14px; height: 14px; color: var(--red); }
.map-card .mc-lock { display: flex; align-items: center; gap: 6px; font-style: normal; color: var(--ink-2); padding: 8px 10px; background: rgba(16, 43, 59, .06); border: 1px dashed var(--gold-d); }
.map-card .mc-lock .ic { width: 16px; height: 16px; color: var(--gold-d); flex: none; }

/* 0.3.14: Meldungen unten rechts, damit sie die Reiseleiste (Bestechung) nicht verdecken */
.toasts { top: auto; bottom: 24px; }
@media (max-width: 960px) { .toasts { bottom: 80px; } }

/* 0.4.0: Forschung */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.research-card { display: flex; flex-direction: column; gap: 12px; }
.rc-head { display: flex; align-items: center; gap: 14px; }
.rc-icon { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #24506b, var(--navy)); border: 2px solid var(--gold); color: var(--gold-l); }
.rc-icon .ic { width: 28px; height: 28px; }
.rc-head h2 { font-size: 22px; margin: 0 0 4px; }
.rc-pips { display: flex; gap: 4px; }
.rc-pips span { min-width: 28px; padding: 1px 6px; text-align: center; font-size: 11.5px; letter-spacing: .06em; border: 1px solid var(--gold-d); color: var(--muted); background: rgba(255, 250, 240, .6); }
.rc-pips span.on { background: var(--gold); color: #2a1d0c; font-weight: 700; }
.rc-pips span.soon { font-style: italic; text-transform: none; }
.rc-desc { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.rc-now { padding: 8px 12px; background: rgba(16, 43, 59, .05); border: 1px solid var(--line); }
.rc-now small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rc-now strong { font-size: 15px; }
.rc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rc-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.rc-steps li.later { opacity: .6; }
.rc-step-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-d); font-size: 11px; font-weight: 700; background: #fffaf0; }
.rc-steps li.done .rc-step-n { background: var(--green); border-color: var(--green); color: #fff; }
.rc-steps li.done .rc-step-n .ic { width: 14px; height: 14px; }
.rc-steps li.next .rc-step-n { background: var(--gold); color: #2a1d0c; }
.rc-step-t small { display: block; color: var(--muted); font-size: 12px; }
.rc-buy { margin-top: auto; }
.rc-why { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.rc-why .ic { width: 14px; height: 14px; }
.rc-max { margin: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--gold-d); font-weight: 600; }
.research-card.is-max { box-shadow: 0 0 0 2px var(--gold) inset, var(--shadow); }
.research-card.is-soon { opacity: .8; }

/* 0.5.0: Kontor und Handelsrouten */
.kontor-own { display: flex; align-items: center; gap: 8px; margin: 0; }
.kontor-own .ic { color: var(--gold-d); }
.kontor-buy p { margin-top: 0; }
.kontor-buy form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.route-form .rt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.route-form .field-group { margin: 6px 0; }
.route-form select, .route-form input[type=number] { width: 100%; }
.rt-hint { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); min-height: 1em; }
.rt-hint.warn { color: var(--red); }
.rt-leg[hidden] { display: none; }
.rt-leg + .rt-leg { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(122, 90, 40, .35); }
.rt-slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 14px; }
.rt-slot-del { border: 0; background: none; padding: 2px 4px; font: 13px var(--serif); color: var(--red); text-decoration: underline; cursor: pointer; }
.rt-legs-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.rt-legs-foot .btn[hidden] { display: none; }
.rt-cap { margin: 0; font-size: 13px; color: var(--ink-2); }
.rt-cap.warn { color: var(--red); font-weight: 600; }
.rt-cap .rt-bar { display: inline-block; width: 90px; height: 7px; margin-right: 6px; vertical-align: middle; background: rgba(122, 90, 40, .18); border-radius: 4px; overflow: hidden; }
.rt-cap .rt-bar i { display: block; height: 100%; background: var(--gold-d); }
.rt-cap.warn .rt-bar i { background: var(--red); }
.route-list { display: flex; flex-direction: column; gap: 14px; }
.route-card { border: 1px solid var(--gold-d); background: rgba(255, 250, 240, .7); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.route-card.paused { background: rgba(16, 43, 59, .04); }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rc-cities { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.rc-cities .ic { color: var(--gold-d); }
.rc-arrow { color: var(--gold-d); }
.rc-badge { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border-radius: 10px; }
.rc-badge.on { background: rgba(62, 125, 74, .15); color: var(--green); }
.rc-badge.off { background: rgba(16, 43, 59, .1); color: var(--muted); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rc-meta .ic, .rc-meta .good-ic { width: 18px; height: 18px; }
.rc-meta small { color: var(--muted); }
.rc-state { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 12px; background: rgba(16, 43, 59, .05); border: 1px solid var(--line); }
.rc-state small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rc-status { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.rc-nums { display: flex; gap: 22px; text-align: right; }
.rc-nums strong { font-size: 18px; }
.rc-log { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; max-height: 150px; overflow: auto; }
.rc-log time { color: var(--muted); margin-right: 4px; }
.rc-log .rl-risk, .rc-log .rl-loss { color: var(--red); }
.rc-log .rl-sell { color: var(--green); }
.rc-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.rc-actions form { margin: 0; }
.rc-edit { width: auto; }
.rc-edit[open] { width: 100%; }
.rc-edit summary { list-style: none; display: inline-block; cursor: pointer; }
.rc-edit summary::-webkit-details-marker { display: none; }
.rc-edit[open] summary { margin-bottom: 8px; }
.rc-dissolve p { margin: 0 0 8px; font-size: 13.5px; }
.rc-hint { align-self: center; }

/* 0.6.0: Ranglisten */
.rank-tabs { flex-wrap: wrap; }
.rank-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.rank-tabs .ic { width: 16px; height: 16px; }
.ranklist { list-style: none; margin: 0; padding: 0; }
.ranklist li { display: grid; grid-template-columns: 44px 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ranklist li.me { background: linear-gradient(90deg, rgba(215, 172, 97, .28), rgba(215, 172, 97, .06)); }
.rl-place { font: 700 20px var(--serif); text-align: center; color: var(--navy); }
.ranklist li.podium .rl-place { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; justify-self: center; font-size: 17px; color: #2a1d0c; }
.ranklist li.p1 .rl-place { background: radial-gradient(circle at 35% 30%, #fff1c2, #d7ac61); box-shadow: 0 0 0 2px #a87a35; }
.ranklist li.p2 .rl-place { background: radial-gradient(circle at 35% 30%, #ffffff, #b9bec4); box-shadow: 0 0 0 2px #8a9096; }
.ranklist li.p3 .rl-place { background: radial-gradient(circle at 35% 30%, #f6d2b0, #b87a4b); box-shadow: 0 0 0 2px #8b5a33; }
.rl-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); background: var(--navy); }
.rl-avatar img, .rl-avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-name { min-width: 0; }
.rl-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-name em { font-weight: 400; color: var(--muted); }
.rl-name small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-value { font: 600 16px var(--serif); text-align: right; white-space: nowrap; }
.rl-gap { display: block !important; text-align: center; color: var(--muted); border-bottom: 0 !important; padding: 2px !important; }
@media (max-width: 640px) {
  .ranklist li { grid-template-columns: 34px 36px minmax(0, 1fr) auto; gap: 8px; padding: 8px 4px; }
  .rl-avatar { width: 34px; height: 34px; }
  .rl-value { font-size: 14px; }
}

/* 0.6.2: Epochenbild zur Tageszeit, immer 16:9 */
.epoch-img.epoch-scene { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dash .epoch .epoch-img.epoch-scene { flex: 0 0 auto; min-height: 0; max-height: none; height: auto; }
.checklist .cl-title { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.epoch-text { margin: 0 0 10px; font-size: 13px; font-style: italic; line-height: 1.45; color: var(--ink-2); }
.checklist .cl-num { flex-shrink: 0; text-align: right; }

/* 0.6.4: Bilder der fünf Wunder (4:3) */
.wonder-img.wonder-photo, .wg-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.wonder-img.wonder-photo { box-shadow: inset 0 0 0 1px rgba(240, 208, 142, .3); }
.wonder:hover .wonder-photo { filter: brightness(1.08); }
.wonder-gallery { margin-top: 18px; }
.wg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .wg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .wg-item figcaption { padding: 8px 10px; } .wg-item figcaption strong { font-size: 15px; } }
.wg-item { margin: 0; background: var(--navy); border: 2px solid var(--gold); box-shadow: 0 0 0 1px #7a5a24, var(--shadow); }
.wg-img { border-bottom: 1px solid var(--gold-d); }
.wg-item figcaption { padding: 10px 14px 12px; color: #f2e2bf; }
.wg-item figcaption strong { display: block; font-size: 17px; color: #fff3d6; }
.wg-item figcaption small { display: block; font-size: 13px; color: #d9c9a6; margin-top: 2px; }

/* 0.6.5: Epochenbilder auf der Startseite (16:9, Tageszeit) */
.lp-epoch-img.epoch-scene { display: block; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* 0.6.6: Restdauer der Marktereignisse auf der Weltkarte */
.map-card .mc-ev small { display: block; font-size: 11.5px; color: var(--muted); }

/* 0.6.7: Feedback */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fb-tab {
  position: fixed; right: 0; top: 55%; z-index: 60; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 7px 14px;
  background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; border: 1px solid var(--gold-d); border-right: 0;
  border-radius: 6px 0 0 6px; box-shadow: -2px 2px 10px rgba(0, 0, 0, .25); cursor: pointer; opacity: .82; transition: opacity .2s, padding .2s;
  font: 11px var(--serif); letter-spacing: .14em; text-transform: uppercase;
}
.fb-tab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.fb-tab .ic { width: 18px; height: 18px; color: var(--gold-l); }
.fb-tab:hover, .fb-tab:focus-visible { opacity: 1; padding-right: 11px; }
@media (max-width: 960px) { .fb-tab { display: none; } }
.fb-dialog { max-width: min(560px, calc(100vw - 24px)); }
.fb-intro { margin: 0 0 14px; font-size: 14px; }
.fb-block { border: 0; padding: 0; margin: 0 0 12px; }
.fb-block legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.fb-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.fb-stars input { position: absolute; opacity: 0; pointer-events: none; }
.fb-stars label { cursor: pointer; color: #cdbf9f; padding: 2px; line-height: 0; }
.fb-stars label .ic { width: 32px; height: 32px; }
.fb-stars label:hover, .fb-stars label:hover ~ label, .fb-stars input:checked ~ label { color: var(--gold); }
.fb-stars input:focus-visible + label { outline: 2px solid rgba(82, 126, 120, .6); outline-offset: 2px; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cat input { position: absolute; opacity: 0; pointer-events: none; }
.fb-cat span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--gold-d); background: #fffaf0; cursor: pointer; font-size: 13.5px; }
.fb-cat span .ic { width: 16px; height: 16px; color: var(--gold-d); }
.fb-cat input:checked + span { background: var(--navy); color: #f6e6c2; border-color: var(--navy); }
.fb-cat input:checked + span .ic { color: var(--gold-l); }
.fb-cat input:focus-visible + span { outline: 2px solid rgba(82, 126, 120, .6); outline-offset: 1px; }
.fb-form textarea { width: 100%; font: 15px var(--serif); padding: 10px 12px; border: 1px solid var(--gold-d); background: #fffaf0; resize: vertical; min-height: 110px; }
.fb-count { display: block; text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fb-note { margin: 4px 0 12px; }
/* Verwaltung */
.fb-filter small { color: var(--muted); }
.fb-catfilter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fb-catfilter a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 13px; color: #e8d9b8; border: 1px solid rgba(240, 208, 142, .35); text-decoration: none; }
.fb-catfilter a .ic { width: 14px; height: 14px; }
.fb-catfilter a.active { background: var(--gold); color: #2a1d0c; border-color: var(--gold); }
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-item { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: rgba(255, 250, 240, .75); padding: 12px 14px; }
.fb-item.fb-k-fehler { border-left-color: var(--red); }
.fb-item.fb-k-lob { border-left-color: var(--green); }
.fb-item.fb-erledigt { opacity: .7; }
.fb-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; }
.fb-kind { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.fb-kind .ic { width: 16px; height: 16px; color: var(--gold-d); }
.fb-k-fehler .fb-kind .ic { color: var(--red); }
.fb-stars-ro { color: var(--gold); letter-spacing: 1px; }
.fb-stars-ro .fb-off { color: #d8ccb0; }
.fb-status { margin-left: auto; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 9px; border-radius: 10px; background: rgba(16, 43, 59, .08); }
.fb-status.s-neu { background: var(--gold); color: #2a1d0c; }
.fb-status.s-erledigt { background: rgba(62, 125, 74, .15); color: var(--green); }
.fb-msg { white-space: normal; font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.fb-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.fb-admin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-admin select, .fb-admin input[type=text] { padding: 5px 8px; border: 1px solid var(--gold-d); background: #fffaf0; font: 13.5px var(--serif); }
.fb-admin input[type=text] { flex: 1 1 220px; min-width: 0; }
.fb-del { margin-left: auto; }
.fb-purge { margin-top: 14px; text-align: right; }

/* 0.6.9: Feier mit Feuerwerk */
.cel-dialog { max-width: min(480px, calc(100vw - 24px)); overflow: visible; }
.cel-dialog::backdrop { background: radial-gradient(ellipse at center, rgba(16, 43, 59, .78), rgba(5, 15, 24, .92)); }
.cel-fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
.cel-inner { position: relative; z-index: 1; text-align: center; padding: 26px 28px 24px; animation: cel-in .55s cubic-bezier(.2, .9, .3, 1.25) both; box-shadow: 0 0 0 2px var(--gold), 0 0 0 6px rgba(240, 208, 142, .35), 0 18px 50px rgba(0, 0, 0, .5); }
@keyframes cel-in { from { opacity: 0; transform: scale(.82) translateY(16px); } to { opacity: 1; transform: none; } }
.cel-medal { width: 84px; height: 84px; margin: -66px auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff1c2, #d7ac61 60%, #a87a35); box-shadow: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold), 0 6px 18px rgba(0, 0, 0, .35); color: var(--navy); }
.cel-medal .ic { width: 42px; height: 42px; }
.cel-pic { margin: -8px -8px 14px; border: 2px solid var(--gold); overflow: hidden; }
.cel-pic .cel-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cel-kicker { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-d); }
.cel-title { font-size: 30px; margin: 4px 0 8px; color: var(--navy); }
.cel-text { margin: 0 0 14px; color: var(--ink-2); }
.cel-items { list-style: none; margin: 0 0 18px; padding: 10px 14px; text-align: left; background: rgba(16, 43, 59, .05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cel-items li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; }
.cel-items .ic { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.cel-more { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
@media (prefers-reduced-motion: reduce) { .cel-inner { animation: none; } }

/* 0.6.12: Passwort vergessen */
.auth-h { font-size: 24px; margin: 4px 0 6px; color: #fff3d6; text-align: center; }
.auth-info { margin: 0 0 14px; font-size: 14.5px; color: #e8d9b8; text-align: center; }
.auth-info strong { color: #f0d08e; }
.auth-info a { color: #f0d08e; }

/* 0.6.14: Ranglisten-Reiter auf dem Handy gleich breit */
@media (max-width: 700px) {
  .rank-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; border-bottom: 0; }
  .rank-tabs a { width: 100%; justify-content: flex-start; text-align: left; margin: 0; border-bottom: 1px solid var(--gold-d); }
}

/* 0.6.15: Entwurf einer Handelsroute */
.rt-draft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding: 6px 10px; font-size: 13px; background: rgba(215, 172, 97, .18); border: 1px dashed var(--gold-d); }
.rt-draft span { font-style: italic; color: var(--ink-2); }
.rt-draft button { border: 0; background: none; padding: 2px 4px; font: 13px var(--serif); color: var(--red); text-decoration: underline; cursor: pointer; }

/* 0.7.0: Imperium, Lagerhaus, Fernhandel */
.kontor-up { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--gold-d); background: rgba(215, 172, 97, .1); }
.kontor-up small { display: block; color: var(--muted); font-size: 12.5px; }
.store-bar { margin: 4px 0 12px; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.store-h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); margin: 14px 0 6px; display: flex; justify-content: space-between; gap: 8px; }
.store-h small { letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12.5px; }
.store-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.store-row .good small { display: block; color: var(--muted); font-size: 12px; }
.store-row input { width: 100%; padding: 5px 6px; border: 1px solid var(--gold-d); background: #fffaf0; font: 14px var(--serif); text-align: right; }
.imp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.imp-stats div { background: linear-gradient(180deg, #1d4660, var(--navy)); border: 1px solid var(--gold-d); padding: 10px 14px; color: #f6e6c2; }
.imp-stats small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #cbbd9c; }
.imp-stats strong { font-size: 19px; }
.imp-stats .pos { color: #9fd3a8; } .imp-stats .neg { color: #f0a18f; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; margin-bottom: 18px; }
.imp-k-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.imp-k-head h2 { font-size: 24px; margin: 0 0 4px; }
.imp-k-head .rc-pips em { font-size: 13px; color: var(--ink-2); margin-left: 6px; align-self: center; }
.imp-here { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--red); vertical-align: middle; }
.imp-here .ic { width: 14px; height: 14px; }
.imp-up { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin: 0; }
.imp-up small { font-size: 11.5px; color: var(--muted); }
.imp-store { width: 100%; font-size: 13.5px; }
.imp-store small { color: var(--muted); font-size: 11px; }
.imp-order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 6px; }
.imp-order select, .imp-order input { padding: 6px 8px; border: 1px solid var(--gold-d); background: #fffaf0; font: 14px var(--serif); min-width: 0; }
.imp-order button { grid-column: 1 / -1; }
.imp-orders { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.imp-orders li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 5px 8px; border-left: 3px solid var(--gold); background: rgba(255, 250, 240, .6); }
.imp-orders li small { flex-basis: 100%; color: var(--ink-2); }
.imp-orders li.o-abgelehnt, .imp-orders li.o-storniert { border-left-color: var(--red); opacity: .8; }
.imp-orders li.o-ausgefuehrt { border-left-color: var(--green); }
.imp-orders form { margin: 0 0 0 auto; }
.linkbtn { border: 0; background: none; padding: 0; font: 13px var(--serif); color: var(--red); text-decoration: underline; cursor: pointer; }
.imp-route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0; font-size: 13.5px; }
.imp-route .ic { width: 16px; height: 16px; color: var(--gold-d); }
.imp-log { max-height: none; }
@media (max-width: 700px) { .imp-order { grid-template-columns: minmax(0, 1fr); } .imp-up { align-items: flex-start; } }

/* 0.8.0: Produktion */
.biz-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.biz-formula.small { font-size: 13px; margin: 4px 0 2px; }
.biz-formula > small { flex-basis: 100%; }
.biz-good { display: inline-flex; align-items: center; gap: 5px; }
.biz-good .good-ic { width: 20px; height: 20px; }
.biz-good.out { font-weight: 600; color: var(--navy); }
.biz-arrow { color: var(--gold-d); font-size: 18px; }
.biz-options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.biz-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 250, 240, .6); }
.biz-option.is-off { opacity: .7; }
.biz-opt-text { flex: 1 1 260px; min-width: 0; }
.biz-option form { margin: 0; }
.biz-switch-form { margin: 0; }
.biz-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 20px; background: rgba(16, 43, 59, .08); cursor: pointer; font: inherit; color: var(--muted); }
.biz-knob { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #b9b3a6; transition: background .2s; }
.biz-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .2s; }
.biz-switch.on { color: var(--green); background: rgba(62, 125, 74, .1); }
.biz-switch.on .biz-knob { background: var(--green); }
.biz-switch.on .biz-knob::after { left: 21px; }
.biz-switch-text { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.rc-badge.warn { background: rgba(176, 50, 50, .12); color: var(--red); }
.biz-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.biz-mini li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.biz-help { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* 0.9.0: Auktionskatalog (Verwaltung) */
.ci-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #0f2233; }
.ci-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(232, 194, 122, .85);
  background: radial-gradient(ellipse at 50% 40%, #24445e, #0f2233 75%); border: 1px solid rgba(215, 172, 97, .35); }
.ci-ph-ic { width: 34%; height: 40%; max-width: 120px; }
.ci-ph span { font: italic 500 15px var(--serif); letter-spacing: .04em; color: #d9c9a6; }
.cat-tools-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.cat-import { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-import p { flex-basis: 100%; margin: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 10px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; background: rgba(255, 250, 240, .6); }
.cat-chips a.active { background: var(--navy); color: #f6ecd6; border-color: var(--navy); }
.cat-chips .ic { width: 16px; height: 16px; }
.cat-chips small { color: inherit; opacity: .7; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-filter input[type=search] { flex: 1 1 180px; min-width: 0; }
.cat-filter select { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.cat-count { margin: 6px 2px 8px; font-size: 13.5px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.cat-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: rgba(255, 250, 240, .92); border: 1px solid var(--gold-d); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.cat-card.st-entwurf { opacity: .75; }
.cat-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; }
.cat-body strong { font: 600 15px/1.3 var(--serif); }
.cat-body small { color: var(--muted); font-size: 12.5px; }
.cat-series { color: var(--gold-t) !important; }
.cat-rar, .cat-st { position: absolute; top: 8px; padding: 2px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 10px; }
.cat-rar { left: 8px; background: rgba(16, 43, 59, .85); color: #e8dcc0; }
.cat-st { right: 8px; background: rgba(176, 50, 50, .85); color: #fff; }
.r-selten .cat-rar { background: rgba(43, 98, 140, .92); color: #fff; }
.r-kostbar .cat-rar { background: rgba(120, 52, 140, .92); color: #fff; }
.r-legendaer .cat-rar { background: linear-gradient(180deg, #f3d58e, #b98a3e); color: #2a1d0c; }
.cat-edit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.cat-edit-img .ci-img { margin-bottom: 10px; }
.cat-hint { margin-top: 10px; padding: 8px 10px; background: rgba(16, 43, 59, .05); border: 1px dashed var(--line); font-size: 13.5px; }
.cat-hint small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cat-form textarea { width: 100%; font: inherit; }
.cat-filter input, .cat-filter select { min-height: 36px; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.cat-row select, .cat-row input { width: 100%; }
.cat-actions { display: flex; gap: 8px; margin-top: 6px; }
.cat-del { margin-top: 12px; }
.cat-del p { margin: 0 0 8px; }
@media (max-width: 760px) { .cat-edit { grid-template-columns: minmax(0, 1fr); } }

/* 0.9.2: Verzeichnis-Links in der Fußzeile */
.lp-backlinks { flex-basis: 100%; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 12px; }
.lp-backlinks img { display: inline-block; max-height: 31px; width: auto; vertical-align: middle; }
.bl-preview a { margin-right: 4px; }
.bl-preview img { display: inline-block; max-height: 24px; width: auto; vertical-align: middle; }

/* 0.9.3: Kaufvorschau mit Durchschnittspreis */
.preview .pv-line { display: block; }
.preview .pv-line + .pv-line, .preview .pv-impact + .pv-line { margin-top: 2px; }
.preview .pv-impact { display: block; font-size: 11.5px; color: var(--gold-t); }
.market-table .preview { min-width: 190px; }
/* Mittlere Breiten: Bestand und „Geladen“ wandern in die Warenzelle, damit nichts seitlich scrollt */
@media (min-width: 1161px) and (max-width: 1440px), (min-width: 701px) and (max-width: 960px) {
  .market-table .hide-m, .market-table .col-have, .market-table .td-have { display: none; }
  .market-table .have-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 3px; color: var(--navy) !important; font-size: 12.5px; }
  .have-m span { display: inline-flex; gap: 4px; white-space: nowrap; }
  .actions .btn { min-width: 0; }
}
@media (min-width: 1161px) and (max-width: 1300px), (min-width: 701px) and (max-width: 860px) { .market-table .hide-s { display: none; } }
@media (min-width: 701px) and (max-width: 860px) {
  .market-table .preview { min-width: 0; }
  .market-table td { padding-left: 5px; padding-right: 5px; }
  .act-btns { flex-direction: column; align-items: stretch; }
}
.act-btns { display: flex; gap: 6px; justify-content: flex-end; }
.act-btns .btn + .btn { margin-left: 0; }
@media (max-width: 700px) {
  .market-table tr { grid-template-areas: "good buy sell" "form act act" "pv pv pv"; }
  .market-table .actions { display: contents; }
  .market-table .act-btns { grid-area: act; margin-top: 8px; align-self: start; flex-wrap: wrap; }
  .market-table .preview { grid-area: pv; min-width: 0; min-height: 0; text-align: left; font-size: 12.5px; margin-top: 6px; }
  .market-table .preview:empty { display: none; }
}

/* 0.9.5: Lesbarkeit, Kapital immer sichtbar, Gewinn deutlich */
.cash-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(215, 172, 97, .55); border-radius: 18px;
  background: rgba(240, 208, 142, .08); color: #fff3d6; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; flex: none; }
.cash-chip .ic { width: 18px; height: 18px; color: var(--gold); }
.cash-chip:hover { background: rgba(240, 208, 142, .16); color: #fff3d6; }
a.era { display: block; text-decoration: none; }
a.era:hover .era-year { color: var(--gold-l); }
.epoch-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); background: rgba(16, 43, 59, .05); border: 1px dashed var(--line); padding: 8px 10px; margin: 0 0 10px; }
.epoch-hint .ic { width: 18px; height: 18px; color: var(--gold-t); flex: none; margin-top: 1px; }
.toast-big { display: block; font-size: 20px; line-height: 1.25; margin-bottom: 2px; }
.toast-big.pos { color: var(--green); } .toast-big.neg { color: var(--red); }
@media (max-width: 1440px) and (min-width: 961px) { .era-name { display: none; } }
@media (max-width: 700px) { .cash-chip { font-size: 14px; padding: 5px 10px; } .topbar-right { gap: 10px; padding-right: 10px; } }
@media (max-width: 560px) {
  .topbar .era { display: none; }
  .brand { padding: 0 10px; border-right: 0; }
  .brand img { height: 40px; }
  .topbar-right { padding: 0 8px 0 4px; gap: 8px; }
  .um-chev { display: none; }
}
@media (max-width: 360px) { .cash-chip .ic { display: none; } .brand img { height: 36px; } }

/* 0.9.6: Finanzen */
.cash-chip.active { background: rgba(240, 208, 142, .2); border-color: var(--gold-l); }
.fin-now { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.fin-now > div { flex: 1 1 150px; min-width: 0; }
.fin-now > .fin-big { flex: 1.8 1 240px; }
.fin-now > div { background: linear-gradient(180deg, var(--parch), var(--parch-2)); border: 1px solid var(--gold-d); padding: 12px 14px; }
.fin-now small, .fin-result small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fin-now strong { display: block; font-size: 20px; color: var(--navy); }
.fin-now .fin-big strong { font-size: 28px; }
.fin-now span, .fin-result span { display: block; font-size: 12.5px; color: var(--muted); }
.fin-periods { margin-bottom: 14px; }
.fin-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fin-result > div { padding: 10px 12px; background: rgba(16, 43, 59, .05); border: 1px solid var(--line); }
.fin-result strong, .fin-result strong span { display: block; font-size: 20px; line-height: 1.3; white-space: nowrap; }
.fin-h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.fin-chart-wrap { position: relative; }
.fin-chart { display: block; width: 100%; height: 140px; background: rgba(16, 43, 59, .04); border: 1px solid var(--line); }
.fc-line { fill: none; stroke: var(--navy-3); stroke-width: 2; }
.fc-area { fill: rgba(31, 71, 96, .12); }
.fc-hi, .fc-lo { position: absolute; left: 6px; font-size: 11px; color: var(--muted); background: rgba(245, 233, 209, .85); padding: 0 4px; }
.fc-hi { top: 4px; } .fc-lo { bottom: 4px; }
.fin-flows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fin-flows li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.fin-flows a { color: var(--ink); }
.ff-bars { display: flex; flex-direction: column; gap: 3px; }
.ff-bars span { display: block; height: 7px; border-radius: 2px; }
.ff-in { background: var(--green); } .ff-out { background: var(--red); opacity: .8; }
.ff-num { text-align: right; font-size: 13px; white-space: nowrap; }
.fin-filter select { min-height: 34px; }
.fin-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13.5px; }
@media (max-width: 700px) {
  .fin-now > div { flex-basis: 40%; }
  .fin-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .fin-periods a { display: flex; justify-content: center; padding-left: 4px; padding-right: 4px; text-align: center; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
  .fin-now > .fin-big { flex-basis: 100%; }
  .fin-flows li { grid-template-columns: 1fr auto; }
  .fin-flows .ff-bars { grid-column: 1 / -1; order: 3; }
  .ledger-table td:nth-child(2) { display: none; } .ledger-table th:nth-child(2) { display: none; }
}

/* 0.10.0: Spielen ohne Anmeldung */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.guest-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.guest-form small { max-width: 460px; font-size: 12.5px; line-height: 1.5; color: #cbbd9c; }
.guest-form small a { color: #f0d08e; }
.lp-or { margin: 12px 0 0; color: #d9c9a6; font-size: 14.5px; }
.lp-or a, .lp-final-alt a { color: #f0d08e; }
.lp-final .guest-form { align-items: center; margin: 0 auto; }
.lp-final .guest-form small { text-align: center; }
.lp-final-alt { margin: 14px 0 0; font-size: 14.5px; color: #cbbd9c; }
.lp-shot-cta .guest-form { align-items: stretch; margin-bottom: 8px; }
.lp-shot-cta .guest-form .btn { width: 100%; justify-content: center; white-space: normal; }
.lp-shot-cta .guest-form small { color: inherit; opacity: .85; }
.guest-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding: 7px 14px; background: linear-gradient(90deg, #3b2a12, #5a4120, #3b2a12); color: #f6e6c2; font-size: 13.5px; border-bottom: 1px solid var(--gold-d); text-align: center; }
.guest-bar .ic { width: 16px; height: 16px; color: var(--gold-l); }
.guest-bar .btn { padding: 4px 12px; }
.um-secure { color: var(--gold-t) !important; font-weight: 600; }
.secure-card { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(215, 172, 97, .35); }
.top-guest { display: inline; margin: 0; }
@media (max-width: 700px) { .guest-bar { flex-wrap: nowrap; padding: 6px 10px; font-size: 13px; } .guest-bar .gb-long { display: none; } .guest-bar .btn { white-space: nowrap; } }

/* 0.10.1: Meldungen mit Lesezeit */
.toast-time { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); opacity: .7; transform-origin: left; transform: scaleX(1); }
.toast .toast-x { padding: 4px; margin: -4px -4px 0 0; }
.toast .toast-x .ic { width: 18px; height: 18px; }

/* 0.10.2: Hinweise direkt auf dem dunklen Seitenhintergrund lesbar */
.page > .notice { background: linear-gradient(180deg, var(--parch), var(--parch-2)); color: var(--ink); border-color: var(--gold-d); }
.page > .notice a { color: var(--navy); font-weight: 600; }
.page > .notice .ic { color: var(--gold-t); flex: none; }

/* 0.10.3: Links auf dunklem Seitenhintergrund */
.page-head a, .page > p:not(.notice) a, .locked-hero a:not(.btn) { color: var(--gold-l); text-decoration-color: rgba(240, 208, 142, .5); }
.page-head a:hover, .page > p:not(.notice) a:hover, .locked-hero a:not(.btn):hover { color: #fff3d6; }

/* 0.10.5: Preisvergleich – Tabelle mit fester Kopfzeile/Spalte und Ansicht „Nach Ware“ */
.cmp-switch { display: inline-flex; border: 1px solid var(--gold-d); }
.cmp-switch a { padding: 6px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--navy); background: var(--parch-2); }
.cmp-switch a.active, .cmp-view-auto .cmp-sw-t { background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; }
.cmp-regions, .cmp-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; font-size: 13.5px; }
.cmp-regions a, .cmp-sort a { padding: 4px 11px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: rgba(255, 250, 240, .6); border-radius: 14px; }
.cmp-regions a.active, .cmp-sort a.active { background: var(--navy); color: #f6e6c2; border-color: var(--navy); }
.cmp-scroll { max-height: 70vh; overflow: auto; border: 1px solid var(--line); background: #fbf4e4; }
.cmp .compare-table { border-collapse: separate; border-spacing: 0; }
.cmp .compare-table thead th { position: sticky; top: 0; z-index: 2; background: #efe1c2; vertical-align: bottom; white-space: normal; min-width: 64px; max-width: 86px; line-height: 1.2; font-size: 12px; padding: 8px 6px; }
.cmp .compare-table thead th small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); }
.cmp .compare-table tbody th { position: sticky; left: 0; z-index: 1; background: #f7ecd5; text-align: left; font-weight: 500; padding: 6px 10px 6px 8px; white-space: nowrap; border-bottom: 1px solid rgba(168, 122, 53, .22); box-shadow: 1px 0 0 var(--line); }
.cmp .compare-table thead th.cmp-corner { left: 0; z-index: 3; text-align: left; box-shadow: 1px 0 0 var(--line); }
.cmp .compare-table tbody th .good { display: inline-flex; align-items: center; gap: 6px; }
.cmp .compare-table tbody th .good-ic { width: 20px; height: 20px; }
.cmp .compare-table td { padding: 7px 8px; }
.cmp .compare-table th.here { background: #e9d3a3; }
.cmp .compare-table td.here { box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold); }
.h-g2 { background: rgba(63, 122, 61, .28); } .h-g1 { background: rgba(63, 122, 61, .13); }
.h-r1 { background: rgba(164, 68, 47, .12); } .h-r2 { background: rgba(164, 68, 47, .25); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.cmp-legend .lg { padding: 1px 8px; border: 1px solid var(--line); }
.cmp-pick { max-width: 360px; margin-bottom: 8px; }
.cmp-pick select { width: 100%; }
.cmp-g-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; }
.cmp-g-head .good-ic { width: 34px; height: 34px; }
.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-list li { display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(3, minmax(80px, 1fr)) minmax(130px, 1.3fr); gap: 8px; align-items: center; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.cmp-list li.here { background: rgba(215, 172, 97, .18); }
.cmp-list small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.cmp-list b { font-size: 15px; white-space: nowrap; }
.cl-city strong { font-size: 15.5px; }
.cl-p, .cl-diff, .cl-trip { text-align: right; }
.cl-p.h-g2, .cl-p.h-g1, .cl-p.h-r1, .cl-p.h-r2 { padding: 2px 6px; }
@media (min-width: 701px) { .cmp-view-auto .cmp-goods { display: none; } }
@media (max-width: 700px) {
  .cmp-view-auto .cmp-table { display: none; }
  .cmp-view-auto .cmp-sw-t { background: var(--parch-2); color: var(--navy); }
  .cmp-view-auto .cmp-sw-w { background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; }
  .cmp-scroll { max-height: 65vh; }
  .cmp-list li { grid-template-columns: 1fr 1fr 1fr; gap: 4px 8px; }
  .cmp-list .cl-city { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
  .cmp-list .cl-p:nth-child(2) { text-align: left; }
  .cmp-list .cl-trip { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .cmp-list .cl-trip small { display: inline; }
}

/* 0.10.6: Preisvergleich breit, „In der Nähe“, Hinreisen */
.trade-layout.trade-wide { grid-template-columns: minmax(0, 1fr); }
.cmp-list li { grid-template-columns: minmax(120px, 1.2fr) repeat(3, minmax(76px, .8fr)) minmax(280px, 2fr); }
.cl-km { margin-bottom: 4px; }
.cl-btns { display: flex; gap: 6px; justify-content: flex-end; }
.cl-btns form { margin: 0; display: flex; }
.trip-btn { display: flex; flex-direction: column; align-items: stretch; gap: 1px; min-width: 128px; padding: 5px 10px; border: 1px solid var(--gold-d); background: linear-gradient(180deg, #1d4660, var(--navy)); color: #f6e6c2; cursor: pointer; font: inherit; text-align: left; border-radius: 3px; }
.trip-btn:hover { filter: brightness(1.12); }
.trip-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.5); }
.trip-btn.fast { background: linear-gradient(180deg, #f3d48f, #d7ac61); color: #2a1d0c; }
.trip-btn .tb-l { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.trip-btn .tb-l .ic { width: 13px; height: 13px; }
.trip-btn .tb-v { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; white-space: nowrap; }
.trip-btn .tb-v b { font-size: 14px; color: inherit; }
.trip-btn .tb-v small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: inherit !important; opacity: .85; letter-spacing: 0; }
.trip-btn .tb-v .ic { width: 11px; height: 11px; }
@media (max-width: 700px) {
  .cmp-list li { grid-template-columns: 1fr 1fr 1fr; }
  .cmp-list .cl-trip { display: block; }
  .cl-km { text-align: left; }
  .cl-btns form { flex: 1; }
  .trip-btn { flex: 1; min-width: 0; }
}

/* 0.10.9: „Hier günstig“ führt zum Warenvergleich */
a.chip-link { color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
a.chip-link:hover, a.chip-link:focus-visible { background: #fff3d6; border-color: var(--gold-d); color: var(--navy); }

/* 0.11.0: Pazifik-Reisen – Messpfad für das Schiff bleibt unsichtbar */
.worldmap .journey-calc { fill: none; stroke: none; pointer-events: none; }

/* 0.11.4: Epochen-Hinweis unter der Zielliste */
.checklist + .epoch-hint { margin: 12px 0 10px; }

/* 0.12.0: Systemzustand */
.sys-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 10px; }
.sys-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); flex: none; }
.s-ok .sys-dot { background: var(--green); } .s-warnung .sys-dot { background: #c98a1b; } .s-fehler .sys-dot { background: var(--red); }
.sys-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sys-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sys-checks li .sys-dot { margin-top: 5px; }
.sys-checks small { display: block; color: var(--muted); font-size: 12.5px; }
.sys-checks li.s-fehler small { color: var(--red); }
.sys-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.sys-actions form { margin: 0; }
.sys-url { width: 100%; font-family: ui-monospace, monospace; font-size: 12.5px; }
.sys-newkey { margin-top: 6px; }
.sys-sep { width: 1px; background: var(--line); margin: 0 4px; align-self: stretch; }
.sys-errors { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sys-err { border: 1px solid var(--line); background: rgba(255, 250, 240, .7); }
.sys-err summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; cursor: pointer; list-style: none; }
.sys-err summary::-webkit-details-marker { display: none; }
.sys-badge { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; background: rgba(201, 138, 27, .18); color: #7a5418; }
.l-kritisch .sys-badge { background: rgba(147, 56, 36, .15); color: var(--red); }
.st-behoben { opacity: .65; }
.sys-msg { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sys-detail { padding: 4px 12px 12px; font-size: 13px; }
.sys-detail p { margin: 4px 0; word-break: break-word; }
.sys-trace { max-height: 260px; overflow: auto; font-size: 11.5px; background: #0f2233; color: #e8dcc0; padding: 8px 10px; white-space: pre-wrap; }
@media (max-width: 700px) { .sys-err summary { grid-template-columns: auto minmax(0, 1fr); } .sys-meta { grid-column: 1 / -1; } }

/* 0.12.2: Betriebe – Amortisation, Direktverkauf */
.biz-pay { display: flex; flex-direction: column; gap: 4px; }
.biz-pay-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.biz-pay-row small { color: var(--muted); }
.biz-bar { height: 6px; background: rgba(16, 43, 59, .1); border-radius: 3px; overflow: hidden; }
.biz-bar span { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.biz-sell { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.biz-sell small { flex: 1 1 220px; min-width: 0; }
.biz-ship { border: 1px dashed var(--gold-d); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: rgba(255, 250, 238, .5); }
.biz-ship p { margin: 0; font-size: .92rem; }
.biz-ship p .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--gold-d); }
.biz-ship-links { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-switch.sm { min-height: 30px; padding: 3px 10px 3px 3px; }
.biz-switch.sm .biz-knob { width: 36px; height: 22px; }
.biz-switch.sm .biz-knob::after { width: 16px; height: 16px; }
.biz-switch.sm.on .biz-knob::after { left: 17px; }
.biz-switch.sm .biz-switch-text { font-size: 11px; }

/* 0.13.0: App (PWA) */
.pwa-dialog .dialog-inner { max-width: 440px; }
.pwa-steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.pwa-share { display: inline-flex; vertical-align: -3px; color: #2f6fd6; }
.um-menu button[hidden] { display: none; }
.pwa-dialog .fineprint { margin-bottom: 16px; }

/* 0.14.0: Lehrzeit (geführter Einstieg) */
.tut-card {
  display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px;
  background: linear-gradient(180deg, #fdf6e6, #f3e3c2); border: 1px solid var(--gold); border-left: 5px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); color: var(--ink);
}
.tut-steps { display: flex; gap: 6px; }
.tut-steps span {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  border: 1px solid var(--gold-d); color: var(--gold-d); background: transparent;
}
.tut-steps span.done { background: var(--green); border-color: var(--green); color: #fff; }
.tut-steps span.now { background: var(--navy); border-color: var(--navy); color: #f5e9d1; box-shadow: 0 0 0 3px rgba(215, 172, 97, .45); }
.tut-body { flex: 1 1 320px; min-width: 0; }
.tut-kicker { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); }
.tut-title { display: block; font-size: 18px; color: var(--navy); margin: 2px 0 4px; }
.tut-body p { margin: 0; line-height: 1.5; font-size: 15px; }
.tut-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tut-actions form { margin: 0; }
.tut-skip { font-size: 13px; color: var(--muted); }
.tut-hl { position: relative; animation: tut-pulse 1.8s ease-in-out infinite; }
tr.tut-hl > td { background: rgba(215, 172, 97, .22); }
tr.tut-hl > td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
@keyframes tut-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(215, 172, 97, 0); } 50% { box-shadow: 0 0 0 4px rgba(215, 172, 97, .75); } }
tr.tut-hl { animation: none; }
@media (prefers-reduced-motion: reduce) { .tut-hl { animation: none; outline: 3px solid var(--gold); } }
@media (max-width: 640px) {
  .tut-card { padding: 12px 14px; gap: 10px; }
  .tut-steps span { width: 24px; height: 24px; font-size: 12px; }
  .tut-title { font-size: 16px; }
  .tut-body p { font-size: 14px; }
}

/* 0.14.0: App & Benachrichtigungen */
.push-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 28px; }
@media (max-width: 760px) { .push-grid { grid-template-columns: 1fr; } }
.push-state { font-weight: 600; margin: 0 0 10px; }
.push-devices { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.push-devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.push-devices form { margin: 0; }
.push-prefs { display: flex; flex-direction: column; gap: 8px; }
.push-prefs-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); }

/* 0.15.0: Finanzen-Reiter und Bank */
.fin-chips { margin: 0 0 14px; }
.fin-chips a { background: rgba(255, 255, 255, .05); color: #e9dcbf; border-color: rgba(215, 172, 97, .45); }
.fin-chips a:hover { background: rgba(215, 172, 97, .15); }
.fin-chips a.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.bank-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
.bank-head > div { padding: 12px 14px; background: linear-gradient(180deg, #1f4760, #163649); border: 1px solid rgba(215, 172, 97, .55); color: #f5e9d1; display: flex; flex-direction: column; gap: 2px; }
.bank-head small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #d9c49a; }
.bank-head strong { font-size: 22px; }
.bank-head span { font-size: 13px; color: #cdbf9f; }
.bank-head strong.neg { color: #f2a59a; }
.bank-grade strong { font-size: 30px; line-height: 1; }
.bank-grade.g-A strong { color: #9fe0a6; } .bank-grade.g-B strong { color: #e9d38f; }
.bank-grade.g-C strong { color: #f0b978; } .bank-grade.g-D strong { color: #f2a59a; }
.bank-why { margin: 0 0 16px; color: #d9c49a; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.bank-why .ic { width: 16px; height: 16px; flex: none; }
.bank-grid .form { gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); background: rgba(255, 250, 240, .7); font-size: 14px; }
.seg input:checked + span { background: var(--navy); color: #f5e9d1; border-color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.bank-calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 10px 12px; background: rgba(16, 43, 59, .06); border: 1px solid var(--line); }
.bank-calc div { display: flex; justify-content: space-between; gap: 8px; }
.bank-calc dt { color: var(--muted); font-size: 13px; }
.bank-calc dd { margin: 0; font-weight: 700; }
.bank-list { display: flex; flex-direction: column; gap: 10px; }
.bank-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 250, 240, .6); }
.bank-item.is-late { border-color: #b4533f; background: rgba(180, 83, 63, .08); }
.bank-item form { margin: 0; }
.bi-main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bi-main small { color: var(--muted); }
.bi-warn { color: #9b3b2a; font-size: 13.5px; display: flex; gap: 6px; align-items: flex-start; }
.bi-warn .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.bi-nums { display: flex; gap: 18px; }
.bi-nums div { display: flex; flex-direction: column; }
.bi-nums small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bank-fees { list-style: none; margin: 0; padding: 0; }
.bank-fees li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bank-locked { display: flex; gap: 18px; align-items: flex-start; }
.bank-lock-ic { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.bank-lock-ic .ic { width: 26px; height: 26px; }
.bank-teaser { margin: 0 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.imp-fee { font-size: 12px; margin-left: 8px; color: #9b3b2a; }
@media (max-width: 760px) {
  .bank-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bank-calc { grid-template-columns: 1fr; }
  .bank-locked { flex-direction: column; }
}

/* 0.16.0: Kredite zwischen Spielern */
.offer-list { display: flex; flex-direction: column; gap: 10px; }
.offer { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 2.4fr) minmax(220px, 1.2fr); gap: 10px 18px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255, 250, 240, .65); }
.offer.is-off { opacity: .75; }
.of-house { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-house strong { color: var(--navy); }
.of-house small { color: var(--muted); }
.of-house em { color: var(--gold-d); font-style: normal; font-weight: 600; }
.of-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.of-terms div { display: flex; flex-direction: column; }
.of-terms small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.of-terms strong { font-size: 16px; }
.of-terms span { font-size: 12px; color: var(--muted); }
.of-take { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.of-take input { width: 120px; }
.of-take small { flex-basis: 100%; }
.of-why { margin: 0; color: var(--muted); font-size: 13.5px; }
.bank-notice { margin: 0 0 16px; background: rgba(215, 172, 97, .1); border-color: rgba(215, 172, 97, .5); color: #eadfc4; }
.bank-notice a { color: #f0cf8a; }
.bank-notice .ic { color: var(--gold); }
.lend-grid { align-items: start; }
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
  .of-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 0.17.0: Immobilien */
.estate-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #1f4760; }
.estate-img.art svg { display: block; width: 100%; height: 100%; }
.estate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.estate-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255, 250, 240, .7); overflow: hidden; }
.estate-card.is-mine { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.ec-pic { position: relative; }
.ec-kind { position: absolute; left: 8px; top: 8px; padding: 3px 8px; background: rgba(16, 43, 59, .85); color: #f5e9d1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ec-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.ec-body h3 { margin: 0; font-size: 17px; color: var(--navy); }
.ec-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ec-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 2px 0 0; }
.ec-facts div { display: flex; flex-direction: column; }
.ec-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ec-facts dd { margin: 0; font-weight: 700; }
.ec-body form { margin-top: auto; }
.ec-why { margin-top: auto !important; font-size: 13.5px; color: var(--muted) !important; display: flex; gap: 6px; align-items: center; }
.ec-why.mine { color: var(--green) !important; font-weight: 600; }
.estate-own { display: flex; flex-direction: column; gap: 12px; }
.estate-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto auto; gap: 12px 18px; align-items: center; padding: 10px; border: 1px solid var(--line); background: rgba(255, 250, 240, .6); }
.er-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.er-main small { color: var(--muted); }
.er-cond { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.er-cond .bar { flex: 1; max-width: 220px; }
.er-cond .bar span.low { background: #b4533f; }
.er-nums { display: flex; flex-direction: column; text-align: right; }
.er-nums small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.er-nums span { font-size: 12.5px; color: var(--muted); }
.er-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.er-act form { margin: 0; }
@media (max-width: 1100px) { .estate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .estate-row { grid-template-columns: 110px minmax(0, 1fr); }
  .er-nums { text-align: left; }
  .er-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) { .estate-grid { grid-template-columns: 1fr; } }

/* 0.17.1: Kontostand als „Finanzen“ erkennbar, kompakter Finanzkopf */
.cash-chip { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 14px 5px; border-radius: 10px; line-height: 1.15; }
.cc-label { display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #d9c49a; }
.cc-label .cc-chev { width: 11px; height: 11px; transform: rotate(-90deg); color: var(--gold); }
.cc-amt { display: inline-flex; align-items: center; gap: 7px; }
.cash-chip:hover .cc-label { color: #f0d08e; }
@media (max-width: 700px) { .cash-chip { padding: 3px 10px 4px; } .cc-label { font-size: 9px; letter-spacing: .12em; } }
@media (max-width: 360px) { .cc-label { letter-spacing: .06em; } .cash-chip .cc-chev { display: inline-block; } }

.fin-sum { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; margin: 0 0 14px; padding: 10px 16px;
  background: linear-gradient(180deg, var(--parch), var(--parch-2)); border: 1px solid var(--gold-d); }
.fin-sum div { display: flex; align-items: baseline; gap: 8px; }
.fin-sum small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fin-sum strong { font-size: 20px; color: var(--navy); }
.fin-sum strong.neg { color: var(--red); }
.fin-tabs + .fin-now { margin-top: 0; }
@media (max-width: 700px) {
  .page-finanzen .page-head { margin-bottom: 10px; }
  .page-finanzen .page-head p { display: none; }
  .fin-sum { padding: 8px 12px; gap: 4px 16px; }
  .fin-sum div { gap: 6px; }
  .fin-sum strong { font-size: 16px; }
  .fin-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .fin-tabs a { display: flex; justify-content: center; align-items: center; gap: 3px; padding-left: 2px; padding-right: 2px; font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; }
  .fin-tabs .mini-lock { width: 10px; height: 10px; }
  /* Aufschlüsselung im Reiter Bilanz als kompakte Liste */
  .fin-now { display: block; padding: 4px 12px; background: linear-gradient(180deg, var(--parch), var(--parch-2)); border: 1px solid var(--gold-d); }
  .fin-now > div, .fin-now > .fin-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
  .fin-now > div:last-child { border-bottom: 0; }
  .fin-now small { font-size: 11px; }
  .fin-now strong, .fin-now .fin-big strong { font-size: 15px; }
  .fin-now span { display: none; }
}

/* 0.17.2: Stadtauswahl der Immobilien */
.estate-city { display: flex; align-items: center; gap: 8px; }
.estate-city label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.estate-city select { min-height: 38px; font-size: 15px; padding: 4px 8px; }
.estate-away { margin-top: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
@media (max-width: 700px) {
  #angebote .card-title-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .estate-city { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .estate-city select { width: 100%; min-height: 46px; font-size: 16px; }
}

/* ------------------------------------------------------------ Auktionshaus */
.auc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.auc-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(255, 250, 240, .75); overflow: hidden; min-width: 0; }
.auc-card.is-lead { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.auc-card.is-out { border-color: #b8584a; }
.auc-pic { position: relative; }
.auc-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.auc-img.ci-ph { display: flex; }
.auc-rar { position: absolute; left: 8px; top: 8px; padding: 3px 8px; background: rgba(16, 43, 59, .88); color: #f5e9d1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.auc-rar.r-selten { background: rgba(38, 84, 110, .92); }
.auc-rar.r-kostbar { background: rgba(122, 74, 26, .92); }
.auc-rar.r-legendaer { background: linear-gradient(90deg, #8a6a35, #d7ac61); color: #1b1408; }
.auc-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }
.auc-body h3 { margin: 0; font-size: 17px; color: var(--navy); }
.auc-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.auc-meta { color: var(--muted); font-size: 12px; }
.auc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 2px 0 0; }
.auc-facts div { display: flex; flex-direction: column; min-width: 0; }
.auc-facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.auc-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.auc-price { color: var(--navy) !important; font-size: 18px; }
.auc-state { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px !important; }
.auc-state .ic { width: 16px; height: 16px; }
.auc-state.lead { color: var(--green) !important; }
.auc-state.out { color: #a5402f !important; }
.auc-why { font-size: 13px !important; }
.auc-why .ic { width: 14px; height: 14px; vertical-align: -2px; }
.auc-bid { display: flex; gap: 8px; align-items: flex-end; margin-top: auto; }
.auc-bid label { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.auc-bid input { width: 100%; min-width: 0; font-size: 16px; padding: 8px 10px; }
.auc-card .rc-edit { margin-top: auto; }
.auc-wonder .auc-big { flex-direction: row; }
.auc-big .auc-pic { flex: 0 0 46%; }
.auc-big .auc-body { padding: 16px 18px; gap: 10px; }
.auc-big .auc-body h3 { font-size: 24px; }
.auc-big .auc-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auc-news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.auc-news time { color: var(--muted); font-size: 12px; margin-right: 4px; }
.auc-news .k-ueberboten, .auc-news .k-diebstahl, .auc-news .k-faelschung { color: #8c3b2e; }
.auc-news .k-gewonnen, .auc-news .k-meister, .auc-news .k-angenommen, .auc-news .k-verkauft { color: var(--green); }
.auc-series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; }
.auc-series li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.auc-series li small { color: var(--muted); }
.auc-series li.done span:first-child { color: var(--green); font-weight: 700; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hall-item { border: 1px solid var(--line); background: rgba(255, 250, 240, .75); display: flex; flex-direction: column; min-width: 0; }
.hall-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hall-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hall-body h3 { margin: 0; font-size: 19px; color: var(--navy); }
.hall-owner { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.hall-owner .ic { width: 16px; height: 16px; color: var(--gold-d); flex: none; }
.hall-chron { margin: 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.hall-chron small { color: var(--muted); }
.auc-rank { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.auc-rank li span { margin-right: 8px; }
.auc-rank li small { color: var(--muted); }
.auc-rank li strong { color: var(--navy); }
.auc-results small { white-space: nowrap; }
@media (max-width: 760px) {
  .auc-wonder .auc-big { flex-direction: column; }
  .auc-big .auc-facts { grid-template-columns: 1fr 1fr; }
  .auc-big .auc-body h3 { font-size: 20px; }
}
.table-scroll { overflow-x: auto; max-width: 100%; }
.auc-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.auc-mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.auc-mix input { min-width: 0; }
@media (max-width: 640px) {
  .auc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .auc-tabs a { display: flex; justify-content: center; padding-left: 2px; padding-right: 2px; font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
}

/* ------------------------------------------------------------ Neuigkeiten und Ankündigung */
.news-chip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(215, 172, 97, .55); border-radius: 50%; color: var(--gold); }
.news-chip .ic { width: 20px; height: 20px; }
.news-chip:hover, .news-chip.active { background: rgba(240, 208, 142, .16); color: #fff3d6; }
.news-badge { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #b8402e; color: #fff; font: 700 11px/19px var(--sans, sans-serif); text-align: center; box-shadow: 0 0 0 2px #102b3b; }
@media (max-width: 700px) { .news-chip { width: 34px; height: 34px; } .news-chip .ic { width: 17px; height: 17px; } }
.news-head { color: #f5e9d1; margin: 0 0 14px; }
.news-head h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 28px; color: #f6e6c2; }
.news-head h1 .ic { width: 28px; height: 28px; color: var(--gold); }
.news-head p { margin: 0; color: #d9c9a6; }
.news-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.news-item { position: relative; }
.news-item.is-new { box-shadow: inset 4px 0 0 #b8402e; }
.news-item.is-planned { opacity: .75; }
.news-item h2 { margin: 6px 0 8px; font-size: 21px; color: var(--navy); }
.news-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.news-item-head time { margin-left: auto; }
.news-kind { padding: 2px 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: #f5e9d1; }
.news-kind.k-besser { background: #2f6a4a; }
.news-kind.k-info { background: #7a5a2a; }
.news-unread { padding: 2px 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: #b8402e; color: #fff; }
.news-body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.news-body p { margin: 0 0 8px; }
.news-body ul { margin: 0 0 8px; padding-left: 20px; }
.news-edit { margin-top: 8px; }
.news-edit[open] summary { margin-bottom: 10px; }
.news-new { max-width: 860px; margin-bottom: 14px; }
.news-new summary { cursor: pointer; }
.news-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.news-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.news-del { margin-top: 8px; }
@media (max-width: 640px) { .news-form-row { grid-template-columns: 1fr 1fr; } .news-item-head time { margin-left: 0; width: 100%; } }
.announce { background: linear-gradient(90deg, #8a6a35, #d7ac61 50%, #8a6a35); color: #1b1408; border-bottom: 1px solid #5c4521; }
.announce-inner { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; }
.announce-ic { width: 22px; height: 22px; flex: none; }
.announce p { margin: 0; flex: 1; font-size: 15px; line-height: 1.4; }
.announce a { color: #102b3b; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.announce-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(16, 43, 59, .12); color: #102b3b; cursor: pointer; }
.announce-x:hover { background: rgba(16, 43, 59, .25); }
.announce-x .ic { width: 16px; height: 16px; }
.announce-game { margin: -6px 0 16px; border: 1px solid #5c4521; }
.announce-game .announce-inner { padding: 8px 12px; }
@media (max-width: 1320px) and (min-width: 961px) {
  .mainnav a { min-width: 0; padding: 0 7px; letter-spacing: .04em; }
  .topbar-right { gap: 10px; }
  .era { min-width: 150px; }
}
.wonder.is-own .wonder-state { color: var(--green); font-weight: 700; }
@media (max-width: 430px) {
  .topbar-right { gap: 6px; padding-right: 8px; }
  .news-chip { width: 32px; height: 32px; }
  .news-chip .ic { width: 16px; height: 16px; }
}
@media (max-width: 385px) { .news-chip { display: none; } }
.tabbar .js-more { position: relative; } .more-dot { position: absolute; top: 7px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: #c8503c; box-shadow: 0 0 0 2px #102b3b; }
@media (max-width: 1260px) and (min-width: 961px) { .topbar a.era { display: none; } }
@media (max-width: 1040px) and (min-width: 961px) { .brand { padding: 0 10px; } .brand img { height: 40px; } .mainnav a { padding: 0 5px; } }
.news-kind.k-intern { background: #6b6f73; }
/* Neuigkeiten auf der Startseite und unter /neuigkeiten/ */
.lp-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.lp-news-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: rgba(255, 250, 240, .85); border: 1px solid var(--gold-d); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.lp-news-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16, 43, 59, .18); }
.lp-news-item strong { font-size: 18px; color: var(--navy); line-height: 1.3; }
.lp-news-item > span:last-child { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lp-news-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lp-news-more { text-align: center; margin: 22px 0 0; }
@media (max-width: 860px) { .lp-news { grid-template-columns: minmax(0, 1fr); } }
.np-doc { max-width: 820px; }
.np-lead { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; }
.np-item { padding: 18px 0 14px; border-top: 1px solid var(--line); }
.np-item header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.np-item h2 { margin: 8px 0 8px; font-size: 22px; color: var(--navy); }
.np-cta { margin-top: 26px; padding: 22px; text-align: center; background: linear-gradient(180deg, #1f4760, #163649); color: #f5e9d1; border: 1px solid var(--gold-d); }
.np-cta h2 { margin: 0 0 6px; color: #f6e6c2; }
.np-cta p { margin: 0 0 14px; color: #d9c9a6; }
.np-cta .guest-form { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.np-cta small, .np-cta small a { color: #cdbf9f; }
/* Spielerauktionen */
.auc-consigned { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; background: rgba(245, 233, 209, .92); color: var(--navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--gold-d); }
.auc-card.is-own-lot { border-color: var(--gold-d); box-shadow: inset 0 0 0 1px var(--gold-d); }
.auc-card .rc-edit + .rc-edit { margin-top: 6px; }
.auc-consign .field { margin-bottom: 8px; }
.auc-consign p { font-size: 13px !important; }
/* Einreichungen */
.auc-finder { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-d); font-size: 12.5px; font-style: italic; }
.auc-finder .ic { width: 12px; height: 12px; }
.sub-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.sub-rules h3 { margin: 6px 0 4px; font-size: 15px; color: var(--navy); }
.sub-rules ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.sub-prompt { margin-top: 12px; }
.sub-prompt summary { cursor: pointer; font-size: 14px; }
.sub-prompt textarea { width: 100%; margin: 8px 0; font-size: 13.5px; line-height: 1.45; background: #fffaf0; }
.sub-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.sub-consent { align-items: flex-start; line-height: 1.45; margin: 6px 0 12px; }
.sub-consent input { margin-top: 4px; flex: none; }
.sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sub-item { display: flex; gap: 10px; border: 1px solid var(--line); padding: 8px; background: rgba(255, 250, 240, .7); }
.sub-item .sub-img { width: 96px; height: 72px; object-fit: cover; flex: none; aspect-ratio: 4 / 3; }
.sub-item strong { display: block; color: var(--navy); }
.sub-item small { color: var(--muted); }
.sub-item p { margin: 4px 0 0; font-size: 13px; }
.sub-item.st-angenommen .sub-st { color: var(--green); font-weight: 700; }
.sub-item.st-abgelehnt .sub-st, .sub-item.st-nachbessern .sub-st { color: #a5402f; font-weight: 700; }
.sub-review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sub-review-img { display: block; width: 100%; height: auto; border: 1px solid var(--gold-d); }
.sub-decline { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.sub-decline-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .sub-rules, .sub-review-grid { grid-template-columns: minmax(0, 1fr); } .sub-row { grid-template-columns: minmax(0, 1fr); } }
.sub-prompt textarea, .sub-form textarea, .sub-review textarea, .news-form textarea { font-family: inherit; }
.sub-check { margin: -4px 0 10px; font-size: 14px; font-weight: 600; }
.sub-check.ok { color: var(--green); }
.sub-check.bad { color: #a5402f; }
.sub-limits { color: #d9c9a6; margin: 0 0 12px; } .sub-limits strong { color: #f6e6c2; }
/* Verwaltung: Admin-Leiste, Reiter, markierte Menüpunkte */
.admin-bar { display: flex; align-items: stretch; gap: 2px; margin: 0 0 16px; padding: 4px; background: repeating-linear-gradient(135deg, #2a1d0c 0 10px, #33240f 10px 20px); border: 1px solid #8a6a35; overflow-x: auto; scrollbar-width: none; }
.admin-bar::-webkit-scrollbar { display: none; }
.admin-bar-tag { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; color: #1b1408; background: linear-gradient(90deg, #c99a4c, #e2bd77); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.admin-bar-tag .ic { width: 13px; height: 13px; }
.admin-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: #e8d6ae; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.admin-bar a .ic { width: 16px; height: 16px; color: #d7ac61; }
.admin-bar a:hover { background: rgba(240, 208, 142, .12); color: #fff3d6; }
.admin-bar a.active { background: #f5e9d1; color: #102b3b; }
.admin-bar a.active .ic { color: #8a6a35; }
.admin-tabs { margin-top: 0; }
.um-admin { margin: 4px 0; border-top: 1px dashed var(--gold-d); border-bottom: 1px dashed var(--gold-d); background: repeating-linear-gradient(135deg, rgba(215, 172, 97, .08) 0 8px, rgba(215, 172, 97, .16) 8px 16px); }
.um-admin-head { display: flex; align-items: center; gap: 6px; padding: 6px 14px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6a35; }
.um-admin-head .ic { width: 12px; height: 12px; }
.um-admin a { border-left: 3px solid #c99a4c; }
.admin-tag { margin-left: 6px; padding: 1px 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1b1408; background: linear-gradient(90deg, #c99a4c, #e2bd77); }
.moresheet-inner a.ms-admin { border-left: 3px solid #c99a4c; background: repeating-linear-gradient(135deg, rgba(215, 172, 97, .08) 0 8px, rgba(215, 172, 97, .16) 8px 16px); }
.biz-ledger-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.biz-ledger-sum > div { padding: 8px 12px; border: 1px solid var(--line); background: rgba(255, 250, 240, .7); display: flex; flex-direction: column; }
.biz-ledger-sum small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.biz-ledger-sum strong { font-size: 18px; }
.biz-calc { padding: 8px 12px; border-left: 3px solid var(--green); background: rgba(47, 106, 74, .06); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.biz-calc.is-loss { border-left-color: #b8402e; background: rgba(184, 64, 46, .06); }
.biz-calc p { margin: 0; line-height: 1.45; }
.biz-calc-link { font-size: 13px; align-self: flex-start; }
/* Imperium: kompakte Kennzahlen, Reiter, Aufmerksamkeit, Standorte */
.imp-stats { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; margin-bottom: 14px; }
.imp-stats div { padding: 7px 10px; }
.imp-stats small { font-size: 10px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-stats strong { font-size: 16px; white-space: nowrap; }
.imp-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.imp-todo a { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border-left: 4px solid var(--gold-d); background: rgba(255, 250, 240, .7); color: var(--ink); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.imp-todo a:hover { background: rgba(255, 250, 240, 1); }
.imp-todo .ic { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.imp-todo .t-bad a { border-left-color: #b8402e; } .imp-todo .t-bad .ic { color: #b8402e; }
.imp-todo .t-warn a { border-left-color: #c9892c; } .imp-todo .t-warn .ic { color: #c9892c; }
.imp-todo .t-info a { border-left-color: #6b7f8c; } .imp-todo .t-info .ic { color: #6b7f8c; }
.imp-allgood { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-weight: 600; }
.imp-allgood .ic { width: 18px; height: 18px; }
.imp-cities td { vertical-align: middle; }
.imp-fill { min-width: 150px; }
.imp-fill .bar { margin: 0 0 2px; }
.imp-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; font-size: 12.5px; text-decoration: none; border: 1px solid; white-space: nowrap; }
.imp-chip.st-laeuft { color: var(--green); border-color: rgba(47, 106, 74, .5); background: rgba(47, 106, 74, .08); }
.imp-chip.st-stockt { color: #a5402f; border-color: rgba(184, 64, 46, .5); background: rgba(184, 64, 46, .08); }
.imp-chip.st-streik { color: #9a6418; border-color: rgba(201, 137, 44, .5); background: rgba(201, 137, 44, .1); }
.imp-chip.st-aus { color: var(--muted); border-color: var(--line); }
.imp-jump { margin: 0 0 12px; }
.imp-sales { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 12px; margin: 0 0 10px; background: rgba(47, 106, 74, .07); border-left: 3px solid var(--green); font-size: 14px; }
@media (max-width: 640px) { .imp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; } .imp-tabs a { display: flex; justify-content: center; font-size: 11px; } }
.fin-now strong.pos { color: var(--green); } .fin-now strong.neg { color: var(--red); }
.fin-now strong { white-space: nowrap; }

/* 0.24.1: Kartenfilter Niederlassungen, Produktionsregionen, Transportmittel */
.worldmap .city-own circle { fill: var(--navy); stroke: var(--gold-l); stroke-width: 1.6; }
.worldmap .city-own svg { color: var(--gold-l); }
.worldmap .city-prod circle { fill: #f5e9d1; stroke: #5b3e1e; stroke-width: 1.4; }
.worldmap .city-prod svg { color: #5b3e1e; }
.worldmap .city-prod.mine circle { fill: var(--gold); stroke: var(--navy); }
.worldmap .city-prod.mine svg { color: var(--navy); }
.worldmap .own-route { fill: none; stroke: #2f6b57; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 10 6; stroke-linecap: round; opacity: .9; animation: march 1.6s linear infinite; pointer-events: none; }
.worldmap .own-route.paused { animation: none; opacity: .45; }
.worldmap .agent { cursor: pointer; outline: none; }
.worldmap .agent-ring { fill: #2f6b57; stroke: #f3e2bf; stroke-width: 2; }
.worldmap .agent svg { color: #f6ead0; }
.worldmap .agent.parked .agent-ring { stroke-dasharray: 3 2; }
.worldmap .agent.paused .agent-ring { fill: #7d6b55; }
.worldmap .agent:hover .agent-ring, .worldmap .agent:focus .agent-ring, .worldmap .agent.selected .agent-ring { stroke: var(--gold-l); stroke-width: 3; stroke-dasharray: none; }
.worldmap.no-own .city-own, .worldmap.no-prod .city-prod, .worldmap.no-agents .own-routes, .worldmap.no-agents .agents { display: none; }
.lg-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; }
.lg-badge .ic { width: 10px; height: 10px; }
.lg-badge.own { background: var(--navy); border: 1.5px solid var(--gold-l); color: var(--gold-l); }
.lg-badge.prod { background: #f5e9d1; border: 1.5px solid #5b3e1e; color: #5b3e1e; }
.lg-badge.agent { background: #2f6b57; border: 1.5px solid #f3e2bf; color: #f6ead0; }
.mc-own { margin: 10px 0 0; padding: 8px 10px; background: rgba(23, 47, 71, .07); border-left: 3px solid var(--navy); font-size: 14px; }
.mc-own ul { margin: 4px 0; padding-left: 18px; }
.mc-own a { font-weight: 600; }
.mc-prod { margin: 4px 0 0; font-size: 14px; }
.mc-agent .mc-load { margin: 8px 0 6px; }

/* 0.25.0: E-Mail-Bestätigung */
.email-bar form { margin: 0; display: inline-flex; }
.email-bar-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(246, 230, 194, .12); color: #f6e6c2; cursor: pointer; }
.email-bar-x:hover { background: rgba(246, 230, 194, .25); }
.email-bar-x .ic { width: 14px; height: 14px; color: #f6e6c2; }
.email-now { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; word-break: break-all; }
.badge-ok, .badge-warn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 12.5px; word-break: normal; }
.badge-ok { background: rgba(47, 107, 87, .14); color: #2f6b57; border: 1px solid rgba(47, 107, 87, .4); }
.badge-ok .ic { width: 13px; height: 13px; }
.badge-warn { background: rgba(147, 56, 36, .1); color: var(--red); border: 1px solid rgba(147, 56, 36, .35); }
.email-pending { display: block; }
.email-pending p { margin: 0 0 8px; }
.email-change { margin-top: 12px; }
.email-change summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.email-change .form { margin-top: 10px; }
.auth-email { text-align: center; font-size: 17px; word-break: break-all; margin: 0 0 14px; }
