/* EVM Road – Grundbausteine. Nutzt nur Variablen aus tokens.css.
   In der App: @import in die Tailwind-Eingabedatei unter @layer components. */

@font-face { font-family: "Overpass"; src: url("../fonts/Overpass-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Overpass Mono"; src: url("../fonts/OverpassMono-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: var(--weight-base) var(--text-base)/var(--leading-base) var(--font-sans);
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern";
}
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.muted { color: var(--c-text-muted); }
.time { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: var(--weight-time); font-size: var(--text-time); letter-spacing: 0; }
.h-display { font-size: var(--text-display); line-height: var(--leading-display); font-weight: var(--weight-display); letter-spacing: -0.025em; margin: 0; }
.h-xl { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: var(--weight-xl); letter-spacing: -0.02em; margin: 0; }
.h-lg { font-size: var(--text-lg); line-height: var(--leading-lg); font-weight: var(--weight-lg); letter-spacing: -0.01em; margin: 0; }
.t-sm { font-size: var(--text-sm); line-height: var(--leading-sm); }
.t-xs { font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: var(--weight-xs); }
.eyebrow { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; color: var(--c-text-muted); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent;
  font: 600 var(--text-sm)/1 var(--font-sans); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast), transform var(--motion-fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--c-primary) 86%, var(--c-bg)); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 88%, black); }
.btn-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-secondary:hover { background: var(--c-surface-2); }
.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-surface-2); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-sm { height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-sm); }
.btn-lg { height: 48px; padding: 0 var(--space-6); font-size: var(--text-base); }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--c-on-primary) transparent var(--c-on-primary) transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
kbd { font: 500 11px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px; background: color-mix(in srgb, currentColor 14%, transparent); }

/* Formular */
.field { display: grid; gap: var(--space-2); }
.label { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 550; }
.label .req { color: var(--c-accent-text); }
.hint { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--c-text-muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--c-border-input); background: var(--c-surface); color: var(--c-text);
  font: 400 var(--text-base)/1 var(--font-sans); transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.textarea { height: auto; min-height: 88px; padding: var(--space-3); line-height: var(--leading-base); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--c-text-muted); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-focus) 22%, transparent); }
.input[aria-invalid="true"] { border-color: var(--c-danger); }
.error-text { font-size: var(--text-xs); color: var(--c-danger); display: flex; gap: 6px; align-items: center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .icon { position: absolute; left: 12px; color: var(--c-text-muted); pointer-events: none; }
.input-group .input { padding-left: 38px; }
.timefield { display: flex; gap: var(--space-2); align-items: center; }
.timefield .input { width: 96px; font-family: var(--font-sans); font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }

/* Schalter */
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; font-size: var(--text-sm); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 36px; height: 22px; border-radius: 999px; background: var(--c-border-input); position: relative; transition: background var(--motion-fast); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform var(--motion-base) var(--motion-ease); }
.switch input:checked + .track { background: var(--c-accent); }
.switch input:checked + .track::after { transform: translateX(14px); }
.switch input:focus-visible + .track { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* Segment */
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--c-surface-2); border-radius: var(--radius-md); }
.segmented button { border: 0; background: transparent; color: var(--c-text-muted); font: 550 var(--text-sm)/1 var(--font-sans); height: 30px; padding: 0 var(--space-3); border-radius: 7px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-card); }

/* Chips, Badges, Status */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--c-surface-2); color: var(--c-text); font-size: var(--text-xs); font-weight: 550; border: 1px solid var(--c-border); }
.chip .x { border: 0; background: none; padding: 0; color: var(--c-text-muted); cursor: pointer; display: inline-flex; }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font: 650 11px/1 var(--font-sans); background: var(--c-primary); color: var(--c-on-primary); flex: none; }
.avatar-group { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { background: var(--c-success-soft); color: var(--c-success); }
.pill-warning { background: var(--c-warning-soft); color: var(--c-warning); }
.pill-danger { background: var(--c-danger-soft); color: var(--c-danger); }
.pill-neutral { background: var(--c-surface-2); color: var(--c-text-muted); }
.pill-accent { background: var(--c-accent-soft); color: var(--c-accent-text); }
.daytype { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-sm); }
.daytype::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--dt, var(--c-day-other)); }
.dt-show { --dt: var(--c-day-show); } .dt-travel { --dt: var(--c-day-travel); } .dt-off { --dt: var(--c-day-off); }
.dt-rehearsal { --dt: var(--c-day-rehearsal); } .dt-press { --dt: var(--c-day-press); }

