/* main.css – Design-System "Warm Premium Light"
   Playroom Homebase – Helles, warmes, einladendes Design */

/* ─── CSS Custom Properties ─────────────────────────────────────── */

:root {
  /* Hintergründe */
  --bg-warm: #faf8f5;
  --bg-cream: #f5f0eb;
  --bg-surface: #ffffff;
  --bg-sidebar: #2c2a35;
  --bg-sidebar-hover: rgba(255,255,255,0.08);
  --bg-sidebar-active: rgba(232,134,42,0.15);

  /* Legacy-Aliase (für Stellen die noch alte Namen nutzen) */
  --bg-app: var(--bg-warm);
  --bg-card: var(--bg-surface);
  --bg-card-solid: var(--bg-surface);

  /* Borders */
  --border-light: rgba(0,0,0,0.06);
  --border-medium: rgba(0,0,0,0.1);

  /* Legacy Border-Aliase */
  --color-border: var(--border-light);
  --color-border-light: rgba(0,0,0,0.04);
  --color-divider: var(--border-light);
  --color-glass-border: var(--border-light);

  /* Text */
  --text-primary: #1a1a2e;
  --text-secondary: #5c5a6e;
  --text-tertiary: #9895a8;
  --text-inverse: #FFFFFF;

  /* Sidebar Text */
  --text-sidebar: rgba(255,255,255,0.8);
  --text-sidebar-dim: rgba(255,255,255,0.45);
  --text-sidebar-active: #e8862a;

  /* Akzentfarben */
  --accent-amber: #e8862a;
  --accent-amber-soft: rgba(232,134,42,0.14);
  --accent-violet: #7c6fba;
  --accent-violet-soft: rgba(124,111,186,0.08);
  --accent-green: #5ba88c;
  --accent-green-soft: rgba(91,168,140,0.1);
  --accent-blue: #4a90d9;
  --accent-blue-soft: rgba(74,144,217,0.1);
  --accent-red: #c9555a;
  --accent-red-soft: rgba(201,85,90,0.1);
  --accent-yellow: #d4a017;
  --accent-yellow-soft: rgba(212,160,23,0.1);
  --accent-rose: #c97b7b;

  /* Legacy Akzent-Aliase */
  --color-primary: var(--accent-amber);
  --color-primary-hover: #d07825;
  --color-primary-active: #b86a1f;
  --color-primary-bg: var(--accent-amber-soft);

  /* Status */
  --color-urgent: var(--accent-red);
  --color-urgent-bg: var(--accent-red-soft);
  --color-scheduled: var(--accent-amber);
  --color-scheduled-bg: var(--accent-amber-soft);
  --color-hold: var(--accent-blue);
  --color-hold-bg: var(--accent-blue-soft);
  --color-paid: var(--accent-green);
  --color-paid-bg: var(--accent-green-soft);

  /* Semantisch */
  --color-success: var(--accent-green);
  --color-warning: var(--accent-yellow);
  --color-error: var(--accent-red);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);

  /* Legacy Shadow-Aliase */
  --shadow-card: var(--shadow-md);
  --shadow-card-hover: var(--shadow-lg);
  --shadow-elevated: var(--shadow-lg);
  --shadow-modal: var(--shadow-lg);

  /* Radii */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  /* Legacy Radius-Aliase */
  --radius-card: var(--radius-md);
  --radius-input: var(--radius-sm);
  --radius-pill: 20px;

  /* Kalender-Quellen */
  --cal-daylite: #2563eb;
  --cal-apple: #e85d1a;
  --cal-zahlung: #16a34a;
  --cal-todo: #c026d3;

  /* Fahrten-Kategorien */
  --fahrt-auto: #4a90d9;
  --fahrt-roller: #e8862a;
  --fahrt-fahrrad: #5ba88c;
  --fahrt-urlaub: #d4a017;
  --fahrt-we: #9895a8;
  --fahrt-feiertag: #7c6fba;
  --fahrt-krank: #c9555a;

  /* Sidebar */
  --sidebar-width: 220px;

  /* Typografie */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Transition */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 200ms;
}

/* ─── Reset & Grundlagen ─────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  border-radius: 20px;
}

/* ─── Login-Screen ───────────────────────────────────────────────── */

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #000;
  -webkit-app-region: drag;
  animation: privacyFadeIn 0.4s ease;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.login-logo {
  width: 140px;
  height: auto;
  margin-bottom: 4px;
  opacity: 0.9;
}

.login-brand {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-clock {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}

.login-date {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.login-form-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 280px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.5;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.login-btn-unlock {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-btn-unlock:hover {
  background: rgba(255, 255, 255, 0.2);
}

.login-btn-unlock:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.form-group textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  line-height: 1.5;
}

.login-error {
  color: #ef4444;
  font-size: 13px;
  min-height: 20px;
}


/* ─── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  outline: none;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--accent-amber);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-amber);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232,134,42,0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,134,42,0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232,134,42,0.25);
}

.btn-primary:disabled {
  background: var(--text-tertiary);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-success {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,168,140,0.3);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91,168,140,0.4);
}

.btn-small {
  padding: 7px 14px;
  font-size: 13px;
}

/* ─── App-Shell ──────────────────────────────────────────────────── */

.app-shell {
  display: flex;
  height: 100vh;
  position: relative;
}

/* ─── Window Drag Bar (oberer Rand) ─────────────────────────────── */

.window-drag-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  z-index: 9999;
  -webkit-app-region: drag;
  pointer-events: none;
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.window-drag-bar.scrolled {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(250, 248, 245, 0.6);
}

/* Nur den Content-Bereich blurren, nicht die Sidebar */
.window-drag-bar.scrolled {
  left: var(--sidebar-width);
}

/* ─── Sidebar ────────────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  padding-top: 52px;
  -webkit-app-region: drag;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  padding: 4px 20px 20px;
  -webkit-app-region: drag;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.sidebar-logo {
  display: none;
}

.sidebar-brand-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
}

.sidebar-brand-sub {
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.sidebar-header span {
  font-size: 12px;
  color: var(--text-sidebar-dim);
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  -webkit-app-region: no-drag;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sidebar);
  margin-bottom: 2px;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--accent-amber);
  font-weight: 700;
  border-left-color: var(--accent-amber);
}

.nav-icon {
  display: none;
}

.nav-icon svg {
  display: none;
}

.nav-label {
  white-space: nowrap;
}

.nav-badge {
  margin-left: auto;
  background: var(--color-urgent);
  color: var(--text-inverse);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  -webkit-app-region: no-drag;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
}

.sidebar-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
  padding: 0 4px;
}

.sidebar-user-role {
  opacity: 0.5;
  font-size: 10px;
}

.sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-sidebar-dim);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.sidebar-footer button:hover {
  color: var(--text-sidebar);
  background: var(--bg-sidebar-hover);
}

.sidebar-footer button svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

.sidebar-version {
  font-size: 10px;
  color: var(--text-sidebar-dim);
  opacity: 0.5;
}

/* ─── Content-Bereich ────────────────────────────────────────────── */

.content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-warm);
  background-image: radial-gradient(ellipse at top right, rgba(232,134,42,0.06) 0%, transparent 60%);
  transition: background 0.4s ease;
}

.content.content-dashboard {
  background: var(--bg-warm);
  background-image: radial-gradient(ellipse at top right, rgba(232,134,42,0.06) 0%, transparent 60%);
}

.content-header {
  padding: 28px 40px 0;
  -webkit-app-region: drag;
}

.content-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  -webkit-app-region: no-drag;
}

.content-body {
  padding: 20px 40px 40px;
}

