/* Einsatzplan 1.6 (Ergänzung zu app.css): Ziehen/Kopieren, Wochenende grau, Dialoge, Hinweisleiste. Textkontrast ≥ 4,5:1. */

.plan-chip { position: relative; display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--brand); background: var(--brand-soft); color: var(--ink); border-radius: 8px; padding: 6px 22px 6px 8px; margin: 0 0 4px; cursor: grab; font-size: 0.82rem; min-height: 44px; }
.plan-chip:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 1px; }
.plan-chip.ser { border-left-style: double; border-left-width: 6px; }
.plan-ser { color: var(--brand-strong); font-weight: 700; }
.plan-grip { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 5px; font-size: 0.8rem; cursor: copy; color: var(--muted); background: var(--card); border: 1px solid var(--line); opacity: 0.55; }
.plan-chip:hover .plan-grip, .plan-grip:hover, .plan-grip:focus { opacity: 1; color: var(--brand-strong); }
.plan-row .plan-chip { cursor: pointer; padding-right: 8px; }
.plan-row .plan-grip { display: none; }

/* Zellen: Ablegen markieren, Wochenende ohne Plan grau (Stempeln gesperrt) */
.plan-grid td.drop { outline: 2px dashed var(--brand-strong); outline-offset: -2px; background: var(--brand-soft); }
.plan-grid td.wk-locked, .plan-grid th.we { background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, var(--card) 6px, var(--card) 12px); color: var(--muted); }
.plan-grid th.we { background: var(--bg); }
.plan-lock { display: block; color: var(--muted); font-size: 0.72rem; text-align: center; padding-top: 14px; }
.plan-help { margin: 8px 12px 10px; }
.day-tabs button.we { color: var(--muted); }
.card.wk-locked { background: var(--bg); border-style: dashed; }

/* Hinweisleiste mit «Rückgängig» (nach Ziehen/Kopieren/Löschen) */
.plan-notice { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--forest); color: var(--forest-ink); box-shadow: var(--shadow); }
.plan-notice span { flex: 1; font-size: 0.9rem; }
.plan-notice .icon-btn { background: transparent; color: var(--forest-ink); border-color: var(--forest-2); }
@media (min-width: 900px) { .plan-notice { left: auto; right: 24px; bottom: 24px; max-width: 520px; } }

/* Warnungen nach dem Speichern (nur Hinweis, gespeichert ist trotzdem) */
.plan-warns { background: var(--warn-soft); color: var(--ink); border: 1px solid var(--warn); border-left-width: 5px; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.plan-warns ul { margin: 4px 0 8px; padding-left: 18px; }
.plan-warns li { margin: 3px 0; }

/* Dialoge */
.plan-pick, .plan-days { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-pick-item, .plan-day-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; }
.plan-pick-item.on, .plan-day-pick.on { border-color: var(--brand); background: var(--brand-soft); }
.plan-day-pick.we { color: var(--muted); }
.plan-days { max-height: 320px; overflow: auto; }
.plan-line { padding: 10px 12px; }
.plan-scope { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.plan-scope .check { min-height: 44px; }
.plan-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.plan-actions .btn { min-height: 48px; }
.plan-add { min-height: 44px; padding: 0 8px; }
.plan-undo-row { min-height: 44px; border-top: 1px solid var(--line); }
.plan-log { list-style: none; margin: 6px 0 0; padding: 0; }
.plan-log li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan-log li:first-child { border-top: 0; }

/* Kalender: Wochenende und Serien wie im Plan */
.cal-day.we { background: var(--bg); }
.cal-chip .plan-ser { margin-right: 2px; }