/* Karte, Abschnitt */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.card-pad { padding: var(--space-4); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 0 var(--space-1) var(--space-2); }
.section-head .title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--c-text-muted); }

/* Zeitplan-Zeile */
.schedule { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--space-4); align-items: start; padding: var(--space-3) var(--space-4); min-height: var(--layout-row-min); border-radius: var(--radius-md); }
.ev + .ev { border-top: 1px solid var(--c-border); border-radius: 0; }
.ev:hover { background: var(--c-surface-2); }
.ev .time { font-size: var(--text-base); padding-top: 1px; }
.ev .end { display: block; font-size: var(--text-xs); color: var(--c-text-muted); font-weight: 500; }
.ev .name { font-weight: 600; }
.ev .note { font-size: var(--text-sm); color: var(--c-text-muted); }
.ev .who { display: flex; gap: 4px; }
.ev.now { background: var(--c-accent-soft); }
.ev.now .time { color: var(--c-accent-text); }
.ev.done .name, .ev.done .time { color: var(--c-text-muted); }
.tbc { font: 600 var(--text-xs)/1 var(--font-mono); padding: 4px 6px; border-radius: 4px; border: 1px dashed var(--c-border-input); color: var(--c-text-muted); }

/* Tabelle */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); }
.table th { text-align: left; font-weight: 550; color: var(--c-text-muted); font-size: var(--text-xs); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; background: var(--c-surface); }
.table td { padding: var(--space-3); border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:hover td { background: var(--c-surface-2); }
.table tr[aria-selected="true"] td { background: var(--c-accent-soft); }
.check { width: 18px; height: 18px; accent-color: var(--c-primary); }

/* Navigation */
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: var(--space-3); height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--c-text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 550; }
.nav a:hover { background: var(--c-surface-2); color: var(--c-text); }
.nav a[aria-current="page"] { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-card); }
.nav .count { margin-left: auto; font-size: var(--text-xs); color: var(--c-text-muted); }

/* Tagesliste in der Seitenleiste */
.daylist { display: grid; gap: 2px; }
.daylink { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: inherit; }
.daylink:hover { background: var(--c-surface-2); }
.daylink[aria-current="date"] { background: var(--c-surface); box-shadow: var(--shadow-card); }
.daylink .d { text-align: center; line-height: 1.1; }
.daylink .d b { display: block; font: 650 18px/1.1 var(--font-sans); }
.daylink .d small { font-size: 11px; color: var(--c-text-muted); font-weight: 550; text-transform: uppercase; }
.daylink .where { font-size: var(--text-xs); color: var(--c-text-muted); }

