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

:root {
  --bg:        #f4f4f4;
  --surface:   #ffffff;
  --dark:      #1a1a1a;
  --primary:   #d32f2f;
  --primary-dk:#b71c1c;
  --text:      #1a1a1a;
  --text-muted:#777777;
  --border:    #e0e0e0;
  --radius:    12px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --hero-bg:   #1a1a1a;
  --nav-bg:    #1a1a1a;
}

/* ─── DARK MODE ─── */
[data-theme="dark"] {
  --bg:        #0f0f0f;
  --surface:   #1c1c1e;
  --dark:      #000000;
  --text:      #f0f0f0;
  --text-muted:#8e8e93;
  --border:    #2c2c2e;
  --shadow:    0 2px 16px rgba(0,0,0,0.4);
  --hero-bg:   #000000;
  --nav-bg:    #000000;
}

[data-theme="dark"] body {
  color-scheme: dark;
}

[data-theme="dark"] nav {
  background: var(--nav-bg);
  border-bottom: 1px solid #222;
}

[data-theme="dark"] .hero {
  background: var(--hero-bg);
}

[data-theme="dark"] .nav-menu {
  background: #111;
  border-top: 1px solid #222;
}

[data-theme="dark"] .card-title {
  background: #b71c1c;
}

[data-theme="dark"] .menu-card {
  border-color: #2c2c2e;
  background: #242424;
}

[data-theme="dark"] .menu-preis {
  background: #c62828;
}

[data-theme="dark"] .tag-row {
  border-color: #2c2c2e;
}

[data-theme="dark"] .angebot-row {
  border-color: #2c2c2e;
}

[data-theme="dark"] .zeit-row {
  border-color: #2c2c2e;
}

[data-theme="dark"] .zeiten-group-label {
  color: #8e8e93;
}

[data-theme="dark"] .btn-wochenplan {
  border-color: #2c2c2e;
  color: #8e8e93;
}

[data-theme="dark"] .btn-wochenplan:hover {
  border-color: #e57373;
  color: #e57373;
}

[data-theme="dark"] .woche-tag {
  border-color: #2c2c2e;
}

[data-theme="dark"] .tooltip-box {
  background: #1c1c1e;
  color: #f0f0f0;
}

[data-theme="dark"] footer {
  color: #555;
}

/* Dark mode toggle in nav */
.dm-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}

.dm-toggle:hover { background: rgba(255,255,255,0.07); }

.dm-switch {
  margin-left: auto;
  width: 36px;
  height: 20px;
  background: #444;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dm-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

[data-theme="dark"] .dm-switch {
  background: var(--primary);
}

[data-theme="dark"] .dm-switch::after {
  transform: translateX(16px);
}

/* Mitteilung */
.mitteilung-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.mitteilung-banner {
  padding: 14px 20px 16px;
}

.mitteilung-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  opacity: 0.75;
}