/* ─── Karten ─────────────────────────────────────────────────────── */

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.card-muted {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─── Dashboard ──────────────────────────────────────────────────── */

.dashboard-greeting {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.greeting-text {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.greeting-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dashboard-clock {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-primary);
  opacity: 1;
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  padding: 20px 24px;
  border-left: 4px solid transparent;
}

.dashboard-card-link {
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.dashboard-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.dashboard-card-link:active {
  transform: translateY(0);
}

.dashboard-section-link {
  cursor: pointer;
  transition: box-shadow var(--duration) var(--ease);
}

.dashboard-section-link:hover {
  box-shadow: var(--shadow-card-hover);
}

.dashboard-section-link h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-link-icon {
  color: var(--text-tertiary);
  transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
}

.section-link-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-section-link:hover .section-link-icon {
  transform: translateX(2px);
  color: var(--color-primary);
}

.dashboard-card.card-urgent {
  border-left-color: var(--color-urgent);
  background: var(--bg-card);
}
.dashboard-card.card-scheduled {
  border-left-color: var(--color-scheduled);
  background: var(--bg-card);
}
.dashboard-card.card-hold {
  border-left-color: var(--color-hold);
  background: var(--bg-card);
}
.dashboard-card.card-paid {
  border-left-color: var(--color-paid);
  background: var(--bg-card);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-card-header svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.card-urgent .dashboard-card-header svg { color: var(--color-urgent); }
.card-scheduled .dashboard-card-header svg { color: var(--color-scheduled); }
.card-hold .dashboard-card-header svg { color: var(--color-hold); }
.card-paid .dashboard-card-header svg { color: var(--color-paid); }

.dashboard-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}

.dashboard-card-value {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.dashboard-card-sub {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dashboard-card:nth-child(1) { animation: cardFadeIn 0.4s var(--transition-smooth) both; animation-delay: 0.0s; }
.dashboard-card:nth-child(2) { animation: cardFadeIn 0.4s var(--transition-smooth) both; animation-delay: 0.06s; }
.dashboard-card:nth-child(3) { animation: cardFadeIn 0.4s var(--transition-smooth) both; animation-delay: 0.12s; }
.dashboard-card:nth-child(4) { animation: cardFadeIn 0.4s var(--transition-smooth) both; animation-delay: 0.18s; }

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dashboard-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dashboard-summary-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.dashboard-list {
  margin-top: 4px;
}

.dashboard-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  margin: 0 -24px;
  border-bottom: 1px solid var(--color-divider);
  transition: background-color var(--duration) var(--ease);
  cursor: pointer;
}

.dashboard-list-date {
  flex: 0 0 90px;
  font-variant-numeric: tabular-nums;
}

.dashboard-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-nr {
  flex: 0 0 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list-amount {
  flex: 0 0 auto;
  text-align: right;
}

.dashboard-list-item:last-child {
  border-bottom: none;
}

.dashboard-list-item:hover {
  background: var(--color-primary-bg);
}

.card-overdue {
  border-left: 3px solid var(--color-urgent);
}

.overdue-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-urgent);
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.text-urgent {
  color: var(--color-urgent);
  font-weight: 600;
}

.text-bold {
  font-weight: 600;
}

/* ─── Rechnungen Stats-Grid ──────────────────────────────────────── */

.rechnungen-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.rechnungen-stat-link {
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.rechnungen-stat-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.rechnungen-stat-link:active {
  transform: translateY(0);
}

/* ─── Dashboard: Tagesplaner ─────────────────────────────────────── */

.dashboard-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-section-title:first-child {
  margin-top: 0;
}

.dashboard-section-title svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

/* Wichtig-Alerts */
#dashboard-wichtig .dashboard-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--accent-red);
  margin-bottom: 14px;
}

#dashboard-wichtig .dashboard-section-title svg {
  width: 18px;
  height: 18px;
  padding: 5px;
  background: var(--accent-red-soft);
  border-radius: 8px;
  box-sizing: content-box;
}

.dashboard-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  border-left: 5px solid;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: linear-gradient(135deg, rgba(201, 85, 90, 0.07) 0%, rgba(232, 134, 42, 0.04) 100%);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(201, 85, 90, 0.08);
}

.dashboard-alert:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(201, 85, 90, 0.12);
  background: linear-gradient(135deg, rgba(201, 85, 90, 0.11) 0%, rgba(232, 134, 42, 0.06) 100%);
}

.dashboard-alert:active {
  transform: translateY(0);
}

.dashboard-alert > svg,
.dashboard-alert > i > svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(201, 85, 90, 0.2));
}

.alert-content {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.alert-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.alert-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-red);
  font-family: var(--font-mono);
}

.alert-arrow {
  color: var(--text-tertiary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-alert:hover .alert-arrow {
  transform: translateX(3px);
  color: var(--text-secondary);
}

.alert-arrow svg {
  width: 16px;
  height: 16px;
}

/* Heute + Vorschau Cards */
.dashboard-heute-card,
.dashboard-vorschau-card {
  padding: 4px 0;
}

.dashboard-event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
}

.dashboard-event-row:last-child {
  border-bottom: none;
}

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-time {
  flex: 0 0 50px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.event-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.dashboard-event-clickable {
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.dashboard-event-clickable:hover {
  background: var(--color-primary-bg);
}

.dashboard-event-done .event-title {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.dashboard-todo-check {
  accent-color: var(--cal-todo, #AF52DE);
  cursor: pointer;
}

/* Vorschau Tages-Gruppen */
.vorschau-day {
  margin-bottom: 4px;
}

.vorschau-day-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 12px 24px 4px;
  border-top: 1px solid var(--color-divider);
}

.vorschau-day:first-child .vorschau-day-label {
  border-top: none;
}

.dashboard-empty-hint {
  color: var(--text-tertiary);
  font-size: 14px;
  padding: 12px 0;
}

/* ─── Dashboard Two-Column Layout ────────────────────────────────── */

.dashboard-two-col {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-col-left,
.dashboard-col-right {
  min-width: 0;
}

/* ─── Dashboard Todo-Box ─────────────────────────────────────────── */

#dashboard-todos .dashboard-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--cal-todo);
  margin-bottom: 14px;
}

#dashboard-todos .dashboard-section-title svg {
  width: 18px;
  height: 18px;
  padding: 5px;
  background: rgba(192, 38, 211, 0.1);
  border-radius: 8px;
  box-sizing: content-box;
}

.dashboard-todo-box {
  max-height: 560px;
  overflow-y: auto;
  padding: 0 !important;
  border: 1px solid rgba(192, 38, 211, 0.08);
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(192, 38, 211, 0.04);
}

.todo-overdue-section {
  border-bottom: 2px solid var(--color-divider, rgba(255,255,255,0.08));
  padding-bottom: 4px;
  background: linear-gradient(135deg, rgba(201, 85, 90, 0.05) 0%, transparent 100%);
}

.todo-overdue-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-urgent, #FF453A);
  padding: 14px 20px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.todo-overdue-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-urgent);
  animation: overdue-pulse 2s ease-in-out infinite;
}

@keyframes overdue-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-divider, rgba(0,0,0,0.04));
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, padding 0.35s ease, background 0.15s ease;
  max-height: 60px;
  overflow: hidden;
}

.todo-item:hover {
  background: rgba(192, 38, 211, 0.03);
}

.todo-item:last-child {
  border-bottom: none;
}

.todo-item.is-overdue {
  opacity: 0.75;
  border-left: 3px solid var(--color-urgent);
  padding-left: 17px;
}