/* Drawer, Popover, Toast, Leerzustand */
.drawer { width: min(var(--layout-drawer), 100vw); background: var(--c-surface); border-left: 1px solid var(--c-border); box-shadow: var(--shadow-drawer); display: grid; grid-template-rows: auto 1fr auto; }
.drawer header, .drawer footer { padding: var(--space-4) var(--space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.drawer header { border-bottom: 1px solid var(--c-border); }
.drawer footer { border-top: 1px solid var(--c-border); }
.drawer .body { padding: var(--space-5); display: grid; gap: var(--space-5); align-content: start; overflow: auto; }
.popover { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: var(--space-2); min-width: 240px; }
.menu-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; height: 36px; padding: 0 var(--space-3); border: 0; background: none; color: var(--c-text); border-radius: var(--radius-sm); font: 500 var(--text-sm)/1 var(--font-sans); cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--c-surface-2); }
.menu-item kbd { margin-left: auto; color: var(--c-text-muted); }
.toast { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--c-primary); color: var(--c-on-primary); box-shadow: var(--shadow-pop); font-size: var(--text-sm); font-weight: 500; }
.toast .btn-ghost { color: inherit; }
.empty { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-8) var(--space-6); border: 1px dashed var(--c-border-input); border-radius: var(--radius-lg); color: var(--c-text-muted); }
.empty .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-text); }
.empty h3 { margin: 0; color: var(--c-text); font-size: var(--text-base); }
.skeleton { background: linear-gradient(90deg, var(--c-surface-2), var(--c-border), var(--c-surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Handy: Tab-Leiste */
.tabbar { height: var(--layout-tabbar); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--c-surface); border-top: 1px solid var(--c-border); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--c-text-muted); text-decoration: none; font-size: 11px; font-weight: 600; min-height: var(--layout-tap-min); }
.tabbar a[aria-current="page"] { color: var(--c-text); }
.tabbar a[aria-current="page"] .icon { color: var(--c-accent); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===================== v0.2: eigenes Layout (kein Seitenleisten-Muster) ===================== */

/* Kopfleiste mit Bereichen oben statt Seitenleiste */
.topbar-app { height: var(--layout-header); display: flex; align-items: center; gap: var(--space-4); padding: 0 var(--space-5); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--c-primary); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11.5px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 5px, transparent 5px 8px); }
.crumb { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--radius-md); font-weight: 650; font-size: var(--text-sm); color: var(--c-text); background: none; border: 0; cursor: pointer; }
.crumb:hover { background: var(--c-surface-2); }
.crumb .muted { font-weight: 500; }
.tabs { display: flex; gap: 2px; height: 100%; }
.tabs a { display: flex; align-items: center; padding: 0 12px; color: var(--c-text-muted); text-decoration: none; font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--c-text); }
.tabs a[aria-current="page"] { color: var(--c-text); border-bottom-color: var(--c-text); }
.lens { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); font-size: var(--text-sm); font-weight: 600; cursor: pointer; color: var(--c-text); }
.lens .icon { color: var(--c-text-muted); }
.kbd-search { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--radius-md); background: var(--c-surface-2); color: var(--c-text-muted); font-size: var(--text-sm); border: 0; min-width: 200px; cursor: text; }
.kbd-search kbd { margin-left: auto; }

/* Tourstrecke: alle Tage als Stationen auf einer Linie */
.route { position: relative; display: flex; gap: 0; padding: 14px var(--space-5) 12px; background: var(--c-surface); border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 2px; background: var(--c-border); }
.stop { position: relative; flex: none; width: 92px; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: inherit; border-radius: var(--radius-md); padding: 0 0 4px; }
.stop .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-surface); border: 3px solid var(--dt, var(--c-day-other)); margin-top: 2px; z-index: 1; }
.stop .lbl { font-size: 12px; line-height: 15px; text-align: center; }
.stop .lbl b { display: block; font-size: 13px; color: var(--c-text); font-weight: 700; }
.stop .lbl span { color: var(--c-text-muted); }
.stop.past { opacity: .55; }
.stop[aria-current="date"] .dot { width: 18px; height: 18px; margin-top: -1px; background: var(--dt); box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 6px var(--dt); }
.stop[aria-current="date"] .lbl b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.stop:hover .lbl b { color: var(--c-accent-text); }
.route .gap { flex: none; width: 46px; display: grid; justify-items: center; align-content: start; padding-top: 22px; font-size: 11px; color: var(--c-text-muted); z-index: 1; }
.route .gap span { background: var(--c-surface); padding: 0 4px; }

