@import url("../fonts/fonts.css"); /* E-188: Schriften lokal statt von Google */

body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.ov-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.ov-stack { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); max-width: 520px; }
.ov-icon { flex: none; display: block; }

/* Button */
.ov-btn { font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; white-space: nowrap; }
.ov-btn-md { height: 44px; padding: 0 var(--space-4); font-size: 15px; }
.ov-btn-sm { height: 32px; padding: 0 var(--space-3); font-size: 13px; border-radius: var(--radius-sm); }
.ov-btn-lg { height: 52px; padding: 0 var(--space-6); font-size: 17px; }
.ov-btn-primary { background: var(--petrol); color: var(--on-petrol); }
.ov-btn-primary:hover { background: var(--petrol-strong); }
.ov-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.ov-btn-secondary:hover { background: var(--petrol-soft); border-color: var(--petrol); }
.ov-btn-ghost { background: none; color: var(--petrol); }
.ov-btn-ghost:hover { background: var(--petrol-soft); }
.ov-btn-danger { background: var(--alert-soft); color: var(--alert); }
.ov-btn-danger:hover { border-color: var(--alert); }
.ov-btn-accent { background: var(--lime); color: var(--on-lime); }
.ov-btn:disabled { opacity: .45; cursor: not-allowed; }
.ov-btn:focus-visible, .ov-input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }

/* Status pill */
.ov-pill { display: inline-flex; align-items: center; gap: var(--space-1); height: 26px; padding: 0 10px 0 8px; border-radius: var(--radius-pill); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.ov-pill-ok { background: var(--ok-soft); color: var(--ok); }
.ov-pill-warn { background: var(--warn-soft); color: var(--warn); }
.ov-pill-alert { background: var(--alert-soft); color: var(--alert); }
.ov-pill-info { background: var(--petrol-soft); color: var(--petrol); }
.ov-pill-neutral { background: var(--surface-sunken); color: var(--ink-muted); }

/* Text field */
.ov-field { display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.ov-label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.ov-input-wrap { display: flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-3); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink-muted); }
.ov-input-wrap:focus-within { border-color: var(--petrol); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.ov-input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.ov-input::placeholder { color: var(--ink-muted); }
.ov-hint { display: flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.ov-field-error .ov-input-wrap { border-color: var(--alert); }
.ov-field-error .ov-hint { color: var(--alert); }

/* Leg (Abschnitt im Zeitstrahl) */
.ov-leg { display: grid; grid-template-columns: 64px 16px 1fr; column-gap: var(--space-3); padding: var(--space-3) 0; }
.ov-leg-times { display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.ov-time { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-time-stack { display: flex; flex-direction: column; }
.ov-time-late { color: var(--alert); }
.ov-time-old { font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink-muted); }
.ov-leg-rail { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.ov-leg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--petrol); background: var(--surface-raised); box-sizing: border-box; flex: none; }
.ov-leg-line { flex: 1; width: 3px; background: var(--petrol); border-radius: 2px; margin: 2px 0; min-height: 36px; }
.ov-leg-body { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-2); }
.ov-leg-from, .ov-leg-to { font-weight: 600; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.ov-track { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.ov-leg-line-name { display: flex; align-items: center; gap: var(--space-2); color: var(--petrol); font-weight: 600; font-size: 14px; }
.ov-leg-walk .ov-leg-line { background: none; border-left: 3px dotted var(--line-strong); width: 0; }
.ov-leg-walk .ov-leg-dot { border-color: var(--line-strong); }
.ov-leg-walk .ov-leg-line-name { color: var(--ink-muted); font-weight: 500; }
.ov-leg-cancelled .ov-leg-line { background: var(--alert); }
.ov-leg-cancelled .ov-leg-dot { border-color: var(--alert); }

/* Transfer card */
.ov-transfer { border-radius: var(--radius-lg); padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-3); }
.ov-transfer-ok { background: var(--ok-soft); border-color: transparent; }
.ov-transfer-warn { background: var(--warn-soft); border-color: transparent; }
.ov-transfer-alert { background: var(--alert-soft); border-color: transparent; }
.ov-transfer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.ov-transfer-title { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; }
.ov-transfer-calc { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-transfer-verdict { margin: 0; font-size: 15px; }

/* Alert */
.ov-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--petrol-soft); color: var(--ink); }
.ov-alert > .ov-icon { color: var(--petrol); }
.ov-alert-ok { background: var(--ok-soft); } .ov-alert-ok > .ov-icon { color: var(--ok); }
.ov-alert-warn { background: var(--warn-soft); } .ov-alert-warn > .ov-icon { color: var(--warn); }
.ov-alert-alert { background: var(--alert-soft); } .ov-alert-alert > .ov-icon { color: var(--alert); }
.ov-alert-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ov-alert-title { font-weight: 700; }
.ov-alert-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