.todo-date-badge {
  display: inline-block;
  font-size: 10px;
  color: var(--bg-surface);
  background: var(--color-urgent);
  margin-left: 8px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.todo-item.in-progress {
  background: rgba(91, 168, 140, 0.1);
  border-left: 3px solid var(--accent-green);
  padding-left: 17px;
  cursor: pointer;
}

.todo-item.in-progress:hover {
  background: rgba(91, 168, 140, 0.16);
}

.todo-in-progress-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.todo-item.archiving {
  opacity: 0;
  transform: translateX(-30px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.todo-item-check {
  accent-color: var(--cal-todo);
  cursor: pointer;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.todo-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 450;
}

.todo-item-project {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-cream);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-add-row {
  padding: 12px 20px;
  border-top: 1px solid var(--color-divider, rgba(0,0,0,0.04));
  background: var(--bg-cream);
}

.todo-add-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-input, 6px);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.todo-add-input:focus {
  outline: none;
  border-color: var(--cal-todo);
  box-shadow: 0 0 0 3px rgba(192, 38, 211, 0.1);
}

.todo-add-input::placeholder {
  color: var(--text-tertiary);
}

/* ─── Dashboard Tageskalender ────────────────────────────────────── */

.dashboard-day-calendar {
  padding: 0 !important;
  max-height: 560px;
  overflow-y: auto;
}

.day-cal-allday {
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-divider, rgba(255,255,255,0.08));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-cal-allday-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.day-cal-timeline {
  position: relative;
}

.day-cal-hour {
  display: flex;
  align-items: flex-start;
  min-height: 48px;
  border-bottom: 1px solid var(--color-divider, rgba(255,255,255,0.04));
}

.day-cal-hour.core-hour {
  background: rgba(74,144,217,0.04);
  border-left: 2px solid var(--cal-daylite, #007AFF);
}

.day-cal-hour:not(.core-hour) {
  border-left: 2px solid transparent;
}

.hour-label {
  flex: 0 0 56px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  padding: 4px 10px 0 10px;
  text-align: right;
  user-select: none;
}

.hour-slot {
  flex: 1;
  min-height: 48px;
  padding: 2px 12px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-cal-event {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm, 4px);
  font-size: 13px;
  border-left: 5px solid;
  background: var(--bg-cream);
  transition: background 0.15s ease;
}

.day-cal-event:hover {
  background: var(--bg-cream);
}

.day-cal-event[data-source="daylite"] {
  border-left-color: var(--cal-daylite, #007AFF);
}

.day-cal-event[data-source="apple"] {
  border-left-color: var(--cal-apple, #FF9500);
}

.day-cal-event[data-source="zahlung"] {
  border-left-color: var(--cal-zahlung, #5ba88c);
}

.day-cal-event[data-source="todo"] {
  border-left-color: var(--cal-todo, #AF52DE);
}

.day-cal-event-time {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 36px;
}

.day-cal-event-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-cal-event-location {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Now-Linie */
.day-cal-now {
  position: absolute;
  left: 56px;
  right: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #FF453A);
  margin-left: -5px;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 69, 58, 0.5);
}

.now-line {
  flex: 1;
  height: 2px;
  background: var(--color-primary, #FF453A);
  opacity: 0.5;
}

/* Sync-Button */
.dashboard-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-sync-daylite {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm, 4px);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-sync-daylite:hover {
  color: var(--cal-daylite, #007AFF);
}

.btn-sync-daylite svg {
  width: 14px;
  height: 14px;
}

.btn-sync-daylite.spinning svg {
  animation: spin 1s linear infinite;
}

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

/* ─── Löschen-Button (Tabellenzeile) ─────────────────────────────── */

.btn-delete-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
  padding: 0;
}

.btn-delete-row svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}

.btn-delete-row:hover {
  color: var(--color-urgent);
  background: var(--color-urgent-bg);
}

.btn-delete-detail {
  background: transparent;
  color: var(--color-urgent);
  border: 1px solid rgba(214, 64, 69, 0.2);
}

.btn-delete-detail:hover {
  background: var(--color-urgent-bg);
  border-color: rgba(214, 64, 69, 0.35);
}

/* ─── Bestätigungs-Dialog ────────────────────────────────────────── */

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s var(--ease);
}

.confirm-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.confirm-dialog-box {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: modalSlideUp 0.2s var(--ease);
}

.confirm-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.confirm-dialog-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-urgent);
  stroke-width: 1.5;
}

.confirm-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.confirm-dialog-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(201,85,90,0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,85,90,0.4);
}

/* ─── Rechnungen – Filter-Leiste ─────────────────────────────────── */

.filter-bar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Segment Control (iOS-Style) */
.segment-control {
  display: inline-flex;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 1px;
}

.segment-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.segment-btn:hover {
  color: var(--text-primary);
}

.segment-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.filter-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-input-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-input {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.filter-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  stroke-width: 1.5;
}

.search-input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: all var(--duration) var(--ease);
}

.search-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.filter-actions {
  margin-left: auto;
}

/* ─── Rechnungen – Tabelle ───────────────────────────────────────── */

.table-card {
  padding: 0;
  overflow: hidden;
  background: var(--bg-surface);
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  user-select: none;
}

.data-table th.sortable {
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.data-table th.sortable:hover {
  color: var(--color-primary);
}

.data-table th.sort-asc::after {
  content: ' \25B2';
  font-size: 8px;
  color: var(--color-primary);
}

.data-table th.sort-desc::after {
  content: ' \25BC';
  font-size: 8px;
  color: var(--color-primary);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-divider);
  transition: background-color var(--duration) var(--ease);
}

.data-table tbody tr:hover {
  background: var(--bg-cream);
}

.table-row-clickable {
  cursor: pointer;
}

.data-table td {
  padding: 11px 16px;
  color: var(--text-primary);
  white-space: nowrap;
}

.td-amount {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.td-muted {
  color: var(--text-tertiary);
}

/* ─── Status-Pills & Badges ──────────────────────────────────────── */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pill svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.status-pill-urgent {
  background: var(--color-urgent-bg);
  color: var(--color-urgent);
}

.status-pill-scheduled {
  background: var(--color-scheduled-bg);
  color: var(--color-scheduled);
}

.status-pill-hold {
  background: var(--color-hold-bg);
  color: var(--color-hold);
}

.status-pill-paid {
  background: var(--color-paid-bg);
  color: var(--color-paid);
}

/* Größere Badges (Detail-Ansicht) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.status-badge svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.status-bezahlt {
  background: var(--color-paid-bg);
  color: var(--color-paid);
}

.status-badge-urgent {
  background: var(--color-urgent-bg);
  color: var(--color-urgent);
}

.status-badge-scheduled {
  background: var(--color-scheduled-bg);
  color: var(--color-scheduled);
}

.status-badge-hold {
  background: var(--color-hold-bg);
  color: var(--color-hold);
}

/* Leerer Zustand */
.table-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-tertiary);
}

.table-empty-icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-empty-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  stroke-width: 1;
  opacity: 0.4;
}

.table-empty-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.table-empty-sub {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Modal ──────────────────────────────────────────────────────── */

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.modal-content {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  width: 95vw;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.2s var(--ease);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-divider);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--duration) var(--ease);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.modal-body {
  overflow-y: auto;
  flex: 1;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--color-divider);
  gap: 8px;
}

/* ─── Rechnungs-Verarbeitung (Split-View) ────────────────────────── */

.invoice-process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 75vh;
}

.invoice-preview {
  background: var(--bg-cream);
  overflow: hidden;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.invoice-form {
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}

.invoice-form-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--color-primary-bg);
  border-radius: var(--radius-input);
  color: var(--text-secondary);
  font-size: 14px;
}

.invoice-form-status svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.status-icon-warning { color: var(--color-warning); }
.status-icon-error { color: var(--color-error); }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Recognition Badge */
#recognition-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.recognition-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.recognition-badge svg {
  width: 12px;
  height: 12px;
}

.badge-ai {
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border: 1px solid rgba(232,134,42,0.2);
}

.badge-ocr {
  background: var(--bg-cream);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.recognition-fallback-hint {
  font-size: 11px;
  color: var(--color-scheduled);
}

/* Duplicate Warning */
.duplicate-alert {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.duplicate-alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #B87A00;
  margin-bottom: 6px;
}

.duplicate-alert-header svg {
  width: 16px;
  height: 16px;
  color: #D4920B;
  flex-shrink: 0;
}

.duplicate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.duplicate-list li {
  padding: 4px 0;
  border-top: 1px solid rgba(255, 170, 0, 0.15);
  line-height: 1.5;
}

.duplicate-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.duplicate-grund {
  font-size: 11px;
  color: #B87A00;
  font-style: italic;
}

/* API Key Input */
.api-key-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.api-key-field {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.api-key-field input {
  flex: 1;
  padding-right: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.api-key-field .btn-icon {
  position: absolute;
  right: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease);
}

.api-key-field .btn-icon:hover {
  color: var(--text-primary);
}

.api-key-field .btn-icon svg {
  width: 16px;
  height: 16px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.invoice-form .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.invoice-form .form-group input,
.invoice-form .form-group select,
.invoice-form .form-group textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.invoice-form .form-group textarea {
  height: auto;
  padding: 8px 12px;
}

.invoice-form .form-group input:focus,
.invoice-form .form-group select:focus,
.invoice-form .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-bg);
}

/* Konfidenz-Stile – dezenter linker Rand */
.confidence-high {
  border-left: 3px solid var(--color-paid) !important;
}

.confidence-medium {
  border-left: 3px solid var(--color-scheduled) !important;
}

.confidence-low {
  border-left: 3px solid var(--color-urgent) !important;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 18px 0;
}

.form-section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

/* Kategorie-Buttons */
.kategorie-buttons {
  display: flex;
  gap: 8px;
}

.kat-btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-input);
  border: 2px solid transparent;
  transition: all var(--duration) var(--ease);
  text-align: center;
}

.kat-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.kat-btn.kat-1 {
  background: var(--color-urgent-bg);
  color: var(--color-urgent);
  border-color: rgba(214, 64, 69, 0.12);
}
.kat-btn.kat-1:hover, .kat-btn.kat-1.active {
  background: var(--color-urgent);
  color: var(--text-inverse);
  border-color: var(--color-urgent);
}

