/* =====================================================================
   Crime Empire – Dashboard
   Dunkles Anthrazit, Schwarz, dezente goldene Akzente
   ===================================================================== */

:root {
  --bg:          #0b0c0e;
  --sidebar:     #0e0f12;
  --panel:       #15171a;
  --panel-2:     #1a1d21;
  --panel-3:     #20242a;
  --line:        #262a30;
  --line-2:      #31363e;
  --line-soft:   #1c1f24;
  --text:        #ece7dc;
  --text-2:      #aaa59a;
  --text-3:      #75716a;
  --gold:        #c9a54c;
  --gold-hi:     #e4c77c;
  --gold-lo:     #8c6f2e;
  --gold-bg:     rgba(201, 165, 76, .10);
  --gold-line:   rgba(201, 165, 76, .32);
  --green:       #6fae74;
  --green-bg:    rgba(111, 174, 116, .12);
  --red:         #d65c4f;
  --red-bg:      rgba(214, 92, 79, .12);
  --amber:       #d9a043;
  --amber-bg:    rgba(217, 160, 67, .12);
  --blue:        #6b9bd1;
  --blue-bg:     rgba(107, 155, 209, .12);
  --radius:      12px;
  --radius-sm:   8px;
  --sidebar-w:   292px;
  --topbar-h:    64px;
  --gap:         18px;
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --shadow:      inset 0 1px 0 rgba(255, 255, 255, .025), 0 14px 32px -20px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font: 14px/1.5 var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(201, 165, 76, .055), transparent 62%),
    radial-gradient(900px 480px at 100% -4%, rgba(90, 104, 128, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
small { font-size: .82em; }

.ico { width: 18px; height: 18px; flex: none; display: block; }

.muted   { color: var(--text-3); }
.small   { font-size: 12px; }
.strong  { color: var(--text); font-weight: 600; }
.is-pos  { color: var(--green) !important; }
.is-neg  { color: var(--red) !important; }
.is-warn { color: var(--amber); }
.is-gold { color: var(--gold-hi) !important; }
.is-ok   { color: var(--green); }
.is-danger { color: var(--red); }
.is-mid  { color: var(--text-2); }
.unknown { color: var(--text-3); letter-spacing: .12em; border-bottom: 1px dotted var(--line-2); }

.link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--gold); text-decoration: none; font-size: 12px; font-weight: 600;
}
.link .ico { width: 14px; height: 14px; transition: transform .15s; }
.link:hover { color: var(--gold-hi); }
.link:hover .ico { transform: translateX(2px); }

.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font-size: 12px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--gold-hi); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------------
   App-Gerüst
   --------------------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--topbar-h) 1fr;
  min-height: 100vh;
}

.main { grid-column: 2; grid-row: 2; min-width: 0; }
.page { padding: 26px 28px 56px; max-width: 1720px; margin: 0 auto; }

/* ---------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------- */

.sidebar {
  grid-row: 1 / span 2; grid-column: 1;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #111215 0%, #0c0d0f 100%);
  border-right: 1px solid var(--line-soft);
  z-index: 40;
}

.brand {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.brand-mark svg { width: 38px; height: 38px; display: block; }
.bm-ring       { fill: #121316; stroke: var(--gold-lo); stroke-width: 1; }
.bm-ring-inner { fill: none; stroke: var(--gold-line); stroke-width: .8; stroke-dasharray: 1.5 2.2; }
.bm-crown      { fill: var(--gold); }
.bm-base       { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.brand-sub  { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.brand:hover .bm-ring { stroke: var(--gold); }

.nav { flex: 1; overflow-y: auto; padding: 16px 12px; scrollbar-width: thin; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

.nav-row { position: relative; display: flex; align-items: stretch; border-radius: 11px; transition: background .15s; }
.nav-row:hover { background: rgba(255, 255, 255, .025); }

.nav-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 9px 6px 9px 9px;
  border-radius: 11px;
  text-decoration: none; color: var(--text-2);
}
.nav-icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #15171a;
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: color .15s, border-color .15s, background .15s;
}
.nav-icon .ico { width: 20px; height: 20px; }
.nav-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nav-label { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.nav-tag   { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

.nav-toggle {
  width: 30px; flex: none;
  background: none; border: 0; border-radius: 8px;
  color: var(--text-3); cursor: pointer;
  display: grid; place-items: center;
}
.nav-toggle .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav-toggle:hover { color: var(--text); }
.nav-item.is-open .nav-toggle .ico { transform: rotate(180deg); }

.nav-link:hover .nav-icon { color: var(--text); border-color: var(--line-2); }

.nav-item.is-active .nav-row { background: linear-gradient(90deg, rgba(201, 165, 76, .13), rgba(201, 165, 76, .015) 85%); }
.nav-item.is-active .nav-row::before {
  content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gold); box-shadow: 0 0 14px rgba(201, 165, 76, .7);
}
.nav-item.is-active .nav-icon {
  color: var(--gold-hi);
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(201, 165, 76, .2), rgba(201, 165, 76, .05));
}
.nav-item.is-active .nav-label { color: var(--gold-hi); }

.nav-sub {
  list-style: none; margin: 4px 0 10px; padding: 0 0 0 28px;
  position: relative; display: none;
}
.nav-sub::before { content: ''; position: absolute; left: 29px; top: 2px; bottom: 6px; width: 1px; background: var(--line); }
.nav-item.is-open .nav-sub { display: block; animation: subIn .18s ease; }
@keyframes subIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.nav-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 18px; margin-left: 1px;
  border-radius: 8px;
  font-size: 13px; color: var(--text-2); text-decoration: none;
  position: relative;
}
.nav-sub a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav-sub a.is-current { color: var(--gold-hi); background: rgba(201, 165, 76, .06); }
.nav-sub a.is-current::before { content: ''; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--gold); border-radius: 2px; }
.sub-icon .ico { width: 15px; height: 15px; opacity: .75; }
.sub-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.rank-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 11px 12px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(201, 165, 76, .08), rgba(201, 165, 76, .02));
  border: 1px solid var(--line); text-decoration: none;
}
.rank-card:hover { border-color: var(--gold-line); }
.rkc-head { display: flex; justify-content: space-between; align-items: baseline; }
.rkc-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.rkc-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold-hi); }
.rkc-row { display: grid; grid-template-columns: 64px 1fr 34px; gap: 8px; align-items: center; font-size: 11px; color: var(--text-2); }
.rkc-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.loc-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: #131518; border: 1px solid var(--line);
  text-decoration: none;
}
.loc-card:hover { border-color: var(--gold-line); }
.loc-icon { color: var(--gold); }
.loc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.loc-city { font-weight: 600; font-size: 13.5px; }
.loc-type { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.loc-status.is-free { color: var(--green); }

/* Links zu den rechtlichen Seiten in Spiel und Figurenerstellung */
.legal-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legal-mini a { color: var(--text-3); text-decoration: none; font-size: 11px; }
.legal-mini a:hover { color: var(--gold-hi); }
.sidebar-foot .legal-mini { justify-content: center; padding-top: 2px; }
.dd-legal { justify-content: center; margin-top: 10px; }


.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 165, 76, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 165, 76, .55); } 70% { box-shadow: 0 0 0 8px rgba(201, 165, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 165, 76, 0); } }

