/* ══════════════════════════════════════════════════════════
   vm_style.css  –  dailyvision.app Styles
   ══════════════════════════════════════════════════════════ */

/* ── Reset & CSS-Variablen ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f0e8;
  --surface: #ffffff;
  --border: #e2ddd5;
  --text: #2a2a2a;
  --text-muted: #777;
  --primary: #3d5a3e;
  --primary-d: #2d4530;
  --accent: #7a791b;
  --gold: #c9a227;
  --danger: #c0392b;
  --warn: #e67e22;
  --fels-bg: #fffbf0;
  --fels-border: #c9a227;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.15s,
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  opacity: 0.88;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.prio-count {
  opacity: 0.85;
  font-weight: 700;
}
.prio-count:empty {
  display: none;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--border);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 0.8rem;
}
.btn-lg {
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  border-radius: 999px;
}
.btn-lg:hover {
  transform: translateY(-1px);
}

/* ── Layout ─────────────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-logo {
  font-size: 1.4rem;
}
.header-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.header-actions-desktop,
.header-actions-desktop-extra {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-new-task {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 20px;
  gap: 0.5rem;
}
.btn-new-task:hover {
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.btn-mic {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn-mic:hover {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}
.btn-mic.recording {
  background: rgba(220, 38, 38, 0.8);
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
  animation: micPulse 1s ease-in-out infinite;
}
.btn-mic.thinking {
  background: rgba(255, 184, 0, 0.7);
  border-color: var(--gold);
}
.btn-mic.thinking::after {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute;
}
.btn-mic.thinking {
  font-size: 0;
  position: relative;
}
@keyframes micPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1);
  }
}

.voice-transcript-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.3rem 0 0.8rem;
}

header .btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}
header .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}
header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.25rem;
}

/* ── Filter-Leiste ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-btn-danger.active,
.filter-btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.filter-btn-prio-hoch.active,
.filter-btn-prio-hoch:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.filter-btn-prio-mittel.active,
.filter-btn-prio-mittel:hover {
  background: #b7770d;
  border-color: #b7770d;
  color: #fff;
}
.filter-btn-prio-niedrig.active,
.filter-btn-prio-niedrig:hover {
  background: #666;
  border-color: #666;
  color: #fff;
}

.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 0.1rem;
  flex-shrink: 0;
}

/* ── Tages-Fortschritt ──────────────────────────────────── */
.day-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}
.day-progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.day-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 6px;
}
.day-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .day-progress-fill {
  background: #5a8a5a;
}

/* ── Deep Work Overlay ──────────────────────────────────── */
.dw-overlay {
  position: fixed;
  inset: 0;
  background: #0d1a0d;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.dw-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dw-content {
  text-align: center;
  color: #ddeadd;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.dw-header-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #5a8a5a;
  text-transform: uppercase;
}
.dw-task-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ddeadd;
  line-height: 1.4;
  max-width: 340px;
}
.dw-dur-pick {
  display: flex;
  gap: 0.5rem;
}
.dw-dur-btn {
  background: transparent;
  border: 1.5px solid #2c3a2c;
  color: #7a9a7a;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.dw-dur-btn.active,
.dw-dur-btn:hover {
  border-color: #5a8a5a;
  color: #ddeadd;
  background: #1e3a1e;
}
.dw-time-preview {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ddeadd;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", monospace;
}
.dw-start-btn {
  background: #3d6b3d;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  letter-spacing: 0.03em;
}
.dw-start-btn:hover {
  background: #4d7d4d;
  transform: scale(1.03);
}
.dw-exit-link {
  background: none;
  border: none;
  color: #3a5a3a;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s;
}
.dw-exit-link:hover {
  color: #7a9a7a;
}
/* Running state */
.dw-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}
.dw-ring {
  width: 220px;
  height: 220px;
  transform: rotate(-90deg);
}
.dw-ring-bg {
  fill: none;
  stroke: #1e2e1e;
  stroke-width: 8;
}
.dw-ring-fill {
  fill: none;
  stroke: #4d8a4d;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.dw-time-big {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #ddeadd;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", monospace;
}
.dw-run-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.dw-pause-btn {
  background: transparent;
  border: 1.5px solid #3a5a3a;
  color: #ddeadd;
  border-radius: 50px;
  padding: 0.65rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 160px;
}
.dw-pause-btn:hover {
  border-color: #5a8a5a;
  background: #1e3a1e;
}
/* Done state */
.dw-done-icon {
  font-size: 3.5rem;
}
.dw-done-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ddeadd;
}
.dw-done-msg {
  font-size: 0.95rem;
  color: #7a9a7a;
  max-width: 300px;
}
/* Fels card layout */
.fels-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.fels-dw-btn {
  flex-shrink: 0;
  align-self: center;
}