.kat-btn.kat-2 {
  background: var(--color-scheduled-bg);
  color: var(--color-scheduled);
  border-color: rgba(232, 145, 58, 0.12);
}
.kat-btn.kat-2:hover, .kat-btn.kat-2.active {
  background: var(--color-scheduled);
  color: var(--text-inverse);
  border-color: var(--color-scheduled);
}

.kat-btn.kat-3 {
  background: var(--color-hold-bg);
  color: var(--color-hold);
  border-color: rgba(124, 141, 176, 0.12);
}
.kat-btn.kat-3:hover, .kat-btn.kat-3.active {
  background: var(--color-hold);
  color: var(--text-inverse);
  border-color: var(--color-hold);
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  margin: 0;
  accent-color: var(--color-primary);
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ─── Detail-Ansicht ─────────────────────────────────────────────── */

.detail-status {
  margin-bottom: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-grid .full-width {
  grid-column: 1 / -1;
}

.detail-grid .form-section-label {
  grid-column: 1 / -1;
  margin-top: 8px;
  margin-bottom: -4px;
}

.detail-item label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.detail-item input,
.detail-item select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.detail-item input:focus,
.detail-item select:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.detail-actions {
  flex-wrap: wrap;
}

/* ─── Platzhalter-Seiten ─────────────────────────────────────────── */

.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.placeholder-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon svg {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
  stroke-width: 1;
}

.placeholder-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.placeholder-page p {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 360px;
}

.phase-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: var(--bg-cream);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Einstellungen ──────────────────────────────────────────────── */

.settings-section {
  margin-bottom: 8px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.settings-row select,
.settings-row input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.settings-row select:focus,
.settings-row input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.settings-placeholder {
  padding: 14px 0;
  color: var(--text-tertiary);
  font-size: 13px;
  font-style: italic;
}

/* ─── Benutzerverwaltung ─────────────────────────────────────── */

.user-mgmt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.user-mgmt-row:last-child {
  border-bottom: none;
}

.user-mgmt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-mgmt-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

.user-mgmt-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.user-display-name-input {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 13px;
  font-family: var(--font-sans);
}

.user-modules-panel {
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--border-light);
}

.user-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px 16px;
}

.user-module-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

.user-module-toggle input[type="checkbox"] {
  accent-color: var(--color-primary);
  cursor: pointer;
}

.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-path {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  word-break: break-all;
}

.settings-schema-info {
  padding: 8px 0;
}

.schema-preview {
  display: block;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-input);
  font-size: 12px;
  font-family: var(--font-mono);
  margin-bottom: 12px;
  border: 1px solid var(--border-light);
}

.schema-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.schema-legend strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ─── Passwort-Ändern ────────────────────────────────────────────── */

.password-change-form {
  max-width: 320px;
}

.password-change-form .form-group {
  margin-bottom: 12px;
}

.password-change-form input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.password-change-form input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.message-success {
  color: var(--color-success);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}

.message-error {
  color: var(--color-error);
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
}

/* ─── Toast-Benachrichtigungen ───────────────────────────────────── */

.toast {
  position: fixed;
  top: 16px;
  right: 24px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  z-index: 2000;
  max-width: 340px;
  animation: toastIn 0.2s var(--ease);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}

.toast-exit {
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.2s var(--ease);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Drag & Drop Zone ──────────────────────────────────────────── */

.drop-zone-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(232,134,42,0.04);
  pointer-events: none;
}

.drop-zone-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone-indicator {
  position: absolute;
  inset: 16px;
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(232,134,42,0.02);
  pointer-events: none;
  animation: dropPulse 1.5s ease-in-out infinite;
}

@keyframes dropPulse {
  0%, 100% { border-color: var(--color-primary); }
  50% { border-color: rgba(232,134,42,0.3); }
}

.drop-zone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  stroke-width: 1.5;
  opacity: 0.5;
}

.drop-zone-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.2px;
}

.drop-zone-sub {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Scrollbar ──────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.15);
}

/* ─── Animationen ────────────────────────────────────────────────── */

.fade-in {
  animation: fadeIn 0.2s var(--ease);
}

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

/* ─── Hilfsklassen ───────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* ─── Daylite-Verbindung (Einstellungen) ─────────────────────────── */

.daylite-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.daylite-status-dot.connected {
  background: var(--color-paid);
  box-shadow: 0 0 6px rgba(52, 168, 83, 0.4);
}

.daylite-status-dot.disconnected {
  background: var(--text-tertiary);
}

.daylite-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.daylite-disconnect-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.daylite-disconnect-btn {
  background: none;
  border: 1px solid var(--color-error);
  color: var(--color-error);
  cursor: pointer;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s var(--ease);
}

.daylite-disconnect-btn:hover {
  background: rgba(214, 64, 69, 0.08);
}

.daylite-token-form {
  margin-top: 12px;
}

.daylite-token-form .form-group {
  margin-bottom: 12px;
}

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

.spin {
  animation: spin 1s linear infinite;
}

/* ─── Projekt-Autocomplete ───────────────────────────────────────── */

.autocomplete-wrapper {
  position: relative;
}

.autocomplete-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--bg-card);
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color 0.15s var(--ease);
}

.autocomplete-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  box-shadow: var(--shadow-lg);
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: background 0.1s;
}

.autocomplete-item:hover {
  background: var(--color-primary-bg);
}

.autocomplete-item.autocomplete-empty {
  color: var(--text-secondary);
  cursor: default;
}

.autocomplete-item.autocomplete-empty:hover {
  background: none;
}

.ac-project-name {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-project-number {
  color: var(--text-secondary);
  font-size: 11px;
}

.ac-project-stage {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--color-hold-bg);
  color: var(--color-hold);
  white-space: nowrap;
}

.autocomplete-selected {
  margin-bottom: 4px;
}

.autocomplete-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--color-primary-bg);
  border: 1px solid rgba(232,134,42,0.2);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.autocomplete-pill-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.autocomplete-pill-remove:hover {
  color: var(--color-error);
}

/* ─── Jobnummer + Projekt Chips ──────────────────────────── */

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--color-primary-bg);
  border: 1px solid rgba(232,134,42,0.15);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.chip-remove:hover {
  color: var(--color-error);
}

.chip-add-input {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 4px 8px;
  font-size: 12px;
  width: 80px;
  outline: none;
  background: var(--bg-card-solid);
  transition: border-color 0.15s;
}

.chip-add-input:focus {
  border-color: var(--color-primary);
}

.chip-add-input::placeholder {
  color: var(--text-tertiary);
}

.projekt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.projekt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--color-primary-bg);
  border: 1px solid rgba(232,134,42,0.15);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.projekt-chip .chip-remove {
  margin-left: 4px;
}

.autocomplete-suggestion {
  margin-top: 6px;
}

.suggestion-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.suggestion-hint strong {
  color: var(--text-primary);
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--color-primary-hover);
}

.td-project {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Projekte-Seite ─────────────────────────────────────────────── */

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.page-header-row .page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.projekte-sticky-header {
  position: sticky;
  top: -20px;
  z-index: 10;
  background: var(--bg-warm);
  margin: -20px -40px 0;
  padding: 20px 40px 0;
}

.projekte-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.projekte-sync-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.projekte-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projekt-accordion {
  overflow: hidden;
  cursor: pointer;
  transition: background 0.1s;
}

.projekt-accordion:hover .projekt-header {
  background: rgba(0, 0, 0, 0.025);
}

.projekt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  gap: 10px;
}

.projekt-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.accordion-chevron {
  display: none;
}

.projekt-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.projekt-stage {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}

.stage-production {
  background: var(--color-scheduled-bg);
  color: var(--color-scheduled);
}

.stage-tosend {
  background: var(--color-urgent-bg);
  color: var(--color-urgent);
}

.stage-invoiced {
  background: var(--color-paid-bg);
  color: var(--color-paid);
}

.stage-cancelled {
  background: var(--bg-cream);
  color: var(--text-tertiary);
}

.stage-other {
  background: var(--color-hold-bg);
  color: var(--color-hold);
}

.projekt-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.projekt-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.projekt-amount {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.projekt-amount-open {
  font-size: 12px;
  color: var(--color-scheduled);
  font-variant-numeric: tabular-nums;
}

.projekt-body {
  padding: 0 16px 12px 16px;
  border-top: 1px solid var(--color-border-light);
}

.projekt-section {
  margin-top: 10px;
}

.projekt-section .form-section-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.projekt-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0 0;
}