/* Tageskopf */
.dayhero { display: grid; grid-template-columns: auto 1fr; gap: var(--space-7); align-items: end; padding: var(--space-6) var(--space-6) var(--space-5); }
.dayhero .date { font-size: var(--text-lg); font-weight: 650; color: var(--c-text-muted); display: flex; gap: 10px; align-items: center; }
.dayhero .city { font-size: var(--text-display); line-height: var(--leading-display); font-weight: var(--weight-display); letter-spacing: -0.02em; margin: 4px 0 0; }
.tag-day { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c-text); background: color-mix(in srgb, var(--dt) 16%, var(--c-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dt) 45%, transparent); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--c-border); }
.fact { padding: 2px var(--space-5); border-right: 1px solid var(--c-border); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text-muted); font-weight: 600; }
.fact b { display: block; font-size: var(--text-base); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact span { display: block; font-size: var(--text-sm); color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ablauf als echte Zeitachse: Abstände = freie Zeit */
.runofshow { position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: 8px 16px 8px 0; }
.ros-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 10px 20px; }
.ros-head h2 { margin: 0; font-size: var(--text-lg); }
.axis { position: relative; margin-left: 64px; border-left: 1px solid var(--c-border); }
.hour { position: absolute; left: -64px; width: 52px; text-align: right; font-size: 12px; color: var(--c-text-muted); font-variant-numeric: tabular-nums; transform: translateY(-50%); }
.hourline { position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--c-border) 60%, transparent); }
.block { position: absolute; left: 12px; right: 0; display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: start; padding: 8px 12px; border-radius: var(--radius-md); background: var(--c-surface-2); border-left: 3px solid var(--c-text-muted); overflow: hidden; }
.block .time { font-size: 15px; }
.block .time small { font-weight: 500; color: var(--c-text-muted); font-size: 13px; }
.block .name { font-weight: 700; }
.block .note { color: var(--c-text-muted); font-size: var(--text-sm); }
.block.point { background: transparent; border-left-color: transparent; padding-top: 0; padding-bottom: 0; transform: translateY(-50%); }
.block.point .name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-text); margin: 0 8px 1px -2px; }
.block.show { background: var(--c-primary); color: var(--c-on-primary); border-left-color: var(--c-accent); }
.block.show .note, .block.show .time small { color: color-mix(in srgb, var(--c-on-primary) 70%, transparent); }
.block.past { opacity: .5; }
.block.restricted { background: repeating-linear-gradient(-45deg, var(--c-surface-2) 0 8px, var(--c-surface) 8px 16px); }
.nowline { position: absolute; left: -6px; right: 0; height: 2px; background: var(--c-accent); z-index: 0; }
.block { z-index: 1; }
.block.now { background: var(--c-accent-soft); border-left-color: var(--c-accent); }
.block .tbc { justify-self: start; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-accent); }
.nowline span { z-index: 2; position: absolute; left: -62px; top: -10px; background: var(--c-accent); color: var(--c-on-accent); font: 700 12px/20px var(--font-sans); padding: 0 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }

/* Schnell hinzufügen in normaler Sprache */
.quickadd { display: grid; gap: 10px; margin: 12px 0 8px 20px; padding: 10px 12px; border-radius: var(--radius-lg); border: 1px dashed var(--c-border-input); background: var(--c-bg); }
.quickadd .line { display: flex; align-items: center; gap: 10px; }
.quickadd input { flex: 1; border: 0; background: transparent; font: 500 var(--text-base)/1.4 var(--font-sans); color: var(--c-text); outline: none; }
.quickadd input::placeholder { color: var(--c-text-muted); }
.parse { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--c-text-muted); }
.parse .tok { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600; }