/* ── Fels-Aufgabe ───────────────────────────────────────── */
.fels-card {
  background: var(--fels-bg);
  border: 2px solid var(--fels-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.fels-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.fels-titel {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.fels-reason {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Task-Liste ─────────────────────────────────────────── */
.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}
.section-heading:first-child {
  margin-top: 0;
}
.section-heading--danger {
  color: var(--danger);
  border-bottom: 1.5px solid #fce8e8;
  padding-bottom: 0.25rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s,
    opacity 0.15s;
}
.task-card:hover {
  border-color: #c8c0b4;
}
.task-card--ghost {
  opacity: 0.35;
  background: var(--bg);
  border: 1.5px dashed var(--primary);
}
.task-card--chosen {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}
.drag-handle {
  color: var(--text-muted);
  cursor: grab;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 0;
  flex-shrink: 0;
  margin-top: 1px;
  user-select: none;
}
.task-card:hover .drag-handle {
  opacity: 0.45;
}
.drag-handle:hover {
  opacity: 0.8 !important;
}
.drag-handle:active {
  cursor: grabbing;
}
@media (max-width: 700px) {
  .drag-handle {
    opacity: 0.3;
  }
}
.task-card.done {
  opacity: 0.55;
}
.task-card.in-arbeit {
  border-left: 3px solid var(--accent);
}

.task-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-check:hover {
  border-color: var(--primary);
}
.task-card.done .task-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 11px;
}

.task-body {
  flex: 1;
  min-width: 0;
}
.task-titel {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.task-card.done .task-titel {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}
.task-ki-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.3rem;
}
.task-notiz {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  white-space: pre-wrap;
}

.task-actions {
  display: flex;
  flex-direction: row;
  gap: 0.2rem;
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.task-card:hover .task-actions,
.task-card:focus-within .task-actions {
  opacity: 1;
  pointer-events: auto;
}
.task-actions .btn {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-area {
  background: #e8f0e8;
  color: #3d5a3e;
}
.badge-prio-hoch {
  background: #fdecea;
  color: #c0392b;
}
.badge-prio-mittel {
  background: #fef9e7;
  color: #b7770d;
}
.badge-prio-niedrig {
  background: #f0f0f0;
  color: #666;
}
.badge-rang {
  background: #e8e4f8;
  color: #5843be;
  font-size: 0.7rem;
}
.badge-fels {
  background: #fdf3dc;
  color: #9a6700;
}
.badge-in-arbeit {
  background: #fff3e0;
  color: var(--warn);
}
.badge-recur {
  background: #e0f0ff;
  color: #1565c0;
}
.badge-dl {
  background: #fce8e8;
  color: #c0392b;
  font-size: 0.72rem;
}
.badge-dl-ok {
  background: #f0f0f0;
  color: #555;
  font-size: 0.72rem;
}

.dl-soon {
  color: var(--warn);
  font-weight: 600;
}
.dl-overdue {
  color: var(--danger);
  font-weight: 600;
}

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.2rem;
}
.modal-close:hover {
  color: var(--text);
}

/* ── Form ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group label span {
  font-weight: 400;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary);
  background: #fff;
}
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}
.form-control:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 2.6rem;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--text);
}
.password-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
.password-toggle .icon-eye-off {
  display: none;
}
.password-toggle.is-visible .icon-eye {
  display: none;
}
.password-toggle.is-visible .icon-eye-off {
  display: block;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}
.form-row .form-group {
  flex: 1;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Pill-Gruppen ───────────────────────────────────────── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  padding: 0.38rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.13s;
  white-space: nowrap;
}
.pill:hover {
  border-color: #b0a898;
  color: var(--text);
}
.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pill.active-hoch {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.pill.active-mittel {
  background: #b7770d;
  border-color: #b7770d;
  color: #fff;
}
.pill.active-niedrig {
  background: #666;
  border-color: #666;
  color: #fff;
}
.pill.active-in-arbeit {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Quick-Buttons (Datum/Zeit) ─────────────────────────── */
.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}
.quick-btn {
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.13s;
}
.quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.quick-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Settings-Panel ─────────────────────────────────────── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  z-index: 401;
  padding: 1.75rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.34, 1.1, 0.64, 1);
  will-change: transform;
}
.panel-overlay.open .panel {
  transform: translateX(0);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.panel-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Bereiche-Manager ───────────────────────────────────── */
.bereich-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.bereich-item-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
}
.bereich-item-actions {
  display: flex;
  gap: 0.3rem;
}
#bereichEditRow {
  display: flex;
}
#bereichEditRow .form-control {
  padding: 0.45rem 0.75rem;
}

/* ── Toast ──────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 5.5rem;
  right: 1.75rem;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.toast.error {
  background: var(--danger);
}
.toast.success {
  background: var(--primary);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* kleiner Spinner (weiß, für dunkle Hintergründe) */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* kleiner Spinner (dunkel, für helle/transparente Hintergründe wie btn-outline) */
