/* Meiling Cockpit – Styles
   Farben und Schriften stammen von baeckerei-meiling.de:
   Gold #D2BB77 auf Anthrazit #121516 / #24272B, Kalam (Handschrift) und Lato. */

:root {
  --ground: #121516;
  --surface: #191c1f;
  --raised: #24272b;
  --raised-2: #2c3035;
  --line: rgba(210, 187, 119, 0.14);
  --line-strong: rgba(210, 187, 119, 0.32);
  --gold: #d2bb77;
  --gold-deep: #a8965f;
  --gold-ink: #6e5f2e;
  --gold-soft: rgba(210, 187, 119, 0.10);
  --ink: #f2ede2;
  --ink-2: #b9b5aa;
  --ink-3: #7f7c74;
  --paper: #f6f1e4;
  --paper-ink: #2a2620;
  --paper-line: #e2d9c2;
  --good: #3fbf5c;
  --warning: #eac300;
  --serious: #ec835a;
  --critical: #e0534d;
  --s1: #ae8e3c; --s2: #3987e5; --s3: #d95926; --s4: #199e70; --s5: #9085e9;
  --font-ui: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-hand: 'Kalam', 'Segoe Print', 'Comic Sans MS', cursive;
  --radius: 10px;
  --radius-sm: 6px;
  --rail: 236px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px rgba(0,0,0,0.25);
}
:root[data-theme="light"] {
  --ground: #f4f1ea;
  --surface: #ffffff;
  --raised: #faf7f0;
  --raised-2: #f0ebdf;
  --line: rgba(110, 95, 46, 0.14);
  --line-strong: rgba(110, 95, 46, 0.32);
  --gold: #a8894a;
  --gold-deep: #8b7238;
  --gold-soft: rgba(168, 137, 74, 0.10);
  --ink: #1d1b16;
  --ink-2: #4f4b41;
  --ink-3: #8a857a;
  --good: #1f9a3c;
  --warning: #b58a00;
  --serious: #c9603a;
  --critical: #c8403a;
  --s1: #a37f2c; --s2: #2a78d6; --s3: #eb6834; --s4: #1baf7a; --s5: #6b5fd6;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(40,30,10,0.06);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; }
.hand { font-family: var(--font-hand); font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 18px;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.rail .brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); }
.rail .brand img { width: 118px; height: auto; display: block; }
.rail .brand-sub { font-family: var(--font-hand); color: var(--gold); font-size: 15px; line-height: 1.1; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail .group { margin-top: 10px; padding: 8px 10px 4px; color: var(--ink-3); font-size: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.rail .group .hand { font-size: 17px; color: var(--gold); }
.rail .group small { color: var(--ink-3); }
.navbtn {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2); font-size: 14px; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.navbtn svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.navbtn:hover { background: var(--raised); color: var(--ink); }
.navbtn.active { background: var(--gold-soft); color: var(--gold); }
.navbtn .tag { margin-left: auto; font-size: 10px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; }
.navbtn.active .tag { color: var(--gold); border-color: var(--line-strong); }
.rail .foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 8px; }
.rail .foot .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iconbtn { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.iconbtn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .title { font-size: 16px; font-weight: 700; }
.topbar .date { color: var(--ink-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.topbar .wetter { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.topbar .wetter svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill.gold { background: var(--gold); color: #1a1710; border-color: var(--gold); font-weight: 700; }
.pill.gold:hover { background: #e0cb8a; }
.pill svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.burger { display: none; }

.content { padding: 24px 28px 80px; max-width: 1440px; }
.view { display: none; }
.view.active { display: block; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-head h1 { font-size: 24px; letter-spacing: -0.01em; }
.view-head .lead { color: var(--ink-2); max-width: 64ch; margin-top: 4px; }
.view-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vision-band {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--gold-soft); color: var(--ink-2); font-size: 13px;
}
.vision-band .hand { color: var(--gold); font-size: 17px; white-space: nowrap; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
.g12 { grid-template-columns: 1fr 2fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.card.flat { background: transparent; }
.card h3 { font-size: 14px; color: var(--ink-2); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 .hint { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.mt { margin-top: 14px; }

/* Stat tiles */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--ink-2); font-size: 13px; }
.stat .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.stat .delta { font-size: 12px; color: var(--ink-3); display: block; }
.stat .delta b { font-weight: 700; }
.stat .delta.up b { color: var(--good); }
.stat .delta.down b { color: var(--critical); }
.stat .spark { margin-top: 8px; height: 34px; }
.stat .spark svg { width: 100%; height: 34px; display: block; overflow: visible; }

/* Morgenbrief – das eine laute Element */
.brief {
  position: relative; align-self: start; background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 22px 26px 20px 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.4) inset; transform: rotate(-0.4deg);
  background-image: repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px); background-position: 0 14px;
}
:root[data-theme="light"] .brief { box-shadow: 0 10px 26px rgba(60,45,10,0.14); }
.brief::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: #e6b3a8; opacity: .6; }
.brief .pin { position: absolute; top: -10px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0d795, #a8965f 60%, #6e5f2e); box-shadow: 0 3px 5px rgba(0,0,0,.35); transform: translateX(-50%); }
.brief .from { font-family: var(--font-hand); font-size: 22px; color: var(--gold-ink); line-height: 28px; }
.brief p { font-family: var(--font-hand); font-size: 17px; line-height: 28px; margin: 0; }
.brief .sign { font-family: var(--font-hand); font-size: 18px; line-height: 28px; color: var(--gold-ink); text-align: right; margin-top: 4px; }
.brief .voice { position: absolute; right: 16px; top: 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9cfb4; background: #fffdf8; color: #5a5040; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: var(--font-ui); }
.brief .voice:hover { border-color: var(--gold-deep); }
.brief .voice svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.brief .voice.playing svg { stroke: var(--gold-ink); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Hinweise */
.hinweis { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.hinweis:first-child { border-top: 0; padding-top: 0; }
.hinweis .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.hinweis .dot.critical { background: var(--critical); } .hinweis .dot.serious { background: var(--serious); } .hinweis .dot.warning { background: var(--warning); } .hinweis .dot.good { background: var(--good); }
.hinweis b { display: block; font-size: 14px; }
.hinweis span { color: var(--ink-2); font-size: 13px; }
.hinweis .go { color: var(--ink-3); font-size: 12px; white-space: nowrap; padding-top: 3px; }
.hinweis:hover .go { color: var(--gold); }

/* Charts */
.chart { position: relative; height: 240px; }
.chart.tall { height: 320px; }
.chart.short { height: 170px; }
.chart canvas { width: 100% !important; height: 100% !important; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 700; color: var(--ink-3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--raised); }
td .sub { display: block; color: var(--ink-3); font-size: 12px; }
.bar { position: relative; height: 6px; background: var(--raised-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); border-radius: 3px; }
.bar i.bad { background: var(--critical); } .bar i.warn { background: var(--warning); } .bar i.ok { background: var(--good); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.badge.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); }
.badge.serious { color: var(--serious); background: color-mix(in srgb, var(--serious) 14%, transparent); }
.badge.critical { color: var(--critical); background: color-mix(in srgb, var(--critical) 14%, transparent); }
.badge.neutral { color: var(--ink-2); background: var(--raised-2); }
.badge.gold { color: var(--gold); background: var(--gold-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--raised-2); }
.btn.primary { background: var(--gold); color: #1a1710; border-color: var(--gold); }
.btn.primary:hover { background: #e0cb8a; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.btn:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.seg button.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
select.sel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 30px 6px 12px; font-size: 13px; font-family: inherit; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--raised-2); border: 1px solid var(--line); cursor: pointer; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .2s, background .2s; }
.toggle.on { background: var(--gold); border-color: var(--gold); }
.toggle.on::after { transform: translateX(16px); background: #1a1710; }
input[type=range] { width: 100%; accent-color: var(--gold); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: transparent; color: var(--ink-2); width: 26px; height: 26px; cursor: pointer; font-size: 15px; }
.qty button:hover { background: var(--raised); color: var(--ink); }
.qty span { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Schichtplan */
.plan { display: grid; grid-template-columns: 180px repeat(7, 1fr); gap: 4px; font-size: 12px; }
.plan .h { color: var(--ink-3); padding: 6px 4px; text-align: center; }
.plan .h.today { color: var(--gold); font-weight: 700; }
.plan .f { padding: 6px 8px; color: var(--ink-2); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan .cell { display: flex; flex-direction: column; gap: 3px; padding: 3px; border-radius: 4px; background: var(--raised); min-height: 44px; }
.plan .cell.today { outline: 1px solid var(--line-strong); }
.plan .s { border-radius: 3px; padding: 2px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--raised-2); color: var(--ink-2); }
.plan .s.krank { background: color-mix(in srgb, var(--serious) 22%, transparent); color: var(--serious); }
.plan .s.offen { background: color-mix(in srgb, var(--critical) 22%, transparent); color: var(--critical); border: 1px dashed var(--critical); cursor: pointer; }
.plan .s.zugesagt { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }

/* Touren */
.tour { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.tour .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tour .head b { font-size: 14px; }
.tour .head .meta { color: var(--ink-3); font-size: 12px; }
.stops { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 6px 0 2px; }
.stop { position: relative; min-width: 118px; flex: 1; padding: 0 6px; font-size: 12px; }
.stop::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--raised-2); }
.stop .dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--raised-2); border: 3px solid var(--surface); margin-bottom: 6px; }
.stop.geliefert::before { background: var(--good); } .stop.geliefert .dot { background: var(--good); }
.stop.unterwegs .dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); animation: pulse 1.4s infinite; }
.stop.unterwegs::before { background: linear-gradient(90deg, var(--good), var(--raised-2)); }
.stop .n { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .t { color: var(--ink-3); }
.stop .late { color: var(--serious); font-weight: 700; }
.map { position: relative; aspect-ratio: 900 / 360; border-radius: var(--radius); background: radial-gradient(ellipse at 35% 50%, var(--raised) 0%, var(--surface) 70%); border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map .lbl { font-size: 11px; fill: var(--ink-2); font-family: var(--font-ui); }
.map .city { font-size: 15px; fill: var(--ink-3); font-family: var(--font-hand); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.map-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: 3px; }

/* Lotte panel */
.lotte-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px; background: var(--gold); color: #1a1710; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.lotte-fab .av { width: 30px; height: 30px; border-radius: 50%; background: #1a1710; color: var(--gold); display: grid; place-items: center; font-family: var(--font-hand); font-size: 17px; }
.lotte { position: fixed; right: 22px; bottom: 84px; z-index: 40; width: 400px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 110px); display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; }
.lotte.open { display: flex; }
.lotte .lh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--raised); }
.lotte .lh .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1710; display: grid; place-items: center; font-family: var(--font-hand); font-size: 19px; }
.lotte .lh b { display: block; }
.lotte .lh small { color: var(--ink-3); }
.lotte .lh .iconbtn { margin-left: auto; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; }
.msg.l { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 3px; }
.msg.u { align-self: flex-end; background: var(--gold); color: #1a1710; border-bottom-right-radius: 3px; }
.msg .act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.msg.typing { color: var(--ink-3); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.lin { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--raised); }
.lin input { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-family: inherit; }
.lin input:focus { outline: none; border-color: var(--gold); }
.lin .iconbtn { width: 38px; height: 38px; }
.lin .iconbtn.rec { color: var(--critical); border-color: var(--critical); animation: pulse 1s infinite; }
.lin .iconbtn.send { background: var(--gold); color: #1a1710; border-color: var(--gold); }

/* Intro overlay */
.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 11, 12, 0.72); backdrop-filter: blur(6px); padding: 20px; }
.intro.hidden { display: none; }
.intro .card { width: min(640px, 100%); padding: 0; overflow: hidden; border-color: var(--line-strong); }
.intro .img { height: 210px; background: url('assets/titelbild.jpg') center/cover; position: relative; }
.intro .img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,21,22,0.05), var(--surface)); }
.intro .img img { position: absolute; left: 24px; bottom: 10px; width: 150px; }
.intro .body { padding: 8px 28px 26px; }
.intro h2 { font-family: var(--font-hand); font-size: 30px; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.intro p { color: var(--ink-2); margin: 0 0 12px; max-width: 58ch; }
.intro .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.intro .cx { margin-left: auto; font-size: 12px; color: var(--ink-3); }

/* Roadmap / Vision */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); position: relative; }
.phase.now { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.phase .k { font-family: var(--font-hand); font-size: 22px; color: var(--gold); }
.phase h3 { font-size: 16px; color: var(--ink); margin: 2px 0 6px; display: block; }
.phase .when { color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.phase ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.module:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.module svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.module b { display: block; font-size: 14px; margin-bottom: 4px; }
.module span { color: var(--ink-2); font-size: 12.5px; display: block; }
.module .st { margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.module.now .st { color: var(--gold); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.flow .node { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); text-align: center; }
.flow .node b { display: block; margin-bottom: 4px; }
.flow .node span { color: var(--ink-2); font-size: 12.5px; }
.flow .node.gold { border-color: var(--gold); background: var(--gold-soft); }
.flow .arr { color: var(--ink-3); font-size: 22px; }
.quote { font-family: var(--font-hand); font-size: 20px; color: var(--gold); line-height: 1.4; }

/* Detail drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: 520px; max-width: 100vw; background: var(--surface); border-left: 1px solid var(--line-strong); box-shadow: -20px 0 60px rgba(0,0,0,.45); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer .dh h2 { font-size: 18px; }
.drawer .dh .iconbtn { margin-left: auto; }
.drawer .db { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.35); display: none; }
.scrim.open { display: block; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 70; background: var(--gold); color: #1a1710; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; opacity: 0; transition: all .25s; pointer-events: none; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Kacheln Filialen */
.filcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.filcard:hover { border-color: var(--line-strong); }
.filcard .n { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.filcard .n small { color: var(--ink-3); font-weight: 400; }
.filcard .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.filcard .m { display: flex; gap: 10px; color: var(--ink-3); font-size: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, 1fr); } .modules { grid-template-columns: repeat(2, 1fr); } .phases { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; z-index: 55; width: min(300px, 86vw); transform: translateX(-105%); transition: transform .25s; }
  .rail.open { transform: translateX(0); }
  .burger { display: inline-flex; }
  .topbar { padding: 12px 14px; gap: 8px; }
  .topbar .wetter, .topbar #lotteBtn { display: none; }
  .topbar .date { display: none; }
  .topbar select.sel { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  td .nowrap { white-space: nowrap; }
  .content { padding: 16px 16px 90px; }
  .g3, .g2, .g21, .g12 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; } .flow .arr { transform: rotate(90deg); text-align: center; }
  .plan { grid-template-columns: 110px repeat(7, 90px); }
  .drawer { width: 100vw; }
  .lotte { right: 12px; bottom: 76px; }
  .lotte-fab { right: 12px; bottom: 14px; }
  .stat .value { font-size: 24px; }
}
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr 1fr; } .modules { grid-template-columns: 1fr; } .view-head h1 { font-size: 20px; } .intro .body { padding: 6px 18px 20px; } }