.projekt-contacts li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
}

.projekt-contacts li::before {
  content: "•";
  margin-right: 8px;
  color: var(--text-tertiary);
}

.projekt-rechnungen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.projekt-rechnung-item {
  display: grid;
  grid-template-columns: 1fr 120px 100px 140px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.1s;
}

.projekt-rechnung-item.clickable-row {
  cursor: pointer;
}

.projekt-rechnung-item.clickable-row:hover {
  background: var(--color-primary-bg);
}

.projekt-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  font-size: 13px;
}

.contact-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Sprecher:innen – prominent */
.contact-sprecher {
  background: rgba(232,134,42,0.08);
}

.contact-avatar-sprecher {
  background: var(--color-primary);
}

.contact-sprecher .contact-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* Projektbeteiligte – dezent */
.contact-beteiligte {
  background: var(--bg-surface);
}

.contact-avatar-beteiligte {
  background: var(--text-tertiary);
  font-size: 10px;
  width: 24px;
  height: 24px;
}

.contact-beteiligte .contact-name {
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 12px;
}

.contact-name {
  color: var(--text-primary);
  font-weight: 500;
}

.projekt-contacts-count {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.projekt-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.loading-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ─── Sprecher-Info ──────────────────────────────────────────── */

.projekt-sprecher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 1px 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  white-space: nowrap;
}

.projekt-sprecher svg {
  color: var(--color-primary);
}

/* ─── Daylite Kontakt-Matching ─────────────────────────────── */

.daylite-contact-container {
  margin-top: 4px;
}

.daylite-contact-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.daylite-contact-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.daylite-contact-name {
  font-weight: 600;
  color: var(--text-primary);
}

.daylite-contact-badge {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--color-paid-bg);
  color: var(--color-paid);
  font-weight: 500;
}

.daylite-contact-source {
  font-size: 11px;
  color: var(--text-tertiary);
}

.daylite-contact-linked,
.daylite-contact-matched,
.daylite-contact-none {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.daylite-contact-linked {
  border-left: 3px solid var(--color-success);
}

.daylite-contact-matched {
  border-left: 3px solid var(--color-primary);
}

.daylite-contact-none {
  border-left: 3px solid var(--color-border);
}

.daylite-contact-update-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-warning);
  padding: 4px 0;
}

.contact-linked-icon {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ─── Sprecher:innen-Seite ────────────────────────────────────── */

.sprecher-list {
  margin-top: 8px;
}

.sprecher-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sprecher-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.sprecher-card:hover {
  background: var(--bg-cream);
  box-shadow: var(--shadow-md);
}

.sprecher-card.sprecher-daylite-linked {
  border-left: 3px solid var(--color-success);
}

.sprecher-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sprecher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sprecher-card-info {
  flex: 1;
  min-width: 0;
}

.sprecher-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.sprecher-card-meta {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sprecher-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sprecher-card-meta i {
  width: 12px;
  height: 12px;
}

.sprecher-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sprecher-daylite-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-success);
  background: rgba(52, 199, 89, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

.sprecher-daylite-badge i {
  width: 12px;
  height: 12px;
}

.btn-tiny {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-tiny i {
  width: 14px;
  height: 14px;
}

/* Sprecher Detail Modal */

.sprecher-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sprecher-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sprecher-detail-row i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.sprecher-detail-row.sprecher-daylite-linked {
  color: var(--color-success);
}

.sprecher-projekte-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sprecher-projekt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-hover);
  border-radius: 6px;
  font-size: 13px;
}

.sprecher-projekt-name {
  font-weight: 500;
  color: var(--text-primary);
}

.stage-badge-small {
  font-size: 10px;
  padding: 2px 6px;
}

/* Sprecher-Status im Verarbeitungsdialog */

.sprecher-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--color-success);
  background: rgba(52, 199, 89, 0.06);
  border-radius: 6px;
}

.sprecher-status i {
  width: 14px;
  height: 14px;
}

/* Form half-width groups */

.form-group-half {
  flex: 1;
  min-width: 0;
}

/* ─── Validierungs-Warnung ───────────────────────────────────── */

.validation-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  animation: slideDown 0.2s ease-out;
}

.validation-warning-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.validation-warning-header strong {
  color: #f59e0b;
  font-size: 13px;
}

.validation-warning p {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.validation-warning ul {
  margin: 0;
  padding-left: 20px;
}

.validation-warning li {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.5;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Kalender ─────────────────────────────────────────────────── */

.kalender-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.kalender-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 8px;
}

.kalender-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kalender-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kalender-nav h2 {
  font-size: 20px;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
}

/* Heute-Button */
.kal-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 5px 14px 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 134, 42, 0.2);
  background: rgba(232, 134, 42, 0.06);
  color: var(--accent-amber);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.kal-today-btn:hover {
  background: rgba(232, 134, 42, 0.13);
  border-color: rgba(232, 134, 42, 0.35);
  box-shadow: 0 1px 6px rgba(232, 134, 42, 0.15);
  transform: translateY(-0.5px);
}

.kal-today-btn:active {
  transform: translateY(0.5px);
  box-shadow: none;
  background: rgba(232, 134, 42, 0.18);
}

.kal-today-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(232, 134, 42, 0.18);
  animation: kal-today-pulse 2.8s ease-in-out infinite;
}

@keyframes kal-today-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(232, 134, 42, 0.18); }
  50% { box-shadow: 0 0 0 4px rgba(232, 134, 42, 0.08); }
}

/* Daylite Sync Button */
.kal-sync-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.kal-sync-btn svg {
  width: 14px;
  height: 14px;
}

.kal-sync-btn:hover {
  color: var(--accent-amber);
  border-color: rgba(232, 134, 42, 0.3);
  background: rgba(232, 134, 42, 0.06);
}

.kal-sync-btn.syncing {
  pointer-events: none;
  color: var(--accent-amber);
}

.kal-sync-btn.syncing svg {
  animation: kal-sync-spin 0.8s linear infinite;
}

@keyframes kal-sync-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kalender-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--color-border);
}

.kalender-view-toggle .btn-sm {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.kalender-view-toggle .btn-sm.active {
  background: var(--color-primary);
  color: white;
}

/* Monats-Grid */
.kalender-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.kalender-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.kalender-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
  min-height: 0;
}

.kalender-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.kalender-cell {
  border: 1px solid var(--border-light);
  border-top: none;
  padding: 8px 10px;
  min-height: 150px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: 4px;
  margin: 1px;
}

.kalender-cell:hover {
  background: var(--bg-cream);
  box-shadow: inset 0 0 0 1px var(--accent-amber-soft);
}

.kalender-cell.today {
  background: var(--accent-amber-soft);
  box-shadow: inset 0 -3px 0 var(--accent-amber);
}

.kalender-cell.selected {
  background: var(--accent-amber-soft);
  box-shadow: inset 0 0 0 2px var(--accent-amber);
}

.kalender-cell.other-month {
  opacity: 0.35;
}

.kalender-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kalender-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.kalender-day-num.today-num {
  background: var(--color-primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.kalender-dots {
  display: flex;
  gap: 3px;
}

.kalender-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kalender-day-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}

.kalender-event-mini {
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--bg-cream);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.kalender-event-more {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 500;
  padding: 0 4px;
}

/* Wochen-Grid */
.kalender-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.kalender-week-day {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  cursor: pointer;
  transition: all 0.15s ease, box-shadow 0.15s ease;
}

.kalender-week-day:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 2px 12px rgba(232,134,42,0.08);
}

.kalender-week-day.today {
  border-color: var(--accent-amber);
  background: var(--accent-amber-soft);
}

.kalender-week-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 8px;
}