.spinner-dark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* größerer Spinner (grün, für helle Flächen) */
.spinner-lg {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* zentrierter Ladebereich für Task-Liste und Panel */
.vm-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.empty-state .btn {
  margin-top: 1rem;
}

/* ── Vision Walkthrough ─────────────────────────────────── */
.wt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wt-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.wt-modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}
.wt-overlay.open .wt-modal {
  transform: translateY(0) scale(1);
}

.wt-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}
.wt-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.2s;
}
.wt-dot.done {
  background: var(--primary);
}
.wt-dot.active {
  background: var(--gold);
}

.wt-step {
  display: none;
}
.wt-step.active {
  display: block;
}

.wt-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.wt-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.wt-q {
  margin-bottom: 1.1rem;
}
.wt-q label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.wt-q label em {
  font-weight: 400;
  color: var(--text-muted);
  font-style: normal;
}

.wt-q textarea,
.wt-q input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  resize: vertical;
}
.wt-q textarea {
  min-height: 72px;
}
.wt-q textarea:focus,
.wt-q input:focus {
  border-color: var(--primary);
  background: #fff;
}
.wt-q-row {
  display: flex;
  gap: 0.75rem;
}
.wt-q-row .wt-q {
  flex: 1;
}

.wt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}
.wt-nav-left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wt-result {
  background: #f0f5f0;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 1rem;
}
.wt-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
  .task-actions {
    opacity: 1;
    pointer-events: auto;
  }
  header .btn span {
    display: none;
  }
  .wt-q-row {
    flex-direction: column;
  }
}

/* ── Auth-Seiten (Login, Register, Passwort etc.) ────────── */
.auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}
.auth-card h1 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-d);
}
.auth-card .alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.auth-card .alert-error {
  background: #fbeae8;
  color: var(--danger);
  border: 1px solid #f3c9c4;
}
.auth-card .alert-success {
  background: #eef3ec;
  color: var(--primary-d);
  border: 1px solid #cfdfd0;
}
.auth-links {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
}
.auth-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}
.remember-me-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.remember-me-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Header: Icon-Buttons & Dropdown-Menüs ─────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.icon-btn:hover,
.icon-btn.active {
  background: rgba(255, 255, 255, 0.15);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  z-index: 200;
}
.dropdown-menu.open {
  display: flex;
}
.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--bg);
}
.dropdown-menu .lang-option.active {
  color: var(--primary);
}
.dropdown-menu a svg,
.dropdown-menu button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.2rem;
}

/* ── Header: Hamburger-Menü für Mobile ─────────────────────── */
.header-actions-mobile {
  display: none;
}

/* ── Header: Login-Link für Gäste ──────────────────────────── */
.header-login-link {
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s;
}
.header-login-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Mobile-first Header-Anpassungen ───────────────────────── */
.btn-new-task-mobile {
  display: none;
}
.btn-mic--mobile {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
}
@media (max-width: 640px) {
  header {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-actions .btn span {
    display: none;
  }
  .btn-new-task {
    padding: 0.5rem 0.85rem;
  }

  /* Header-Center (großer "Neues To-do"-Button) wandert nach unten
     als volle Breite und ersetzt den kleinen Button im Header. */
  .header-center {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .btn-new-task-mobile {
    display: flex;
    margin-bottom: 0;
  }
  .btn-mic--mobile {
    display: flex;
  }

  /* Einzelne Buttons/Dropdowns ausblenden, Hamburger-Menü zeigen */
  .header-actions-desktop,
  .header-actions-desktop-extra {
    display: none;
  }
  .header-actions-mobile {
    display: block;
  }

  .dropdown-menu-mobile {
    min-width: 230px;
    padding: 0.5rem;
  }
  .dropdown-menu-mobile a,
  .dropdown-menu-mobile button {
    padding: 0.85rem 0.9rem;
    font-size: 1rem;
    gap: 0.75rem;
  }
  .dropdown-menu-mobile svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ── Landingpage ────────────────────────────────────────── */
.landing {
  flex: 1;
}

.landing-hero {
  text-align: left;
  padding: 4.5rem 1.5rem;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-d) 100%);
  color: #fff;
  overflow: hidden;
}
.landing-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.landing-hero-content {
  flex: 1 1 480px;
  min-width: 0;
}
.landing-hero-media {
  flex: 1 1 420px;
  min-width: 0;
}
.landing-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.landing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.landing-hero-serif {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 100;
  font-size: 3.2rem;
}
.landing-lead {
  max-width: 460px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}
.landing-cta-group {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.landing-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.landing-hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}
.landing-hero-shot {
  border-radius: 14px;
}
.landing-hero-shot .landing-shot-fallback {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
}
.landing-hero-shot .landing-shot-fallback-path {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--gold);
}
.landing-hero-shot img {
}

