/* ============================================================
   EventPlaner – Veranstaltungsplanung
   ============================================================ */

:root {
    --blue-950: #0f1f4d;
    --blue-900: #172d6b;
    --blue-800: #1e40af;
    --blue-700: #2447c0;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-200: #bfdbfe;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;

    --slate-900: #0f172a;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    --green-600: #16a34a;
    --green-100: #dcfce7;
    --amber-600: #d97706;
    --amber-100: #fef3c7;
    --red-600:   #dc2626;
    --red-100:   #fee2e2;

    --card: #ffffff;
    --ink: #1e293b;
    --ink-soft: #64748b;
    --line: var(--slate-200);
    --shadow: 0 10px 30px rgba(15, 23, 42, .10);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--slate-100);
    color: var(--ink);
    line-height: 1.5;
}
.hidden { display: none !important; }
.ic { width: 18px; height: 18px; vertical-align: -3px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ============================ KOPF ============================ */
.site-header {
    background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
    color: #fff;
    box-shadow: 0 4px 16px rgba(15,23,42,.2);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--blue-800);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.brand-name { margin: 0; font-size: 1.25rem; line-height: 1.1; font-weight: 800; }
.brand-sub { font-size: .76rem; color: var(--blue-200); }

.header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-divider { width: 1px; height: 26px; background: rgba(255,255,255,.25); margin: 0 2px; }
.sync-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .76rem; font-weight: 600;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 999px;
    padding: 4px 11px;
}
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.sync-pill.ok .sync-dot { background: #4ade80; }
.sync-pill.err .sync-dot { background: #f87171; }
.sync-pill.busy .sync-dot { background: #facc15; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ============================ BUTTONS ============================ */
.btn {
    font: inherit; font-size: .85rem; font-weight: 600;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background .15s, color .15s, border-color .15s, transform .05s;
    white-space: nowrap; background: transparent; color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
.btn-icon { padding: 7px 9px; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff; box-shadow: 0 3px 10px rgba(30,64,175,.35);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-admin { background: #fff; color: var(--blue-800); }
.btn-admin:hover { filter: brightness(.96); }
.btn-danger { background: #fff; color: var(--red-600); border-color: #fca5a5; }
.btn-danger:hover { background: var(--red-600); color: #fff; }
.btn-sm { font-size: .76rem; padding: 4px 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ============================ ADMIN ============================ */
.admin-box { display: flex; align-items: center; gap: 8px; }
.admin-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .76rem; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px; padding: 4px 11px;
}
.admin-label.admin-active { background: var(--amber-100); border-color: #f59e0b; color: var(--amber-600); }
.admin-pw {
    font: inherit; font-size: .82rem; width: 140px;
    padding: 5px 12px; border: 1px solid var(--line);
    border-radius: 999px; outline: none; background: #fff;
}
.admin-pw:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

.admin-hint {
    max-width: 1200px; margin: 12px auto 0; padding: 10px 16px;
    background: var(--amber-100); border: 1px solid #f59e0b;
    color: var(--amber-600); border-radius: 12px; font-size: .86rem;
}

/* ============================ LAYOUT ============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }

.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.page-sub { color: var(--ink-soft); font-size: .86rem; }

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.loading { text-align: center; color: var(--ink-soft); padding: 60px 0; }

/* ============================ DASHBOARD ============================ */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.event-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
    display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,23,42,.14); }
.event-card-top {
    padding: 14px 16px;
    color: #fff;
}
.event-card-top .ev-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.event-card-top .ev-meta { font-size: .78rem; opacity: .92; margin-top: 3px; }
.event-card-body { padding: 12px 16px; flex: 1; }
.ev-progress-label { font-size: .74rem; color: var(--ink-soft); margin-bottom: 4px; }
.ev-bar { height: 8px; border-radius: 999px; background: var(--slate-100); overflow: hidden; }
.ev-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-600), var(--blue-400, #60a5fa)); }
.ev-stats { display: flex; gap: 12px; font-size: .76rem; color: var(--ink-soft); margin-top: 10px; flex-wrap: wrap; }
.event-card-actions {
    display: flex; gap: 6px; padding: 10px 14px;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}
.event-card-actions .btn { font-size: .76rem; }

.empty-state {
    text-align: center; padding: 50px 20px; color: var(--ink-soft);
}
.empty-state .big { font-size: 2.6rem; }

/* ============================ EVENT-ANSICHT ============================ */
.event-hero {
    border-radius: var(--radius);
    color: #fff;
    padding: 18px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}
.event-hero .ev-name { font-size: 1.4rem; font-weight: 800; }
.event-hero .ev-meta { opacity: .9; font-size: .85rem; margin-top: 3px; }
.event-hero .ev-notes { opacity: .92; font-size: .85rem; margin-top: 8px; max-width: 800px; }

.tabs {
    display: flex; gap: 4px; flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.tab {
    border: none; background: transparent; font: inherit;
    font-size: .86rem; font-weight: 600; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 10px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { background: var(--slate-100); }
.tab.active { background: var(--blue-800); color: #fff; }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.section-head h2 { margin: 0; font-size: 1.05rem; }

/* ---------- Überblick ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ov-stat {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px;
    box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.ov-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--blue-800); }
.ov-stat .lbl { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Personalplan (wie Nikolausmarkt) ---------- */
.shift-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 18px; overflow: hidden;
}
.shift-head {
    background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
    color: #fff; padding: 11px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.shift-title { font-weight: 700; font-size: .96rem; }
.shift-subtitle { font-size: .78rem; opacity: .88; }
.shift-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.badge-fill { background: #fff; color: var(--blue-800); border-color: transparent; }
.badge-fill.full { background: var(--green-600); color: #fff; }
.shift-note { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--amber-600); background: var(--amber-100); border-bottom: 1px solid #fde68a; padding: 6px 14px; }

.table-wrap { overflow-x: auto; padding: 6px; }
.plan-table { border-collapse: collapse; width: 100%; }
.plan-table th { background: var(--blue-900); color: #fff; font-weight: 600; font-size: .72rem; padding: 7px 5px; text-align: center; border: 1px solid #14245a; white-space: nowrap; }
.plan-table th.fixed { min-width: 92px; }
.plan-table td { padding: 6px 4px; border: 1px solid var(--line); text-align: center; font-size: .82rem; vertical-align: middle; }
.plan-table td.fixed { background: var(--slate-50); font-weight: 700; font-size: .76rem; white-space: nowrap; }
.plan-table td.fixed .time-empty { color: var(--slate-400); font-weight: 400; }
.slot-cell { min-width: 104px; cursor: pointer; }
.slot-empty { background: #fff; }
.slot-filled { background: var(--green-100); }
.slot-filled:hover { background: #bbf7d0; }
.slot-name { display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: 600; color: #14532d; min-height: 26px; }
.slot-actions { display: flex; gap: 2px; margin-left: auto; }
.slot-action { border: none; background: transparent; cursor: pointer; color: var(--ink-soft); border-radius: 6px; padding: 2px 5px; font-size: .85rem; line-height: 1; }
.slot-action:hover { background: rgba(0,0,0,.08); color: var(--blue-700); }
.btn-signup { width: 100%; padding: 5px 8px; font: inherit; font-size: .76rem; font-weight: 600; color: var(--blue-700); background: #fff; border: 1.5px dashed var(--slate-300); border-radius: 8px; cursor: pointer; min-height: 28px; }
.btn-signup:hover { background: var(--blue-50); border-color: var(--blue-600); }

.plan-list { padding: 8px 12px 12px; }
.pl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--line); }
.pl-row:last-child { border-bottom: none; }
.pl-role { font-size: .83rem; font-weight: 600; color: var(--ink-soft); }
.pl-name { font-size: .88rem; font-weight: 700; color: #14532d; }
.pl-empty-btn { font: inherit; font-size: .78rem; font-weight: 700; color: var(--blue-700); background: #fff; border: 1.5px dashed var(--slate-300); border-radius: 999px; padding: 4px 13px; cursor: pointer; }
.pl-empty-btn:hover { background: var(--blue-50); }

/* ---------- To-dos ---------- */
.todo-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
}
.todo-check {
    width: 22px; height: 22px; border-radius: 7px; flex: none;
    border: 2px solid var(--slate-300); background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: transparent; font-size: .8rem; margin-top: 1px;
}
.todo-check.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.todo-main { flex: 1; min-width: 0; }
.todo-text { font-size: .9rem; }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--slate-400); }
.todo-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.todo-chip { font-size: .7rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.todo-chip.p-hoch { background: var(--red-100); color: var(--red-600); }
.todo-chip.p-mittel { background: var(--amber-100); color: var(--amber-600); }
.todo-chip.p-niedrig { background: var(--slate-100); color: var(--slate-600); }
.todo-chip.assignee { background: var(--blue-100); color: var(--blue-800); }
.todo-chip.due { background: var(--slate-100); color: var(--slate-600); }
.todo-item .btn { font-size: .74rem; padding: 3px 8px; }

/* ---------- Kanban ---------- */
.board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    align-items: start;
}
.board-col {
    background: var(--slate-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
}
.board-col-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-weight: 700; font-size: .84rem; padding: 2px 2px 10px;
}
.board-col-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.board-col-head .c-title { display: flex; align-items: center; gap: 7px; }
.board-col-head .c-count { font-size: .72rem; color: var(--ink-soft); font-weight: 600; }
.board-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(15,23,42,.05);
    cursor: grab;
}
.board-card.dragging { opacity: .5; }
.board-card .k-title { font-weight: 700; font-size: .86rem; }
.board-card .k-desc { font-size: .78rem; color: var(--ink-soft); margin-top: 3px; white-space: pre-wrap; }
.board-card .k-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.board-card .k-meta .todo-chip { font-size: .68rem; }
.board-card-actions { display: flex; gap: 4px; margin-top: 8px; justify-content: flex-end; }
.board-card-actions .btn { font-size: .7rem; padding: 2px 8px; }
.board-col.drop-hint { outline: 2px dashed var(--blue-500); outline-offset: -2px; }

/* ---------- Personen ---------- */
.person-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 8px;
}
.person-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--blue-100); color: var(--blue-800);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex: none;
}
.person-main { flex: 1; min-width: 0; }
.person-name { font-weight: 700; font-size: .9rem; }
.person-detail { font-size: .76rem; color: var(--ink-soft); }

/* ---------- Anmeldungen ---------- */
.reg-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.reg-title { font-weight: 800; font-size: 1rem; }
.reg-desc { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.reg-form {
    background: var(--slate-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.reg-empty {
    color: var(--slate-400); font-size: .84rem; text-align: center;
    padding: 16px; border: 1.5px dashed var(--line); border-radius: 12px;
}
.reg-list { }
.reg-row2 {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 4px; border-bottom: 1px dashed var(--line);
}
.reg-row2:last-child { border-bottom: none; }
.reg-row-main { flex: 1; min-width: 0; }
.reg-row-name { font-weight: 700; font-size: .9rem; }
.reg-row-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }

/* ---------- Export ---------- */
.export-opt {
    display: flex; gap: 14px; align-items: flex-start;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.export-opt:hover { border-color: var(--blue-600); background: var(--blue-50); }
.export-opt-ic {
    width: 44px; height: 44px; flex: none;
    border-radius: 12px;
    background: var(--blue-100); color: var(--blue-800);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.export-opt-t { font-weight: 800; font-size: .95rem; }
.export-opt-d { font-size: .8rem; color: var(--ink-soft); margin-top: 3px; }
.export-box {
    border: 1.5px dashed var(--blue-500);
    border-radius: 12px;
    background: var(--blue-50);
    padding: 16px;
    margin-bottom: 16px;
}
.export-box h3 { margin: 0 0 6px; font-size: 1rem; }
.export-box p { margin: 0 0 12px; font-size: .85rem; color: var(--ink-soft); }

/* ============================ EDITOR (Schichten) ============================ */
.editor-shift {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    margin-bottom: 12px; background: var(--slate-50);
}
.editor-shift.editor-new { animation: editorFlash 1.6s ease; border: 1.5px solid var(--blue-600); }
@keyframes editorFlash { 0% { background: var(--blue-100); } 100% { background: var(--slate-50); } }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.editor-grid .full { grid-column: 1 / -1; }
.editor-field label { display: block; font-size: .7rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 3px; }
.editor-field input, .editor-field textarea {
    width: 100%; font: inherit; font-size: .84rem; padding: 7px 10px;
    border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff;
}
.editor-field textarea { resize: vertical; min-height: 60px; }
.editor-field input:focus, .editor-field textarea:focus { border-color: var(--blue-600); }
.editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.editor-head .eidx { font-size: .7rem; color: var(--slate-400); font-weight: 700; }

/* ============================ MODALS ============================ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px; z-index: 60;
}
.modal-card {
    position: relative; background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    width: 100%; max-width: 460px; max-height: 90vh;
    overflow-y: auto; padding: 22px;
}
.modal-wide { max-width: 780px; }
.modal-close { position: absolute; top: 10px; right: 12px; border: none; background: transparent; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }
.modal-close:hover { color: var(--blue-700); }
.modal-title { margin: 0 0 10px; font-size: 1.15rem; }
.modal-sub { margin: 0 0 12px; font-size: .82rem; color: var(--ink-soft); }
.modal-info { background: var(--slate-50); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }
.modal-info strong { display: block; }
.modal-info .mi-sub { font-size: .76rem; color: var(--ink-soft); }
.modal-info .mi-role { display: inline-block; margin-top: 6px; font-size: .76rem; font-weight: 700; color: var(--blue-800); background: var(--blue-100); border-radius: 999px; padding: 3px 10px; }
.name-input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; }
.name-input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; font: inherit; font-size: .9rem; padding: 9px 12px;
    border: 1.5px solid var(--line); border-radius: 10px; outline: none; background: #fff;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.suggestion { font: inherit; font-size: .76rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-soft); }
.suggestion:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
.suggestions-empty { font-size: .74rem; color: var(--slate-400); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions-between { justify-content: space-between; }

/* ============================ TOASTS ============================ */
.toast-wrap { position: fixed; top: 74px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.toast { background: #fff; border-left: 4px solid var(--green-600); border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.18); padding: 11px 14px; font-size: .84rem; animation: slidein .25s ease; }
.toast.err { border-left-color: var(--red-600); }
.toast.warn { border-left-color: var(--amber-600); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ============================ FUSS ============================ */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 16px 16px 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; font-size: .8rem; color: var(--ink-soft); }
.footer-note { font-size: .74rem; color: var(--slate-400); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 640px) {
    .plan-table-wrap { display: none; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
@media (min-width: 641px) {
    .plan-list-wrap { display: none; }
}

/* ============================ DRUCKVERSION ============================ */
@media print {
    body { background: #fff; }
    .header-right, .tabs, .toolbar-divider, .admin-box, .btn, .modal-overlay, .toast-wrap { display: none !important; }
    .plan-list-wrap { display: none !important; }
    .plan-table-wrap { display: block !important; }
    .shift-card { break-inside: avoid; box-shadow: none; }
}

/* Einzelne Helferplätze im Schicht-Editor */
.ed-role-list{display:flex;flex-direction:column;gap:6px;margin:6px 0 8px}
.ed-role-row{display:flex;gap:8px;align-items:center}
.ed-role-row input.ed-role{flex:1;min-width:0;width:auto}
.ed-role-row .ed-role-del{flex:none;white-space:nowrap}
@media(max-width:480px){.ed-role-row .ed-role-del{font-size:.7rem;padding:6px 8px}}

/* Reihenfolge der Schichten */
.editor-head{gap:8px;flex-wrap:wrap}
.ed-order-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ed-order-actions button:disabled{opacity:.4;cursor:not-allowed}

.ed-role-up,.ed-role-down{flex:none;min-width:36px;padding:6px 9px}
.ed-role-up:disabled,.ed-role-down:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:440px){.ed-role-row{flex-wrap:wrap}.ed-role-row input.ed-role{flex:1 1 100%;width:100%}}