.mitteilung-text {
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Angebot alter Preis */
.angebot-preise {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.angebot-preis-alt {
  font-size: 0.78rem;
  color: #aaa;
  text-decoration: line-through;
}

[data-theme="dark"] .angebot-preis-alt {
  color: #555;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── NAVBAR ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 56px;
  padding: 0 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 28px; width: auto; display: block; }

/* Links — hidden on mobile, shown as dropdown */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: #111;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 99;
}
.nav-links.open { display: flex; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 13px 24px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-links a.active-nav { color: #fff; font-weight: 600; }

/* Actions — hidden on mobile (shown in drawer) */
.nav-actions { display: none; }

/* Hamburger */
.hamburger {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: dm + lock inside drawer */
.nav-links .nav-dm-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}
.nav-links .nav-dm-btn:hover { background: rgba(255,255,255,0.06); }
.nav-links .nav-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-links .nav-lock:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

/* ─── HERO ─── */
.hero {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 24px 32px;
}

.hero img {
  width: min(300px, 75vw);
  height: auto;
}

/* ─── MAIN ─── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ─── CARD ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--primary);
  padding: 12px 20px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg { stroke: #fff; }

.card-body {
  padding: 20px;
}

/* ─── MENÜ CARDS ─── */
.menu-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.menu-card:last-of-type { margin-bottom: 0; }

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

.menu-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.menu-preis {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.menu-preis:hover { background: var(--primary-dk); }

.menu-inhalt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

/* ─── ALLERGENE ─── */
.menu-allergene {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ─── WOCHENPLAN BUTTON ─── */
.btn-wochenplan {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ─── WOCHENPLAN ─── */
.woche-tag {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.woche-tag:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.woche-tag-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ─── ANGEBOTE ─── */
.angebot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.angebot-row:last-child { border-bottom: none; }
.angebot-titel { font-size: 0.95rem; }

.badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── ÖFFNUNGSZEITEN ─── */
.zeiten-gruppe { }

.zeiten-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.zeit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.zeit-row:last-child { border-bottom: none; }
.zeit-tag { color: var(--text-muted); }
.zeit-wert { font-weight: 600; }

/* ─── TOOLTIP OVERLAY ─── */
.tooltip-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0 0;
}

.tooltip-overlay.show {
  display: flex;
}

.tooltip-box {
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 500px;
  font-size: 0.95rem;
  line-height: 1.6;
  animation: slideUp 0.25s ease;
}

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

.tooltip-close {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* ─── LOADING ─── */
.loading {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─── LOGIN ─── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  padding: 24px;
}

.login-box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  width: 160px;
  margin: 0 auto 24px;
  display: block;
  background: var(--dark);
  border-radius: 8px;
  padding: 12px;
}

.login-box h1 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  text-align: center;
}

.login-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus { border-color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
  width: 100%;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  width: auto;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.error-msg {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}

/* ─── INTERN ─── */
.intern-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.intern-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.intern-nav a:hover, .intern-nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sp-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.sp-row label { font-size: 0.88rem; font-weight: 500; }

.sp-row input, .form-group input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.sp-row input:focus, .form-group input:focus { border-color: var(--primary); }

.save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.save-row .btn {
  width: auto;
  padding: 10px 20px;
}

.ok-msg { color: #2e7d32; font-size: 0.85rem; }

.angebot-add-row {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 8px;
  margin-bottom: 14px;
}

.angebot-add-row input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.angebot-add-row .btn {
  width: auto;
  padding: 10px 14px;
  white-space: nowrap;
}

.angebot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

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

.btn-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-muted);
}

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

/* ─── DESKTOP ─── */
@media (min-width: 700px) {
  nav { padding: 0 32px; height: 56px; }

  /* Hide hamburger */
  .hamburger { display: none !important; }

  /* Center links */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    flex: 1;
    justify-content: center;
    gap: 0;
    height: 56px;
    align-items: stretch;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    border-bottom: 2px solid transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    background: none;
  }
  .nav-links a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
  .nav-links a.active-nav { color: #fff; border-bottom-color: #d32f2f; background: none; font-weight: 600; }

  /* Hide mobile-only items in drawer */
  .nav-links .nav-dm-btn { display: none; }
  .nav-links .nav-lock { display: none; }

  /* Show action icons right */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-dm-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
    height: 34px;
  }
  .nav-dm-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
  .nav-lock {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: rgba(255,255,255,0.35);
    height: 34px;
    text-decoration: none;
    transition: all 0.15s;
  }
  .nav-lock:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

  .dm-switch { width: 26px; height: 15px; display: inline-block; }
  .dm-switch::after { width: 9px; height: 9px; top: 3px; left: 3px; }
  [data-theme="dark"] .dm-switch::after { transform: translateX(11px); }

  main { padding: 32px 24px 64px; }
  .hero { display: none; }
  .tooltip-box { border-radius: 16px; margin-bottom: 40px; }
  .tag-tabs-pub { top: 56px; }
}

/* Nav dropdown icons */
.nav-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  margin-right: 12px;
}

@media (min-width: 700px) {
  .nav-icon-box { display: none; }
}


/* ── Themes ─────────────────────────────────── */

/* HELL ROT (Standard) */
:root {
  --bg: #f4f4f4; --surface: #ffffff; --dark: #1a1a1a;
  --primary: #d32f2f; --primary-dk: #b71c1c;
  --text: #1a1a1a; --text-muted: #777; --border: #e0e0e0;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* HELL LILA */
[data-theme="light-purple"] {
  --bg: #f5f3ff; --surface: #ffffff; --dark: #1a0a2e;
  --primary: #7b1fa2; --primary-dk: #6a1b9a;
  --text: #1a0a2e; --text-muted: #7a6a8a; --border: #e8e0f0;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.08);
}
[data-theme="light-purple"] nav { background: #6a1b9a; }
[data-theme="light-purple"] .hero { background: linear-gradient(135deg,#6a1b9a,#7b1fa2); }
[data-theme="light-purple"] .card-title { background: #7b1fa2; color:#fff; }
[data-theme="light-purple"] .btn-primary, [data-theme="light-purple"] .btn.btn-primary { background:#7b1fa2; }
[data-theme="light-purple"] .sp-menu-nr-badge { background:#6a1b9a; }
[data-theme="light-purple"] .sp-preis-btn { background:#7b1fa2; }
[data-theme="light-purple"] .status-pill.offen { background:#6a1b9a; }
[data-theme="light-purple"] .heute-card .card-title { background:#6a1b9a; }
[data-theme="light-purple"] .schnelllink-icon { background:#7b1fa2; }
[data-theme="light-purple"] .kat-tab.active { background:#7b1fa2; border-color:#7b1fa2; }
[data-theme="light-purple"] .nav-icon-box { background:#7b1fa2; }
[data-theme="light-purple"] .pwa-btn { background:#7b1fa2; }
[data-theme="light-purple"] .allergen-chip.aktiv { background:#7b1fa2; border-color:#7b1fa2; }

/* HELL BLAU */
[data-theme="light-blue"] {
  --bg: #f0f4ff; --surface: #ffffff; --dark: #0a1a3a;
  --primary: #1565c0; --primary-dk: #0d47a1;
  --text: #0a1a3a; --text-muted: #5a7aaa; --border: #d4e2f8;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.08);
}
[data-theme="light-blue"] nav { background: #0d47a1; }
[data-theme="light-blue"] .hero { background: linear-gradient(135deg,#0d47a1,#1565c0); }
[data-theme="light-blue"] .card-title { background: #1565c0; color:#fff; }
[data-theme="light-blue"] .btn-primary, [data-theme="light-blue"] .btn.btn-primary { background:#1565c0; }
[data-theme="light-blue"] .sp-menu-nr-badge { background:#0d47a1; }
[data-theme="light-blue"] .sp-preis-btn { background:#1565c0; }
[data-theme="light-blue"] .status-pill.offen { background:#1565c0; }
[data-theme="light-blue"] .heute-card .card-title { background:#0d47a1; }
[data-theme="light-blue"] .schnelllink-icon { background:#1565c0; }
[data-theme="light-blue"] .kat-tab.active { background:#1565c0; border-color:#1565c0; }
[data-theme="light-blue"] .nav-icon-box { background:#1565c0; }
[data-theme="light-blue"] .pwa-btn { background:#1565c0; }
[data-theme="light-blue"] .allergen-chip.aktiv { background:#1565c0; border-color:#1565c0; }

/* DUNKEL ROT */
[data-theme="dark"] {
  --bg: #0f0f0f; --surface: #1c1c1e; --dark: #000000;
  --primary: #ef5350; --primary-dk: #d32f2f;
  --text: #f0f0f0; --text-muted: #8e8e93; --border: #2c2c2e;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.4);
}
[data-theme="dark"] body { background:#0f0f0f; color:#f0f0f0; }
[data-theme="dark"] nav { background:#1a1a1a; }
[data-theme="dark"] .hero { background: linear-gradient(135deg,#1a0000,#2a0000); }
[data-theme="dark"] .card-title { background:#2c2c2e; color:#f0f0f0; }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .btn.btn-primary { background:#ef5350; }
[data-theme="dark"] .sp-menu-nr-badge { background:#3a3a3c; }
[data-theme="dark"] .sp-preis-btn { background:#ef5350; }
[data-theme="dark"] .heute-card .card-title { background:#2c2c2e; }
[data-theme="dark"] .schnelllink-icon { background:#ef5350; }
[data-theme="dark"] .kat-tab.active { background:#ef5350; border-color:#ef5350; }
[data-theme="dark"] .nav-icon-box { background:#ef5350; }
[data-theme="dark"] .allergen-chip.aktiv { background:#ef5350; border-color:#ef5350; }
[data-theme="dark"] .kombi-select { background:#2c2c2e; color:#f0f0f0; border-color:#3a3a3c; }
[data-theme="dark"] .ma-karte { background:#1c1c1e; border-color:#2c2c2e; }
[data-theme="dark"] .ma-liste-item { background:#1c1c1e; }
[data-theme="dark"] .ma-add-row input { background:#1c1c1e; color:#f0f0f0; border-color:#3a3a3c; }
[data-theme="dark"] .woche-nav button { background:#1c1c1e; color:#f0f0f0; border-color:#3a3a3c; }
[data-theme="dark"] .tag-tabs { background:#1c1c1e; }
[data-theme="dark"] .tag-tab.active { background:#2c2c2e; }
[data-theme="dark"] .ma-karte[data-schicht="zeit"]   { background:#2a1010; border-color:#4a1010; }
[data-theme="dark"] .ma-karte[data-schicht="frei"]   { background:#0a2010; border-color:#1a4020; }
[data-theme="dark"] .ma-karte[data-schicht="krank"]  { background:#2a1800; border-color:#4a2800; }
[data-theme="dark"] .ma-karte[data-schicht="urlaub"] { background:#0a1a2a; border-color:#1a3050; }
[data-theme="dark"] .save-bar { border-color:#2c2c2e; }
[data-theme="dark"] .woche-nav button { background:#1c1c1e; }

/* DUNKEL LILA */
[data-theme="dark-purple"] {
  --bg: #0d0a12; --surface: #1a1525; --dark: #000000;
  --primary: #ce93d8; --primary-dk: #ab47bc;
  --text: #f0ecf8; --text-muted: #9a8aaa; --border: #2a2035;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.4);
}
[data-theme="dark-purple"] body { background:#0d0a12; color:#f0ecf8; }
[data-theme="dark-purple"] nav { background:#12101a; }
[data-theme="dark-purple"] .hero { background: linear-gradient(135deg,#1a0a2e,#2a1040); }
[data-theme="dark-purple"] .card-title { background:#2a1a40; color:#f0ecf8; }
[data-theme="dark-purple"] .btn-primary, [data-theme="dark-purple"] .btn.btn-primary { background:#ab47bc; color:#fff; }
[data-theme="dark-purple"] .sp-menu-nr-badge { background:#2a1a40; }
[data-theme="dark-purple"] .sp-preis-btn { background:#ab47bc; }
[data-theme="dark-purple"] .status-pill.offen { background:#ab47bc; }
[data-theme="dark-purple"] .heute-card .card-title { background:#2a1a40; }
[data-theme="dark-purple"] .schnelllink-icon { background:#ab47bc; }
[data-theme="dark-purple"] .kat-tab.active { background:#ab47bc; border-color:#ab47bc; }
[data-theme="dark-purple"] .nav-icon-box { background:#ab47bc; }
[data-theme="dark-purple"] .allergen-chip.aktiv { background:#ab47bc; border-color:#ab47bc; }

/* DUNKEL BLAU */
[data-theme="dark-blue"] {
  --bg: #080d14; --surface: #101820; --dark: #000000;
  --primary: #64b5f6; --primary-dk: #1e88e5;
  --text: #e8f0fe; --text-muted: #7a9abe; --border: #1a2a3a;
  --radius: 12px; --shadow: 0 2px 16px rgba(0,0,0,0.4);
}
[data-theme="dark-blue"] body { background:#080d14; color:#e8f0fe; }
[data-theme="dark-blue"] nav { background:#0a1520; }
[data-theme="dark-blue"] .hero { background: linear-gradient(135deg,#0a1a3a,#0d2040); }
[data-theme="dark-blue"] .card-title { background:#0d2040; color:#e8f0fe; }
[data-theme="dark-blue"] .btn-primary, [data-theme="dark-blue"] .btn.btn-primary { background:#1e88e5; color:#fff; }
[data-theme="dark-blue"] .sp-menu-nr-badge { background:#0d2040; }
[data-theme="dark-blue"] .sp-preis-btn { background:#1e88e5; }
[data-theme="dark-blue"] .status-pill.offen { background:#1e88e5; }
[data-theme="dark-blue"] .heute-card .card-title { background:#0d2040; }
[data-theme="dark-blue"] .schnelllink-icon { background:#1e88e5; }
[data-theme="dark-blue"] .kat-tab.active { background:#1e88e5; border-color:#1e88e5; }
[data-theme="dark-blue"] .nav-icon-box { background:#1e88e5; }
[data-theme="dark-blue"] .allergen-chip.aktiv { background:#1e88e5; border-color:#1e88e5; }

/* ── Theme Picker Modal ─────────────────────── */
#theme-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 500;
  align-items: flex-end; justify-content: center;
}
#theme-modal.show { display: flex; }
#theme-sheet {
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px; width: 100%; max-width: 480px;
  animation: slideUp 0.25s ease;
}
.theme-sheet-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 16px;
}
.theme-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.theme-btn {
  display: flex; flex-direction: column; align-items: stretch;
  padding: 0; border-radius: 12px; border: 2px solid var(--border);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: all 0.15s; background: var(--surface); overflow: hidden;
}
.theme-btn.aktiv { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.theme-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.theme-swatch { width: 100%; height: 48px; display: flex; overflow: hidden; }
.theme-swatch-bg { flex: 1; }
.theme-swatch-accent { width: 18px; flex-shrink: 0; }
.theme-label { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.theme-name { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.theme-desc { font-size: 0.68rem; color: var(--text-muted); }

/* ── DM Hint — redesigned ─────────────────── */
#dm-hint {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 300; background: #1a1a1a; color: #fff;
  padding: 14px 18px; border-radius: 16px;
  font-size: 0.85rem; width: calc(100% - 48px); max-width: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  animation: slideUpHint 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUpHint { from { opacity:0; transform:translateX(-50%) translateY(20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.dm-hint-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dm-hint-icon { width: 36px; height: 36px; border-radius: 9px; background: #333; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dm-hint-title { font-weight: 600; font-size: 0.88rem; }
.dm-hint-sub { font-size: 0.75rem; color: #aaa; margin-top: 1px; }
.dm-hint-close { margin-left: auto; background: none; border: none; color: #666; cursor: pointer; font-size: 1.1rem; padding: 0 4px; }
.dm-hint-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-hint-actions button {
  padding: 9px; border-radius: 10px; border: none; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
#dm-hint-activate { background: #fff; color: #111; }
#dm-hint-themes   { background: #333; color: #fff; }