.kalender-week-day-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.kalender-week-day-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.kalender-week-day-num.today-num {
  background: var(--color-primary);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.kalender-week-day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.kalender-week-event {
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kalender-week-event.done {
  opacity: 0.45;
  text-decoration: line-through;
}

.kalender-week-event .event-time {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.kalender-week-event .event-title {
  color: var(--text-primary);
}

/* Legende */
.kalender-legend {
  display: flex;
  gap: 8px;
  padding: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
  border-radius: 4px;
  padding: 2px 6px;
}

.legend-item:hover {
  background: var(--bg-cream);
}

.legend-item.legend-hidden {
  opacity: 0.35;
  text-decoration: line-through;
}

.legend-item.legend-hidden .legend-dot {
  opacity: 0.3;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

/* Tagesdetail-Panel */
.kalender-detail {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  max-height: 400px;
  overflow-y: auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.detail-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.detail-group {
  margin-bottom: 16px;
}

.detail-group h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.detail-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background 0.1s;
}

.detail-event:hover {
  background: var(--bg-surface);
}

.detail-zahlung {
  justify-content: space-between;
}

.detail-betrag {
  font-weight: 600;
  color: var(--cal-zahlung);
}

.detail-zahlung-clickable {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s, box-shadow 0.12s;
}

.detail-zahlung-clickable:hover {
  background: rgba(52, 199, 89, 0.08);
  box-shadow: inset 0 0 0 1px var(--cal-zahlung);
}

.zahlung-open-icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.detail-zahlung-clickable:hover .zahlung-open-icon {
  opacity: 0.7;
}

.detail-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  min-width: 42px;
}

.detail-location {
  font-size: 11px;
  color: var(--text-tertiary);
}

.detail-todo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-todo.done span {
  text-decoration: line-through;
  opacity: 0.5;
}

input.todo-check {
  accent-color: var(--cal-todo);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.todo-projekt {
  font-size: 10px;
  color: var(--text-tertiary);
  background: var(--bg-cream);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.todo-title {
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}

.todo-title:hover {
  border-bottom-color: var(--cal-todo);
}

.todo-edit-input {
  flex: 1;
  padding: 2px 6px !important;
  font-size: 13px !important;
  border: 1px solid var(--cal-todo) !important;
  border-radius: var(--radius-sm) !important;
  outline: none !important;
  background: var(--bg-card-solid) !important;
}

.todo-delete {
  opacity: 0;
  transition: opacity 0.15s;
}

.detail-todo:hover .todo-delete {
  opacity: 0.6;
}

.todo-delete:hover {
  opacity: 1 !important;
  color: var(--color-error);
}

.detail-empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: 24px 0;
  font-size: 13px;
}

/* To-Do Eingabe */
.detail-add-todo {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.todo-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.todo-input-row .input-sm {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--bg-card-solid);
  outline: none;
  transition: border-color 0.15s;
}

.todo-input-row .input-sm:focus {
  border-color: var(--color-primary);
}

.todo-inline-input {
  border: 1px dashed var(--color-border) !important;
  background: transparent !important;
  transition: border-color 0.15s, background 0.15s !important;
}

.todo-inline-input:focus {
  border-style: solid !important;
  background: var(--bg-card-solid) !important;
  border-color: var(--cal-todo) !important;
}

.todo-inline-input::placeholder {
  color: var(--text-tertiary);
  font-style: italic;
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-ghost:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-xs {
  padding: 2px 4px;
}

.btn-xs svg {
  width: 14px;
  height: 14px;
}

/* ─── Fahrten ─────────────────────────────────────────────────── */

.fahrten-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fahrten-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 20px;
}

.fahrten-sidebar h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.fahrten-berichte-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fahrten-bericht-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: background var(--duration) var(--ease);
}

.fahrten-bericht-item:hover {
  background: var(--color-primary-bg);
}

.fahrten-bericht-item.active {
  background: var(--color-primary-bg);
  font-weight: 600;
}

.fahrten-bericht-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.fahrten-main {
  flex: 1;
  min-width: 0;
}

.fahrten-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.fahrten-month-title {
  font-size: 20px;
  font-weight: 700;
  min-width: 200px;
  text-align: center;
  margin: 0;
}

.fahrten-nav-btn {
  padding: 6px;
}

.fahrten-badge-done {
  font-size: 12px;
  font-weight: 600;
  color: var(--fahrt-fahrrad);
  background: rgba(52, 199, 89, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.fahrten-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.fahrten-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 0;
}

.fahrten-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fahrten-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-input);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  min-height: 56px;
}

.fahrten-cell:hover:not(.fahrten-cell-locked) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fahrten-cell-empty {
  cursor: default;
}

.fahrten-cell-empty:hover {
  transform: none;
  box-shadow: none;
}

.fahrten-cell-day {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.fahrten-cell-label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.fahrten-cell-today {
  box-shadow: 0 0 0 2px var(--color-primary);
}

.fahrten-cell-locked {
  cursor: default;
  opacity: 0.7;
}

.fahrten-cell-locked:hover {
  transform: none;
  box-shadow: none;
}

.fahrten-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--color-divider);
}

.fahrten-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.fahrten-stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fahrten-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
}

/* Signatur-Canvas */
.signature-canvas {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--color-divider);
  border-radius: var(--radius-input);
  cursor: crosshair;
  background: var(--bg-card-solid);
}

/* ─── Gageninfo-Modul ──────────────────────────────────────────── */

/* --- Gageninfo: Status-Pills --- */

.gageninfo-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.gageninfo-status-erstellt {
  background: rgba(0, 122, 255, 0.15);
  color: #5AC8FA;
}

.gageninfo-status-versendet {
  background: rgba(52, 199, 89, 0.15);
  color: var(--color-success, #34C759);
}

.gageninfo-status-archiviert {
  background: rgba(142, 142, 147, 0.15);
  color: var(--text-tertiary, #6E6E73);
}

/* --- Gageninfo: Editor-Grid (2 Spalten) --- */

.gageninfo-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gageninfo-editor-grid .form-group-full {
  grid-column: 1 / -1;
}

/* --- Gageninfo: Projekt-Auswahl-Modal --- */

.gageninfo-project-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
}

.gageninfo-project-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.gageninfo-project-item:hover {
  background: var(--bg-cream);
  border-color: var(--accent-amber);
}

.gageninfo-project-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gageninfo-project-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.gageninfo-project-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.gageninfo-project-meta i {
  width: 12px;
  height: 12px;
}

/* --- Gageninfo: Buyout Chips --- */

.gageninfo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gageninfo-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  user-select: none;
}

.gageninfo-chip:hover {
  border-color: var(--color-primary);
  color: var(--text-primary);
}

.gageninfo-chip.selected {
  background: rgba(0, 122, 255, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Gageninfo: Motive dynamische Liste --- */

.gageninfo-motiv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gageninfo-motiv-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gageninfo-motiv-row input {
  flex: 1;
}

.gageninfo-motiv-row .btn-icon-danger {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: rgba(255, 69, 58, 0.1);
  color: var(--color-danger, #FF453A);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.gageninfo-motiv-row .btn-icon-danger:hover {
  background: rgba(255, 69, 58, 0.25);
}

/* Quick-Action: Als versendet markieren */
.btn-mark-sent {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease);
}

.btn-mark-sent:hover {
  opacity: 1;
  background: rgba(52, 168, 83, 0.12);
}

/* Motiv-Entfernen Button Alias */
.btn-remove-motiv {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 69, 58, 0.1);
  color: var(--color-danger, #FF453A);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.btn-remove-motiv:hover {
  background: rgba(255, 69, 58, 0.25);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Day Journal ────────────────────────────────────────────────── */

.journal-page {
  max-width: 960px;
  margin: 0 auto;
}

.journal-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 0;
}

.journal-date-center {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.journal-date-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.journal-date-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.journal-date-label:hover {
  color: var(--color-primary);
}

/* Klick auf Label öffnet den versteckten date-picker */
.journal-date-center:has(.journal-date-label:hover) .journal-date-input {
  pointer-events: auto;
}

.journal-today-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.journal-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journal-category-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 120px;
  border-left: 4px solid var(--border-light);
}

/* Kategorie-Akzent als linker Border */
.journal-cat-completed { border-left-color: var(--accent-green); }
.journal-cat-in_progress { border-left-color: var(--accent-blue); }
.journal-cat-blocker { border-left-color: var(--accent-red); }
.journal-cat-idea { border-left-color: var(--accent-yellow); }

.journal-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.journal-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.journal-category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-cream);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.journal-items-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 40px;
}

.journal-empty-hint {
  font-size: 14px;
  color: var(--text-tertiary);
  padding: 12px 0;
  text-align: center;
  font-style: italic;
}

.journal-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: background var(--duration) var(--ease);
  cursor: default;
}

.journal-item:hover {
  background: var(--bg-warm);
}

.journal-item[draggable="true"] {
  cursor: grab;
}

.journal-item-dragging {
  opacity: 0.4;
}

.journal-item-content {
  flex: 1;
  min-width: 0;
}