.landing-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}
.landing-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-d);
}
.landing-section-title {
  margin-bottom: 2.5rem;
}
.landing-problem p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}
.landing-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.landing-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-d);
}
.landing-feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.landing-feature-card--gold {
  border-color: var(--fels-border);
  background: var(--fels-bg);
}

.landing-testimonial-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-testimonial {
  max-width: 680px;
  margin: 0 auto;
}
.landing-testimonial-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
  border: 2px solid var(--fels-border);
  box-shadow: var(--shadow);
}
.landing-testimonial-quote {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--text);
}
.landing-testimonial-author {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.landing-cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.landing-cta-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-d);
  margin-bottom: 0.75rem;
}
.landing-cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.landing-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Screenshot-Platzhalter: zeigt echtes Bild, sonst Fallback ─ */
.landing-shot {
  position: relative;
  display: block;
}
.landing-shot img {
  display: block;
  width: 90%;
  border-radius: var(--radius);
}
.landing-shot-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 9 / 16;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}
.landing-shot--missing img {
  display: none;
}
.landing-shot--missing .landing-shot-fallback {
  display: flex;
}
.landing-shot-fallback-icon {
  font-size: 2.2rem;
}
.landing-shot-fallback-label {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 220px;
}
.landing-shot-fallback-path {
  font-size: 0.72rem;
  font-family: monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  color: var(--primary-d);
}
.landing-shot--wide .landing-shot-fallback {
  aspect-ratio: 16 / 10;
}

/* ── Showcase: Bild + Text nebeneinander ─────────────────────── */
.landing-showcase {
  max-width: 1040px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.landing-showcase--reverse .landing-showcase-media {
  order: 2;
}
.landing-showcase--reverse .landing-showcase-text {
  order: 1;
}
.landing-showcase-text {
  text-align: left;
}
.landing-showcase-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.landing-showcase-text h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.landing-showcase-text p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}
.landing-showcase-media {
  min-width: 0;
}
/* Bild liegt direkt am Text an statt zentriert mit Leerraum zu schweben.
   inline-block + text-align ist hier zuverlässiger als fit-content/margin:auto. */
.landing-showcase:not(.landing-showcase--reverse) .landing-showcase-media {
  text-align: right;
}
.landing-showcase--reverse .landing-showcase-media {
  text-align: left;
}
.landing-showcase-media .landing-shot {
  display: inline-block;
  width: auto;
  max-width: 78%;
}
.landing-showcase-media .landing-shot img {
  display: block;
  width: auto;
  max-width: 100%;
}

/* ── Extra-Features: kompaktes Grid ──────────────────────────── */
.landing-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}
.landing-extra-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.landing-extra-card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}
.landing-extra-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.landing-extra-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Site-Footer (Impressum/Datenschutz/AGB) ───────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.site-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.site-footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.site-footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Legal-Seiten (Impressum, Datenschutz, AGB) ────────────── */
.legal-page {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.legal-page h1 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--primary-d);
}
.legal-page h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--primary-d);
}
.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}
.legal-page ul {
  margin: 0.5rem 0 0.5rem 1.25rem;
}
.legal-page .legal-back {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.legal-page .legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .landing-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .landing-hero-content {
    text-align: center;
  }
  .landing-lead {
    margin: 0 auto 2rem;
  }
  .landing-cta-group {
    justify-content: center;
  }
  .landing-hero-media {
    width: 100%;
  }
  .landing-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .landing-showcase--reverse .landing-showcase-media {
    order: 1;
  }
  .landing-showcase--reverse .landing-showcase-text {
    order: 2;
  }
  .landing-showcase-media {
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
  }
  .landing-showcase-media .landing-shot {
    max-width: 100%;
  }
  .landing-showcase-text,
  .landing-showcase-text h2 {
    text-align: center;
  }
  .landing-extra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 3rem 1.25rem 2.5rem;
  }
  .landing-hero h1 {
    font-size: 1.7rem;
  }
  .landing-section {
    padding: 2.5rem 1.25rem;
  }
  .landing-features {
    grid-template-columns: 1fr;
  }
  .landing-extra-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Admin Bar ──────────────────────────────────────────────── */