/* ---------------------------------------------------------------------
   Statusleiste
   --------------------------------------------------------------------- */

.topbar {
  grid-row: 1; grid-column: 2;
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 4px;
  padding: 0 20px 0 22px;
  background: rgba(12, 13, 15, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.tb-group { display: flex; align-items: center; gap: 10px; }
.tb-identity { padding-right: 18px; border-right: 1px solid var(--line-soft); height: 40px; }
.tb-id-text { display: flex; flex-direction: column; line-height: 1.2; }
.tb-name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.tb-sub  { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  color: #1d1607;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold-lo));
  box-shadow: 0 0 0 2px #0e0f12, 0 0 0 3px var(--gold-line);
}
.avatar-sm { width: 26px; height: 26px; font-size: 10px; box-shadow: 0 0 0 1px var(--gold-line); }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }

.tb-stats { display: flex; align-items: center; min-width: 0; flex: 1; }
.tb-stat { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 16px; height: 40px; border-right: 1px solid var(--line-soft); min-width: 0; }
.tb-stat:last-child { border-right: 0; }
.tb-label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.tb-value { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-value.is-gold { color: var(--gold-hi); }
.tb-inline { width: 14px; height: 14px; color: var(--gold); }
.tb-caret { width: 14px; height: 14px; color: var(--text-3); }
.bar.bar-xp { width: 46px; height: 4px; }

.rank-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 8px 1px 6px; border-radius: 6px;
  border: 1px solid var(--gold-line); background: var(--gold-bg);
  color: var(--gold-hi); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.rank-chip .ico { width: 13px; height: 13px; }

.tb-drop { position: relative; }
.tb-drop-btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 3px; }
.tb-drop-btn:hover .tb-caret { color: var(--gold); }

.tb-right { margin-left: auto; padding-left: 10px; }
.tb-clock {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #111316;
}
.tb-clock > .ico { color: var(--gold); }
.tb-clock-text { display: flex; flex-direction: column; gap: 1px; }
.tempo-chip { font-size: 11px; font-weight: 700; color: var(--gold); padding: 2px 6px; border-radius: 5px; background: var(--gold-bg); border: 1px solid var(--gold-line); }

.tb-icon-btn {
  position: relative;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); background: #111316; color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tb-icon-btn:hover, .tb-icon-btn[aria-expanded="true"] { color: var(--gold-hi); border-color: var(--gold-line); }
.tb-icon-btn .badge { position: absolute; top: -6px; right: -6px; }

.dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 290px; padding: 14px;
  background: #16181c; border: 1px solid var(--line-2); border-radius: 13px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8);
  z-index: 60;
  animation: ddIn .14s ease;
}
.dropdown[hidden] { display: none; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-wealth { left: -8px; right: auto; }
.dd-title { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin-bottom: 10px; }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.dd-head .dd-title { margin: 0; }
.dd-list { margin: 0; display: flex; flex-direction: column; gap: 9px; }
.dd-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dd-list dt { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.dd-list dt .ico { width: 15px; height: 15px; color: var(--gold); }
.dd-list dt small { color: var(--text-3); }
.dd-list dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dd-note { margin-top: 12px; padding: 9px 10px; border-radius: 8px; background: #111316; border: 1px solid var(--line-soft); font-size: 12px; color: var(--text-3); }
.dd-link { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--gold); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.dd-link .ico { width: 14px; height: 14px; }
.dd-settings .btn { margin-top: 12px; }

.dd-notif { width: 400px; padding: 0; overflow: hidden; }
.notif-list { list-style: none; margin: 0; padding: 6px; max-height: 440px; overflow-y: auto; }
.notif a { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 10px; border-radius: 9px; text-decoration: none; position: relative; }
.notif a:hover { background: rgba(255, 255, 255, .03); }
.notif-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #1d2025; border: 1px solid var(--line); color: var(--text-2); }
.notif-icon .ico { width: 16px; height: 16px; }
.notif.prio-hoch .notif-icon { color: var(--red); border-color: rgba(214, 92, 79, .35); background: var(--red-bg); }
.notif.prio-mittel .notif-icon { color: var(--amber); border-color: rgba(217, 160, 67, .3); background: var(--amber-bg); }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-title { font-weight: 600; font-size: 13px; color: var(--text); }
.notif-text { font-size: 12px; color: var(--text-2); line-height: 1.45; }
.notif-time { font-size: 11px; color: var(--text-3); }
.notif:not(.is-read) a::after { content: ''; position: absolute; right: 12px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.notif.is-read { opacity: .55; }

/* ---------------------------------------------------------------------
   Basiselemente
   --------------------------------------------------------------------- */

.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.badge[hidden] { display: none; }
.badge-danger { background: var(--red); color: #fff; box-shadow: 0 0 0 3px rgba(214, 92, 79, .16); }
.badge-warn   { background: var(--amber); color: #1d1405; }
.badge-info   { background: #262a31; color: var(--text-2); border: 1px solid var(--line-2); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-2); background: #1b1e23; color: var(--text-2);
  font-variant-numeric: tabular-nums; vertical-align: middle;
}
.chip .ico { width: 12px; height: 12px; }
.chip-ok     { color: #a3d3a7; background: var(--green-bg); border-color: rgba(111, 174, 116, .3); }
.chip-warn   { color: #ecc177; background: var(--amber-bg); border-color: rgba(217, 160, 67, .32); }
.chip-danger { color: #f29a91; background: var(--red-bg); border-color: rgba(214, 92, 79, .38); }
.chip-info   { color: #b0cbeb; background: var(--blue-bg); border-color: rgba(107, 155, 209, .3); }
.chip-gold   { color: var(--gold-hi); background: var(--gold-bg); border-color: var(--gold-line); }
.chip-muted  { color: var(--text-3); }
.chip-locked { color: var(--text-3); background: transparent; border-style: dashed; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #1c1f24; color: var(--text);
  font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.btn .ico { width: 16px; height: 16px; }
.btn:hover { border-color: var(--gold-line); color: var(--gold-hi); }
.btn-gold { background: linear-gradient(180deg, #d6b45d, #b28d3b); border-color: #8c6f2e; color: #17120a; }
.btn-gold:hover { background: linear-gradient(180deg, #e2c171, #c09a45); color: #17120a; }
.btn-ghost { background: transparent; }
.btn-danger:hover { border-color: rgba(214, 92, 79, .5); color: #f29a91; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }

.bar { position: relative; display: inline-block; width: 100%; height: 6px; border-radius: 3px; background: #23272d; overflow: hidden; vertical-align: middle; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--text-3); transition: width .5s ease; }
.bar-gold > span, .bar-op > span { background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.bar-thin { height: 4px; }
.bar-risk.is-ok > span     { background: var(--green); }
.bar-risk.is-warn > span   { background: var(--amber); }
.bar-risk.is-danger > span { background: var(--red); }

.relbar { position: relative; display: block; height: 6px; border-radius: 3px; background: #22262c; margin: 8px 0; }
.relbar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #4a4f58; }
.relbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.relbar-fill.neg { background: linear-gradient(270deg, #7e352f, var(--red)); }
.relbar-fill.pos { background: linear-gradient(90deg, #3d7443, var(--green)); }

.stars { display: inline-flex; align-items: center; gap: 2px; }
.star .ico { width: 14px; height: 14px; }
.star.off { color: #3a3e46; }
.star.on, .star.half { color: var(--gold); }
.star.on .ico { fill: currentColor; }
.stars-wanted .star.on { color: #e3685b; }
.stars-wanted .star.on .ico { filter: drop-shadow(0 0 4px rgba(227, 104, 91, .45)); }
.stars-sm .star .ico { width: 12px; height: 12px; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); margin-right: 8px; vertical-align: 1px; flex: none; }

.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend .ico { width: 14px; height: 14px; }
.trend.good { color: var(--green); }
.trend.bad  { color: var(--red); }
.trend.flat { color: var(--text-3); }

.countdown { font-variant-numeric: tabular-nums; font-weight: 600; }
.countdown.is-done { color: var(--green); }

.empty { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--text-3); font-size: 13px; }
.empty .ico { color: var(--green); }

.banner {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 14px; padding: 9px 12px; border-radius: 9px;
  background: rgba(201, 165, 76, .07); border: 1px solid var(--gold-line);
  color: var(--text-2); font-size: 12.5px;
}
.banner .ico { width: 16px; height: 16px; color: var(--gold); }
.banner .countdown { color: var(--gold-hi); }
.banner.is-warn { background: var(--amber-bg); border-color: rgba(217, 160, 67, .3); }
.panel-body:not(.flush) > .banner:first-child { margin: 0 0 14px; }

.note { margin: 14px 0 0; font-size: 12px; color: var(--text-3); line-height: 1.55; }
.note.pad { margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line-soft); }

.eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------------
   Seitenkopf & Raster
   --------------------------------------------------------------------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.page-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.ps-item {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: #131518;
  font-size: 12.5px; color: var(--text-2); font-weight: 500;
}
.ps-item .ico { width: 15px; height: 15px; color: var(--gold); }
.ps-item.is-danger { border-color: rgba(214, 92, 79, .35); color: #f0a49c; }
.ps-item.is-danger .ico { color: var(--red); }
.ps-item.is-pos { color: #a3d3a7 !important; }
.ps-item.is-pos .ico { color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.span-3  { grid-column: span 3; }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.stack > .panel:last-child { flex: 1; }

/* ---------------------------------------------------------------------
   Panels
   --------------------------------------------------------------------- */

.panel {
  position: relative; min-width: 0;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #16181b 0%, #121417 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 165, 76, .38), transparent);
  pointer-events: none;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 13px; border-bottom: 1px solid var(--line-soft); }
.ph-main { min-width: 0; }
.panel-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.pt-icon { color: var(--gold); display: grid; }
.pt-icon .ico { width: 17px; height: 17px; }
.panel-desc { margin: 3px 0 0 27px; font-size: 12px; color: var(--text-3); }
.panel-meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); text-align: right; min-height: 20px; }
.panel-body { padding: 16px 18px 18px; flex: 1; min-width: 0; }
.panel-body.flush { padding: 0; }

.mini-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.mini-title:first-child { margin-top: 0; }
.mini-title .ico { width: 14px; height: 14px; color: var(--gold); }
.mini-title .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------------------------------------------------------------------
   Tabellen
   --------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; white-space: nowrap;
  padding: 9px 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012);
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.table .num { text-align: right; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 18px; }
.table th:last-child, .table td:last-child { padding-right: 18px; }
.panel-body:not(.flush) .table th:first-child, .panel-body:not(.flush) .table td:first-child { padding-left: 4px; }
.panel-body:not(.flush) .table th:last-child, .panel-body:not(.flush) .table td:last-child { padding-right: 4px; }
.table-compact td, .table-compact th { padding-top: 7px; padding-bottom: 7px; }
.table td.is-ok     { color: var(--green); }
.table td.is-warn   { color: var(--amber); }
.table td.is-danger { color: var(--red); }
.table td.is-neg    { color: var(--red); }
.table tr.is-locked td, .table tr.is-dim td { color: var(--text-3); }
.table tr.is-locked .strong, .table tr.is-dim .strong { color: var(--text-3); }
.table tr.is-held td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.table tr.is-me td { background: rgba(201, 165, 76, .06); }
.table tr.is-me .strong { color: var(--gold-hi); }
.table tr.is-done td { color: var(--text-3); }
.table tr.is-alert td { background: rgba(214, 92, 79, .06); }
.table tr.total td { border-top: 1px solid var(--line); color: var(--text); font-weight: 600; }
.table-jobs tr.state-locked td { color: var(--text-3); }
.table-jobs tr.state-locked .strong { color: var(--text-3); }
.table-jobs tr.state-ready .strong { color: var(--text); }

.cat { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; border: 1px solid; }
.cat-soft   { color: #a5cf9a; border-color: rgba(120, 180, 110, .3); background: rgba(120, 180, 110, .08); }
.cat-party  { color: #d6a6e6; border-color: rgba(190, 130, 210, .3); background: rgba(190, 130, 210, .08); }
.cat-hard   { color: #eaa094; border-color: rgba(214, 92, 79, .3); background: rgba(214, 92, 79, .08); }
.cat-rezept { color: #a9c6e8; border-color: rgba(107, 155, 209, .3); background: rgba(107, 155, 209, .08); }
.cat-extrem { color: #f2c46b; border-color: rgba(217, 160, 67, .35); background: rgba(217, 160, 67, .08); }

/* ---------------------------------------------------------------------
   Kommandozentrale
   --------------------------------------------------------------------- */

.panel-map .panel-body { padding: 0; display: flex; flex-direction: column; }
.map {
  position: relative; width: 100%;
  aspect-ratio: 1000 / 690;
  flex: 1 1 auto;
  background: #17191d;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}
.map:has(+ .map-foot) { border-radius: 0; }
.map-xl { aspect-ratio: auto; height: clamp(440px, 66vh, 720px); flex: none; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-foot {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 11px 18px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-2);
}
.map-foot span { display: inline-flex; align-items: center; gap: 7px; }
.map-foot .ico { width: 15px; height: 15px; color: var(--gold); }
.map-foot strong { color: var(--text); font-variant-numeric: tabular-nums; }
.map-foot .link { margin-left: auto; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; font-size: 11.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; }
.legend .dot { margin-right: 6px; width: 8px; height: 8px; }

.m-sea    { fill: #080b10; }
.m-land   { fill: #1c1f24; }
.m-coast  { fill: none; stroke: rgba(201, 165, 76, .34); stroke-width: 1.1; stroke-linejoin: round; }
.m-lake   { fill: #0a0e14; stroke: rgba(201, 165, 76, .2); stroke-width: .7; }
.m-grid   { stroke: rgba(255, 255, 255, .035); stroke-width: 1; }
.m-gridlabel { fill: rgba(255, 255, 255, .16); font-size: 9px; letter-spacing: .1em; font-family: var(--font); }
.m-river  { fill: none; stroke: rgba(98, 132, 168, .32); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.m-sealabel { fill: rgba(140, 170, 200, .22); font-size: 11px; letter-spacing: .5em; font-style: italic; font-family: var(--font); text-transform: uppercase; }
.m-leader { stroke: rgba(236, 231, 220, .28); stroke-width: .8; stroke-dasharray: 2 2; }
.m-truedot { fill: rgba(236, 231, 220, .5); }
.m-city { cursor: pointer; }
.m-city .m-hit { fill: transparent; }
.m-city .m-core { fill: #0e1014; stroke: rgba(236, 231, 220, .55); stroke-width: 1; }
.m-city:hover .m-core, .m-city.is-active .m-core { stroke: var(--gold-hi); }
.m-label { fill: #d8d2c5; font-size: 11.5px; font-weight: 600; font-family: var(--font); paint-order: stroke; stroke: #090b0e; stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: .02em; }
.m-sublabel { fill: #8c877d; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; paint-order: stroke; stroke: #090b0e; stroke-width: 3px; }
.m-city.is-home .m-label { fill: var(--gold-hi); }
.m-you { fill: none; stroke: var(--gold-hi); stroke-width: 1.6; animation: youPulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes youPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.m-arrow { fill: none; stroke-width: 1.6; stroke-dasharray: 6 5; animation: dash 1.2s linear infinite; }
.m-arrow.spy { stroke-width: 1.2; stroke-dasharray: 2 4; opacity: .85; }
@keyframes dash { to { stroke-dashoffset: -22; } }

.map-tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 210px; max-width: 260px; padding: 11px 13px;
  background: rgba(18, 20, 24, .97); border: 1px solid var(--line-2); border-radius: 11px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8);
  font-size: 12px; color: var(--text-2);
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.map-tip.is-on { opacity: 1; transform: none; }
.map-tip.is-pinned { pointer-events: auto; }
.mt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.mt-name { font-weight: 700; font-size: 14px; color: var(--text); }
.mt-type { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mt-meta { color: var(--text-3); margin-bottom: 8px; }
.mt-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.mt-list li { display: flex; align-items: center; gap: 0; }
.mt-list li span:last-child { margin-left: auto; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mt-actions { display: flex; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Lage */
.lage-city { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.lage-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: .06em; line-height: 1.1; }
.lage-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); }
.lage-meta, .lage-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lage-meta .ico { width: 14px; height: 14px; color: var(--text-2); }
.lage-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #ecc177; }
.lage-warn .ico { width: 14px; height: 14px; }
.risk-rows { display: flex; flex-direction: column; gap: 9px; padding: 12px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.risk-row { display: grid; grid-template-columns: 68px 1fr 48px 72px; align-items: center; gap: 10px; font-size: 12.5px; }
.rr-label { color: var(--text-2); }
.rr-val { text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rr-base { font-size: 11px; color: var(--text-3); text-align: right; }
.lage-unlocks { margin: 12px 0; font-size: 12px; color: var(--text-2); line-height: 1.55; }
.lu-label { color: var(--gold); font-weight: 600; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-actions .btn { padding: 0 8px; }
.lage-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 11px; border-radius: 9px; background: rgba(201, 165, 76, .07); border: 1px solid var(--gold-line); font-size: 12.5px; color: var(--text-2); }
.lage-status strong { color: var(--text); }
.lage-status .countdown { margin-left: auto; color: var(--gold-hi); }
.lage-status.is-free { background: var(--green-bg); border-color: rgba(111, 174, 116, .3); }
.lage-status.is-free .ico { width: 15px; height: 15px; color: var(--green); }

/* Operationen */
.ops { list-style: none; margin: 0; padding: 0; }
.op { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.op:last-child { border-bottom: 0; }
.op-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: #1a1d21; color: var(--gold); }
.op-icon .ico { width: 17px; height: 17px; }
.kind-angriff .op-icon  { color: #e98a7f; border-color: rgba(214, 92, 79, .3); }
.kind-spionage .op-icon { color: #a9c6e8; border-color: rgba(107, 155, 209, .3); }
.op-main { min-width: 0; }
.op-title { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--text); }
.op-detail { margin: 2px 0 8px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.op-timer { font-size: 15px; color: var(--text); }
.op-meta { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.op.is-done .op-timer { color: var(--green); }
.op.is-done .bar > span { background: var(--green); }
.ops-inline { margin: -16px -18px 14px; border-bottom: 1px solid var(--line-soft); }

/* Kennzahlen */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px 15px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #17191d, #121417);
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.kpi::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-lo), transparent 70%); opacity: .55; }
.kpi:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.kpi-icon { position: absolute; right: 14px; top: 14px; color: var(--gold-lo); }
.kpi-icon .ico { width: 20px; height: 20px; }
.kpi:hover .kpi-icon { color: var(--gold); }
.kpi-label { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.kpi-value { font-size: 23px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-value small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.kpi-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chart */
.chart { position: relative; height: 250px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-grid { stroke: rgba(255, 255, 255, .05); }
.c-axis { fill: var(--text-3); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.c-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-cross { stroke: rgba(236, 231, 220, .25); stroke-dasharray: 3 3; }
.c-dot { fill: var(--gold-hi); stroke: #0e0f12; stroke-width: 2; }
.c-last { fill: var(--gold-hi); }
.c-day { stroke: rgba(255, 255, 255, .04); stroke-dasharray: 2 4; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 3;
  padding: 7px 10px; border-radius: 8px;
  background: rgba(18, 20, 24, .96); border: 1px solid var(--line-2);
  font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%);
  opacity: 0; transition: opacity .1s;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip strong { display: block; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--text-3); }
.chart-stats { display: flex; gap: 22px; margin-top: 10px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.chart-stats strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }

/* Aufstieg */
.rank-ladder { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.rank-ladder li span { display: block; height: 6px; border-radius: 3px; background: #262a31; }
.rank-ladder li.done span { background: var(--gold-lo); }
.rank-ladder li.current span { background: var(--gold-hi); box-shadow: 0 0 10px rgba(228, 199, 124, .5); }
.rise-next { font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; line-height: 1.5; }
.rise-next strong { color: var(--gold-hi); }
.progress-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin-bottom: 13px; font-size: 12.5px; }
.progress-row .bar { grid-column: 1 / -1; height: 7px; }
.pr-label { color: var(--text-2); }
.pr-val { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-row.godfather { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.rise-goal { margin-top: 12px; line-height: 1.5; }
.progress-row.godfather .pr-label { color: var(--gold); font-weight: 600; }

/* Sicherheit */
.sec-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.gauge { width: 100%; max-width: 240px; display: block; margin: 0 auto; }
.g-zone  { fill: none; stroke-width: 4; }
.g-zone.z0 { stroke: #3d5d42; } .g-zone.z1 { stroke: #64703c; } .g-zone.z2 { stroke: #8c6d2f; }
.g-zone.z3 { stroke: #a2592e; } .g-zone.z4 { stroke: #a8433a; } .g-zone.z5 { stroke: #7e2b27; }
.g-track { fill: none; stroke: #23272d; stroke-width: 12; stroke-linecap: round; }
.g-fill  { fill: none; stroke-width: 12; stroke-linecap: round; }
.g-low  { stroke: var(--green); }
.g-mid  { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(217, 160, 67, .35)); }
.g-high { stroke: #e3793f; filter: drop-shadow(0 0 6px rgba(227, 121, 63, .4)); }
.g-crit { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(214, 92, 79, .5)); }
.g-tick { stroke: #121417; stroke-width: 2.4; }
.g-value { fill: var(--text); font-size: 30px; font-weight: 600; text-anchor: middle; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-label { fill: var(--text-3); font-size: 8.5px; letter-spacing: .18em; text-anchor: middle; font-weight: 700; font-family: var(--font); }
.sec-facts { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sec-facts > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding-bottom: 7px; border-bottom: 1px dashed var(--line-soft); }
.sec-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.sec-facts dt { color: var(--text-3); }
.sec-facts dd { margin: 0; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }

.alerts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.alert {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: #171a1e;
  font-size: 12.5px; color: var(--text-2); line-height: 1.4;
}
.alert > .ico { width: 16px; height: 16px; color: var(--text-3); }
.alert strong { color: var(--text); font-weight: 600; }
.alert.is-danger { border-color: rgba(214, 92, 79, .34); background: linear-gradient(90deg, rgba(214, 92, 79, .12), rgba(214, 92, 79, .02)); }
.alert.is-danger > .ico { color: var(--red); }
.alert.is-warn { border-color: rgba(217, 160, 67, .28); background: linear-gradient(90deg, rgba(217, 160, 67, .09), transparent); }
.alert.is-warn > .ico { color: var(--amber); }
.alert.is-ok > .ico { color: var(--green); }
.alert-cd { color: #f29a91; font-size: 13px; }
.alert-link { color: var(--gold); font-size: 12px; font-weight: 600; text-decoration: none; }

/* Bedrohungslage */
.threats { list-style: none; margin: 0; padding: 0; }
.threat { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.threat:last-child { border-bottom: 0; }
.th-head { display: flex; align-items: center; }
.th-name { font-weight: 600; color: var(--text); font-size: 13.5px; }
.th-rel { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-2); }
.th-chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* Berater */
.tips { list-style: none; margin: 0; padding: 6px; }
.tip a { display: grid; grid-template-columns: 32px 1fr 16px; gap: 11px; align-items: center; padding: 10px 11px; border-radius: 9px; text-decoration: none; }
.tip a:hover { background: rgba(255, 255, 255, .025); }
.tip-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #1b1e23; border: 1px solid var(--line); color: var(--text-2); }
.tip-icon .ico { width: 16px; height: 16px; }
.tip-text { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.tip-cd { color: #f29a91; white-space: nowrap; }
.tip-go { color: var(--text-3); }
.tip-go .ico { width: 15px; height: 15px; }
.tip a:hover .tip-go { color: var(--gold); }
.tip.tone-danger .tip-icon { color: var(--red); border-color: rgba(214, 92, 79, .34); background: var(--red-bg); }
.tip.tone-warn .tip-icon   { color: var(--amber); border-color: rgba(217, 160, 67, .3); background: var(--amber-bg); }
.tip.tone-info .tip-icon   { color: var(--blue); border-color: rgba(107, 155, 209, .3); background: var(--blue-bg); }
.tip.tone-gold .tip-icon   { color: var(--gold); border-color: var(--gold-line); background: var(--gold-bg); }

/* Ticker */
.ticker { list-style: none; margin: 0; padding: 6px 0; }
.tick { display: grid; grid-template-columns: 104px 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 18px; font-size: 12.5px; }
.tick:hover { background: rgba(255, 255, 255, .015); }
.tick-time { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11.5px; white-space: nowrap; }
.tick-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.tick-msg { color: var(--text-2); }
.tick-cat { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); text-decoration: none; font-weight: 600; }
a.tick-cat:hover { color: var(--gold); }
.tick.tone-erfolg .tick-dot  { background: var(--green); box-shadow: 0 0 6px rgba(111, 174, 116, .5); }
.tick.tone-verlust .tick-dot { background: var(--red); box-shadow: 0 0 6px rgba(214, 92, 79, .5); }
.tick.tone-gold .tick-dot    { background: var(--gold); box-shadow: 0 0 6px rgba(201, 165, 76, .55); }
.tick.tone-erfolg .tick-msg  { color: #c3dcc4; }
.tick.tone-verlust .tick-msg { color: #e8bdb7; }
.tick.tone-gold .tick-msg    { color: #ead9ad; }
.ticker-wide .tick { grid-template-columns: 120px 10px minmax(0, 1fr) auto; }

/* ---------------------------------------------------------------------
   Bereichsseiten
   --------------------------------------------------------------------- */

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end;
  padding: 4px 0 22px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.sh-ident { display: flex; gap: 18px; align-items: flex-start; }
.sh-icon {
  width: 60px; height: 60px; flex: none; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(201, 165, 76, .24), rgba(201, 165, 76, .04));
  border: 1px solid var(--gold-line); color: var(--gold-hi);
  box-shadow: 0 0 30px -8px rgba(201, 165, 76, .4);
}
.sh-icon .ico { width: 28px; height: 28px; }
.sh-title { margin: 3px 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.sh-desc { margin: 0; max-width: 640px; color: var(--text-2); font-size: 13.5px; }
.sh-kpis { display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 10px; }

.mini-stat { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: #131518; min-width: 0; }
.ms-label { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.ms-value { font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ms-value small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.ms-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stat.is-pos .ms-value { color: var(--green); }
.mini-stat.is-neg .ms-value { color: var(--red); }
.mini-stat.is-warn .ms-value { color: var(--amber); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sub-tiles { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 10px; margin-bottom: var(--gap); }
@media (max-width: 1500px) { .sub-tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.sub-tile {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: linear-gradient(180deg, #16181b, #121417);
  text-decoration: none; transition: border-color .15s, background .15s, transform .15s;
}
.sub-tile:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.sub-tile.is-current { border-color: var(--gold); background: linear-gradient(180deg, rgba(201, 165, 76, .1), #121417); }
.st-icon { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #1c1f24; border: 1px solid var(--line); color: var(--gold); }
.st-icon .ico { width: 17px; height: 17px; }
.st-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.st-value { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.st-value.is-neg { color: var(--red); }
.st-value.is-warn { color: var(--amber); }
.st-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-tile .badge { position: absolute; top: 10px; right: 10px; }

.sub-panel { scroll-margin-top: calc(var(--topbar-h) + 18px); }
.sub-panel.is-highlight { animation: glow 1.8s ease; }
@keyframes glow { 0% { box-shadow: 0 0 0 1px var(--gold), 0 0 34px -4px rgba(201, 165, 76, .55); } 100% { box-shadow: var(--shadow); } }

.split { display: grid; gap: 22px; }
.split-8-4 { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.split-6-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side-col { min-width: 0; }

.route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.route-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 9px 11px; border-radius: 9px; background: #171a1e; border: 1px solid var(--line-soft); font-size: 12.5px; }
.rl-drug { font-weight: 700; color: var(--text); }
.rl-path { color: var(--text-2); font-variant-numeric: tabular-nums; }
.rl-margin { font-weight: 700; font-variant-numeric: tabular-nums; }
.rl-age { grid-column: 1 / -1; font-size: 11px; }

.cargo { display: flex; flex-direction: column; gap: 7px; }
.cargo-bar { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.cargo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cargo-row span:last-child { color: var(--text); font-weight: 600; min-width: 74px; text-align: right; }

.buy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.buy-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.buy-list li:last-child { border-bottom: 0; }
.bl-name { color: var(--text); font-weight: 600; }
.bl-meta { font-variant-numeric: tabular-nums; font-size: 12px; }
.bl-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 92px; }
.buy-list li.is-locked .bl-name { color: var(--text-3); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: #15171b; border: 1px solid var(--line); }
.switch { position: relative; width: 44px; height: 24px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: #23272d; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8d887e; transition: transform .2s, background .2s; }
.switch.is-on { background: rgba(201, 165, 76, .3); border-color: var(--gold-lo); }
.switch.is-on span { transform: translateX(20px); background: var(--gold-hi); }

.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.facts li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.facts .ico { width: 15px; height: 15px; color: var(--gold); margin-top: 2px; }
.facts li.is-dim { color: var(--text-3); }

.facts-dl { margin: 0; display: flex; flex-direction: column; }
.facts-dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.facts-dl > div:last-child { border-bottom: 0; }
.facts-dl dt { color: var(--text-3); }
.facts-dl dd { margin: 0; color: var(--text); }

.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.flow li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.flow li:last-child { border-bottom: 0; }
.flow li > span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.flow li.sub { font-size: 12px; color: var(--text-3); }
.flow li.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 2px; padding-top: 9px; color: var(--text); font-weight: 600; }
.flow-legend li > span:first-child { display: flex; align-items: center; }

.vehicle-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 12px; border-radius: 10px; background: #15171b; border: 1px solid var(--line); }
.vehicle-card .link { margin-left: auto; }
.vc-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--gold-bg); border: 1px solid var(--gold-line); color: var(--gold-hi); }

/* Netzwerk */
.alliances { list-style: none; margin: -4px 0 0; padding: 0; }
.alliance { padding: 10px 0 12px; border-bottom: 1px solid var(--line-soft); }
.alliance:last-child { border-bottom: 0; }
.al-head { display: flex; align-items: center; font-size: 13px; }
.al-rel { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.al-grid { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }

.rival-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rival-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: 11px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #16181b), #131518 60%);
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line));
}
.rival-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.rival-card header { display: flex; flex-direction: column; gap: 2px; }
.rc-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; color: var(--text); }
.rc-boss { font-size: 12px; color: var(--text-3); }
.rc-style { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.45; min-height: 34px; }
.rc-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.rc-stats > div { display: flex; flex-direction: column; gap: 1px; }
.rc-stats dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.rc-stats dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rival-card footer { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }

.rep-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 6px; }
.rep-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rep-num { font-size: 36px; font-weight: 600; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.rep-dist { display: flex; flex-direction: column; gap: 4px; }
.rd-row { display: grid; grid-template-columns: 24px 1fr 22px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text-2); }
.rd-row span:last-child { text-align: right; }
.ratings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ratings li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12.5px; align-items: center; }
.ratings li .muted { grid-column: 2; font-size: 12px; }
.factions { list-style: none; margin: 0; padding: 0; }
.factions li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-2); }
.factions li:last-child { border-bottom: 0; }
.fa-name { font-weight: 700; color: var(--text); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.factions .muted { text-align: right; font-size: 11.5px; }

/* Sicherheit */
.gauge-wrap { padding: 4px 0 6px; }
.star-scale { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.star-scale li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line-soft); background: #15171b; font-size: 11px; }
.star-scale li span:first-child { color: #4a4e56; letter-spacing: -.1em; font-size: 10px; }
.star-scale li.on { border-color: rgba(227, 104, 91, .3); background: rgba(214, 92, 79, .06); }
.star-scale li.on span:first-child { color: #e3685b; }

.decision { padding: 14px; margin-bottom: 16px; border-radius: 11px; border: 1px solid rgba(214, 92, 79, .36); background: linear-gradient(180deg, rgba(214, 92, 79, .1), rgba(214, 92, 79, .02)); }
.dec-head { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.dec-head > .ico { width: 22px; height: 22px; color: var(--red); }
.dec-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dec-options .btn { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; text-align: left; }
.dec-options .btn span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.ci-meter { margin-bottom: 4px; }

.equip { list-style: none; margin: 0; padding: 0; }
.equip li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.equip li:last-child { border-bottom: 0; }
.eq-name { font-weight: 600; color: var(--text-2); }
.equip li.is-owned .eq-name { color: var(--text); }

.attack-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attack { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(214, 92, 79, .36); background: linear-gradient(90deg, rgba(214, 92, 79, .12), transparent); box-shadow: inset 3px 0 0 var(--c); }
.at-main { flex: 1; min-width: 0; }
.at-cd { display: flex; flex-direction: column; align-items: flex-end; }
.cd-big { font-size: 22px; color: #f29a91; }

.loy { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; }
.loy .bar { width: 70px; }
.loy-val { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.loy.is-ok .bar > span { background: var(--green); }
.loy.is-mid .bar > span { background: #a4a07e; }
.loy.is-warn .bar > span { background: var(--amber); }
.loy.is-warn .loy-val { color: var(--amber); }
.loy.is-danger .bar > span { background: var(--red); }
.loy.is-danger .loy-val { color: var(--red); }

/* Familie */
.mem { display: inline-flex; align-items: center; gap: 9px; }
.role { display: inline-flex; align-items: center; gap: 6px; }
.role .ico { width: 14px; height: 14px; color: var(--gold); }
.lvl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.lvl .bar { width: 44px; }

.org { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.org-boss { align-self: center; display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-radius: 11px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(201, 165, 76, .14), rgba(201, 165, 76, .03)); position: relative; }
.org-boss::after { content: ''; position: absolute; left: 50%; bottom: -15px; width: 1px; height: 14px; background: var(--gold-line); }
.org-posts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.org-node { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #16181c; }
.org-node > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.role-ico { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #1c1f24; border: 1px solid var(--line); color: var(--gold); }
.role-ico .ico { width: 15px; height: 15px; }
.org-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.org-group { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: #141619; }
.og-head { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.org-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.org-group li { display: flex; align-items: center; gap: 7px; }
.org-group li .ico { width: 13px; height: 13px; color: var(--text-3); }
.org-group.is-over { border-color: rgba(214, 92, 79, .4); }
.org-group li.is-leaderless { color: #f29a91; }
.org-group li.is-leaderless .ico { color: var(--red); }

.recruits { list-style: none; margin: 0; padding: 0; }
.recruits li { display: grid; grid-template-columns: 30px 1fr auto; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.recruits li:last-child { border-bottom: 0; }
.rec-main, .rec-cost { display: flex; flex-direction: column; line-height: 1.35; }
.rec-cost { align-items: flex-end; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

.heir-card, .profile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 11px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(201, 165, 76, .1), rgba(201, 165, 76, .02)); }
.profile { margin-bottom: 14px; }
.profile > div { flex: 1; min-width: 0; }
.heir-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .05em; margin: 2px 0; }
.profile-xp { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.succession { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.succession li { display: grid; grid-template-columns: 24px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: #15171b; border: 1px solid var(--line-soft); font-size: 12.5px; }
.succession li.is-heir { border-color: var(--gold-line); }
.sc-rank { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #1f2227; font-weight: 700; font-size: 11px; color: var(--text-2); }
.succession li.is-heir .sc-rank { background: var(--gold); color: #17120a; }
.sc-score { font-weight: 700; color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* Imperium */
.pips { display: inline-flex; gap: 4px; }
.pips span { width: 14px; height: 6px; border-radius: 2px; background: #262a31; }
.pips span.on { background: var(--gold); }
.power-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.power-bars li { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.pb-city { color: var(--text-2); }
.pb-bar { display: flex; gap: 3px; height: 12px; }
.pb-bar span { flex: 1; border-radius: 3px; background: var(--c); opacity: .9; }
.pb-count { text-align: right; font-variant-numeric: tabular-nums; }
.legend-static { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--text-2); }
.legend-static span { display: inline-flex; align-items: center; }
.legend-static .dot { margin-right: 6px; width: 8px; height: 8px; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.stack-bar span { background: var(--c); }

/* Toasts */
.toasts { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 11px;
  background: #181a1e; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8);
  font-size: 13px; color: var(--text);
  animation: toastIn .22s ease;
}
.toast .ico { width: 18px; height: 18px; color: var(--gold); }
.toast.tone-erfolg .ico, .toast.tone-ok .ico { color: var(--green); }
.toast.tone-verlust .ico, .toast.tone-danger .ico { color: var(--red); }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   Responsiv
   --------------------------------------------------------------------- */

@media (max-width: 1560px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-kpis { grid-template-columns: repeat(2, minmax(140px, auto)); }
  .rival-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1380px) {
  .tb-stat.tb-hide-md { display: none; }
  .span-7, .span-8, .span-5 { grid-column: span 12; }
  .span-4 { grid-column: span 6; }
  .grid > .stack { grid-column: span 12; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .panel-advisor { grid-column: span 12; }
  .section-head { grid-template-columns: 1fr; }
  .sh-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  :root { --sidebar-w: 84px; }
  .brand { justify-content: center; padding: 0; }
  .brand-text, .nav-text, .nav-toggle, .nav-sub, .loc-text, .loc-status, .rank-card, .sidebar-foot .legal-mini { display: none !important; }
  .nav-link { justify-content: center; padding: 8px 0; position: relative; }
  .nav-link .badge { position: absolute; top: 2px; right: 6px; }
  .nav-item.is-active .nav-row::before { left: -12px; }
  .loc-card { justify-content: center; padding: 10px 0; }
  .tb-identity .tb-id-text { display: none; }
  .tb-stat { padding: 0 12px; }
  .span-6 { grid-column: span 12; }
  .split-8-4 { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .tb-clock-text .tb-label, .tempo-chip { display: none; }
  .tb-stats .tb-stat:not(.tb-drop) { display: none; }
  .span-4 { grid-column: span 12; }
  .stack { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-kpis, .split-6-6, .rival-grid { grid-template-columns: 1fr; }
  .page { padding: 18px 16px 40px; }
  .dd-notif { width: min(400px, calc(100vw - 110px)); }
  .dec-options { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --sidebar-w: 64px; }
  .nav { padding: 12px 8px; }
  .nav-icon { width: 38px; height: 38px; }
  .topbar { padding: 0 10px; }
  .tb-identity { display: none; }
  .kpis { grid-template-columns: 1fr; }
  .page-title, .sh-title { font-size: 24px; }
  .stat-grid-3 { grid-template-columns: 1fr; }
  .tick { grid-template-columns: 1fr; gap: 2px; }
  .tick-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Tipps und Tricks (Statusleiste) */
.dd-tips { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
.dd-tips .dd-head .chip { font-size: 11px; }
.tips-list { list-style: none; margin: 0; padding: 6px; max-height: 440px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.tip { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 10px; border-radius: 9px; }
.tip:hover { background: rgba(255, 255, 255, .03); }
.tip.is-hot { background: var(--gold-bg); border: 1px solid var(--gold-line); }
.tip-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #1d2025; border: 1px solid var(--line); color: var(--gold); }
.tip-icon .ico { width: 16px; height: 16px; }
.tip-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tip-title { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tip-now { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--amber); }
.tip-text { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.tip-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--gold); text-decoration: none; }
.tip-link:hover { color: var(--gold-hi); }
.tip-link .ico { width: 13px; height: 13px; }
.tips-foot { margin: 0; padding: 12px 16px; }
