/* 14-werkzeuge.css — Hintergrund-Editor, Rezepte (Cookidoo + eigene), Schalter Animationen/Glas aus. Teil der geordneten Kaskade: in index.html in Nummern-Reihenfolge geladen; Regeln NICHT zwischen Dateien verschieben, ohne die Reihenfolge zu bedenken. */
/* ═══════════════ HINTERGRUND-EDITOR (manuell) ═══════════════ */
.bgedit-modal {
  position: fixed; inset: 0; z-index: 4000;
  display: none; flex-direction: column;
  background: rgba(10,12,16,0.96);
  -webkit-backdrop-filter: blur(calc(8px * var(--glass-mult) * var(--glass-scroll, 1))); backdrop-filter: blur(calc(8px * var(--glass-mult) * var(--glass-scroll, 1)));
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  gap: 10px;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.bgedit-modal.open { display: flex; }
.bgedit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bgedit-title { font-size: 15px; font-weight: 800; color: var(--text, #fff); }
.bgedit-title span { color: var(--text-muted, #9aa3b2); font-weight: 600; }
.bgedit-x {
  width: 34px; height: 34px; border-radius: 50%; border: none; flex-shrink: 0;
  background: rgba(255,255,255,0.10); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.bgedit-x:active { background: rgba(255,255,255,0.2); transform: scale(0.94); }
/* Bühne mit Karo-Muster (zeigt Transparenz) */
.bgedit-stage {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; overflow: hidden;
  background-color: #2b2f37;
  background-image:
    linear-gradient(45deg, #3a3f49 25%, transparent 25%),
    linear-gradient(-45deg, #3a3f49 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #3a3f49 75%),
    linear-gradient(-45deg, transparent 75%, #3a3f49 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
#bgEditorCanvas {
  max-width: 100%; max-height: 100%;
  touch-action: none;            /* kein Scrollen/Zoomen durch den Browser beim Zeichnen */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform-origin: center center;   /* Zoom um die Mitte */
  will-change: transform;
}
.bgedit-busy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: rgba(10,12,16,0.55); color: #fff; font-size: 13px; font-weight: 600;
}
/* hidden-Attribut respektieren – sonst überschreibt das display:flex oben das
   Verstecken: Busy-Overlay bliebe für immer sichtbar (blockiert alle Klicks),
   und alle Steuer-Panels würden gleichzeitig erscheinen. */
.bgedit-busy[hidden], .bgedit-ctl[hidden] { display: none !important; }
.bgedit-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff;
  animation: cdSpin 0.8s linear infinite;   /* reine Rotation (kein translate-Drift) */
}
.bgedit-tools { display: flex; flex-direction: column; gap: 8px; }
.bgedit-modes { display: flex; gap: 6px; }
.bgedit-mode {
  flex: 1; padding: 9px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05); color: var(--text-muted, #9aa3b2);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.bgedit-mode.is-active { background: rgba(99,102,241,0.22); border-color: rgba(99,102,241,0.6); color: #fff; }
.bgedit-ctl { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.bgedit-seg { display: flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: 9px; padding: 3px; }
.bgedit-sub {
  padding: 6px 12px; border-radius: 7px; border: none; background: transparent;
  color: var(--text-muted, #9aa3b2); font-size: 13px; font-weight: 700; cursor: pointer;
}
.bgedit-sub.is-active { background: rgba(255,255,255,0.16); color: #fff; }
.bgedit-slider { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted, #9aa3b2); font-weight: 600; }
.bgedit-slider input[type="range"] { flex: 1; accent-color: #6366f1; }
.bgedit-hint { font-size: 12px; color: var(--text-muted, #9aa3b2); font-weight: 600; }
.bgedit-ai-run {
  padding: 9px 14px; border-radius: 10px; border: none;
  background: rgba(99,102,241,0.22); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.bgedit-ai-run:active { transform: scale(0.97); }
.bgedit-actions { display: flex; gap: 8px; }
.bgedit-btn {
  flex: 1; padding: 11px 6px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06); color: var(--text, #fff); font-size: 13px; font-weight: 700; cursor: pointer;
}
.bgedit-btn:disabled { opacity: 0.4; }
.bgedit-btn:active:not(:disabled) { transform: scale(0.97); }
.bgedit-save { background: #22c55e; border-color: #22c55e; color: #06240f; }
.bgedit-cancel { color: var(--text-muted, #9aa3b2); }

/* ═══════════════ COOKIDOO-PANEL ═══════════════ */
.cookidoo-modal {
  position: fixed; inset: 0; z-index: 4100; display: none; flex-direction: column;
  /* App-Look: Seiten-Hintergrund als Backdrop (Inhalt in Glas-Cards), kein Blur. */
  background: var(--page-bg, #0a0e14);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px); gap: 10px;
}
.cookidoo-modal.open { display: flex; }
.cookidoo-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border, rgba(255,255,255,0.10)); padding-bottom: 12px; }
.cookidoo-title { font-size: 19px; font-weight: 800; color: var(--text, #fff); display: flex; align-items: center; gap: 9px; }
.cookidoo-title svg { width: 22px; height: 22px; opacity: 0.9; flex-shrink: 0; }
/* Schließen-Button im selben „Konzept" wie der Statistik-Header (.header-action-btn):
   Glas-Verlauf + 1px-Rand + Inset-Highlight, themed Active-State (cell-glow + scale + Glow).
   Bleibt rund (Schließen-Affordanz); statt dünnem „×"-Glyph ein sauberes Stroke-X-SVG. */
.cookidoo-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  color: var(--text, #fff); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  transition:
    background 0.22s cubic-bezier(0.32, 0.72, 0, 1),
    border-color 0.22s ease,
    transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
}
.cookidoo-x svg { width: 17px; height: 17px; opacity: 0.85; }
.cookidoo-x:active {
  background: rgba(var(--cell-glow-rgb), 0.32);
  border-color: rgba(var(--cell-glow-rgb), 0.55);
  transform: scale(0.93);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(var(--cell-glow-rgb), 0.30),
    0 0 14px rgba(var(--cell-glow-rgb), 0.30);
}
.cookidoo-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cd-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; color: var(--text-muted, #9aa3b2); font-size: 14px; font-weight: 700; position: sticky; top: 0; background: var(--page-bg, rgba(10,12,16,0.92)); z-index: 1; }
.cd-rtitle { color: var(--text, #fff); flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-link { background: none; border: 0; color: var(--text-accent, var(--blue, #22c55e)); font-size: 14px; font-weight: 700; cursor: pointer; }
/* Suchfeld im selben Glas-Look wie das Einkauf-Eingabefeld (.shop-input):
   Glas-Verlauf + feiner weißer Rand + Inset-Glanz/Schatten, fette Schrift,
   blauer Fokus-Glow. Steht allein → voll abgerundet (kein Mic/Plus dran). */
.cd-search {
  width: 100%; box-sizing: border-box; margin: 0 0 14px;
  -webkit-appearance: none; appearance: none;
  padding: 13px 16px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--text, #fff); outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 1px 3px rgba(0,0,0,0.30);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.cd-search::placeholder { color: var(--text-muted, #9aa3b2); opacity: 0.75; font-weight: 700; }
.cd-search:focus {
  border-color: color-mix(in srgb, var(--blue) 70%, white);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 3px rgba(var(--blue-rgb), 0.18),
    0 4px 14px rgba(var(--blue-rgb), 0.22);
}
.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding-bottom: 10px; }
.cd-card { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.04); color: var(--text, #fff); cursor: pointer; text-align: left; padding: 0; }
.cd-card:active { transform: scale(0.98); }
.cd-card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--card-tint, #222); }
.cd-card-noimg { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; font-size: 30px; background: rgba(255,255,255,0.05); }
.cd-card-title { padding: 8px 9px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.cd-login {
  max-width: 420px; margin: 12px auto 0; padding: 22px 18px;
  display: flex; flex-direction: column;
  /* Glas-Card im Statistik-Look (Theme-Glow + Frosted-Highlight). */
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle 180px at 0% 0%, rgba(var(--cell-glow-rgb), 0.30) 0%, transparent 100%),
    radial-gradient(circle 140px at 100% 100%, rgba(var(--cell-glow-rgb), 0.16) 0%, transparent 100%),
    linear-gradient(135deg, rgba(var(--cell-glow-rgb), 0.10) 0%, rgba(var(--cell-glow-rgb), 0.03) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.10);
}
.cd-hint { color: var(--text-muted, #9aa3b2); font-size: 14px; margin: 0 0 14px; }
.cd-input { padding: 13px; border-radius: 11px; border: 1px solid var(--border, #333); background: var(--input-bg, rgba(255,255,255,0.05)); color: var(--text, #fff); font-size: 16px; margin-bottom: 10px; box-sizing: border-box; transition: border-color 0.15s; }
.cd-input:focus { outline: none; border-color: var(--blue, #22c55e); }
.cd-input::placeholder { color: var(--text-muted, #9aa3b2); }
.cd-note { color: var(--text-muted, #777); font-size: 12px; margin-top: 12px; line-height: 1.5; }
.cd-err { background: rgba(239,68,68,0.15); color: #fca5a5; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.cd-btn { padding: 13px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: var(--text, #fff); font-size: 15px; font-weight: 700; cursor: pointer; }
.cd-primary { background: var(--btn-grad, var(--blue, #22c55e)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(var(--blue-rgb, 34,197,94), 0.30); }
.cd-primary:active { transform: scale(0.98); }
.cd-add { position: sticky; bottom: 0; width: 100%; margin-top: 10px; }
.cd-ings { display: flex; flex-direction: column; gap: 2px; }
.cd-ing { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text, #fff); font-size: 15px; }
/* Zutaten-Checkbox als eigenes Theme-Kästchen. Das native accent-color färbt nur den
   angehakten Zustand – unangehakt war es die weiße Browser-Box (auf Dunkel grell).
   Jetzt: leeres Glas-Kästchen mit Theme-Rand → angehakt gefüllt (Akzent) + weißer Haken. */
.cd-ing input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; flex-shrink: 0; margin: 0; box-sizing: border-box;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.30);                                   /* Fallback (alte Browser) */
  border: 2px solid color-mix(in srgb, var(--text, #fff) 32%, transparent);  /* themed: hell auf Dunkel, dunkel auf Hell */
  background: var(--input-bg, rgba(255,255,255,0.05));
  cursor: pointer; position: relative;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
}
.cd-ing input[type="checkbox"]:checked {
  background: var(--blue, #2563eb);
  border-color: var(--blue, #2563eb);
}
.cd-ing input[type="checkbox"]:checked::after {            /* weißer Haken */
  content: ""; position: absolute; left: 50%; top: 46%;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.cd-ing input[type="checkbox"]:active { transform: scale(0.9); }
.cd-ing input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue, #2563eb); outline-offset: 2px; }
.cd-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 50px 16px; color: var(--text-muted, #9aa3b2); font-size: 14px; text-align: center; }
.cd-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; animation: cdSpin 0.8s linear infinite; }
/* Reine Rotation OHNE translate — für die border-Spinner (.cd-spin, .bgedit-spin),
   die NICHT absolut zentriert sind. shopImgSpin enthält translate(-50%,-50%) (nur für
   den absolut positionierten Produktbild-Spinner korrekt) und ließ diese hier pro
   Zyklus nach oben-links driften + zurückspringen. */
@keyframes cdSpin { to { transform: rotate(360deg); } }

/* ── Eigene Rezepte im Cookidoo-Fenster (cookidoo.js / eigeneRezepte.js) ──
   Bewusst ohne backdrop-filter: Abzeichen & Bild-Knöpfe sitzen auf Fotos, die beim
   Scrollen mitlaufen — Blur darauf flackert auf Adreno (Android-Regel der App). */
.cd-bar-aktionen { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cd-neu {
  padding: 6px 12px; border: 0; border-radius: var(--r-pill);
  background: var(--btn-grad, var(--blue, #22c55e)); color: #fff;
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  box-shadow: 0 3px 10px rgba(var(--blue-rgb, 34,197,94), 0.30);
  transition: transform 0.12s;
}
.cd-neu:active { transform: scale(0.94); }
.cd-card { position: relative; }
.cd-card-badge {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(0,0,0,0.62); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
  pointer-events: none;
}
.cd-sync-hinweis {
  margin: 0 2px 10px; padding: 8px 11px; border-radius: 10px;
  background: rgba(245,158,11,0.10); border-left: 3px solid rgba(245,158,11,0.7);
  color: var(--text-muted, #9aa3b2); font-size: 12.5px; font-weight: 600;
}
.cd-eigene-link { margin-top: 14px; }
.cd-uebernehmen { width: 100%; margin-top: 12px; }
.cd-eigen-bild { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
.cd-abschnitt { display: block; margin: 14px 2px 6px; color: var(--text-muted, #9aa3b2); font-size: 13px; font-weight: 800; }
.cd-abschnitt-sub { margin-left: 6px; font-weight: 600; opacity: 0.75; }
.cd-zubereitung { white-space: pre-wrap; color: var(--text, #fff); font-size: 15px; line-height: 1.5; padding: 0 4px 12px; }
.cd-ed { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.cd-ed .cd-input { width: 100%; margin-bottom: 0; }
.cd-ed .cd-abschnitt { margin: 4px 2px -4px; }
.cd-textarea { resize: vertical; min-height: 110px; font-family: inherit; line-height: 1.45; }
.cd-quelle-btn { width: 100%; }
.cd-ed-bild {
  width: 100%; height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed rgba(255,255,255,0.22); border-radius: 14px;
  background: rgba(255,255,255,0.04); color: var(--text-muted, #9aa3b2);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cd-ed-bild:active { background: rgba(255,255,255,0.08); }
.cd-ed-bild--voll { position: relative; height: 190px; padding: 0; border: 0; overflow: hidden; cursor: default; }
.cd-ed-bild--voll img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-ed-bild-aktionen { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.cd-ed-mini {
  padding: 6px 11px; border-radius: var(--r-pill);
  background: rgba(0,0,0,0.62); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cd-loeschen { color: #fca5a5; border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.cd-loeschen--sicher { background: rgba(239,68,68,0.85); border-color: transparent; color: #fff; }

/* Produktbild-Check: voll im App-Look (wie die Statistik-Seite) – Seiten-Hintergrund
   als Backdrop, Inhalt in einer Glas-Card (.stats-card), SVG-Icon im Titel. */
#imgCheckModal { background: var(--page-bg, #0a0e14); -webkit-backdrop-filter: none; backdrop-filter: none; }
#imgCheckModal .cookidoo-title { color: var(--text); display: flex; align-items: center; gap: 9px; }
#imgCheckModal .cookidoo-title svg { width: 22px; height: 22px; opacity: 0.9; flex-shrink: 0; }
#imgCheckModal .stats-card-title svg { width: 15px; height: 15px; }
/* #imgCheckModal .cookidoo-x erbt jetzt den Glas-Stil von .cookidoo-x (siehe oben). */
#imgCheckModal .cookidoo-head { border-bottom: 1px solid var(--border, rgba(255,255,255,0.10)); padding-bottom: 12px; }
/* Dev: Produktbild-Check – Inhalt */
.ic-info { color: var(--text-muted, #9aa3b2); font-size: 13px; padding: 0 0 12px; line-height: 1.5; }
.ic-sync {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin: 0 0 14px; padding: 12px 16px;
  border: 0; border-radius: 14px; cursor: pointer;
  background: var(--btn-grad, var(--blue, #2563eb)); color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(var(--blue-rgb, 37,99,235), 0.35);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, opacity 0.2s;
}
.ic-sync svg { width: 18px; height: 18px; flex-shrink: 0; }
.ic-sync:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(var(--blue-rgb, 37,99,235), 0.3); }
/* Sekundär-Button (Zielordner wählen/ändern) – dezent, kein Voll-Blau. */
.ic-sync--alt {
  background: transparent; color: var(--text, #fff);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: none;
  font-size: 13px; font-weight: 600; padding: 9px 14px; margin: -4px 0 14px;
}
.ic-sync--alt svg { width: 16px; height: 16px; }
.ic-sync--alt:active { transform: scale(0.97); box-shadow: none; }
/* Zeilen im selben Look wie die Statistik (.stat-row): Name links, dezenter Lösch-Button rechts. */
.ic-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text, #fff); font-size: var(--fs-body); }
.ic-row:first-of-type { padding-top: 2px; }
.ic-row:last-child { border-bottom: none; padding-bottom: 2px; }
.ic-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: var(--fw-bold); letter-spacing: var(--ls-snug); }
/* Produktbild-Vorschau pro Zeile — gleiche Optik wie die Thumbs der Einkaufsliste.
   Tap aufs Bild öffnet die Lightbox (gleicher Viewer wie im Einkauf). */
.ic-thumb {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  filter: saturate(1.2) brightness(1.06);
  cursor: pointer;
}
.ic-thumb--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; opacity: 0.65;
  filter: none;   /* Emoji-Platzhalter unverändert lassen */
  cursor: default;   /* kein Bild → nichts zu vergrößern */
}
.ic-del {
  width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border, rgba(255,255,255,0.12)); border-radius: 50%; background: transparent;
  color: var(--text-muted, #9aa3b2); font-size: 15px; line-height: 1; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.ic-del:active { background: rgba(239,68,68,0.18); color: #f87171; border-color: transparent; transform: scale(0.92); }
/* Leerer Zustand – Icon + Text statt nacktem Grau */
.ic-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 12px 14px; text-align: center; }
.ic-empty-icon {
  width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--cell-glow-rgb, 2,132,199), 0.14); color: var(--text-accent, var(--blue, #38bdf8));
}
.ic-empty-icon svg { width: 30px; height: 30px; }
.ic-empty-text { color: var(--text-muted, #9aa3b2); font-size: 14px; line-height: 1.55; }

/* ─── Animations-Schalter (Design & Farben, über den Designs) ─── */
.design-anim-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  /* etwas Luft zum sticky Sheet-Header, sonst wirkt die Zeile nach oben gepresst */
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-5);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.design-anim-row:active { background: rgba(255,255,255,0.10); }
.design-anim-icon { flex-shrink: 0; display: flex; align-items: center; }
.design-anim-text { flex: 1; min-width: 0; }
.design-anim-label { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--text); }
.design-anim-sub { font-size: var(--fs-foot); font-weight: var(--fw-med); color: var(--text-muted, #9aa3b2); margin-top: 2px; }
#animToggleRow[aria-pressed="true"] .profile-switch { background: var(--btn-grad, var(--blue, #22c55e)); }
#animToggleRow[aria-pressed="true"] .profile-switch-knob { transform: translateX(18px); }
/* Glas-Effekte-Schalter: dieselbe Knopf-/Track-Kopplung wie oben. Fehlte komplett
   (v403 baute nur die JS-Logik + Zeile, nie diese CSS-Regel) → der Knopf bewegte
   sich nie, der Schalter wirkte „tot", obwohl toggleGlass html.no-glass korrekt
   umschaltet. Per Deep-Debug-Diagnose als eigentliche Ursache von Symptom 2 belegt. */
#glassToggleRow[aria-pressed="true"] .profile-switch { background: var(--btn-grad, var(--blue, #22c55e)); }
#glassToggleRow[aria-pressed="true"] .profile-switch-knob { transform: translateX(18px); }
#klarToggleRow[aria-pressed="true"] .profile-switch { background: var(--btn-grad, var(--blue, #22c55e)); }
#klarToggleRow[aria-pressed="true"] .profile-switch-knob { transform: translateX(18px); }
#haptikToggleRow[aria-pressed="true"] .profile-switch { background: var(--btn-grad, var(--blue, #22c55e)); }
#haptikToggleRow[aria-pressed="true"] .profile-switch-knob { transform: translateX(18px); }
/* „Heute"-Dashboard-Schalter (dev-only Profil-Zeile): gleiche Knopf-/Track-Kopplung. */
#todayDashItem[aria-pressed="true"] .profile-switch { background: var(--btn-grad, var(--blue, #22c55e)); }
#todayDashItem[aria-pressed="true"] .profile-switch-knob { transform: translateX(18px); }

/* ── „Heute"-Dashboard-Karte (todayDash.js, oben auf der Essen-Seite) ── */
.today-dash {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-lg, 18px);
  background: rgba(var(--cell-glow-rgb), 0.10);
  border: 1px solid rgba(var(--cell-glow-rgb), 0.20);
}
.td-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-3); }
.td-title { font-size: var(--fs-t3, 18px); font-weight: var(--fw-bold, 800); color: var(--text); }
.td-date { font-size: var(--fs-foot); font-weight: var(--fw-med); color: var(--text-muted); }
.td-grid { display: flex; flex-direction: column; gap: var(--sp-2); }
.td-tile { display: flex; align-items: center; gap: var(--sp-3); }
.td-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; flex-shrink: 0; color: var(--text-accent, var(--text)); }
.td-ic .mc-kat-svg { width: 22px; height: 22px; }
.td-tx { display: flex; flex-direction: column; min-width: 0; }
.td-lbl { font-size: var(--fs-foot); font-weight: var(--fw-med); color: var(--text-muted); }
.td-val { font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-events { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,0.08); }
.td-events-lbl { font-size: var(--fs-foot); font-weight: var(--fw-bold); color: var(--text-muted); margin-bottom: var(--sp-2); }
.td-ev { display: flex; gap: var(--sp-3); align-items: baseline; padding: 2px 0; }
.td-ev-wann { flex-shrink: 0; min-width: 64px; font-size: var(--fs-foot); font-weight: var(--fw-bold); color: var(--text-accent, var(--text)); }
.td-ev-txt { font-size: var(--fs-foot); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-ev-ic { display: inline-flex; vertical-align: -0.14em; margin-right: 3px; }
.td-ev-ic .mc-kat-svg { width: 1em; height: 1em; }
.td-empty { font-size: var(--fs-foot); color: var(--text-muted); }

/* „Heute"-Tagesbriefing beim App-Start (todayDash.maybeShowTodayBriefing) */
.td-briefing-ov {
  position: fixed; inset: 0; z-index: calc(var(--z-modal) + 6);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(10,13,20,0.40); opacity: 0; transition: opacity 0.22s ease;
  /* milchig: App dahinter weich verschwimmen lassen (Glas-System: Stärke-Regler greift) */
  backdrop-filter: blur(calc(7px * var(--glass-mult, 1) * var(--glass-scroll, 1)));
  -webkit-backdrop-filter: blur(calc(7px * var(--glass-mult, 1) * var(--glass-scroll, 1)));
}
.td-briefing-ov.open { opacity: 1; }
.td-briefing {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px;
  transform: translateY(16px) scale(0.98); transition: transform 0.26s cubic-bezier(0.22,1,0.36,1);
}
.td-briefing-ov.open .td-briefing { transform: none; }
.td-briefing-card {
  margin: 0 !important;
  /* milchiges Frost-Glas statt deckender Karte */
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(calc(24px * var(--glass-mult, 1) * var(--glass-scroll, 1))) saturate(1.3);
  -webkit-backdrop-filter: blur(calc(24px * var(--glass-mult, 1) * var(--glass-scroll, 1))) saturate(1.3);
  box-shadow: 0 18px 50px -14px rgba(0,0,0,0.6);
}
/* Glas aus → kein Blur, deckende Flächen (Konsistenz mit dem Glas-Schalter) */
html.no-glass .td-briefing-ov { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,0.62); }
html.no-glass .td-briefing-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card, #1a1f2b); }
.td-briefing-btn {
  width: 100%; padding: 14px; border: none; border-radius: 14px;
  background: var(--btn-grad, var(--accent, #38BDF8)); color: #fff;
  font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.td-briefing-btn:active { transform: scale(0.985); }

/* Glas-Stärke-Regler (Dev-Modus): sitzt dicht unter dem Glas-Schalter; nur sichtbar,
   solange der Schalter AN ist (rein über dessen aria-pressed, kein JS nötig). */
.design-glass-strength {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  margin-top: -12px;                 /* an den Glas-Schalter „andocken" */
  margin-bottom: var(--sp-5);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}
.design-glass-strength-body { flex: 1; min-width: 0; }
.design-glass-strength-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.design-glass-strength-val { font-size: var(--fs-foot); font-weight: var(--fw-bold); color: var(--text-muted, #9aa3b2); }
.design-glass-strength .cp-range { width: 100%; display: block; }
#glassToggleRow[aria-pressed="false"] + #glassStrengthRow { display: none; }

/* Wert-Pille in Profil-Zeilen (z.B. Dev-„Start-Seite": aktuelle Auswahl) */
.profile-item-value {
  flex-shrink: 0;
  font-size: var(--fs-foot);
  font-weight: var(--fw-bold);
  color: var(--text);
  background: rgba(var(--cell-glow-rgb, 2,132,199), 0.18);
  border: 1px solid rgba(var(--cell-glow-rgb, 2,132,199), 0.38);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

/* ─── Globaler Animations-Schalter: AUS-Zustand ───
   html.anims-off würgt ALLE CSS-Animationen/Transitions ab. Bewusst 0.001s
   statt `none`, damit transitionend/animationend weiterhin feuern — Logik wie
   das Monatskalender-Karussell oder die Nav-Pill wartet teils darauf. Die
   JS-getriebenen Effekte (Dots, Konfetti, Heute-Strich-Glow) prüfen den
   Schalter zusätzlich selbst in uiFx.js. */
html.anims-off *, html.anims-off *::before, html.anims-off *::after {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
  transition-delay: 0s !important;
}

/* ─── Globaler Glas-/Unschärfe-Schalter: AUS-Zustand ───
   html.no-glass entfernt ALLE backdrop-filter-Unschärfen. Manche neuen GPUs/
   Treiber (z. B. OnePlus 15) zeichnen die Blur-Ebenen dauerhaft neu → Flackern.
   Die Flächen behalten ihre deckende --card-Basis, bleiben also lesbar — es
   entfällt nur der Milchglas-Durchblick. Gerätelokal (uiFx.js). */
html.no-glass *, html.no-glass *::before, html.no-glass *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

