/* ===== v5 Design: ruhiger, übersichtlicher (lädt nach style.css) =====
   Grundregeln: eine Hauptfarbe (--primary-color) für die wichtigste Aktion, Grau für Nebensächliches,
   Rot nur für Warnungen und Löschen. Mehr Weißraum, weniger Rahmen und Schatten. */

:root {
  --d-bg: #f4f5f2;
  --d-card: #ffffff;
  --d-line: #e3e5e0;
  --d-text: #1f2a22;
  --d-muted: #5b655e;
  --d-radius: 14px;
  --d-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
}
body { background: var(--d-bg); color: var(--d-text); }
.as-layout, .admin-layout { background: var(--d-bg); }

/* Karten: flacher, mehr Luft */
.card, .admin-card, .tasks-container {
  border-radius: var(--d-radius) !important;
  box-shadow: var(--d-shadow) !important;
  border: 1px solid var(--d-line);
  padding: 22px !important;
  margin-bottom: 22px !important;
}
.as-header, .admin-header {
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 0 !important;
  margin-bottom: 14px !important;
}
.admin-card h2, .card h2 { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 14px; }

/* Emojis nur im Menü und auf Knöpfen – nicht in jeder Überschrift (a11y.js packt sie in span[aria-hidden]) */
.admin-card h2 > span[aria-hidden="true"]:first-child, .admin-card h3 > span[aria-hidden="true"]:first-child,
.card h2 > span[aria-hidden="true"]:first-child, .card h3 > span[aria-hidden="true"]:first-child,
.as-header h1 > span[aria-hidden="true"]:first-child, .admin-header h1 > span[aria-hidden="true"]:first-child { display: none; }