.admin-bar {
  background: #1a2e1b;
  border-bottom: 1px solid #0d1a0e;
}
.admin-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  height: 36px;
}
.admin-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}
.admin-bar a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s;
}
.admin-bar a:hover,
.admin-bar a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── Admin Log Page ─────────────────────────────────────────── */
.admin-log-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admin-log-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}
.admin-log-total {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-log-filter {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-log-filter select {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
.admin-log-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.admin-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-log-table th {
  background: var(--bg);
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-log-table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-log-table tr:last-child td {
  border-bottom: none;
}
.admin-log-table tr:hover td {
  background: var(--bg);
}
.admin-log-time {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.admin-log-email {
  font-weight: 500;
}
.admin-log-name {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.admin-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.admin-log-action {
  white-space: nowrap;
}
.admin-log-detail {
  color: var(--text-muted);
  max-width: 300px;
  font-size: 0.82rem;
}
.admin-log-pagination {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  justify-content: center;
}
.admin-log-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.admin-log-pagination a.active,
.admin-log-pagination a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Admin User Management ──────────────────────────────────── */
.admin-user-edit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-user-edit-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-user-edit-close {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.admin-user-edit-close:hover {
  background: var(--bg);
  color: var(--text);
}
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .admin-edit-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
}
.admin-edit-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.admin-users-table .admin-user-row-blocked td {
  opacity: 0.6;
}
.admin-user-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.admin-status-ok {
  background: #e6f4ea;
  color: #2d7a3e;
}
.admin-status-warn {
  background: #fff3cd;
  color: #856404;
}
.admin-status-err {
  background: #fde8e8;
  color: #b91c1c;
}
.admin-user-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-xs {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 6px;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* ── Impersonation Bar ──────────────────────────────────────── */
.impersonation-bar {
  background: var(--gold);
  color: #1a1208;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.impersonation-bar strong {
  font-weight: 700;
}
.impersonation-end-btn {
  background: rgba(0, 0, 0, 0.18);
  color: #1a1208;
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.impersonation-end-btn:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* ── Confirm Modal ──────────────────────────────────────────── */
.vm-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 16, 0.5);
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.vm-confirm-overlay.vm-confirm-open {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}
.vm-confirm-dialog {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  text-align: center;
  transform: translateY(16px) scale(0.95);
  transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1);
  will-change: transform;
}
.vm-confirm-overlay.vm-confirm-open .vm-confirm-dialog {
  transform: translateY(0) scale(1);
}
.vm-confirm-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.vm-confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.vm-confirm-msg {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.vm-confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.vm-confirm-actions .btn {
  min-width: 120px;
}

/* ── Passwort-Stärke-Anzeige ────────────────────────────────── */
.pw-strength {
  margin-top: 0.5rem;
}
.pw-strength-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 0.3rem;
}
.pw-strength-bar span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.25s;
}
.pw-strength[data-score="1"] .pw-strength-bar span:nth-child(-n + 1) {
  background: #e53e3e;
}
.pw-strength[data-score="2"] .pw-strength-bar span:nth-child(-n + 2) {
  background: #dd6b20;
}
.pw-strength[data-score="3"] .pw-strength-bar span:nth-child(-n + 3) {
  background: #d69e2e;
}
.pw-strength[data-score="4"] .pw-strength-bar span:nth-child(-n + 4) {
  background: #38a169;
}
.pw-strength-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.25s;
  min-height: 1em;
}
.pw-strength[data-score="1"] .pw-strength-label {
  color: #e53e3e;
}
.pw-strength[data-score="2"] .pw-strength-label {
  color: #dd6b20;
}
.pw-strength[data-score="3"] .pw-strength-label {
  color: #d69e2e;
}
.pw-strength[data-score="4"] .pw-strength-label {
  color: #38a169;
}

/* ── Vision-Highlight bei Settings-Auto-Fokus ───────────────── */
@keyframes inputPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 90, 62, 0.5);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(61, 90, 62, 0.15);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(61, 90, 62, 0.2);
  }
}
.input-highlight {
  animation: inputPulse 0.6s ease forwards;
  border-color: var(--primary) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════ */

/* Übergangsanimation beim Wechsel – nur für Farben, nicht für Layout */
html[data-theme] body,
html[data-theme] .task-card,
html[data-theme] .modal-overlay,
html[data-theme] header,
html[data-theme] .dropdown-menu,
html[data-theme] .panel,
html[data-theme] .form-control {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.15s ease;
}

[data-theme="dark"] {
  --bg: #161b16;
  --surface: #1e261e;
  --border: #2c3a2c;
  --text: #ddeadd;
  --text-muted: #7a9a7a;
  --primary: #4a7050;
  --primary-d: #3d5a3e;
  --fels-bg: #211f0d;
  --fels-border: #c9a227;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* ── Dark: Body & Basis ─────────────────────────────────── */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* ── Dark: Formfelder ───────────────────────────────────── */
[data-theme="dark"] .form-control {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .form-control:focus {
  background: var(--surface);
  border-color: var(--primary);
}

/* ── Dark: Task-Karten ──────────────────────────────────── */
[data-theme="dark"] .task-card {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .task-card.done {
  background: #161b16;
  border-color: var(--border);
}

/* ── Dark: Badges ───────────────────────────────────────── */
[data-theme="dark"] .badge-area {
  background: #1a2e1a;
  color: #7cc87e;
}
[data-theme="dark"] .badge-prio-hoch {
  background: #3a1515;
  color: #f07070;
}
[data-theme="dark"] .badge-prio-mittel {
  background: #322a0a;
  color: #d4a840;
}
[data-theme="dark"] .badge-prio-niedrig {
  background: #252b25;
  color: #aaa;
}
[data-theme="dark"] .badge-rang {
  background: #1e1a30;
  color: #a090e0;
}
[data-theme="dark"] .badge-fels {
  background: #2a2205;
  color: #d4a840;
}
[data-theme="dark"] .badge-in-arbeit {
  background: #2d1f0a;
  color: #e67e22;
}
[data-theme="dark"] .badge-recur {
  background: #0d1e30;
  color: #6aabf0;
}
[data-theme="dark"] .badge-dl {
  background: #3a1515;
  color: #f07070;
}
[data-theme="dark"] .badge-dl-ok {
  background: #252b25;
  color: #aaa;
}

/* ── Dark: Toasts ───────────────────────────────────────── */
[data-theme="dark"] .toast {
  background: #2d4030;
}
[data-theme="dark"] .toast.error {
  background: var(--danger);
}
[data-theme="dark"] .toast.success {
  background: var(--primary);
}

/* ── Dark: Alerts (Auth & Admin) ────────────────────────── */
[data-theme="dark"] .alert-error,
[data-theme="dark"] .auth-card .alert-error {
  background: #3a1515;
  color: #f09090;
  border-color: #6a2a2a;
}
[data-theme="dark"] .alert-success,
[data-theme="dark"] .auth-card .alert-success {
  background: #1a2e1a;
  color: #7cc87e;
  border-color: #2a4a2a;
}

/* ── Dark: Filter-Pills ─────────────────────────────────── */
[data-theme="dark"] .pill {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}
[data-theme="dark"] .pill:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ── Dark: Dropdown-Menü ────────────────────────────────── */
[data-theme="dark"] .dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="dark"] .dropdown-menu a,
[data-theme="dark"] .dropdown-menu button,
[data-theme="dark"] .lang-option {
  color: var(--text);
}
[data-theme="dark"] .dropdown-menu a:hover,
[data-theme="dark"] .lang-option:hover {
  background: var(--border);
}
[data-theme="dark"] .dropdown-divider {
  border-color: var(--border);
}

/* ── Dark: Walkthrough-Ergebnis & Vision ────────────────── */
[data-theme="dark"] .wt-result {
  background: #1a2e1a;
  color: var(--text);
}
[data-theme="dark"] .wt-modal,
[data-theme="dark"] .wt-header,
[data-theme="dark"] .wt-step {
  background: var(--surface);
  color: var(--text);
}

/* ── Dark: Admin-Badges ─────────────────────────────────── */
[data-theme="dark"] .admin-status-ok {
  background: #1a2e1a;
  color: #5ac87a;
}
[data-theme="dark"] .admin-status-warn {
  background: #2a2010;
  color: #d4a840;
}
[data-theme="dark"] .admin-status-err {
  background: #3a1515;
  color: #f07070;
}
[data-theme="dark"] .admin-user-row-blocked {
  background: #2a1515;
}
[data-theme="dark"] .admin-log-table tr:hover {
  background: var(--border);
}

/* ── Dark: Theme-Toggle-Icon Sichtbarkeit ───────────────── */
.theme-toggle-btn .icon-sun {
  display: none;
}
.theme-toggle-btn .icon-moon {
  display: block;
}
[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: none;
}

/* Mobile: Label-Toggle */
.theme-label-dark {
  display: none;
}
.theme-label-light {
  display: inline;
}
[data-theme="dark"] .theme-label-dark {
  display: inline;
}
[data-theme="dark"] .theme-label-light {
  display: none;
}

/* ── Priorisierung: Credits aufgebraucht ────────────────────── */
#prioBtn.prio-limit-reached {
  opacity: 0.55;
  cursor: not-allowed;
}
#prioBtn.prio-limit-reached:hover {
  opacity: 0.65;
}

/* ── Keyboard-Shortcut-Hints ────────────────────────────────── */
.kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid currentColor;
  opacity: 0.55;
  letter-spacing: 0;
  flex-shrink: 0;
  vertical-align: middle;
  transition: opacity 0.15s;
}

/* Header-Buttons (dunkler/gold Hintergrund) */
.btn-new-task .kbd-hint,
.btn-gold .kbd-hint {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  margin-left: 6px;
}

.btn-new-task:hover .kbd-hint,
.btn-gold:hover .kbd-hint {
  opacity: 0.8;
}

/* Filter-Buttons: corner badge via data-key */
.filter-btn {
  position: relative;
}
.filter-btn[data-key]::after {
  content: attr(data-key);
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.5rem;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  line-height: 1;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 3px;
  opacity: 0.75;
  pointer-events: none;
}
.filter-btn.active[data-key]::after {
  background: var(--primary-d);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 0.9;
}
.filter-btn-danger.active[data-key]::after {
  background: var(--danger);
}
.filter-btn-prio-hoch.active[data-key]::after {
  background: #c0392b;
}
.filter-btn-prio-mittel.active[data-key]::after {
  background: #b7770d;
}
.filter-btn-prio-niedrig.active[data-key]::after {
  background: #666;
}

/* Search bar shortcut hint */
.kbd-hint-search {
  font-size: 0.6rem;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  opacity: 0.65;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}

/* Mobile: alle Hints ausblenden */
@media (max-width: 700px) {
  .kbd-hint,
  .kbd-hint-search {
    display: none;
  }
  .filter-btn[data-key]::after {
    display: none;
  }
}

/* ── Task-Suche ────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 0.45rem 2rem 0.45rem 2.1rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus {
  border-color: var(--primary);
}
.search-input::placeholder {
  color: var(--text-muted);
}
.search-clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  opacity: 0.7;
}
.search-clear:hover {
  opacity: 1;
  background: var(--border);
}
[data-theme="dark"] .filter-btn[data-key]::after {
  background: var(--surface);
}

/* ── Onboarding-Overlay ────────────────────────────────────── */
.ob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.ob-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ob-modal {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.ob-overlay.open .ob-modal {
  transform: translateY(0);
}
.ob-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition:
    background 0.2s,
    transform 0.2s;
}
.ob-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}
.ob-dot.done {
  background: var(--primary);
  opacity: 0.4;
}
.ob-step {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  animation: obFadeIn 0.25s ease;
}
.ob-step.active {
  display: flex;
}
@keyframes obFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.ob-icon {
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
}
.ob-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0;
}
.ob-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}
.ob-steps-list {
  list-style: none;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}