/* Rechte Spalte: Hinweise und Listen statt Kartenstapel */
.rail { display: grid; gap: var(--space-6); align-content: start; }
.rail h3 { margin: 0 0 8px; font-size: var(--text-sm); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.changes { border-radius: var(--radius-lg); background: var(--c-accent-soft); padding: 12px 14px; display: grid; gap: 8px; }
.changes h3 { color: var(--c-accent-text); margin: 0; }
.change { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: var(--text-sm); }
.change s { color: var(--c-text-muted); }
.list { display: grid; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-border); }
.list .item:first-child { border-top: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item b { display: block; font-size: var(--text-sm); }
.list .item small { color: var(--c-text-muted); font-size: 12px; }
.meter { height: 8px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }

/* Handy */
.now-card { border-radius: var(--radius-xl); background: var(--c-surface); border: 1px solid var(--c-border); padding: 16px; display: grid; gap: 12px; }
.now-card .now { display: grid; gap: 4px; }
.now-card .label { font-size: 13px; font-weight: 700; color: var(--c-accent-text); display: flex; gap: 8px; align-items: center; }
.now-card .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.now-card .title { font-size: 24px; font-weight: 800; line-height: 1.15; }
.progress { height: 6px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--c-accent); border-radius: 999px; }
.next { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--c-border); }
.next b { font-size: 17px; }
.next .in { font-size: 13px; color: var(--c-text-muted); font-weight: 600; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.infochip { flex: none; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-border); min-width: 128px; }
.infochip small { font-size: 12px; color: var(--c-text-muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.infochip b { font-size: 15px; }
.minroute { display: flex; align-items: center; gap: 0; }
.minroute i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--dt); background: var(--c-surface); flex: none; }
.minroute i.on { width: 14px; height: 14px; background: var(--dt); }
.minroute i.past { opacity: .5; }
.minroute b { flex: 1; height: 2px; background: var(--c-border); }

/* ===================== v0.3: Mittelweg – vertraute Liste, Navigation oben, Schnellaktionen ===================== */
.datebar { display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-5); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.datechip { flex: none; display: grid; gap: 1px; min-width: 96px; padding: 7px 12px 8px; border-radius: var(--radius-md); text-decoration: none; color: var(--c-text); border: 1px solid transparent; position: relative; }
.datechip::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--dt, var(--c-day-other)); }
.datechip b { font-size: 13px; font-weight: 700; }
.datechip span { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; }
.datechip:hover { background: var(--c-surface-2); }
.datechip.past { opacity: .5; }
.datechip[aria-current="date"] { background: var(--c-primary); color: var(--c-on-primary); }
.datechip[aria-current="date"] span { color: color-mix(in srgb, var(--c-on-primary) 75%, transparent); }
.day2 { display: grid; grid-template-columns: minmax(0, 1fr) var(--layout-detail-panel); gap: var(--space-7); padding: var(--space-6); align-items: start; }
.dayhead3 { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: var(--space-4); }
.dayhead3 h1 { margin: 2px 0 0; font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.dayhead3 .sub { display: flex; gap: 10px; align-items: center; color: var(--c-text-muted); font-weight: 600; }
.updated { font-size: 12px; color: var(--c-text-muted); display: inline-flex; gap: 6px; align-items: center; }
.updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); }
.changebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-lg); background: var(--c-accent-soft); color: var(--c-text); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.changebar .icon { color: var(--c-accent-text); }
.changebar b { color: var(--c-accent-text); }
.changed { font-size: 11px; font-weight: 700; color: var(--c-accent-text); background: var(--c-accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.was { font-size: 12px; color: var(--c-text-muted); text-decoration: line-through; display: block; font-weight: 500; }
.ev .nowtag { font-size: 11px; font-weight: 700; color: var(--c-on-accent); background: var(--c-accent); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.addrow { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--c-border); color: var(--c-text-muted); }
.addrow input { flex: 1; border: 0; background: transparent; font: 500 var(--text-base)/1.4 var(--font-sans); color: var(--c-text); outline: none; }
.addrow input::placeholder { color: var(--c-text-muted); }
.place { padding: 16px; display: grid; gap: 4px; }
.place + .place { border-top: 1px solid var(--c-border); }
.place .kind { font-size: 12px; font-weight: 700; color: var(--c-text-muted); display: flex; gap: 6px; align-items: center; }
.place b { font-size: 17px; }
.place .addr { color: var(--c-text-muted); font-size: var(--text-sm); }
.place .kv { margin-top: 8px; }
.actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.actions .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.nextup { border-radius: var(--radius-xl); background: var(--c-primary); color: var(--c-on-primary); padding: 16px; display: grid; gap: 2px; }
.nextup small { font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--c-on-primary) 70%, transparent); }
.nextup .row1 { display: flex; justify-content: space-between; align-items: baseline; }
.nextup .big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nextup .what { font-size: 20px; font-weight: 700; }
.ev .tbc { justify-self: start; align-self: start; }