.journal-item-text {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.journal-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.journal-item-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.journal-item-duration {
  color: var(--text-secondary);
  background: var(--bg-cream);
}

.journal-item-project {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.journal-item-priority-high {
  color: #EF5350;
  background: rgba(244, 67, 54, 0.15);
}

.journal-item-priority-medium {
  color: #FFA726;
  background: rgba(255, 167, 38, 0.15);
}

.journal-item-priority-low {
  color: var(--text-secondary);
  background: var(--bg-cream);
}

.journal-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  flex-shrink: 0;
}

.journal-item:hover .journal-item-actions {
  opacity: 1;
}

.journal-btn-edit,
.journal-btn-delete {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.journal-btn-edit:hover { color: var(--text-primary); }
.journal-btn-delete:hover { color: var(--color-error); }

.journal-btn-pool {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #FFCA28;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.journal-btn-pool:hover {
  background: rgba(255, 193, 7, 0.25);
}

.journal-quick-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.journal-quick-input {
  flex: 1;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  height: 48px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.journal-quick-input::placeholder {
  color: var(--text-tertiary);
}

.journal-quick-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}

.journal-priority-select {
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  min-width: 90px;
}

.journal-priority-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.journal-edit-input,
.journal-edit-project,
.journal-edit-duration {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  margin-bottom: 4px;
}

.journal-edit-project,
.journal-edit-duration {
  font-size: 11px;
  padding: 4px 8px;
}

.journal-footer {
  margin-top: 20px;
}

.journal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-card);
  font-size: 13px;
  font-weight: 500;
}

.journal-status-draft {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  color: var(--text-secondary);
}

.journal-status-submitted {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.25);
  color: #66BB6A;
}

/* ─── Ideen-Pool Master-Detail ─────────────────────────────────── */

/* Ideen-Seite: Content als Flex-Column, Body füllt verfügbaren Platz */
.content:has(.ideen-page) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content:has(.ideen-page) > .content-header {
  display: none;
}

.content-body:has(.ideen-page) {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.ideen-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Page Header */
.ideen-page-header {
  padding: 24px 40px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ideen-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ideen-page-title-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-amber-soft);
  border: 1px solid rgba(232,134,42,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.ideen-page-title h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.ideen-page-title-sub {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ideen-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Search Box */
.ideen-search-box {
  position: relative;
}

.ideen-search-box input {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 16px 11px 40px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  width: 230px;
  transition: all 0.3s;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.ideen-search-box input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(232,134,42,0.08);
  width: 270px;
}

.ideen-search-box input::placeholder { color: var(--text-tertiary); }

.ideen-search-box::before {
  content: '\1F50D';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.5;
}

/* New Idea Button */
.ideen-btn-new {
  background: var(--accent-amber);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(232,134,42,0.25);
}

.ideen-btn-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,134,42,0.35);
  background: #d4750f;
}

/* Master-Detail Container */
.ideen-master-detail {
  flex: 1;
  display: flex;
  margin: 0 40px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
  border: 1px solid var(--border-light);
  min-height: 0;
}

/* ─── Left: Ideas List ─── */
.ideen-list-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
}

.ideen-list-header {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border-light);
}

.ideen-list-header h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.ideen-list-count {
  font-size: 12px;
  color: var(--text-tertiary);
}

.ideen-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Idea Card in List */
.ideen-card {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.ideen-card:hover {
  background: rgba(255,255,255,0.6);
  border-color: var(--border-light);
}

.ideen-card.active {
  background: var(--bg-surface);
  border-color: var(--border-medium);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.ideen-card.active .ideen-card-dot {
  background: var(--accent-amber);
}

.ideen-card-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ideen-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  margin-top: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.ideen-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.ideen-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  margin-left: 18px;
}

/* Archive Section */
.ideen-archive-section {
  border-top: 1px solid var(--border-light);
  padding: 0;
  background: rgba(0,0,0,0.015);
}

.ideen-archive-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 14px 20px;
  transition: color 0.2s;
}

.ideen-archive-toggle:hover {
  color: var(--text-secondary);
}

.ideen-archive-count {
  margin-left: auto;
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.ideen-archive-list {
  padding: 0 8px 8px;
  display: none;
}

.ideen-archive-list.open {
  display: block;
}

.ideen-archive-list .ideen-card {
  opacity: 0.7;
}

.ideen-archive-list .ideen-card:hover {
  opacity: 1;
}

/* ─── Right: Detail Panel ─── */
.ideen-detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ideen-detail-header {
  padding: 28px 40px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.ideen-detail-title {
  font-family: inherit;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  caret-color: var(--accent-amber);
}

.ideen-detail-title::placeholder {
  color: var(--text-tertiary);
}

.ideen-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.ideen-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(91,168,140,0.1);
  color: var(--accent-green);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Editor Area */
.ideen-editor-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Quill Custom Theme für Ideen-Pool */
.ideen-editor-area .ql-toolbar.ql-snow {
  background: var(--bg-cream);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid var(--border-light);
  border-bottom: none;
  padding: 10px 14px;
  font-family: inherit;
}

.ideen-editor-area .ql-toolbar .ql-stroke {
  stroke: var(--text-secondary);
}

.ideen-editor-area .ql-toolbar .ql-fill {
  fill: var(--text-secondary);
}

.ideen-editor-area .ql-toolbar .ql-picker {
  color: var(--text-secondary);
}

.ideen-editor-area .ql-toolbar button:hover .ql-stroke,
.ideen-editor-area .ql-toolbar .ql-picker-label:hover .ql-stroke {
  stroke: var(--accent-amber);
}

.ideen-editor-area .ql-toolbar button:hover .ql-fill,
.ideen-editor-area .ql-toolbar .ql-picker-label:hover .ql-fill {
  fill: var(--accent-amber);
}

.ideen-editor-area .ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--accent-amber);
}

.ideen-editor-area .ql-toolbar button.ql-active .ql-fill {
  fill: var(--accent-amber);
}

.ideen-editor-area .ql-toolbar button.ql-active {
  background: var(--accent-amber-soft);
  border-radius: 6px;
}

.ideen-editor-area .ql-container.ql-snow {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  min-height: 260px;
  color: var(--text-primary);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ideen-editor-area .ql-container.ql-snow:focus-within {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(232,134,42,0.08);
}

.ideen-editor-area .ql-editor {
  padding: 28px;
  line-height: 1.8;
  min-height: 260px;
}

.ideen-editor-area .ql-editor p {
  margin-bottom: 14px;
}

.ideen-editor-area .ql-editor strong {
  font-weight: 700;
}

.ideen-editor-area .ql-editor em {
  color: var(--accent-violet);
  font-style: italic;
}

.ideen-editor-area .ql-editor ul, .ideen-editor-area .ql-editor ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.ideen-editor-area .ql-editor li {
  margin-bottom: 8px;
}

.ideen-editor-area .ql-editor.ql-blank::before {
  color: var(--text-tertiary);
  font-style: normal;
}

.ideen-editor-area .ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ideen-editor-area .ql-snow .ql-picker.ql-header .ql-picker-item::before {
  font-family: inherit;
}

/* ─── Anhänge-Sektion ─── */

.ideen-attachments-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.ideen-attachments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-cream);
  box-sizing: border-box;
}

.ideen-attachments-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ideen-btn-attach {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.ideen-btn-attach:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(232,134,42,0.08);
}

.ideen-attachments-list {
  padding: 8px 12px;
}

.ideen-attach-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.ideen-attach-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.ideen-attach-item:hover {
  background: var(--bg-cream);
}

.ideen-attach-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.ideen-attach-info {
  flex: 1;
  min-width: 0;
}

.ideen-attach-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ideen-attach-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.ideen-attach-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.ideen-attach-item:hover .ideen-attach-actions {
  opacity: 1;
}

.ideen-attach-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}

.ideen-attach-btn:hover {
  background: var(--bg-cream);
}

.ideen-attach-btn.danger:hover {
  background: rgba(201,123,123,0.1);
}

/* Preview Modal Overlay */
.ideen-preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: ideen-overlay-in 0.2s ease;
}

.ideen-preview-overlay.open {
  display: flex;
}

@keyframes ideen-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ideen-preview-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ideen-modal-in 0.25s ease;
}

@keyframes ideen-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ideen-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-cream);
  flex-shrink: 0;
}