.ob-steps-list li {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.3rem 0;
}
.ob-steps-list li + li {
  border-top: 1px solid var(--border);
}
.ob-num {
  margin-right: 0.5rem;
}
.ob-wt-hint {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--fels-bg);
  border: 1.5px solid var(--fels-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.ob-wt-hint .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.ob-vision {
  min-height: 120px;
  resize: vertical;
}
.ob-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.ob-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ob-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 540px) {
  .ob-modal {
    margin: 1rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* ══ VOICE INFO MODAL ══════════════════════════════════════════ */
.voice-info-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.voice-info-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.voice-info-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  z-index: 1101;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.5rem;
  width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.voice-info-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.voice-info-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
}
.voice-info-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.voice-info-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
  text-align: center;
}
.voice-info-examples {
  list-style: none;
  padding: 0;
  margin: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.voice-info-examples li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text);
  font-style: italic;
}
.voice-info-examples li::before {
  content: "🎙 ";
  font-style: normal;
}
.voice-info-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 1.25rem;
}
.voice-info-footer {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ══ STREAK ════════════════════════════════════════════════════ */
.day-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.day-progress-row .day-progress {
  flex: 1;
  margin-bottom: 0;
}
.streak-chip {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff6b1a 0%, #ff9500 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  cursor: default;
  box-shadow: 0 2px 6px rgba(255, 107, 26, 0.35);
  animation: streakPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes streakPop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Celebration overlay ──────────────────────────────────────── */
.streak-cel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.streak-cel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.streak-cel-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 340px;
  width: calc(100vw - 2rem);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.streak-cel-overlay.open .streak-cel-card {
  transform: scale(1);
}
.streak-cel-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: celebBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes celebBounce {
  from {
    transform: scale(0) rotate(-15deg);
  }
  to {
    transform: scale(1) rotate(0deg);
  }
}
.streak-cel-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.streak-cel-streak {
  font-size: 1rem;
  color: #ff6b1a;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

/* ══ MORGEN-BRIEFING ═══════════════════════════════════════════ */
.briefing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.briefing-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.briefing-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  width: min(460px, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 4px solid var(--primary);
}
.briefing-overlay.open .briefing-card {
  transform: translateY(0) scale(1);
}
.briefing-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.briefing-emoji {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.briefing-greeting {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.briefing-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.briefing-text {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
.briefing-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.briefing-fels {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.briefing-fels-label {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
}
.briefing-streak {
  font-size: 0.82rem;
  color: #ff6b1a;
  font-weight: 600;
}
.briefing-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.95rem;
}

/* ══ PRIO LOADING SCREEN ═══════════════════════════════════════ */
.prio-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.prio-loading-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.prio-loading-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  width: min(340px, calc(100vw - 3rem));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(6px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.prio-loading-overlay.open .prio-loading-card {
  transform: translateY(0);
}
.prio-loading-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  animation: prioIconSpin 2s linear infinite;
}
@keyframes prioIconSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(10deg) scale(1.1);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
  75% {
    transform: rotate(-10deg) scale(1.1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}
.prio-loading-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.prio-loading-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.prio-loading-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 3px;
  animation: prioBarSlide 1.4s ease-in-out infinite;
}
@keyframes prioBarSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}
.prio-loading-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══ MOBILE TASK CARD – vertikales Layout ══════════════════════ */
@media (max-width: 600px) {
  .task-card {
    flex-wrap: wrap;
    gap: 0;
    padding: 0.85rem 0.9rem 0.7rem;
  }
  /* Zeile 1: drag + check + titel (füllt Restbreite) */
  .drag-handle {
    order: 1;
    margin-right: 0.5rem;
    align-self: center;
  }
  .task-check {
    order: 2;
    margin-right: 0.6rem;
    align-self: flex-start;
    margin-top: 0.15rem;
  }
  .task-body {
    order: 3;
    flex: 1;
    min-width: 0;
  }
  /* Zeile 2: Buttons – immer volle Breite, unterhalb von allem */
  .task-actions {
    order: 4;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-top: 0.6rem;
    margin-top: 0.55rem;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }
  .task-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 2.4rem;
    max-width: 3.5rem;
  }
}

/* ══ WAITING-FOR STATUS ════════════════════════════════════════ */
.badge-wartet {
  background: #6b21a8;
  color: #fff;
}
.pill-wartet.active {
  background: #6b21a8;
  border-color: #6b21a8;
  color: #fff;
}
.filter-btn-wartet.active,
.filter-btn-wartet:hover {
  background: #6b21a8;
  border-color: #6b21a8;
  color: #fff;
}
.task-card[data-status="wartet_auf"] {
  border-left: 3px solid #6b21a8;
}

/* ══ INSIGHTS OVERLAY ══════════════════════════════════════════ */
.insights-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  overflow-y: auto;
}
.insights-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.insights-panel {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(-10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1);
  margin-bottom: 1.5rem;
}
.insights-overlay.open .insights-panel {
  transform: translateY(0);
}
.insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.insights-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}
.insights-loading {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

/* KPI tiles */
.insights-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.insights-kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
}
.insights-kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.insights-kpi-val--gold {
  color: var(--gold);
}
.insights-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Chart blocks */
.insights-chart-block {
  margin-bottom: 1.5rem;
}
.insights-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.insights-chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}
.insights-chart-wrap {
  position: relative;
}
@media (max-width: 600px) {
  .insights-overlay {
    padding: 0.75rem 0.5rem 0.5rem;
    align-items: flex-start;
  }
  .insights-panel {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .insights-charts-row {
    grid-template-columns: 1fr;
  }
  .insights-kpi-val {
    font-size: 1.3rem;
  }
}

/* ══ OVERLAY: KEINE ANIMATIONEN ════════════════════════════════
   Alle Overlays, Modals und Panels erscheinen/verschwinden sofort.
   ═══════════════════════════════════════════════════════════════ */
.insights-overlay,
.insights-panel,
.prio-loading-overlay,
.prio-loading-card,
.briefing-overlay,
.briefing-card,
.streak-cel-overlay,
.streak-cel-card,
.voice-info-backdrop,
.voice-info-modal,
.panel-overlay,
.panel,
.dw-overlay,
.modal-overlay,
.modal,
.wt-overlay,
.wt-modal,
.ob-overlay,
.ob-modal,
.vm-confirm-overlay,
.vm-confirm-dialog {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* ── Erledigte Aufgaben: Mehr laden ──────────────────────────── */
.done-more-wrap {
  text-align: center;
  padding: 0.75rem 0 0.5rem;
}
.done-more-btn {
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 0.8rem;
  padding: 0.35rem 1rem;
}
.done-more-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

/* ── Subtasks / Checkliste ───────────────────────────────────── */
.subtask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.subtask-header label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.st-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.st-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.st-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}
.st-progress-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.st-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid var(--border);
}
.st-item:last-of-type {
  border-bottom: none;
}
.st-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-item.st-done .st-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.st-titel {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
}
.st-item.st-done .st-titel {
  text-decoration: line-through;
  color: var(--text-muted);
}
.st-del {
  opacity: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}
.st-item:hover .st-del {
  opacity: 1;
}
.st-empty {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-style: italic;
}
.st-loading {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}
.subtask-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.subtask-add-row .form-control {
  flex: 1;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
}
/* Badge auf der Task-Karte */
.badge-subtask {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.badge-subtask-done {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: var(--primary);
  color: var(--primary);
}