/* ===== Knöpfe: ein Hauptknopf, Rest ruhig ===== */
.btn { border-radius: 10px; }
.btn-danger {
  background: #fff !important;
  color: #b3261e !important;
  border: 1px solid #e6b8b4 !important;
}
.btn-danger:hover { background: #fdecea !important; }
/* Telegram-Knöpfe (bisher knallblau) als ruhige Zweitknöpfe */
button[style*="#2ea6ff"] {
  background: #fff !important;
  color: var(--d-text) !important;
  border: 1px solid var(--d-line) !important;
}
/* „Foto hinzufügen“ unauffälliger */
.info-photo-upload .btn-sm, .info-photo-upload label.btn {
  background: transparent !important;
  color: var(--d-muted) !important;
  border: 1px dashed #b9beb6 !important;
}

/* ===== Datum: schlichte Zeile statt rotem Balken + gelben Knöpfen ===== */
.date-nav { gap: 10px !important; margin-bottom: 18px !important; flex-wrap: nowrap !important; }
.date-display {
  background: transparent !important;
  color: var(--d-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  min-width: 0 !important;
  flex: 1;
  padding: 6px 4px !important;
}
.date-nav .btn-sm {
  background: #fff !important;
  color: var(--d-text) !important;
  border: 1px solid var(--d-line) !important;
  border-radius: 999px !important;
  white-space: nowrap;
}
.date-nav .date-arrow-label { }
@media (max-width: 600px) {
  .date-nav .date-arrow-label { display: none; } /* am Handy nur Pfeile (Name bleibt für Screenreader) */
  .date-nav .btn-sm { min-width: 44px; min-height: 44px; font-size: 18px !important; padding: 0 !important; }
  .date-display { font-size: 17px !important; }
}

/* ===== Jeden Tag: Fortschritt oben, Erledigtes unten ===== */
.day-progress { margin: 0 0 18px; }
.day-progress-text { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.day-progress-bar { height: 12px; background: #e6e9e3; border-radius: 999px; overflow: hidden; }
.day-progress-fill { height: 100%; background: var(--primary-color); border-radius: 999px; transition: width .3s; }
.stats-info { display: none; } /* Zahl steht jetzt oben im Fortschritt */
.tasks-container { padding: 14px !important; }
.task-item { border-radius: 12px !important; margin-bottom: 10px !important; box-shadow: none !important; }
.done-section { margin-top: 14px; border-top: 1px solid var(--d-line); padding-top: 10px; }
.done-section > summary { cursor: pointer; font-weight: 700; color: var(--d-muted); padding: 8px 4px; list-style: none; }
.done-section > summary::-webkit-details-marker { display: none; }
.done-section > summary::before { content: '▸ '; }
.done-section[open] > summary::before { content: '▾ '; }
.task-section-title { font-size: 14px; font-weight: 700; color: var(--d-muted); text-transform: uppercase; letter-spacing: .04em; margin: 6px 4px 8px; }

/* ===== Admin: Wochentage aufklappbar ===== */
details.day-card > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; }
details.day-card > summary::-webkit-details-marker { display: none; }
details.day-card > summary h2 { margin: 0 !important; }
details.day-card > summary::after { content: '▸'; margin-left: auto; color: var(--d-muted); }
details.day-card[open] > summary::after { content: '▾'; }
details.day-card[open] > summary { margin-bottom: 14px; }
.day-count { color: var(--d-muted); font-weight: 600; }

/* ===== Lange Erklärtexte hinter „ⓘ“ ===== */
details.card-help { margin: -6px 0 14px; }
details.card-help > summary { cursor: pointer; color: var(--d-muted); font-size: 14px; display: inline-block; padding: 4px 0; }
details.card-help > p { margin-top: 6px !important; }

/* ===== Handy: Menüleiste unten statt Kacheln oben ===== */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    background: #fff; border-top: 1px solid var(--d-line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }
  .bottom-nav button {
    flex: 1; min-width: 0; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; border-radius: 10px; color: var(--d-muted); font-size: 13px; font-weight: 600;
    position: relative;
  }
  .bottom-nav button .bn-icon { font-size: 22px; line-height: 1; }
  .bottom-nav button .bn-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bottom-nav button.active { color: var(--primary-color); background: #eef3ea; }
  .bottom-nav .info-badge { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; }

  /* Seitenleiste nur noch als „Mehr“-Blatt */
  .as-sidebar, .admin-sidebar { display: none !important; }
  body.sheet-open .as-sidebar, body.sheet-open .admin-sidebar {
    display: block !important; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 9995;
    max-height: 85vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 16px 90px !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  }
  /* Im Blatt: nur die Punkte, die nicht schon unten stehen, als Liste untereinander */
  body.sheet-open :is(.as-sidebar, .admin-sidebar) li.in-bar { display: none; }
  body.sheet-open :is(.as-menu, .admin-menu) { display: block; }
  body.sheet-open :is(.as-menu-item, .admin-menu-item) { margin: 0 0 8px; min-width: 0; }
  body.sheet-open :is(.as-menu-btn, .admin-menu-btn) { width: 100%; text-align: left; padding: 14px 16px; font-size: 16px; }
  body.sheet-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 9994; }
  .as-content, .admin-content { padding-bottom: 96px !important; }
  #helpFab { bottom: 76px !important; }
  #helpBubble { bottom: 150px !important; }
  #helpPanel { bottom: 76px !important; }
  .version-badge { bottom: 76px !important; }
}

/* ===== Tabellen am Handy als Karten ===== */
@media (max-width: 600px) {
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; width: 100% !important; }
  table.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stacked tr { background: #fff; border: 1px solid var(--d-line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  table.stacked td { border: none !important; padding: 4px 0 !important; text-align: left !important; }
  table.stacked td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; font-weight: 700; color: var(--d-muted); }
}

/* Leichte Sprache bleibt größer (a11y.js) */
html.ls .bottom-nav button { font-size: 13px; }

/* Korrekturen nach Sichtprüfung */
.date-nav { flex-direction: row !important; }
.date-display { min-width: 0 !important; }
.day-progress, .tasks-container { margin-right: 0; }
@media (min-width: 769px) { .as-sidebar, .admin-sidebar { padding-bottom: 160px !important; } } /* Platz für die Hilfe-Figur (links unten in der Menüleiste) */
@media (max-width: 768px) {
  .version-badge { display: none !important; }
}

/* Kontrastkorrektur (a11y.js) sofort wirksam, ohne Überblenden */
[data-a11y-fg], [data-a11y-bg] { transition: none !important; }

/* Textfeld unter jeder Zeitauswahl (design.js): Zeitfeld + Textfeld als Paar, gleich breit */
.time-pair { display: inline-flex; flex-direction: column; gap: 6px; vertical-align: top; max-width: 100%; }
.time-pair.full { display: flex; width: 100%; }
.time-pair > input[type="time"] { margin: 0; }
input.time-text { width: 0; min-width: 100%; margin: 0; padding: 8px 12px; font-size: 16px; border: 1px dashed var(--d-line, #999); border-radius: 8px; box-sizing: border-box; background: transparent; color: inherit; }
input.time-text::placeholder { color: #767676; }
input.time-text:focus { border-style: solid; }
input.time-text.invalid { border: 2px solid #c0392b; }

/* Termine im Dienstplan (common.js) */
.appt-badge { display: inline-block; margin: 0 0 4px; padding: 3px 8px; min-height: 28px; font-size: 13px; font-weight: 700; border: 1px solid #1b6fa8; border-radius: 12px; background: #eaf3fb; color: #0f4c78; cursor: pointer; }
.appt-day-overlay { position: fixed; inset: 0; z-index: 10050; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.appt-day-box { background: #fff; color: #222; border-radius: 12px; padding: 18px 20px; max-width: 420px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.appt-day-box h3 { margin: 0 0 10px; }
.appt-day-list { list-style: none; padding: 0; margin: 0 0 14px; }
.appt-day-list li { padding: 8px 0; border-bottom: 1px solid #eee; }
.appt-day-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html.dark .appt-day-box { background: #1b1f1c; color: #eee; }
html.dark .appt-badge { background: #12324a; color: #e6f2fb; border-color: #5aa0d6; }

/* Tippflächen auf Touch-Geräten mindestens 44 × 44 px (D8, WCAG 2.5.5).
   „Leichter tippen“ (a11y-touch, style.css) macht sie noch größer. */
@media (pointer: coarse) {
  :is(button, .btn, [role="button"], select):not(.bottom-nav button):not(.appt-badge) { min-height: 44px; min-width: 44px; }
  input[type="checkbox"], input[type="radio"] { min-width: 24px; min-height: 24px; }
  .appt-badge { min-height: 36px; }
}

/* Bestätigungsdialog (common.js appConfirm) */
.app-confirm-overlay { position: fixed; inset: 0; z-index: 10060; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.app-confirm-box { background: #fff; color: #222; border-radius: 14px; padding: 22px 22px 18px; max-width: 440px; width: 100%; box-shadow: 0 12px 44px rgba(0, 0, 0, 0.3); }
.app-confirm-msg { font-size: 18px; line-height: 1.5; margin: 0 0 18px; white-space: pre-line; }
.app-confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-confirm-actions .btn { flex: 1 1 140px; min-height: 48px; font-size: 17px; }
html.dark .app-confirm-box { background: #1b1f1c; color: #eee; }

/* „↩️ Zurück in die Liste“ bei erledigten Aufgaben (client.js addBackButton) */
.task-item .task-back-btn { margin: 6px 0 0 auto; display: block; }

/* Kalender → Erinnerungen (admin.js renderCustomReminders) */
.cr-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--d-line, #e5e5e5); }
.cr-row:last-of-type { border-bottom: 0; }
.cr-main { display: flex; flex-direction: column; gap: 2px; min-width: 200px; flex: 1; }
.cr-when, .cr-who { color: #555; font-size: 14px; }
.cr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cr-off .cr-main { opacity: 0.6; }
html.dark .cr-when, html.dark .cr-who { color: #bbb; }

/* 💡 Rückmeldung (common.js renderFeedbackPage / admin.js renderAdminFeedback) */
.fb-intro { color: #444; line-height: 1.55; margin-bottom: 16px; }
.fb-intro ul { margin: 6px 0 8px 20px; }
.fb-form { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.fb-form textarea { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; border: 1px solid var(--border-color, #ccc); border-radius: 8px; }
.fb-kinds { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.fb-kinds legend { font-weight: 600; margin-bottom: 6px; }
.fb-kinds label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; }
.fb-msg { min-height: 1.3em; font-weight: 600; margin: 0; }
.fb-mail { color: #444; line-height: 1.55; margin: 18px 0 0; max-width: 620px; }
.fb-mail a { font-weight: 600; overflow-wrap: anywhere; }
.fb-mine { list-style: none; padding: 0; margin: 0; }
.fb-mine li { padding: 10px 0; border-bottom: 1px solid var(--d-line, #e5e5e5); }
.fb-mine li span { color: #666; font-size: 14px; }
.fb-mine li div { white-space: pre-wrap; margin-top: 4px; }
.fb-item { padding: 14px 0; border-bottom: 1px solid var(--d-line, #e5e5e5); }
.fb-item.done { opacity: 0.6; }
.fb-item .fb-head { color: #555; font-size: 14px; margin-bottom: 6px; }
.fb-item .fb-text { white-space: pre-wrap; line-height: 1.5; }
.fb-item img { max-width: 260px; max-height: 260px; border-radius: 8px; margin-top: 8px; display: block; cursor: zoom-in; }
.fb-item .fb-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
html.dark .fb-intro, html.dark .fb-mail, html.dark .fb-mine li span, html.dark .fb-item .fb-head { color: #ccc; }

/* Stunden-Feld unter dem Dienstplan (Assistenz, reminders-ui.js renderMyHoursBox) */
.my-hours-box { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.my-hours-box > div, .my-hours-box > label { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--d-line, #ddd); }
.mh-label { font-size: 13px; color: #555; }
.mh-added .mh-val { font-size: 17px; font-weight: 600; }
.mh-total { background: var(--primary-color, #498100); border-color: transparent !important; color: #fff; min-width: 140px; }
.mh-total .mh-label { color: #fff; }
.mh-total .mh-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
label.mh-confirm { flex-direction: row !important; align-items: center !important; gap: 10px; cursor: pointer; font-weight: 600; }
label.mh-confirm input { width: 26px; height: 26px; }
.mh-hint { color: #666; font-size: 13px; margin-top: 8px; }
html.dark .mh-label, html.dark .mh-hint { color: #bbb; }
html.high-contrast .mh-total { background: #ffe600; color: #000; }
html.high-contrast .mh-total .mh-label { color: #000; }

/* Dienstplan: passt ohne Wischen auf die Seite (wie in der Assistenzansicht), Fr–So und Feiertage
   gelb-orange wie beim zukünftigen Dienstplan, Hervorheben der Dienste einer Person */
#scheduleGrid .schedule-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
#scheduleGrid .schedule-grid th, #scheduleGrid .schedule-grid td { padding: 4px 6px; min-width: 0; }
#scheduleGrid .schedule-grid th { font-size: 13px; }
.schedule-grid td.dp-week { font-weight: 700; }
.schedule-grid th.dp-we { background: #fff3e0 !important; color: #7a4100 !important; }
.schedule-grid td.dp-we { background: #fffaf2; }
.schedule-grid td.dp-hol { background: #fff3e0; }
.dp-hol-name { font-size: 12px; font-weight: 700; color: #7a4100; margin-bottom: 4px; }
.shift-chip.hl, #asGrid .shift-chip.hl { background: #fff3c4 !important; box-shadow: inset 0 0 0 2px #d39e00; font-weight: 700; }
.dp-hl-on .shift-chip:not(.hl) { opacity: 0.35; }
.dp-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.dp-legend-label { font-size: 13px; color: #555; margin-right: 2px; }
.dp-legend-btn { border: 1px solid #ccc; border-left: 5px solid #1e7d45; background: #fff; border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.dp-legend-btn.active { background: #fff3c4; border-color: #d39e00; font-weight: 700; }
html.dark .schedule-grid th.dp-we { background: #4a3413 !important; color: #ffe0b2 !important; }
html.dark .schedule-grid td.dp-we { background: #2a2216; }
html.dark .schedule-grid td.dp-hol { background: #3a2a12; }
html.dark .dp-hol-name { color: #ffcc80; }
html.dark .shift-chip.hl, html.dark #asGrid .shift-chip.hl { background: #4d3d00 !important; }
html.dark .dp-legend-btn { background: #1b1f1c; color: #eee; border-color: #555; }
html.dark .dp-legend-btn.active { background: #4d3d00; }
html.high-contrast .schedule-grid :is(th.dp-we, td.dp-we, td.dp-hol) { background: #000 !important; color: #fff !important; outline: 2px solid #ffe600; outline-offset: -2px; }
html.high-contrast .dp-hol-name { color: #ffe600; }
html.high-contrast .shift-chip.hl { background: #ffe600 !important; color: #000 !important; }
html.high-contrast .shift-chip.hl * { color: #000 !important; }
html.high-contrast .dp-hl-on .shift-chip:not(.hl) { opacity: 0.5; }
/* Ab 1100 px (z. B. iPad quer, Computer) passt der Dienstplan immer auf die Seite: feste Spaltenaufteilung, Text bricht um.
   Am Handy bleibt seitliches Wischen (12 Spalten wären sonst unlesbar schmal). */
@media (min-width: 1100px) {
  :is(#scheduleGrid, #asGrid) .schedule-grid { table-layout: fixed; width: 100%; }
  :is(#scheduleGrid, #asGrid) .schedule-grid :is(th, td) { min-width: 0 !important; overflow-wrap: anywhere; hyphens: auto; }
  :is(#scheduleGrid, #asGrid) .schedule-grid th:first-child { width: 64px; }
  :is(#scheduleGrid, #asGrid) .schedule-grid .shift-chip { padding: 3px 4px; font-size: 12px; }
  :is(#scheduleGrid, #asGrid) .schedule-grid .shift-chip span { font-size: 12px !important; }
  :is(#scheduleGrid, #asGrid) .schedule-grid th { font-size: 12px; padding: 4px 3px; }
}

/* Zukünftige Dienstpläne (Assistenz): Zahl, wie viele an dem Tag können */
.prelim-count { font-size: 14px; font-weight: 700; color: #2c3e50; margin: 2px 0 4px; }
html.dark .prelim-count { color: #e6e6e6; }
html.high-contrast .prelim-count { color: #fff; }
/* PDF/Druck (Dienstplan-PDF per Telegram, Monats-Archiv): ganze Tabelle auf die Seite, ohne Bedienknöpfe */
body.print-mode #scheduleGrid .schedule-grid, body.print-mode #scheduleGrid .schedule-grid { table-layout: fixed; width: 100%; }
body.print-mode #scheduleGrid .schedule-grid :is(th, td) { min-width: 0 !important; overflow-wrap: anywhere; }
body.print-mode #scheduleGrid .schedule-grid th:first-child { width: 64px; }
body.print-mode #scheduleGrid .shift-chip, body.print-mode #scheduleGrid .shift-chip span { font-size: 11px !important; }
body.print-mode .dp-legend, body.print-mode .add-shift { display: none !important; }
@media print {
  #scheduleGrid .schedule-grid { table-layout: fixed; width: 100%; }
  #scheduleGrid .schedule-grid :is(th, td) { min-width: 0 !important; overflow-wrap: anywhere; }
  .dp-legend { display: none !important; }
}
/* PDF per Telegram (print-compact): nur die Dienstplan-Tabelle */
body.print-compact #scheduleGridCard > :not(:first-child):not(#scheduleGrid),
body.print-compact #schedule > .admin-card:not(#scheduleGridCard),
body.print-compact .dp-extra-row { display: none !important; }
body.print-mode .page:not(#schedule) { display: none !important; }

/* Teammeeting im Dienstplan: unübersehbar, aber nur eine Zeile (common.js teammeetingBadgeHtml) */
.dp-tm { display: block; width: 100%; box-sizing: border-box; margin: 0 0 4px; padding: 3px 6px; border: 0; border-radius: 6px; background: #1f3a8a; color: #fff; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.25; text-align: left; white-space: normal; letter-spacing: 0.01em; }
button.dp-tm { cursor: pointer; }
button.dp-tm:focus-visible { outline: 3px solid #ffbf00; outline-offset: 1px; }
html.dark .dp-tm { background: #8fb3ff; color: #0b1530; }
html.high-contrast .dp-tm { background: #ffe600 !important; color: #000 !important; }
body.print-mode .dp-tm { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dp-tm, .dp-tm * { overflow-wrap: normal !important; word-break: normal; hyphens: manual; }

/* Monats-Abrechnung: Geringfügigkeit (admin.js renderBilling) */
.minor-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.minor-under { background: #dcf5dc; color: #14532d; }
.minor-over { background: #fde2e0; color: #8a1c13; }
.minor-none { background: #eee; color: #444; }
.minor-note { color: #555; font-size: 13px; white-space: nowrap; }
.minor-limit { margin: 12px 0 4px; }
.minor-hint { color: #555; font-size: 13px; margin: 0; }
html.dark .minor-note, html.dark .minor-hint { color: #ccc; }
.minor-changes { margin: 12px 0 4px; padding: 10px 14px; border-radius: 10px; background: #fff6cc; color: #222; border: 1px solid #d9b93b; }
.minor-changes p { margin: 0 0 4px; }
.minor-changes ul { margin: 0 0 0 20px; }

/* Die Version steht nur noch unter Einstellungen → System („Installierte Version“) */
.version-badge { display: none !important; }

/* Drive: Hinweis im geschützten Ordner „Daten Assistenz“ */
.drive-private-hint { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #fff6cc; color: #222; border: 1px solid #d9b93b; font-size: 14px; font-weight: 400; }

/* Dienstplan: Kalender-Export (.ics) */
.ics-export { margin-top: 14px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.ics-export a.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.ics-export p { margin: 0; color: #555; font-size: 13px; flex: 1; min-width: 220px; }
html.dark .ics-export p { color: #ccc; }
body.print-mode .ics-export { display: none; }
.ics-feed { flex-basis: 100%; display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.ics-feed:empty { display: none; }
.ics-feed a.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.ics-feed p { flex-basis: 100%; min-width: 0; }
.ics-feed .ics-warn { color: #8a4b00; }
html.dark .ics-feed .ics-warn { color: #ffcf8a; }
/* Knöpfe im Export-Kasten: in beiden Ansichten gleich (Links bekommen sonst keine Knopf-Farbe) */
.ics-export .btn { background: #ececec; color: #111; border: 1px solid #b9b9b9; border-radius: 8px; }
.ics-export .btn.btn-primary { background: var(--primary-color, #498100); color: #fff; border-color: transparent; }
html.dark .ics-export .btn:not(.btn-primary) { background: #2a2a2a; color: #fff; border-color: #666; }