.ideen-preview-header span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ideen-preview-close {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.ideen-preview-close:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ideen-preview-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.ideen-preview-body:has(embed) {
  padding: 0;
  overflow: hidden;
}

.ideen-preview-docx {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.ideen-preview-docx h1 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.ideen-preview-docx h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.ideen-preview-docx p { margin-bottom: 10px; }
.ideen-preview-docx ul, .ideen-preview-docx ol { padding-left: 22px; margin-bottom: 10px; }
.ideen-preview-docx li { margin-bottom: 4px; }

.ideen-preview-audio {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  gap: 10px;
}

.ideen-preview-audio-icon {
  font-size: 48px;
  opacity: 0.5;
}

.ideen-preview-audio-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

/* GPT Brainstorming Box */
.ideen-gpt-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.ideen-gpt-head {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-violet-soft);
}

.ideen-gpt-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,111,186,0.25);
}

.ideen-gpt-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.ideen-gpt-body {
  padding: 16px 22px;
}

.ideen-gpt-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ideen-gpt-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.ideen-gpt-input:focus {
  border-color: var(--accent-violet);
}

.ideen-gpt-input::placeholder {
  color: var(--text-tertiary);
}

.ideen-gpt-send {
  padding: 10px 20px;
  background: var(--accent-violet);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.ideen-gpt-send:hover {
  opacity: 0.9;
}

.ideen-gpt-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ideen-gpt-answer {
  margin-top: 14px;
}

.ideen-gpt-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 12px 0;
}

.ideen-gpt-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--accent-violet);
  border-radius: 50%;
  animation: gpt-spin 0.7s linear infinite;
}

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

.ideen-gpt-error {
  padding: 12px 16px;
  background: rgba(244,67,54,0.08);
  border: 1px solid rgba(244,67,54,0.2);
  border-radius: var(--radius-sm);
  color: #c62828;
  font-size: 13px;
  line-height: 1.5;
}

.ideen-gpt-response {
  padding: 16px;
  background: var(--accent-violet-soft);
  border: 1px solid rgba(124,111,186,0.15);
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
  resize: vertical;
}

.ideen-gpt-response-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Scrollbar für GPT-Antwort */
.ideen-gpt-response::-webkit-scrollbar {
  width: 6px;
}
.ideen-gpt-response::-webkit-scrollbar-track {
  background: transparent;
}
.ideen-gpt-response::-webkit-scrollbar-thumb {
  background: rgba(124,111,186,0.25);
  border-radius: 3px;
}
.ideen-gpt-response::-webkit-scrollbar-thumb:hover {
  background: rgba(124,111,186,0.4);
}

.ideen-gpt-adopt {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--accent-violet);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.ideen-gpt-adopt:hover {
  opacity: 0.9;
}

.ideen-gpt-adopt:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Typing Cursor Animation (während Streaming) */
.gpt-typing-cursor::after {
  content: '▊';
  animation: gpt-blink 0.8s infinite;
  color: var(--accent-violet);
  margin-left: 1px;
}

@keyframes gpt-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Detail Footer */
.ideen-detail-footer {
  padding: 16px 40px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-cream);
  flex-shrink: 0;
}

.ideen-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.ideen-save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: ideen-pulse 2.5s ease-in-out infinite;
}

@keyframes ideen-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ideen-footer-actions {
  display: flex;
  gap: 8px;
}

.ideen-btn-footer {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ideen-btn-footer:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.ideen-btn-footer.danger:hover {
  background: rgba(201,123,123,0.06);
  color: var(--accent-rose);
  border-color: rgba(201,123,123,0.3);
}

.ideen-btn-footer.restore {
  background: var(--accent-amber-soft);
  border-color: rgba(232,134,42,0.2);
  color: var(--accent-amber);
}

.ideen-btn-footer.restore:hover {
  background: rgba(232,134,42,0.2);
  color: #d4750f;
}

/* Empty State */
.ideen-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--text-tertiary);
  font-size: 15px;
  padding: 40px;
  text-align: center;
}

.ideen-empty-state-icon {
  font-size: 48px;
  opacity: 0.4;
}

/* Animations */
@keyframes ideen-slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.ideen-card {
  animation: ideen-slideIn 0.3s ease forwards;
  opacity: 0;
}

.ideen-card:nth-child(1) { animation-delay: 0.05s; }
.ideen-card:nth-child(2) { animation-delay: 0.1s; }
.ideen-card:nth-child(3) { animation-delay: 0.15s; }
.ideen-card:nth-child(4) { animation-delay: 0.2s; }
.ideen-card:nth-child(5) { animation-delay: 0.25s; }

/* Archive read-only state */
.ideen-detail-panel.archived .ideen-detail-title {
  color: var(--text-secondary);
  pointer-events: none;
}

.ideen-detail-panel.archived .ql-toolbar {
  display: none;
}

.ideen-detail-panel.archived .ql-container.ql-snow {
  border-radius: var(--radius-sm);
}

.ideen-detail-panel.archived .ql-editor {
  color: var(--text-secondary);
}

/* ─── Admin Team Journal ──────────────────────────────────────────── */

/* Seitenüberschrift: 28px, weight 600 (statt global 700) */
.content-header:has(~ .content-body .team-journal-page) h1 {
  font-weight: 600;
}

.team-journal-page {
  max-width: 860px;
  margin: 0 auto;
}

/* Warnung: Nicht eingereicht */
.tj-warning-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--accent-yellow-soft);
  border: 1px solid rgba(212,160,23,0.25);
}

.tj-warning-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-primary);
}

.tj-reminder-btn {
  flex-shrink: 0;
  font-size: 14px;
}

/* Probleme-Aggregation */
.tj-blocker-section {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--accent-red-soft);
  border: 1px solid rgba(201,85,90,0.15);
  border-left: 4px solid var(--accent-red);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tj-blocker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-red);
  border-bottom: 1px solid rgba(201,85,90,0.1);
}

.tj-blocker-list {
  padding: 8px 12px;
}

.tj-blocker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
}

.tj-blocker-item:hover {
  background: var(--bg-surface);
}

.tj-blocker-prio-high {
  border-left: 3px solid #EF5350;
}

.tj-blocker-prio-medium {
  border-left: 3px solid #FFA726;
}

.tj-blocker-prio-low {
  border-left: 3px solid #78909C;
}

.tj-blocker-content {
  flex: 1;
  min-width: 0;
}

.tj-blocker-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tj-blocker-prio {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-secondary);
}

.tj-blocker-user {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* User-Karten */
.tj-user-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.tj-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.tj-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.tj-card-name {
  /* übernimmt font von parent */
}

.tj-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

.tj-status-submitted {
  background: rgba(76, 175, 80, 0.12);
  color: #66BB6A;
}

.tj-status-draft {
  background: rgba(255, 193, 7, 0.12);
  color: #FFCA28;
}

.tj-card-summary {
  padding: 10px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Blocker direkt in Karte */
.tj-card-blockers {
  padding: 0 20px 8px;
}

.tj-card-blocker-item {
  padding: 6px 10px;
  margin-bottom: 4px;
  font-size: 13px;
  color: #EF5350;
  background: rgba(244, 67, 54, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(244, 67, 54, 0.4);
}

/* Aufklappbare Details */
.tj-card-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-tertiary);
  cursor: pointer;
  user-select: none;
  border-top: 1px solid var(--color-border);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.tj-card-toggle:hover {
  color: var(--text-secondary);
  background: var(--bg-cream);
}

.tj-card-details {
  padding: 0 20px 16px;
}

.tj-card-details.tj-collapsed {
  display: none;
}

.tj-detail-category {
  margin-bottom: 12px;
}

.tj-detail-category:last-child {
  margin-bottom: 0;
}

.tj-detail-cat-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tj-detail-item {
  padding: 5px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.tj-detail-item:last-child {
  border-bottom: none;
}

.tj-empty-hint {
  text-align: center;
  padding: 32px 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ─── Privacy Screen ──────────────────────────────────────────────── */

#privacy-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: privacyFadeIn 0.4s ease;
}

#privacy-screen.privacy-fade-out {
  animation: privacyFadeOut 0.3s ease forwards;
}

@keyframes privacyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes privacyFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.privacy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.privacy-logo {
  width: 140px;
  height: auto;
  margin-bottom: 4px;
  opacity: 0.9;
}

.privacy-brand {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.privacy-clock {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}

.privacy-date {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.privacy-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 280px;
}

.privacy-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  outline: none;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.privacy-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.privacy-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.privacy-error {
  font-size: 13px;
  color: #ef4444;
  min-height: 20px;
}

.privacy-unlock {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.privacy-unlock:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dashboard Privacy Button */
.privacy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.privacy-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}
