/* CHEX · Fahrten-Seite: Umschalter Liste/Kalender, Filter und Monatskalender. */
.ride-tools { display: flex; align-items: center; gap: 8px; margin: 22px 0 6px; }
.view-switch { flex: none; }
.view-switch button { display: grid; place-items: center; width: 44px; padding: 0; color: var(--text-2); }
.view-switch button.on { color: var(--text); }
.view-switch svg { width: 20px; height: 20px; }
.ride-tools select {
  flex: 1 1 0; min-width: 0; max-width: 220px; min-height: 36px; padding: 4px 30px 4px 12px; border-radius: 980px; font-size: 14px;
  transition: background-color .2s, color .2s;
}
.ride-tools select.set { background-color: var(--text); color: var(--bg); font-weight: 600; }
/* schmale Handys (360 px): etwas enger, damit „Alle Fahrten“ nicht abgeschnitten wird */
@media (max-width: 400px) {
  .view-switch button { width: 38px; }
  .ride-tools select { padding: 4px 24px 4px 10px; font-size: 13.5px; background-position: right 9px center; }
}
/* mit Fahrer-Filter (mehrere Fahrer) sind es drei Auswahlen: als waagerecht wischbare Zeile, damit nichts abgeschnitten wird */
.ride-tools:has([data-driver]) { overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; }
.ride-tools:has([data-driver])::-webkit-scrollbar { display: none; }
.ride-tools:has([data-driver]) select { flex: 0 0 auto; width: auto; max-width: none; }
@media (min-width: 760px) { .ride-tools:has([data-driver]) { overflow: visible; margin-inline: 0; padding: 0; } .ride-tools:has([data-driver]) select { flex: 1 1 0; max-width: 220px; } }
.suggest-hint { margin: 22px 0 6px; }
.add-stop { display: block; margin-top: 12px; font-size: 15px; }

.calendar { padding: 14px 12px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h2 { font-size: 19px; }
.cal-head .icon-btn { width: 38px; height: 38px; font-size: 24px; line-height: 1; color: var(--accent); }
.cal-head .icon-btn:disabled { color: var(--text-3, #c7c7cc); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 2px 0 4px; }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 64px; padding: 6px 2px;
  border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; cursor: pointer;
  transition: background .2s, transform .2s var(--spring);
}
.cal-day.blank { cursor: default; }
.cal-day b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; font-weight: 600; }
.cal-day.has { background: var(--fill-2); }
.cal-day.past { color: var(--text-2); }
.cal-day.past .cal-ride { opacity: .5; }
.cal-day.today b { color: var(--accent); }
.cal-day.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.sel b { background: var(--accent-bg, var(--accent)); color: #fff; }
.cal-day.paused { background: repeating-linear-gradient(135deg, var(--fill-2) 0 6px, transparent 6px 12px); }
.cal-day:not(.blank):active { transform: scale(.94); }
.cal-rides { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.cal-ride { width: calc(100% - 4px); max-width: 46px; padding: 1px 0; border-radius: 6px; font-size: 10.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.cal-ride.free { background: var(--green-soft); color: var(--green); }
.cal-ride.mine { background: var(--accent); color: #fff; }
.cal-ride.full, .cal-ride.past { background: var(--fill-2); color: var(--text-2); }
.cal-ride.off { color: var(--text-2); text-decoration: line-through; }
.cal-more { font-size: 10px; color: var(--text-2); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 4px 0; font-size: 12px; color: var(--text-2); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.cal-legend .mine { background: var(--accent); }
.cal-legend .free { background: var(--green); }
.cal-legend .full { background: var(--text-2); opacity: .4; }
.cal-legend .paused { background: repeating-linear-gradient(135deg, var(--text-2) 0 2px, transparent 2px 4px); }
.cal-list { margin-top: 18px; }
@media (min-width: 720px) { .cal-day { min-height: 82px; } .cal-ride { font-size: 12px; max-width: 64px; } }
@media (prefers-reduced-motion: reduce) { .cal-day, .ride-tools select { transition: none; } }
