/* =========================================================
   Grillwetter — Immersive Dashboard
   Vollflächige wetterabhängige Hintergründe, Glass-Karten,
   Sidebar links · Hauptbereich rechts. Mobile-first.
   ========================================================= */

:root {
  /* Default = Sky/Sonne (helle, saturated Skyblue). Themes überschreiben. */
  --bg:               #4a8fc4;
  --text:             #ffffff;
  --text-2:           rgba(255, 255, 255, 0.82);
  --muted:            rgba(255, 255, 255, 0.62);

  --surface:          rgba(255, 255, 255, 0.12);
  --surface-2:        rgba(255, 255, 255, 0.20);
  --surface-strong:   rgba(255, 255, 255, 0.28);
  --border:           rgba(255, 255, 255, 0.18);
  --border-strong:    rgba(255, 255, 255, 0.32);

  --accent:           #E10600;     /* Brand-Rot von WILLGRILLEN */
  --accent-strong:    #B00500;
  --accent-text:      #FF2E1F;     /* helleres Rot für KLEINTEXT (WCAG 4,5:1 auf #0E0E0E) */
  --accent-soft:      rgba(225, 6, 0, 0.18);

  --rating-perfekt:   #6dde7b;
  --rating-gut:       #74c8ff;
  --rating-warn:      #ffd166;
  --rating-indoor:    #ff8a4a;
  --temp-warm:        #ff7a1a;     /* warmes Ende der Temperatur-Skala (Orange) */

  --shadow-card:      0 8px 30px rgba(0, 30, 70, 0.18);
  --shadow-deep:      0 18px 50px rgba(0, 20, 50, 0.30);

  --radius:           22px;
  --radius-sm:        16px;
  --radius-xs:        10px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --transition:       180ms ease;

  /* Apple-artige Easing-Kurven für ein weiches, hochwertiges Gefühl. */
  --ease-out:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:      cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 320ms var(--ease-out);
}

[hidden] { display: none !important; }

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

html { background-color: #0E0E0E; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-attachment: fixed;
  transition: background-color 800ms ease, background-image 800ms ease, color 400ms ease;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Wetter-Themes (immersive Backgrounds) ---------- */

body[data-weather="sonne"] {
  --bg: #4a8fc4;
  background-color: #4a8fc4;
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 8%, rgba(255, 215, 130, 0.55), transparent 60%),
    radial-gradient(ellipse 80% 30% at 20% 0%, rgba(180, 220, 255, 0.25), transparent 55%),
    linear-gradient(180deg, #3978b3 0%, #5395cb 40%, #7eb5dd 100%);
}

body[data-weather="warm"] {
  --bg: #4a85b8;
  background-color: #4a85b8;
  background-image:
    radial-gradient(ellipse 60% 30% at 50% 5%, rgba(255, 230, 180, 0.32), transparent 60%),
    linear-gradient(180deg, #3a7aae 0%, #5e9cc8 100%);
}

body[data-weather="heiss"] {
  --bg: #b56a4a;
  --accent: #ffd180;
  --accent-strong: #ffb469;
  background-color: #b56a4a;
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 180, 110, 0.60), transparent 55%),
    radial-gradient(ellipse 80% 30% at 30% 80%, rgba(255, 130, 90, 0.30), transparent 60%),
    linear-gradient(180deg, #b35a3a 0%, #d28259 60%, #e7a983 100%);
}

body[data-weather="kuehl"] {
  --bg: #5e7488;
  background-color: #5e7488;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(200, 215, 235, 0.30), transparent 60%),
    linear-gradient(180deg, #506578 0%, #6c83a0 100%);
}

body[data-weather="wind"] {
  --bg: #586a7d;
  background-color: #586a7d;
  background-image:
    radial-gradient(ellipse 80% 40% at 70% 5%, rgba(190, 210, 230, 0.30), transparent 60%),
    linear-gradient(180deg, #4d5e72 0%, #6a7d92 100%);
}

body[data-weather="schnee"] {
  --bg: #6a8aa8;
  background-color: #6a8aa8;
  background-image:
    radial-gradient(ellipse 70% 35% at 50% 0%, rgba(230, 240, 255, 0.45), transparent 60%),
    linear-gradient(180deg, #5b7ea0 0%, #8aa7c2 100%);
}

body[data-weather="regen"] {
  --bg: #2c3e58;
  background-color: #2c3e58;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(80, 110, 150, 0.40), transparent 55%),
    radial-gradient(ellipse 60% 20% at 30% 60%, rgba(40, 60, 90, 0.35), transparent 60%),
    linear-gradient(180deg, #233148 0%, #344b6c 100%);
}

body[data-weather="sturm"] {
  --bg: #1e2538;
  background-color: #1e2538;
  background-image:
    radial-gradient(ellipse 70% 30% at 50% 0%, rgba(120, 90, 200, 0.30), transparent 50%),
    radial-gradient(ellipse 80% 30% at 80% 50%, rgba(60, 80, 130, 0.40), transparent 60%),
    linear-gradient(180deg, #161c2c 0%, #28304a 100%);
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  /* minmax(0, 1fr) verhindert, dass Inhalte das Grid-Item über den Viewport hinaus aufblasen. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 960px) {
  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    padding: 16px;
  }
}

/* ---------- Mobile Topbar (nur < 960 px) ---------- */

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 15, 14, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid #343230;
}

@media (min-width: 960px) {
  .mobile-topbar { display: none; }
}

.drawer-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.drawer-toggle svg { width: 22px; height: 22px; }

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #F7F6F2;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
}

.mobile-brand .brand-mark {
  font-size: 1rem;
}

.mobile-topbar-spacer {
  width: 44px;
  height: 44px;
}

/* ---------- Drawer-Backdrop (nur Mobile) ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: none;
  cursor: pointer;
  padding: 0;
  display: none;
}

.drawer-backdrop[hidden] { display: none !important; }

body.drawer-open .drawer-backdrop {
  display: block;
}

body.drawer-open { overflow: hidden; }

/* ---------- Sidebar ---------- */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: rgba(15, 25, 40, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border-right: 1px solid var(--border);
  /* Mobile = Drawer: fixed, off-screen */
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86%, 360px);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* A11y: geschlossener Drawer ist auch für Tastatur/Screenreader unsichtbar */
  visibility: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 280ms;
}

body.drawer-open .sidebar { transform: translateX(0); visibility: visible; transition-delay: 0s; }

@media (min-width: 960px) {
  .sidebar {
    border-right: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.10);
    margin-right: 16px;
    padding: 18px;
    height: calc(100vh - 32px);
    overflow-y: auto;
    position: sticky;
    top: 16px;
    width: auto;
    transform: none !important;
    transition: none;
    /* WICHTIG: Basis-Regel versteckt den geschlossenen Drawer (visibility:
       hidden) — auf Desktop ist die Sidebar KEIN Drawer und muss sichtbar
       sein, sonst fehlt die Ortssuche auf der Wetterseite. */
    visibility: visible;
  }
}

/* Close-Button im Drawer (nur Mobile sichtbar) */
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-close svg { width: 18px; height: 18px; }

@media (min-width: 960px) {
  .drawer-close { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
}

/* W-Brandmark — wird per Inline-SVG befüllt (siehe HTML). */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.brand-icon { position: relative; }

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Eigenes Logo-Bild (assets/logo.png). Fehlt die Datei, entfernt sich das
   <img> selbst (onerror) und das SVG-Logo bleibt als Fallback sichtbar. */
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-icon:has(.brand-logo-img) svg { display: none; }

/* WILLGRILLEN-Wortmarke — zweifarbig. */
.brand-mark {
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.1rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}

.brand-mark .will  { color: var(--accent); }
.brand-mark .grill { color: rgba(255, 255, 255, 0.95); }

.search {
  display: flex;
  gap: 8px;
  width: 100%;
  position: relative;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }

.search > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: opacity var(--transition), background var(--transition);
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.search > button[type="submit"] svg { width: 20px; height: 20px; }
.search > button[type="submit"]:hover { background: var(--surface-2); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(20, 30, 50, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 60;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.search-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid var(--border);
}

.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion .name { font-size: 0.95rem; font-weight: 500; display: block; }
.search-suggestion .sub { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 1px; }
.search-suggestion:hover, .search-suggestion.active { background: var(--surface-2); }
.search-suggestion.empty { color: var(--muted); font-size: 0.88rem; cursor: default; }

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 4px;
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.location-list::-webkit-scrollbar { height: 6px; width: 6px; }
.location-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.loc-item {
  position: relative;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition);
}

.loc-item.active {
  background: var(--surface-2);
  border-color: var(--accent);
}

.loc-item:hover { background: var(--surface-2); }

.loc-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
}

.loc-icon {
  width: 54px;
  height: 54px;
  color: var(--text);
  flex-shrink: 0;
}

.loc-icon svg { width: 100%; height: 100%; }

.loc-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.loc-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-sub {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-cond {
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-cond-placeholder, .loc-temp-placeholder { opacity: 0.4; }

.loc-temp {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.loc-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.loc-remove svg { width: 14px; height: 14px; }
.loc-item:hover .loc-remove { display: inline-flex; }
.loc-remove:hover { background: var(--surface-strong); color: var(--text); }

/* ---------- Main ---------- */

.main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 18px 16px 56px;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 960px) {
  .main {
    padding: 4px 10px 64px 10px;
    gap: 34px;
  }
}

.section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px;
  width: 100%;
  min-width: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}

.section-meta {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ad-label {
  /* Werbekennzeichnung darf nicht die kleinste Schrift der Seite sein */
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ---------- Hero ---------- */

.weather-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.weather-loading,
.weather-error {
  color: var(--muted);
  text-align: center;
  padding: 60px 0;
}

.weather-error { color: var(--rating-warn); }
.weather-error small { color: var(--muted); display: block; margin-top: 6px; }

.weather-place {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.weather-place h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}

.weather-place .region {
  color: var(--text-2);
  font-size: 0.95rem;
}

.day-line {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-text); /* A11y: Kontrast für Kleintext */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.weather-main .icon {
  width: 124px;
  height: 124px;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0.95;
}

.weather-main .icon svg { width: 100%; height: 100%; }

.weather-temp {
  font-size: 5.4rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-2);
}

.weather-details .desc {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.weather-details .extremes {
  font-size: 0.9rem;
  color: var(--text-2);
}

.weather-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.weather-rating .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rating-color, var(--accent));
  flex-shrink: 0;
}

.weather-rating-text { display: flex; flex-direction: column; gap: 2px; }
.weather-rating-label { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.weather-rating-reason { font-size: 0.85rem; color: var(--text-2); }

.weather-empfehlung {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-2);
}

/* ---------- Hourly Strip ---------- */

.hourly-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.hourly-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 2px 8px 8px;
}

.hourly-strip::-webkit-scrollbar { height: 4px; }
.hourly-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.hourly-cell {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}

.hourly-time {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hourly-icon {
  width: 58px;
  height: 58px;
  color: var(--text);
}

.hourly-icon svg { width: 100%; height: 100%; }

.hourly-temp {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.hourly-rain {
  font-size: 0.7rem;
  color: var(--rating-gut);
  font-weight: 500;
}

/* ---------- 10-Day Panel ---------- */

.tenday-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 14px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.ten-row {
  display: grid;
  grid-template-columns: 70px 28px 36px 32px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.ten-row:last-child { border-bottom: 0; }
.ten-row:hover { background: var(--surface-2); }
.ten-row.active { background: var(--surface-2); }

.ten-day {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.ten-icon { width: 26px; height: 26px; color: var(--text); }
.ten-icon svg { width: 100%; height: 100%; }

.ten-rain {
  font-size: 0.78rem;
  color: var(--rating-gut);
  text-align: right;
}

.ten-min { font-size: 0.92rem; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.ten-max { font-size: 0.92rem; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.ten-bar {
  position: relative;
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.ten-bar-range {
  position: absolute;
  top: 0; bottom: 0;
  /* Temperatur-Skala: kühl (blau) → warm (orange statt rot) */
  background: linear-gradient(90deg, var(--rating-gut), var(--temp-warm));
  border-radius: 999px;
}

/* ---------- Dashboard Tiles ---------- */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 720px) {
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
}

.info-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 120px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.info-tile-featured {
  grid-column: span 2;
}

.info-tile-wide {
  grid-column: span 2;
}

.tile-eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.tile-title {
  margin: 4px 0 0;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.tile-unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0;
}

.tile-detail {
  margin: auto 0 0;
  font-size: 0.84rem;
  color: var(--text-2);
}

.tile-hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.sun-row {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}

.sun-block { display: flex; flex-direction: column; gap: 2px; }
.sun-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sun-time {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ---------- Recommendation (Featured + Alternativen) ---------- */

.recommendation {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card,
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  width: 100%;
  border: 1px solid var(--border);
}

.featured-card { padding: 22px; }

.featured-card:hover,
.recipe-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.featured-eyebrow,
.recipe-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text); /* A11y: Kontrast für Kleintext */
  font-weight: 600;
}

.featured-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.recipe-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.featured-card .lead,
.recipe-card .lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

.recipe-card .lead {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card .meta,
.recipe-card .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.featured-card .meta span,
.recipe-card .meta span {
  font-size: 0.76rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.featured-card .cta,
.recipe-card .cta {
  align-self: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: none;
  padding: 0;
}

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

/* ---------- View Switching ---------- */

.view[hidden] { display: none !important; }

.view {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- (entfernt) Warmes Theme für Rezept-, Profil- & KI-Views ----------
   Diese Views nutzen jetzt das Light-Theme (siehe unten am Datei-Ende).
   Block bewusst leer gelassen, damit ein eventueller Re-Override später
   hier einen klaren Anker findet. */

.view-recipes-legacy-placeholder { display: none; }

/* Eyebrow im neuen Theme: Markenrot */
.view-recipes .recipe-eyebrow,
.view-recipes .featured-eyebrow,
.view-recipes .dod-eyebrow,
.view-profile .recipe-eyebrow,
.view-ai .ai-eyebrow {
  color: var(--accent);
}

/* Recipe-Card im warmen Theme — etwas mehr Wärme */
.view-recipes .recipe-card,
.view-profile .recipe-card {
  border-color: rgba(255, 170, 110, 0.14);
}

.view-recipes .recipe-card:hover,
.view-profile .recipe-card:hover {
  border-color: rgba(255, 170, 110, 0.32);
  background: var(--surface-2);
}

/* Library-Header Subline in warmen Tönen */
.view-recipes .library-header h1,
.view-profile .library-header h1 {
  color: #F7F6F2;
}

/* Library-Suchleiste: warmer Fokus-Ring */
.view-recipes .library-search-wrap input:focus {
  border-color: #ff9d5a;
}

/* Card-Save-Icon klein direkt in der Karte (top-right) */
.recipe-card { position: relative; }
.recipe-card .card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.recipe-card .card-save svg { width: 16px; height: 16px; }
.recipe-card .card-save:hover { color: #ff9d5a; }
.recipe-card .card-save.saved { background: #ff8a4a; color: #fff; border-color: #ff8a4a; }
.recipe-card .card-save.saved svg { fill: currentColor; }

/* „Warum heute passend"-Box auf Karten — Default-Styles, Light-Theme-Override am Datei-Ende. */
.recipe-card .why-today,
.featured-card .why-today {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 138, 74, 0.14);
  border: 1px solid rgba(255, 138, 74, 0.32);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  line-height: 1.4;
}

.recipe-card .why-today-label,
.featured-card .why-today-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9d5a;
}

.recipe-card .why-today-text,
.featured-card .why-today-text {
  color: inherit;
}

/* ---------- View Tabs (Top) ---------- */

/* Die Haupt-Navigation liegt außerhalb der App-Shell (volle Breite) und ist
   auf JEDER View identisch: Markenschwarz, aktiver Tab rot. Bewusst feste
   Farben statt Theme-Variablen, damit kein View-Theme sie verändern kann. */
.topnav {
  display: flex;
  justify-content: center;
  padding: 16px 16px 0;
  /* Über der Wetter-Atmosphäre (#weather-fx, position:fixed) halten — sonst
     übermalt der FX-Layer die Leiste auf der Wetter-View. */
  position: relative;
  z-index: 5;
}

.view-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #151413;
  border: 1px solid #343230;
  border-radius: 999px;
  /* Wird der Platz knapp, scrollt die Leiste horizontal statt abzuschneiden. */
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: rgba(247, 246, 242, 0.58);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.view-tab svg { width: 16px; height: 16px; }

.view-tab:hover { color: #F7F6F2; }

.view-tab.active {
  background: #262523;
  /* A11y (WCAG 1.4.3): helleres Akzentrot — 5,2:1 statt 3,9:1 Kontrast */
  color: #FF2E1F;
  box-shadow: none;
}

/* ---------- Bottom Nav (Mobile) ---------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(16, 15, 14, 0.94);
  border-top: 1px solid #343230;
  z-index: 40;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  /* Alle Bereiche erreichbar: horizontal frei scrollbar (kein Snap — der
     fühlte sich auf dem Handy wie Zurückspringen an); aktiver Tab wird per JS
     mittig eingeblendet. Scrollbalken bleibt unsichtbar. */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.bottom-nav::-webkit-scrollbar { display: none; }

.bottom-tab {
  flex: 1 0 auto;
  min-width: 66px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  color: rgba(247, 246, 242, 0.58);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  min-height: 60px;
}

.bottom-tab svg { width: 22px; height: 22px; flex-shrink: 0; }
.bottom-tab span { white-space: nowrap; }

.bottom-tab.active { color: #FF2E1F; background: #262523; } /* A11y: 4,5:1+ */

@media (min-width: 960px) {
  .bottom-nav { display: none; }
}

@media (max-width: 959px) {
  .topnav { display: none; }
  /* Platz für Bottom-Nav */
  .main { padding-bottom: 100px; }
}

/* ---------- Rezept des Tages (großer Featured-Block) ---------- */

.dod-featured {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
  border-left: 4px solid var(--accent);
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  transition: transform var(--transition), border-color var(--transition);
}

.dod-featured:hover {
  transform: translateY(-2px);
}

.dod-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.dod-featured h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dod-featured .lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dod-warum {
  padding: 12px 14px;
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}

.dod-warum strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.dod-featured .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dod-featured .meta span {
  font-size: 0.8rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.dod-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dod-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}

.dod-primary:hover { opacity: 0.92; }

/* ---------- CTA „Alle Rezepte entdecken" ---------- */

.library-cta-wrap {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.library-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.library-cta svg { width: 18px; height: 18px; }
.library-cta:hover { background: var(--surface-2); border-color: var(--accent); }

/* ---------- Library-View ---------- */

.library-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 4px 4px;
}

.library-header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
}

.library-header p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
}

.library-search-wrap {
  position: relative;
  width: 100%;
}

.library-search-wrap svg {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--muted);
  pointer-events: none;
}

.library-search-wrap input {
  width: 100%;
  padding: 20px 22px 20px 56px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  font-family: inherit;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), background var(--transition);
}

.library-search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-strong);
}

.library-search-wrap input::placeholder { color: var(--muted); }

.library-meta {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 4px;
}

.library-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .library-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Recipe Filters ---------- */

.recipe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.recipe-filters select:focus { outline: none; border-color: var(--accent); }

.btn-ghost-small {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost-small:hover { color: var(--text); }

/* ---------- Recipe Grid (Weitere Ideen) ---------- */

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

.recipes-empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
  font-size: 0.95rem;
}

/* ---------- Partner-Empfehlungen (warm-dunkel, zum Rezeptdesign passend) ---------- */

/* Section-Header zur Partner-Section (Intro-Text). */
.partner-section .partner-intro {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 0 4px 6px;
}

.partner-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 4px 10px;
}

.partner-section-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.partner-section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Wrapper-Layouts: Grid (Wetterseite) und List (Modal / KI). */
.partner-grid-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .partner-grid-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .partner-grid-grid { grid-template-columns: repeat(4, 1fr); }
}

.partner-grid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Karte selbst — warm-dunkel mit dezentem Brand-Akzent. */
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    border-color var(--transition-smooth),
    background var(--transition-smooth),
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}

.partner-card:hover {
  background: var(--bg-subtle, var(--surface-2));
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.partner-card .partner-eyebrow {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0;
}

.partner-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}

.partner-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.45;
}

.partner-card .partner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.partner-card .partner-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.partner-card:hover .partner-cta svg { transform: translateX(3px); }

/* Modal-Partner-Section (Passend dazu). */
.modal-partners {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-partners[hidden] { display: none !important; }

/* KI-Partner-Section (Empfohlen dazu). */
.ai-partners {
  margin-top: 8px;
}

.ai-partners:empty,
.ai-partners[hidden] { display: none !important; }

/* ---------- Auth + Profile ---------- */

.auth-section,
.profile-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.auth-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self: flex-start;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-2);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--surface-strong);
  color: var(--text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.auth-form input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.auth-form input:focus { outline: none; border-color: var(--accent); }

.auth-submit {
  align-self: stretch;
  justify-content: center;
  margin-top: 4px;
}

.auth-error {
  margin: 0;
  color: var(--rating-warn);
  font-size: 0.9rem;
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 520px;
  line-height: 1.5;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
}

.profile-chip.active {
  background: var(--surface-strong);
  border-color: var(--accent);
  color: var(--text);
}

.profile-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-logout-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

/* Save-Button im Modal */

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.modal-save svg { width: 16px; height: 16px; }

.modal-save:hover { background: var(--surface-2); }

.modal-save.saved {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.modal-save.saved svg { fill: currentColor; }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1300; /* über Chat-FAB/-Panel (1200) — Modals liegen immer zuoberst */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  padding: 0;
}

.modal-card {
  position: relative;
  background: rgba(24, 23, 22, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 32px;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Auf schmalen Handys das großzügige Seiten-Padding etwas zurücknehmen,
   damit der Inhalt nicht zu schmal wird. */
@media (max-width: 560px) {
  .modal-card { padding: 22px 20px; }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-head-text { flex: 1; min-width: 0; }

.modal-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }

.modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close svg { width: 18px; height: 18px; }

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-meta span {
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Info-Leiste: Dauer · Schwierigkeit · Portionen · Methode */
.modal-info-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(38, 22, 12, 0.55);
  border: 1px solid rgba(255, 170, 110, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

@media (min-width: 480px) {
  .modal-info-bar { grid-template-columns: repeat(4, 1fr); }
}

.modal-info-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.modal-info-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 235, 215, 0.55);
  font-weight: 600;
}

.modal-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #F7F6F2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-servings {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.modal-ingredients-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.modal-shopping {
  flex: 1;
  min-width: 220px;
  justify-content: center;
  background: #ff8a4a;
  padding: 12px 18px;
  font-size: 0.92rem;
}

.modal-shopping svg { width: 18px; height: 18px; }
.modal-shopping.added { background: #6dde7b; color: #1b1b1b; }

.modal-tips-wrap {
  margin-top: 22px;
  padding: 14px 16px;
  background: rgba(38, 22, 12, 0.45);
  border-radius: var(--radius-sm);
  border-left: 3px solid #ff8a4a;
}

.modal-tips-wrap h3 { margin: 0 0 8px; }
.modal-tips-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-tips-wrap li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.modal-tips-wrap li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ff8a4a;
}

/* Modal-Card: im warmen Theme wirkt der Hintergrund küchiger */
.view-recipes .modal-card,
.view-profile .modal-card,
body.modal-warm .modal-card {
  background: rgba(28, 18, 12, 0.96);
}

/* Einkaufsliste */
.shopping-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shopping-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.shopping-row.checked {
  opacity: 0.55;
}

.shopping-row .check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 170, 110, 0.45);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: background var(--transition), color var(--transition);
}

.shopping-row .check svg { width: 14px; height: 14px; }
.shopping-row.checked .check { background: #ff8a4a; color: #fff; border-color: #ff8a4a; }

.shopping-row .item-text {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.shopping-row.checked .item-text {
  text-decoration: line-through;
  color: var(--muted);
}

.shopping-row .remove-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: 6px;
}

.shopping-row .remove-btn:hover { color: var(--text); }

.shopping-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.shopping-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
}

.modal-lead { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }

.modal-warum-wrap {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.modal-warum-wrap h3 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.modal-warum-wrap p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.modal-body {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.modal-body > div { min-width: 0; }

.modal-ingredients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.modal-ingredients-head h3 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.btn-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}

.btn-copy:hover { background: var(--surface-2); }
.btn-copy:disabled { color: var(--rating-perfekt); border-color: var(--rating-perfekt); cursor: default; }

.modal-body h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.modal-body ul { margin: 0; padding: 0 0 0 18px; font-size: 0.9rem; line-height: 1.5; }
.modal-body ol { margin: 0; padding: 0 0 0 18px; font-size: 0.9rem; line-height: 1.55; }
.modal-body ol li { margin-bottom: 4px; }
.modal-body p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--text-2); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .muted { font-size: 0.75rem; opacity: 0.85; }

/* ---------- Mobile-Optimierung (< 720 px) ---------- */

@media (max-width: 719px) {
  .main {
    padding: 6px 18px 110px;
    gap: 28px;
    width: 100%;
    min-width: 0;
  }

  .section { gap: 14px; min-width: 0; }

  .section-head {
    padding: 0 2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .section-meta {
    font-size: 0.82rem;
    line-height: 1.4;
    width: 100%;
  }

  /* Hero: groß, zentriert, viel Luft */
  .weather-hero {
    padding: 36px 22px 28px;
    text-align: center;
    align-items: center;
    gap: 14px;
    min-height: auto;
  }

  .weather-place {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .weather-place h1 {
    font-size: 2.4rem;
    font-weight: 400;
  }

  .weather-place .region { font-size: 0.85rem; }

  .day-line {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }

  .weather-main {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .weather-main .icon { width: 88px; height: 88px; }

  .weather-temp {
    font-size: 6.4rem;
    font-weight: 200;
    letter-spacing: -0.06em;
    line-height: 0.95;
  }

  .weather-details {
    align-items: center;
    gap: 2px;
  }

  .weather-details .desc { font-size: 1.1rem; }
  .weather-details .extremes { font-size: 0.95rem; }

  .weather-rating {
    width: 100%;
    margin-top: 6px;
    padding: 14px 16px;
  }

  .weather-empfehlung {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 4px;
  }

  /* Stündliche Vorschau: größere Cells */
  .hourly-card { padding: 18px 6px; border-radius: var(--radius); }
  .hourly-cell {
    flex: 0 0 64px;
    gap: 8px;
    padding: 4px 0;
  }
  .hourly-icon { width: 32px; height: 32px; }
  .hourly-temp { font-size: 1.05rem; }
  .hourly-time { font-size: 0.78rem; }
  .hourly-rain { font-size: 0.72rem; }

  /* 10-Tage-Panel: größere Rows */
  .tenday-card { padding: 6px 16px; border-radius: var(--radius); }
  .ten-row {
    grid-template-columns: 76px 32px 1fr 36px 36px;
    padding: 16px 4px;
    gap: 12px;
  }
  .ten-rain { display: none; }
  .ten-day { font-size: 1rem; }
  .ten-min, .ten-max { font-size: 1rem; }
  .ten-icon { width: 28px; height: 28px; }

  /* Dashboard-Tiles: größer, mehr Padding, einzeilig prominent */
  .dashboard-grid { gap: 14px; }
  .info-tile {
    padding: 20px;
    border-radius: var(--radius);
    min-height: 130px;
  }
  .info-tile-featured,
  .info-tile-wide { grid-column: 1 / -1; }
  .tile-title { font-size: 1.85rem; margin-top: 6px; }
  .tile-detail { font-size: 0.9rem; }
  .tile-hint { font-size: 0.82rem; }
  .sun-time { font-size: 1.6rem; }

  /* Recipe: 1 pro Zeile + größere Touch */
  .recommendation { gap: 14px; }
  .alternatives { grid-template-columns: 1fr; gap: 14px; }
  .featured-card { padding: 24px; }
  .featured-card h3 { font-size: 1.35rem; }
  .featured-card .lead { font-size: 0.95rem; }

  .recipes-grid { grid-template-columns: 1fr; gap: 14px; }
  .recipe-card { padding: 20px; min-height: 140px; }
  .recipe-card h3 { font-size: 1.1rem; }
  .recipe-card .lead { font-size: 0.92rem; }
  .recipe-card .cta { font-size: 0.95rem; padding: 4px 0; }

  /* Library-Header + Filter mobil */
  .library-header { padding: 8px 4px 4px; }
  .library-header h1 { font-size: 1.8rem; }
  .library-header p { font-size: 0.95rem; }
  .library-search-wrap input { padding: 18px 20px 18px 52px; font-size: 1rem; }
  .library-search-wrap svg { left: 18px; width: 20px; height: 20px; }
  .recipe-filters { flex-direction: column; gap: 8px; }
  .recipe-filters select,
  .recipe-filters .btn-ghost-small {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    text-align: left;
  }

  /* Rezept des Tages mobil etwas schlanker */
  .dod-featured { padding: 24px 22px; gap: 14px; }
  .dod-featured h3 { font-size: 1.55rem; }
  .dod-featured .lead { font-size: 0.98rem; }

  /* Partner: 1 pro Zeile, mehr Padding */
  .partner-grid { gap: 12px; }
  .partner-card { padding: 16px 18px; }
}

/* ---------- Tablet (720–959 px) ---------- */

@media (min-width: 720px) and (max-width: 959px) {
  .main { padding: 8px 24px 48px; gap: 28px; }
  .weather-temp { font-size: 5.8rem; }
  .recipes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .alternatives { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet & größer ---------- */

@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-body { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 960px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-controls {
    flex-direction: row;
    align-items: center;
  }
  .recipe-search { flex: 1; max-width: 360px; }
}

@media (min-width: 1200px) {
  .recipes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- KI-Assistent ---------- */

.ai-weather-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 138, 74, 0.10);
  border: 1px solid rgba(255, 138, 74, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
}

.ai-weather-banner::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff8a4a;
  flex-shrink: 0;
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

@media (min-width: 640px) {
  .ai-form { grid-template-columns: 1fr 1fr; }
}

.ai-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ai-field.span-2 { grid-column: 1 / -1; }

.ai-field span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ai-field input,
.ai-field textarea,
.ai-field select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}

.ai-field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.ai-field input:focus,
.ai-field textarea:focus,
.ai-field select:focus {
  outline: none;
  border-color: #ff8a4a;
}

.ai-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.ai-submit { padding: 14px 24px; }
.ai-submit svg { width: 18px; height: 18px; }
.ai-submit[disabled] { opacity: 0.6; cursor: wait; }

.ai-status {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-status.error {
  border-color: rgba(255, 100, 100, 0.4);
  color: #ffb4a0;
}

.ai-status .spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 74, 0.3);
  border-top-color: #ff8a4a;
  animation: ai-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Result-Card */

.ai-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #ff8a4a;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ai-result .ai-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ai-result h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #F7F6F2;
}

.ai-result .lead {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .ai-result-grid { grid-template-columns: 1fr 1.4fr; }
}

.ai-result-section h3 {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.ai-result-section ol,
.ai-result-section ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.93rem;
  line-height: 1.6;
}

.ai-result-section ol li { margin-bottom: 4px; }
.ai-result-section p { margin: 0; line-height: 1.6; }

.ai-extra-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .ai-extra-row { grid-template-columns: 1fr 1fr; }
}

.ai-extra-tile {
  padding: 14px 16px;
  background: rgba(38, 22, 12, 0.55);
  border: 1px solid rgba(255, 170, 110, 0.18);
  border-radius: var(--radius-sm);
}

.ai-extra-tile h4 {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9d5a;
  font-weight: 600;
}

.ai-extra-tile p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.ai-safety {
  padding: 12px 14px;
  background: rgba(220, 80, 60, 0.10);
  border: 1px solid rgba(220, 80, 60, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #ffd5cc;
  line-height: 1.5;
}

.ai-safety strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff7755;
  margin-bottom: 4px;
}

.ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-actions .dod-primary,
.ai-actions .btn-ghost-small,
.ai-actions .btn-copy {
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

.ai-actions .dod-primary svg { width: 18px; height: 18px; }

@media (max-width: 719px) {
  .ai-form { padding: 18px; }
  .ai-result { padding: 20px; }
  .ai-result h2 { font-size: 1.4rem; }
  .ai-actions .dod-primary,
  .ai-actions .btn-ghost-small,
  .ai-actions .btn-copy {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .ai-status .spinner { animation: none; }
}

/* =========================================================
   Light-Theme für Rezepte / KI-Assistent / Profil
   Sidebar wird ausgeblendet, Hintergrund hell und warm-neutral.
   Wetterseite bleibt unverändert.
   ========================================================= */

html:has(body[data-view="recipes"]),
html:has(body[data-view="ai"]),
html:has(body[data-view="profile"]) {
  background-color: #0E0E0E !important;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) {
  /* ----- Light-Theme Design-Tokens ----- */
  --bg:               #0E0E0E;
  --bg-2:             #1D1D1D;
  --bg-subtle:        #282322;

  --text:             #F7F6F2;
  --text-2:           #BDB8B2;
  --muted:            #9A948D;

  --surface:          #1D1D1D;
  --surface-2:        #262523;
  --surface-strong:   #2C2A28;
  --border:           #343230;
  --border-strong:    #4A4744;

  --accent:           #E10600;
  --accent-strong:    #FF2E1F;
  --accent-soft:      rgba(225, 6, 0, 0.10);

  --radius:           20px;
  --radius-sm:        14px;
  --radius-xs:        10px;

  --shadow-card:      0 0 0 1px var(--border);
  --shadow-deep:      0 12px 32px rgba(26, 24, 22, 0.08);

  background-color: var(--bg);
  background-image: none;
  color: var(--text);
}

/* Wetter-Themes übersteuern, falls data-weather noch gesetzt ist. */
body[data-view="recipes"][data-weather],
body[data-view="ai"][data-weather],
body[data-view="profile"][data-weather] {
  background-color: #0E0E0E !important;
  background-image: none !important;
}

/* Sidebar nur auf Wetterseite. */
body:not([data-view="weather"]) .sidebar {
  display: none !important;
}

body:not([data-view="weather"]) .drawer-backdrop {
  display: none !important;
}

/* Mobile-Topbar: Drawer-Toggle nur auf Wetterseite zeigen. */
body:not([data-view="weather"]) .drawer-toggle {
  visibility: hidden;
  pointer-events: none;
}

/* App-Shell: ohne Sidebar volle Breite. */
@media (min-width: 960px) {
  body:not([data-view="weather"]) .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Navigation/Topbar/Bottom-Nav: KEINE Per-View-Overrides mehr — der globale
   Stil (.topnav/.view-tabs/.bottom-nav/.mobile-topbar) gilt überall identisch. */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .brand-icon {
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.30);
}

/* ----- Library-Header + Search ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-header h1 { color: var(--text); }
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-header p { color: var(--text-2); }

body[data-view="recipes"] .library-search-wrap input {
  background: #1D1D1D;
  border-color: var(--border);
  color: var(--text);
}

body[data-view="recipes"] .library-search-wrap input::placeholder { color: var(--muted); }

body[data-view="recipes"] .library-search-wrap input:focus {
  background: #1D1D1D;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.10);
}

body[data-view="recipes"] .library-search-wrap svg { color: var(--muted); }

body[data-view="recipes"] .library-meta { color: var(--muted); }

/* ----- Filter (Selects + Reset-Button) ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-filters select,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-ghost-small {
  background: #1D1D1D;
  border-color: var(--border);
  color: var(--text);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-filters select:focus,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-ghost-small:focus {
  border-color: var(--accent);
  outline: none;
}

/* ----- Rezeptkarten ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-featured {
  background: #1D1D1D;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-featured:hover {
  background: #1D1D1D;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(225, 6, 0, 0.08);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card h3,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card h3 {
  color: var(--text);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .lead,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .lead {
  color: var(--text-2);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .meta span,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .meta span {
  background: #2A2826;
  border-color: var(--border);
  color: rgba(247, 246, 242, 0.65);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-eyebrow,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-eyebrow {
  color: var(--accent);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .cta,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .cta {
  color: var(--accent);
}

/* Save-Bookmark-Button auf der Karte */
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .save-btn,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .save-btn {
  background: #1D1D1D;
  border-color: var(--border);
  color: rgba(247, 246, 242, 0.55);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .save-btn.saved,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .save-btn.saved {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ----- KI-Assistent (Formular + Resultat) ----- */

body[data-view="ai"] .ai-page-head h1   { color: var(--text); }
body[data-view="ai"] .ai-page-head p    { color: var(--text-2); }

body[data-view="ai"] .ai-weather-banner {
  background: #2A201E;
  border-color: rgba(225, 6, 0, 0.18);
  color: var(--text);
}

body[data-view="ai"] .ai-form,
body[data-view="ai"] .ai-form-card,
body[data-view="ai"] .ai-result {
  background: #1D1D1D;
  border-color: var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--text);
}

body[data-view="ai"] .ai-form label,
body[data-view="ai"] .ai-form-card label,
body[data-view="ai"] .ai-field-label {
  color: rgba(247, 246, 242, 0.65);
}

body[data-view="ai"] .ai-form input,
body[data-view="ai"] .ai-form textarea,
body[data-view="ai"] .ai-form select,
body[data-view="ai"] .ai-form-card input,
body[data-view="ai"] .ai-form-card textarea,
body[data-view="ai"] .ai-form-card select {
  background: #1D1D1D;
  border: 1px solid var(--border);
  color: var(--text);
}

body[data-view="ai"] .ai-form input::placeholder,
body[data-view="ai"] .ai-form textarea::placeholder,
body[data-view="ai"] .ai-form-card input::placeholder,
body[data-view="ai"] .ai-form-card textarea::placeholder {
  color: var(--muted);
}

body[data-view="ai"] .ai-form input:focus,
body[data-view="ai"] .ai-form textarea:focus,
body[data-view="ai"] .ai-form select:focus,
body[data-view="ai"] .ai-form-card input:focus,
body[data-view="ai"] .ai-form-card textarea:focus,
body[data-view="ai"] .ai-form-card select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.10);
  outline: none;
}

body[data-view="ai"] .ai-submit,
body[data-view="ai"] .dod-primary {
  background: var(--accent);
  color: #ffffff;
}

body[data-view="ai"] .ai-result h2 { color: var(--text); }
body[data-view="ai"] .ai-result .lead { color: var(--text-2); }

body[data-view="ai"] .modal-info-bar .modal-info-cell {
  background: #2A2826;
  border-color: var(--border);
}

body[data-view="ai"] .modal-info-label { color: var(--muted); }
body[data-view="ai"] .modal-info-value { color: var(--text); }

body[data-view="ai"] .modal-warum-wrap {
  background: #2A201E;
  border-color: rgba(225, 6, 0, 0.20);
  color: var(--text);
}

body[data-view="ai"] .modal-warum-wrap h3,
body[data-view="ai"] .ai-result-section h3,
body[data-view="ai"] .ai-extra-tile h4 {
  color: var(--accent);
}

body[data-view="ai"] .modal-warum-wrap p,
body[data-view="ai"] .ai-result-section,
body[data-view="ai"] .ai-result-section ul,
body[data-view="ai"] .ai-result-section ol,
body[data-view="ai"] .ai-extra-tile p {
  color: var(--text);
}

body[data-view="ai"] .ai-extra-tile {
  background: #2A2826;
  border-color: var(--border);
}

body[data-view="ai"] .ai-safety {
  background: #2A201E;
  border-color: rgba(225, 6, 0, 0.20);
  color: var(--text);
}

/* ----- Profilseite ----- */

body[data-view="profile"] .auth-section,
body[data-view="profile"] .auth-form,
body[data-view="profile"] .profile-section,
body[data-view="profile"] .profile-card {
  background: #1D1D1D;
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body[data-view="profile"] .profile-card h2,
body[data-view="profile"] .profile-card h3,
body[data-view="profile"] .auth-section h2,
body[data-view="profile"] .auth-section h3 {
  color: var(--text);
}

body[data-view="profile"] .profile-card p,
body[data-view="profile"] .profile-card li,
body[data-view="profile"] .auth-section p {
  color: var(--text-2);
}

body[data-view="profile"] .auth-section input,
body[data-view="profile"] .auth-section select,
body[data-view="profile"] .profile-card input,
body[data-view="profile"] .profile-card select {
  background: #1D1D1D;
  border-color: var(--border);
  color: var(--text);
}

body[data-view="profile"] .auth-section input:focus,
body[data-view="profile"] .auth-section select:focus,
body[data-view="profile"] .profile-card input:focus,
body[data-view="profile"] .profile-card select:focus {
  border-color: var(--accent);
  outline: none;
}

body[data-view="profile"] .btn-primary,
body[data-view="profile"] .dod-primary {
  background: var(--accent);
  color: #ffffff;
}

body[data-view="profile"] .btn-ghost-small {
  background: #1D1D1D;
  border-color: var(--border);
  color: var(--text);
}

body[data-view="profile"] .section-head h2 {
  color: var(--muted);
}

body[data-view="profile"] .auth-tabs {
  background: var(--surface-2);
  border-color: var(--border);
}

body[data-view="profile"] .auth-tabs button {
  color: var(--muted);
  background: transparent;
}

body[data-view="profile"] .auth-tabs button.active {
  color: var(--accent);
  background: #1D1D1D;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body[data-view="profile"] .auth-section p,
body[data-view="profile"] .auth-section .muted {
  color: var(--text-2);
}

/* ----- Section-Heads + Library-Meta auf hellem Background ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .section-head h2 {
  color: rgba(247, 246, 242, 0.55);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .section-meta {
  color: var(--muted);
}

/* =========================================================
   UI-Konsistenz-Polish — Light-Theme
   Vereinheitlicht Buttons, Inputs, Selects, Chips, Cards,
   Info-Boxen und Modal für Rezepte / KI / Profil.
   ========================================================= */

/* ----- Inputs & Textareas ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input[type="text"],
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input[type="email"],
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input[type="password"],
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input[type="number"],
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input[type="search"],
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input::placeholder,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) textarea::placeholder {
  color: var(--muted);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) input:focus,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----- Selects einheitlich (mit eigenem Caret) ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F5A55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 38px 11px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----- Buttons: Primary / Secondary / Ghost ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-primary,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-primary,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-submit,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) button[type="submit"]:not(.ghost):not(.btn-ghost-small):not(.btn-copy):not(.modal-close) {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-primary:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-primary:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-submit:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) button[type="submit"]:not(.ghost):not(.btn-ghost-small):not(.btn-copy):not(.modal-close):hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-ghost-small,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-cta {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-ghost-small:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-copy {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----- Card-Polish: einheitliche Radius + Border + ohne starke Schatten ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-featured,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-form,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-form-card,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-result,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .auth-section,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .auth-form,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .profile-section,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ----- Chips / Meta-Tags einheitlich ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .meta span,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .meta span,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .modal-meta span,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .profile-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----- Info-Boxen (Warum es heute passt / Wetter-Banner / Sicherheitshinweis) ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .modal-warum-wrap,
body[data-view="ai"] .ai-weather-banner,
body[data-view="ai"] .ai-safety {
  background: var(--bg-subtle);
  border: 1px solid rgba(225, 6, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
}

body[data-view="ai"] .ai-weather-banner {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .modal-warum-wrap h3,
body[data-view="ai"] .ai-safety strong {
  color: var(--accent);
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .modal-warum-wrap p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ----- Library-Header sauber typografiert ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-header h1 {
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .library-header p {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* ----- Library-Suche: einheitlich mit Inputs aber größer ----- */

body[data-view="recipes"] .library-search-wrap input {
  padding: 16px 18px 16px 50px;
  font-size: 1rem;
  border-radius: 999px;
}

body[data-view="recipes"] .library-search-wrap svg {
  color: var(--muted);
  left: 18px;
  width: 20px;
  height: 20px;
}

/* ----- Section-Heads ruhiger ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .section-head h2 {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .section-meta {
  color: var(--text-2);
  font-size: 0.85rem;
}

/* ----- Recipe-Karten Innerleben einheitlicher ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card h3,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .lead,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .lead {
  color: var(--text-2);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-eyebrow,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-eyebrow,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .cta,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .cta {
  color: var(--accent);
  font-weight: 600;
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .save-btn,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .save-btn {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .save-btn:hover,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .save-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .save-btn.saved,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .save-btn.saved {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ----- Profil-Layout: bestehende Sections in Card-Optik ----- */

body[data-view="profile"] .profile-section {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-view="profile"] .profile-section + .profile-section,
body[data-view="profile"] .profile-card + .profile-card {
  margin-top: 14px;
}

body[data-view="profile"] .profile-card {
  padding: 22px;
}

body[data-view="profile"] .profile-card h3,
body[data-view="profile"] .profile-section h3,
body[data-view="profile"] .auth-section h2,
body[data-view="profile"] .auth-section h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

body[data-view="profile"] .profile-card p,
body[data-view="profile"] .profile-section p {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

body[data-view="profile"] .profile-section .muted,
body[data-view="profile"] .profile-card .muted {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Auth-Tabs einheitlich. */
body[data-view="profile"] .auth-tabs {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
}

body[data-view="profile"] .auth-tabs button {
  background: transparent;
  color: var(--text-2);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

body[data-view="profile"] .auth-tabs button.active {
  background: var(--bg-2);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Profil-Field-Sektionen: Label-Wert-Pairs */
body[data-view="profile"] .profile-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-view="profile"] .saved-recipe-card,
body[data-view="profile"] .recent-recipe-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* Tipps-Liste */
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .modal-tips-wrap ul,
body[data-view="ai"] .ai-result ul,
body[data-view="ai"] .ai-result ol {
  color: var(--text);
}

/* ============== Modal: einheitliches Dunkel-Theme ============== */

.modal-card {
  --bg:               #1D1D1D;
  --bg-2:             #1D1D1D;
  --text:             #FFFFFF;
  --text-2:           rgba(255, 255, 255, 0.78);
  --muted:            rgba(255, 255, 255, 0.56);
  --surface:          rgba(255, 255, 255, 0.06);
  --surface-2:        rgba(255, 255, 255, 0.10);
  --border:           rgba(255, 255, 255, 0.12);
  --border-strong:    rgba(255, 255, 255, 0.22);
  --accent:           #FF3B2F;
  --accent-strong:    #FF655B;
  --accent-soft:      rgba(255, 59, 47, 0.18);

  background: #1D1D1D;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.40);
}

.modal-card h2,
.modal-card .modal-head h2 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-card .modal-eyebrow {
  color: var(--muted);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.modal-card .modal-lead {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.modal-card .modal-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.modal-card .modal-info-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-card .modal-info-label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.modal-card .modal-info-value {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.modal-card .modal-meta span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* „Warum es heute passt" — helle Box im Modal */
.modal-card .modal-warum-wrap {
  background: #282322;
  border: 1px solid rgba(225, 6, 0, 0.30);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.modal-card .modal-warum-wrap h3 {
  color: #E10600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 0 0 4px;
}

.modal-card .modal-warum-wrap p {
  color: #F7F6F2;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.modal-card .modal-body h3,
.modal-card .modal-ingredients-head h3 {
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}

.modal-card .modal-body ul,
.modal-card .modal-body ol,
.modal-card #modal-anleitung {
  color: var(--text-2);
  line-height: 1.55;
}

.modal-card .modal-body li {
  color: var(--text-2);
}

.modal-card #modal-zutaten li {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  list-style: none;
  margin-left: -18px;
  padding-left: 0;
}

.modal-card #modal-zutaten {
  padding-left: 0;
  list-style: none;
}

.modal-card #modal-zutaten li:last-child { border-bottom: 0; }

.modal-card .modal-tips-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
}

.modal-card .modal-tips-wrap h3 { color: var(--accent); }
.modal-card .modal-tips-wrap ul { padding-left: 18px; }
.modal-card .modal-tips-wrap li { color: var(--text); margin-bottom: 4px; }

/* Modal-Buttons: primary rot, secondary outline */
.modal-card .dod-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 600;
}

.modal-card .dod-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.modal-card .btn-copy {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 500;
}

.modal-card .btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-card .modal-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
}

.modal-card .modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Partner-Sektion im Modal: hell auf dunkel als dezenter Block */
.modal-card .modal-partners {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-card .partner-section-head h3 {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-card .partner-section-head p {
  color: var(--text-2);
  font-size: 0.85rem;
}

.modal-card .partner-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.modal-card .partner-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: none;
}

.modal-card .partner-card h4 { color: var(--text); }
.modal-card .partner-card p { color: var(--text-2); }
.modal-card .partner-card .partner-eyebrow { color: var(--accent); }
.modal-card .partner-card .partner-cta { color: var(--accent); }

/* Modal-Backdrop sauber */
.modal-backdrop {
  background: rgba(18, 24, 38, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ----- Mobile-Spacing Polish ----- */

@media (max-width: 720px) {
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .dod-featured,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-form,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .ai-result,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .auth-section,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .profile-section,
  body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .profile-card {
    border-radius: var(--radius-sm);
  }

  .modal-card .modal-info-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ----- „Warum heute passend"-Box auf hellen Karten ----- */

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .why-today,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .why-today {
  background: var(--bg-subtle);
  border: 1px solid rgba(225, 6, 0, 0.18);
  color: var(--text);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .why-today-label,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .why-today-label {
  color: var(--accent);
}

body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .recipe-card .why-today-text,
body:is([data-view="recipes"], [data-view="ai"], [data-view="profile"]) .featured-card .why-today-text {
  color: var(--text);
}

/* =========================================================
   KI-Result-Karte (Light-Theme, hochwertiges Detail-Layout)
   ========================================================= */

body[data-view="ai"] .ai-result {
  background: #1D1D1D;
  border: 1px solid #343230;
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #F7F6F2;
  box-shadow: none;
}

body[data-view="ai"] .ai-result-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-view="ai"] .ai-result-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E10600;
}

body[data-view="ai"] .ai-result-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F7F6F2;
  line-height: 1.15;
}

body[data-view="ai"] .ai-result-lead {
  margin: 0;
  font-size: 1rem;
  color: #BDB8B2;
  line-height: 1.5;
}

body[data-view="ai"] .ai-result-metaline {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #9A948D;
}

/* „Warum passt das heute?"-Box */
body[data-view="ai"] .ai-warum {
  background: #282322;
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-view="ai"] .ai-warum-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E10600;
}

body[data-view="ai"] .ai-warum-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #F7F6F2;
}

/* 4 Meta-Tiles */
body[data-view="ai"] .ai-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

body[data-view="ai"] .ai-meta-tile {
  background: #1D1D1D;
  border: 1px solid #343230;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-view="ai"] .ai-meta-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A948D;
  font-weight: 600;
}

body[data-view="ai"] .ai-meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: #F7F6F2;
  letter-spacing: -0.01em;
}

/* Zutaten + Zubereitung — zweispaltig Desktop */
body[data-view="ai"] .ai-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 720px) {
  body[data-view="ai"] .ai-body-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

body[data-view="ai"] .ai-body-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-view="ai"] .ai-section-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BDB8B2;
  font-weight: 700;
}

body[data-view="ai"] .ai-section-title-accent { color: #E10600; }

body[data-view="ai"] .ai-list-ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="ai"] .ai-list-ingredients li {
  font-size: 0.95rem;
  color: #F7F6F2;
  padding: 9px 0;
  border-bottom: 1px solid #343230;
  line-height: 1.4;
}

body[data-view="ai"] .ai-list-ingredients li:last-child { border-bottom: 0; }

body[data-view="ai"] .ai-list-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ai-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-view="ai"] .ai-list-steps li {
  counter-increment: ai-step;
  position: relative;
  padding: 0 0 0 36px;
  color: #F7F6F2;
  font-size: 0.95rem;
  line-height: 1.55;
}

body[data-view="ai"] .ai-list-steps li::before {
  content: counter(ai-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: #E10600;
  color: #FFFFFF;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Tipps */
body[data-view="ai"] .ai-tips {
  background: #282322;
  border: 1px solid #343230;
  border-left: 3px solid #E10600;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-view="ai"] .ai-tips-list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
  color: #F7F6F2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-view="ai"] .ai-tips-list li {
  font-size: 0.93rem;
  line-height: 1.5;
  color: #F7F6F2;
}

body[data-view="ai"] .ai-tips-list li::marker { color: #E10600; }

/* Extra-Cards: Alternative / Beilage / Sicherheit */
body[data-view="ai"] .ai-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  body[data-view="ai"] .ai-extra-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body[data-view="ai"] .ai-extra-card {
  background: #1D1D1D;
  border: 1px solid #343230;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-view="ai"] .ai-extra-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E10600;
  font-weight: 700;
}

body[data-view="ai"] .ai-extra-text {
  margin: 0;
  font-size: 0.92rem;
  color: #F7F6F2;
  line-height: 1.5;
}

/* KI-Partner an Light-Design anpassen — überschreibt warm-dunkel */
body[data-view="ai"] .ai-partners .partner-card,
body[data-view="ai"] .ai-partners[class] .partner-card {
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #F7F6F2;
}

body[data-view="ai"] .ai-partners .partner-card:hover {
  border-color: #E10600;
  background: #282322;
}

body[data-view="ai"] .ai-partners .partner-card h4 { color: #F7F6F2; }
body[data-view="ai"] .ai-partners .partner-card p { color: #BDB8B2; }
body[data-view="ai"] .ai-partners .partner-card .partner-eyebrow { color: #E10600; }
body[data-view="ai"] .ai-partners .partner-card .partner-cta { color: #E10600; }

body[data-view="ai"] .ai-partners .partner-section-head h3 {
  color: #E10600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

body[data-view="ai"] .ai-partners .partner-section-head p {
  color: #BDB8B2;
  font-size: 0.9rem;
}

/* KI-Action-Buttons */
body[data-view="ai"] .ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

body[data-view="ai"] .ai-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E10600;
  color: #FFFFFF;
  border: 1px solid #E10600;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 160ms ease;
}

body[data-view="ai"] .ai-btn-primary svg { width: 18px; height: 18px; }

body[data-view="ai"] .ai-btn-primary:hover { background: #FF2E1F; border-color: #FF2E1F; }
body[data-view="ai"] .ai-btn-primary.added { background: #F7F6F2; border-color: #F7F6F2; }

body[data-view="ai"] .ai-btn-secondary {
  background: #1D1D1D;
  color: #F7F6F2;
  border: 1px solid #343230;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

body[data-view="ai"] .ai-btn-secondary:hover {
  border-color: #E10600;
  color: #E10600;
}

@media (max-width: 720px) {
  body[data-view="ai"] .ai-meta-grid { grid-template-columns: repeat(2, 1fr); }
  body[data-view="ai"] .ai-actions { flex-direction: column; align-items: stretch; }
  body[data-view="ai"] .ai-btn-primary,
  body[data-view="ai"] .ai-btn-secondary { width: 100%; justify-content: center; }
  body[data-view="ai"] .ai-result { padding: 22px; }
  body[data-view="ai"] .ai-result-title { font-size: 1.55rem; }
}

/* =========================================================
   Modal-Kontrast-Fix: helle „Warum"-Box + lesbare Inhalte
   ========================================================= */

.modal-card .modal-warum-wrap,
#recipe-modal .modal-card .modal-warum-wrap {
  background: #2A1D1A !important;
  border: 1px solid rgba(225, 6, 0, 0.30) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.modal-card .modal-warum-wrap h3,
#recipe-modal .modal-card .modal-warum-wrap h3 {
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #E10600 !important;
}

.modal-card .modal-warum-wrap p,
#recipe-modal .modal-card .modal-warum-wrap p,
.modal-card #modal-warum {
  margin: 0 !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: #F7F6F2 !important;
}

/* Modal-Texte Kontrast: hell auf dunklem Bg */
.modal-card .modal-title,
.modal-card #modal-title { color: #FFFFFF; font-weight: 700; }
.modal-card .modal-lead,
.modal-card #modal-lead { color: rgba(255, 255, 255, 0.85); }

.modal-card #modal-zutaten li {
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-card #modal-anleitung,
.modal-card #modal-anleitung p,
.modal-card #modal-anleitung li {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
}

.modal-card .modal-tips-wrap {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #FF3B2F;
}

.modal-card .modal-tips-wrap h3 { color: #FF655B; }
.modal-card .modal-tips-wrap li { color: #FFFFFF; }
.modal-card .modal-tips-wrap li::marker { color: #FF3B2F; }

/* =========================================================
   Wissen-Bereich (Light-Theme)
   Feed, Lektion-Detail-Modal, Create-Form, öffentliches Profil
   ========================================================= */

/* Wissen als Light-View — gleiche Tokens wie Recipes/AI/Profile. */
html:has(body[data-view="wissen"]) {
  background-color: #0E0E0E !important;
}

body[data-view="wissen"] {
  --bg:               #0E0E0E;
  --bg-2:             #1D1D1D;
  --bg-subtle:        #282322;
  --text:             #F7F6F2;
  --text-2:           #BDB8B2;
  --muted:            #9A948D;
  --surface:          #1D1D1D;
  --surface-2:        #262523;
  --border:           #343230;
  --border-strong:    #4A4744;
  --accent:           #E10600;
  --accent-strong:    #FF2E1F;
  --accent-soft:      rgba(225, 6, 0, 0.10);
  --shadow-card:      0 0 0 1px var(--border);
  background-color: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
}

/* Sidebar verstecken auf Wissen, wie bei Recipes/AI/Profile. */
body[data-view="wissen"] .sidebar { display: none !important; }
body[data-view="wissen"] .drawer-backdrop { display: none !important; }
body[data-view="wissen"] .drawer-toggle { visibility: hidden; pointer-events: none; }

@media (min-width: 960px) {
  body[data-view="wissen"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-view="wissen"] .library-header h1 { color: var(--text); }
body[data-view="wissen"] .library-header p { color: var(--text-2); }

body[data-view="wissen"] .library-search-wrap input {
  background: #1D1D1D;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 18px 16px 50px;
  border-radius: 999px;
}
body[data-view="wissen"] .library-search-wrap svg { color: var(--muted); }
body[data-view="wissen"] .library-meta { color: var(--muted); padding: 0 4px; }

body[data-view="wissen"] .wissen-filters select,
body[data-view="wissen"] .wissen-filters .btn-create-lesson {
  background: #1D1D1D;
  border: 1px solid var(--border);
  color: var(--text);
}

body[data-view="wissen"] .btn-create-lesson {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  margin-left: auto;
  background: var(--accent) !important;
  color: #FFFFFF !important;
  border-color: var(--accent) !important;
  transition: background 160ms ease;
}

body[data-view="wissen"] .btn-create-lesson:hover {
  background: var(--accent-strong) !important;
  border-color: var(--accent-strong) !important;
}

body[data-view="wissen"] .btn-create-lesson svg { width: 16px; height: 16px; }

/* ---------- Wissen-Grid ---------- */

.wissen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) { .wissen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wissen-grid { grid-template-columns: repeat(3, 1fr); } }

.wissen-card {
  background: #1D1D1D;
  border: 1px solid #343230;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  color: #F7F6F2;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.wissen-card:hover {
  border-color: #E10600;
  transform: translateY(-1px);
}

.wissen-card .thumb {
  height: 88px;
  border-radius: 14px;
  background: #282322;
  border: 1px solid #343230;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E10600;
  position: relative;
  overflow: hidden;
}

.wissen-card .thumb svg { width: 32px; height: 32px; opacity: 0.6; }

/* Passendes 3D-Icon pro Lektion (statt generischem Buch-Symbol) */
.wissen-card .thumb-3d {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  transform: translateY(1px);
}
.lesson-modal-3d {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}
/* Emoji-Fallback (nur falls eine Lektion kein 3D-Icon hat) */
.wissen-card .thumb-emoji {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transform: translateY(1px);
}
.lesson-modal-emoji {
  font-size: 56px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.wissen-card .thumb .play-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(225, 6, 0, 0.92);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wissen-card .thumb .play-overlay svg { width: 12px; height: 12px; opacity: 1; color: #FFFFFF; }

.wissen-card .category {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E10600;
}

.wissen-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F7F6F2;
  line-height: 1.3;
}

.wissen-card .lead {
  margin: 0;
  font-size: 0.88rem;
  color: #BDB8B2;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wissen-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.76rem;
}

.wissen-card .meta span {
  background: #282322;
  border: 1px solid #343230;
  color: #BDB8B2;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 500;
}

.wissen-card .footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #343230;
}

.wissen-card .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #282322;
  color: #E10600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #343230;
  flex-shrink: 0;
}

.wissen-card .author {
  font-size: 0.82rem;
  color: #BDB8B2;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Offizielle WILLGRILLEN-Lektionen: Marken-Logo statt Demo-Avatar */
.wissen-card .official-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.35));
}

.wissen-card .author strong { color: #F7F6F2; font-weight: 600; }

.wissen-card .likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #BDB8B2;
  font-size: 0.82rem;
  font-weight: 600;
}

.wissen-card .likes svg { width: 14px; height: 14px; color: #E10600; }

.wissen-card .card-save {
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #9A948D;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wissen-card .card-save svg { width: 14px; height: 14px; }
.wissen-card .card-save.saved { background: #E10600; color: #FFFFFF; border-color: #E10600; }
.wissen-card .card-save.saved svg { fill: currentColor; }

.wissen-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #BDB8B2;
  padding: 40px 0;
  font-size: 0.95rem;
}

/* ---------- Lesson-Modal (Light-Variant) ---------- */

.lesson-modal-card {
  background: #1D1D1D !important;
  color: #F7F6F2 !important;
  border: 1px solid #343230 !important;
  border-radius: 20px !important;
  padding: 26px !important;
  max-width: 640px;
}

.lesson-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lesson-modal-head-text { flex: 1; min-width: 0; }

.lesson-modal-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E10600;
  font-weight: 700;
  margin-bottom: 4px;
}

.lesson-modal-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F7F6F2;
}

.lesson-modal-card .modal-close {
  background: #1D1D1D !important;
  border: 1px solid #343230 !important;
  color: #F7F6F2 !important;
}

.lesson-modal-card .modal-close:hover { border-color: #E10600 !important; color: #E10600 !important; }

.lesson-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #282322;
  border: 1px solid #343230;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: inherit;
  color: #F7F6F2;
  text-align: left;
  width: 100%;
}

.lesson-author-row:hover { border-color: #E10600; }

.lesson-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #1D1D1D;
  color: #E10600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid #343230;
  flex-shrink: 0;
}

.lesson-author-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lesson-author-name { font-size: 0.95rem; font-weight: 600; color: #F7F6F2; }
.lesson-author-handle { font-size: 0.78rem; color: #BDB8B2; }
.lesson-author-cta { color: #E10600; font-size: 0.82rem; font-weight: 600; flex-shrink: 0; }

.lesson-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lesson-modal-meta span {
  background: #282322;
  border: 1px solid #343230;
  color: #BDB8B2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
}

.lesson-modal-video {
  background: #282322;
  border: 1px solid #343230;
  border-radius: 14px;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E10600;
  font-size: 0.9rem;
  font-weight: 600;
}

.lesson-modal-video.has-link { padding: 0; overflow: hidden; }
.lesson-modal-video.has-link a {
  display: block;
  width: 100%;
  padding: 22px 16px;
  color: #F7F6F2;
  text-decoration: none;
}

.lesson-modal-lead {
  margin: 0;
  color: #BDB8B2;
  font-size: 0.95rem;
  line-height: 1.5;
}

.lesson-modal-section { display: flex; flex-direction: column; gap: 8px; }

.lesson-modal-section h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BDB8B2;
}

.lesson-modal-section p { margin: 0; color: #F7F6F2; line-height: 1.55; font-size: 0.93rem; }

.lesson-modal-section ul,
.lesson-modal-section ol {
  margin: 0;
  padding: 0 0 0 18px;
  color: #F7F6F2;
}

.lesson-modal-section li { margin-bottom: 4px; font-size: 0.93rem; line-height: 1.5; }
.lesson-modal-section ul li::marker { color: #E10600; }
.lesson-modal-section ol li::marker { color: #E10600; font-weight: 700; }

.lesson-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #343230;
}

.lesson-btn-action {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #F7F6F2;
  border-radius: 14px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.lesson-btn-action:hover { border-color: #E10600; color: #E10600; }
.lesson-btn-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.lesson-btn-action.active { background: #E10600; color: #FFFFFF; border-color: #E10600; }
.lesson-btn-action.active svg { fill: currentColor; }

/* ---------- Create-Lesson-Modal ---------- */

.lesson-create-card {
  background: #1D1D1D !important;
  color: #F7F6F2 !important;
  border: 1px solid #343230 !important;
  padding: 26px !important;
  max-width: 640px;
}

.lesson-create-hint { margin: 0; color: #BDB8B2; font-size: 0.92rem; line-height: 1.5; }

.lesson-create-form { display: flex; flex-direction: column; gap: 14px; }

.lesson-create-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #BDB8B2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-create-form input,
.lesson-create-form textarea,
.lesson-create-form select {
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #F7F6F2;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.lesson-create-form input:focus,
.lesson-create-form textarea:focus,
.lesson-create-form select:focus {
  outline: none;
  border-color: #E10600;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.10);
}

.lesson-create-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .lesson-create-row { grid-template-columns: 1fr; }
}

.lesson-create-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.lesson-create-feedback {
  background: #282322;
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #F7F6F2;
  font-size: 0.92rem;
}

/* ---------- Public-Profile-Modal ---------- */

.public-profile-card {
  background: #1D1D1D !important;
  color: #F7F6F2 !important;
  border: 1px solid #343230 !important;
  padding: 26px !important;
  max-width: 600px;
}

.pp-handle { margin: 4px 0 0; color: #BDB8B2; font-size: 0.88rem; }

.pp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.pp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #282322;
  border: 1px solid #343230;
  color: #E10600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pp-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #BDB8B2;
}

.pp-stat strong { color: #F7F6F2; font-weight: 700; font-size: 1rem; }

.pp-bio { margin: 0; color: #F7F6F2; line-height: 1.5; font-size: 0.93rem; }

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pp-level {
  background: #282322;
  color: #E10600;
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pp-methods { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.pp-methods span {
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #BDB8B2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.pp-follow-btn { align-self: flex-start; }
.pp-follow-btn.following { background: #1D1D1D !important; color: #E10600 !important; border: 1px solid #E10600 !important; }

.pp-section { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid #343230; }

.pp-section h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BDB8B2;
}

.pp-lessons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-lesson-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #282322;
  border: 1px solid #343230;
  border-radius: 12px;
  text-align: left;
  font-family: inherit;
  color: #F7F6F2;
  cursor: pointer;
}

.pp-lesson-link:hover { border-color: #E10600; }

.pp-lesson-link h4 { margin: 0; font-size: 0.92rem; font-weight: 600; color: #F7F6F2; }
.pp-lesson-link .meta-row { font-size: 0.78rem; color: #BDB8B2; }

.pp-lesson-link svg.arrow { width: 16px; height: 16px; color: #E10600; margin-left: auto; }

@media (max-width: 600px) {
  .lesson-modal-card,
  .lesson-create-card,
  .public-profile-card { padding: 22px !important; }
  .lesson-modal-head h2 { font-size: 1.25rem; }
}

/* ----- Partner-Karten auf hellem Background: bleiben warm-dunkel als Brand-Akzent ----- */
/* Bewusst nicht überschrieben — die Partner-Sektion bleibt warm-rauchig für Brand-Wiedererkennung. */

/* =========================================================
   Social-/Creator-Profil
   Heller, ruhiger Look auf Basis der Light-Theme-Tokens
   (--surface, --border, --text, --accent …). Keine Schatten,
   keine Verläufe. Greift nur im Profil-View.
   ========================================================= */

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}

.profile-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.profile-back:hover { color: var(--accent); }
.profile-back svg { width: 18px; height: 18px; }

/* ----- Profilkopf ----- */

.profile-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pf-avatar {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.pf-stats {
  display: flex;
  flex: 1;
  justify-content: space-around;
  gap: 8px;
}

.pf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pf-stat strong { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.pf-stat span { font-size: 0.78rem; color: var(--text-2); }

.pf-identity { display: flex; flex-direction: column; gap: 8px; }

.pf-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pf-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pf-level {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.pf-handle { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.pf-loc::before { content: "📍 "; }
.pf-bio { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--text); max-width: 60ch; }

.pf-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pf-method {
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.pf-actions { display: flex; gap: 10px; }
.pf-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.pf-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.pf-btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.pf-btn-primary.following { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.pf-btn-ghost { background: var(--surface); color: var(--text); }
.pf-btn-ghost:hover { border-color: var(--border-strong); }
.pf-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ----- Highlights / Sammlungen ----- */

.profile-highlights {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.profile-highlights::-webkit-scrollbar { display: none; }

.pf-highlight {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.pf-hl-ring {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease;
}
.pf-highlight:hover .pf-hl-ring,
.pf-highlight.active .pf-hl-ring { border-color: var(--accent); }
.pf-hl-emoji { font-size: 1.6rem; line-height: 1; }
.pf-hl-label {
  font-size: 0.76rem;
  color: var(--text-2);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- Content-Tabs ----- */

.profile-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pf-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.pf-tab svg { width: 18px; height: 18px; }
.pf-tab:hover { color: var(--text); }
.pf-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ----- Content-Bereiche ----- */

.profile-content { min-height: 120px; }

.pf-subhead {
  margin: 4px 2px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pf-subhead + .pf-grid,
.pf-subhead + .wissen-grid { margin-bottom: 20px; }

.pf-empty {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  padding: 32px 16px;
}

/* Beiträge-Grid */
.pf-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .pf-posts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .pf-posts { grid-template-columns: repeat(4, 1fr); } }

.pf-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.pf-post-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pf-post-emoji { font-size: 2.4rem; line-height: 1; }
.pf-post-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
}
.pf-type-video .pf-post-badge { background: var(--accent); color: #fff; border-color: var(--accent); }
.pf-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-post-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 600;
}
.pf-post-likes svg { width: 14px; height: 14px; color: var(--accent); }

/* Rezept-/Inhalts-Kacheln (Listenform mit Thumbnail) */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }

.pf-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}
.pf-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.pf-tile-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.pf-tile-ai { background: var(--accent-soft); border-color: transparent; }
.pf-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-tile-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-tile-meta { font-size: 0.8rem; color: var(--text-2); }

/* ----- Profil bearbeiten / Einstellungen — Modal ----- */

.profile-edit-card,
.discover-card,
.post-modal-card {
  /* .modal-card setzt ein Dunkel-Token-Set — hier auf das helle Profil-Theme
     zurücksetzen, damit Inputs, Chips & Co. hell rendern. */
  --bg:               #0E0E0E;
  --bg-2:             #1D1D1D;
  --bg-subtle:        #282322;
  --text:             #F7F6F2;
  --text-2:           #BDB8B2;
  --muted:            #9A948D;
  --surface:          #1D1D1D;
  --surface-2:        #262523;
  --surface-strong:   #2C2A28;
  --border:           #343230;
  --border-strong:    #4A4744;
  --accent:           #E10600;
  --accent-strong:    #FF2E1F;
  --accent-soft:      rgba(225, 6, 0, 0.10);

  background: #1D1D1D !important;
  color: #F7F6F2 !important;
  border: 1px solid #343230 !important;
  padding: 24px !important;
  max-width: 560px;
}
.pe-scroll { display: flex; flex-direction: column; gap: 20px; }
.pe-group { display: flex; flex-direction: column; gap: 10px; }
.pe-group h3 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BDB8B2;
}
.pe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #BDB8B2;
}
.pe-field input,
.pe-field textarea {
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #F7F6F2;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  resize: vertical;
}
.pe-field input:focus,
.pe-field textarea:focus {
  outline: none;
  border-color: #E10600;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.10);
}
/* Aktiver Chip im Edit-Modal deutlicher hervorheben. */
.profile-edit-card .profile-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.pe-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid #343230;
}

/* ----- Mobile-Feinschliff ----- */
@media (max-width: 600px) {
  .profile-header { padding: 18px; }
  .pf-avatar { width: 72px; height: 72px; font-size: 1.7rem; }
  .pf-stat strong { font-size: 1.1rem; }
  .pf-name { font-size: 1.2rem; }
}
@media (max-width: 420px) {
  .pf-tab span { display: none; }
  .pf-tab { padding: 13px 6px; }
  .profile-highlights { gap: 12px; }
}



/* =========================================================
   Profil — Erweiterungen: Avatar-Bild, Header-Icons,
   Profilbild-Upload, Anmeldedaten, Personen entdecken
   ========================================================= */

/* Avatar zeigt hochgeladenes Bild (statt Initialen) */
.pf-avatar { overflow: hidden; }
.pf-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* Icon-Aktionen neben dem Namen (Einstellungen, Personen entdecken) */
.pf-name-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.pf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.pf-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.pf-icon-btn svg { width: 19px; height: 19px; }

/* ----- Edit-Modal: Profilbild-Upload ----- */
.pe-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pe-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
  color: var(--accent);
}
.pe-avatar-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ----- Edit-Modal: Anmeldedaten ----- */
.pe-account {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.pe-account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.pe-account-row span { color: var(--text-2); }
.pe-account-row strong { color: var(--text); font-weight: 600; word-break: break-all; text-align: right; }
.pe-account-hint { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ----- Edit-Modal: Feedback (z. B. Nutzername vergeben) ----- */
.pe-feedback {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-size: 0.88rem;
}

/* ----- Personen entdecken — Modal ----- */
.discover-card { max-width: 460px; }
.discover-hint { margin: 0; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }
.discover-list { display: flex; flex-direction: column; gap: 4px; }
.discover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
}
.discover-item:last-child { border-bottom: none; }
.discover-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.discover-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.discover-name { font-size: 0.95rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-handle { font-size: 0.8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discover-follow {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.discover-follow:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.discover-follow.following { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* =========================================================
   Community-Feed (Instagram-artig)
   ========================================================= */

/* ----- Theme: heller Hintergrund wie die anderen Social-Views ----- */
html:has(body[data-view="community"]) { background-color: #0E0E0E !important; }

body[data-view="community"] {
  --bg: #0E0E0E; --bg-2: #1D1D1D; --bg-subtle: #282322;
  --text: #F7F6F2; --text-2: #BDB8B2; --muted: #9A948D;
  --surface: #1D1D1D; --surface-2: #262523; --surface-strong: #2C2A28;
  --border: #343230; --border-strong: #4A4744;
  --accent: #E10600; --accent-strong: #FF2E1F; --accent-soft: rgba(225, 6, 0, 0.10);
  background-color: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
}
body[data-view="community"] .sidebar { display: none !important; }
body[data-view="community"] .drawer-backdrop { display: none !important; }
body[data-view="community"] .drawer-toggle { visibility: hidden; pointer-events: none; }
@media (min-width: 960px) {
  body[data-view="community"] .app-shell { grid-template-columns: minmax(0, 1fr); }
}
/* 6 Bottom-Tabs: etwas kompakter auf schmalen Screens */
@media (max-width: 540px) {
  .bottom-tab span { font-size: 0.7rem; } /* A11y: nicht unter ~11px */
  .bottom-tab { padding-left: 2px; padding-right: 2px; }
}

/* ----- Feed-Header ----- */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 4px;
  padding: 4px 4px 0;
  width: 100%;
}
.feed-header h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.feed-create-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 160ms ease;
}
.feed-create-btn:hover { background: var(--accent-strong); }
.feed-create-btn svg { width: 17px; height: 17px; }

/* ----- Stories ----- */
.feed-stories {
  display: flex; gap: 14px; overflow-x: auto;
  max-width: 560px; margin: 0 auto 6px; padding: 10px 4px;
  scrollbar-width: none;
}
.feed-stories::-webkit-scrollbar { display: none; }
.story-ring {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 72px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.story-ring-inner {
  width: 60px; height: 60px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; overflow: hidden;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.story-ring-add {
  background: var(--surface); color: var(--accent);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--border-strong);
  font-size: 1.8rem; font-weight: 300;
}
.story-ring-label {
  font-size: 0.74rem; color: var(--text-2); max-width: 72px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----- Feed-Posts ----- */
.feed-list { display: flex; flex-direction: column; gap: 18px; max-width: 560px; margin: 0 auto; width: 100%; }
.feed-post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.feed-post-head { display: flex; align-items: center; padding: 12px 14px; }
.post-author {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0; text-align: left; min-width: 0;
}
.post-avatar {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; border: 1px solid var(--border);
}
.post-author-text { display: flex; flex-direction: column; min-width: 0; }
.post-author-name { font-size: 0.92rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-author-sub { font-size: 0.78rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post-media {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg-subtle); border: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  overflow: hidden;
}
.post-emoji { font-size: 5rem; line-height: 1; }
.post-kind-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(29, 28, 27, 0.92); color: var(--accent); border: 1px solid var(--border);
}

.post-actions { display: flex; align-items: center; gap: 6px; padding: 10px 12px 4px; }
.post-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: none; border: none; color: var(--text); cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}
.post-action svg { width: 24px; height: 24px; }
.post-action:hover { color: var(--accent); }
.post-action:active { transform: scale(0.88); }
.post-action.liked { color: var(--accent); }
.post-action.saved { color: var(--text); }
.post-action-save { margin-left: auto; }
.post-action.shared { color: var(--accent); }

.post-likes { margin: 2px 14px; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.post-caption { margin: 2px 14px; font-size: 0.92rem; line-height: 1.45; color: var(--text); }
.post-caption strong { font-weight: 700; }
.post-comments-link { display: block; margin: 4px 14px 0; padding: 0; background: none; border: none; color: var(--text-2); font-family: inherit; font-size: 0.88rem; cursor: pointer; text-align: left; }
.post-comments-link:hover { color: var(--accent); }
.post-time { margin: 6px 14px 14px; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ----- Post-Detail-Modal ----- */
.post-modal-card { max-width: 480px; padding: 0 !important; gap: 0 !important; }
.post-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.post-modal-head .modal-close { color: var(--text-2); }
.post-modal-card .post-media { border-radius: 0; }
.post-heart-pop {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; pointer-events: none;
}
.post-heart-pop svg { width: 96px; height: 96px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25)); }
.post-heart-pop.pop { animation: heartPop 800ms ease; }
@keyframes heartPop {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 0.95; transform: scale(1.1); }
  35% { transform: scale(0.95); }
  70% { opacity: 0.95; }
  100% { opacity: 0; transform: scale(1); }
}
.post-modal-card .post-actions { padding: 12px 16px 4px; }
.post-modal-card .post-likes,
.post-modal-card .post-caption { margin-left: 16px; margin-right: 16px; }
.post-modal-card .post-time { margin: 6px 16px 10px; }
.post-comments {
  display: flex; flex-direction: column; gap: 12px;
  padding: 10px 16px; border-top: 1px solid var(--border); max-height: 34vh; overflow-y: auto;
}
.post-comment { display: flex; flex-direction: column; gap: 2px; }
.post-comment-text { font-size: 0.9rem; line-height: 1.4; color: var(--text); }
.post-comment-text strong { font-weight: 700; }
.post-comment-time { font-size: 0.72rem; color: var(--muted); }
.post-no-comments { margin: 6px 0; color: var(--muted); font-size: 0.9rem; }
.post-comment-form {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 14px; border-top: 1px solid var(--border);
}
.post-comment-form input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 0.92rem;
}
.post-comment-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.post-comment-form button {
  flex-shrink: 0; background: none; border: none; color: var(--accent);
  font-family: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; padding: 6px 4px;
}

/* ----- Compose-Modal ----- */
.compose-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.compose-emoji {
  aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-xs); cursor: pointer; transition: border-color 140ms ease, transform 140ms ease;
}
.compose-emoji:hover { transform: translateY(-1px); }
.compose-emoji.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.compose-kind-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 460px) { .compose-emoji-grid { grid-template-columns: repeat(6, 1fr); } }

/* ----- Profil: klickbare Stats ----- */
.pf-stat-btn { background: none; border: none; cursor: pointer; font-family: inherit; transition: opacity 140ms ease; }
.pf-stat-btn:hover { opacity: 0.7; }

/* ----- Story-Viewer (Vollbild-Overlay) ----- */
.story-viewer {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 9, 8, 0.98);
  display: flex; flex-direction: column; align-items: center;
}
.story-viewer[hidden] { display: none; }
.story-progress { display: flex; gap: 4px; width: 100%; max-width: 460px; padding: 12px 12px 0; }
.story-bar { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.story-bar.done .story-bar-fill { width: 100%; }
.story-bar-fill { display: block; height: 100%; width: 0; background: #fff; }
.story-bar.active .story-bar-fill { animation: storyFill 3200ms linear forwards; }
@keyframes storyFill { from { width: 0; } to { width: 100%; } }
.story-head {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px;
  padding: 14px 14px; color: #fff;
}
.story-avatar {
  width: 38px; height: 38px; border-radius: 999px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.4);
}
.story-name { font-size: 0.92rem; font-weight: 700; }
.story-time { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.story-close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; padding: 4px; }
.story-close svg { width: 24px; height: 24px; }
.story-stage {
  flex: 1; width: 100%; max-width: 460px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 20px; text-align: center;
}
.story-emoji { font-size: 7rem; line-height: 1; }
.story-caption { color: #fff; font-size: 1.3rem; font-weight: 600; max-width: 90%; }
/* Tippen wie bei Instagram: linkes Drittel = zurück, der Rest = weiter */
.story-nav { position: absolute; top: 60px; bottom: 0; background: none; border: none; cursor: pointer; }
.story-prev { width: 33%; }
.story-next { width: 67%; }
.story-prev { left: 0; }
.story-next { right: 0; }

/* =========================================================
   Echte Medien (Bilder & Videos) statt Emoji-Platzhalter
   ========================================================= */

/* Feed-/Modal-Media füllen die quadratische Fläche */
.post-media { display: block; overflow: hidden; padding: 0; }
.post-media-holder { width: 100%; height: 100%; }
.post-media-el { display: block; width: 100%; height: 100%; object-fit: cover; }
video.post-media-el { object-fit: contain; background: #000; }
.post-media.is-video { background: #000; cursor: default; }

/* Neutrale Fläche, falls kein Medium (kein Emoji mehr) */
.post-media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--muted);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Profil-Beitragskacheln: echtes Bild statt Emoji */
.pf-post-thumb { overflow: hidden; }
.pf-post-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-post-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle);
}
.pf-post-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pf-post-play svg { width: 18px; height: 18px; margin-left: 2px; }

/* Story-Ring & -Viewer mit echten Bildern */
.story-ring-img { width: 100%; height: 100%; object-fit: cover; }
.story-img { max-width: 100%; max-height: 60vh; border-radius: 14px; object-fit: contain; }
#story-emoji { font-size: 0; }

/* Highlights: Buchstabe statt Emoji */
.pf-hl-letter { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* Rezept-/KI-Kachel-Icons */
.pf-tile-thumb svg { width: 24px; height: 24px; color: var(--accent); }

/* ----- Compose: Upload-Dropzone + Vorschau ----- */
.compose-dropzone {
  width: 100%;
  min-height: 160px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 0;
  font-family: inherit;
  transition: border-color 160ms ease, background 160ms ease;
}
.compose-dropzone:hover { border-color: var(--accent); }
.compose-dropzone-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-2); padding: 28px 16px; text-align: center;
}
.compose-dropzone-empty svg { width: 34px; height: 34px; color: var(--muted); }
.compose-dropzone-empty span { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.compose-dropzone-empty small { font-size: 0.8rem; color: var(--muted); }
.compose-preview { width: 100%; display: block; }
.compose-preview img,
.compose-preview video { width: 100%; max-height: 360px; object-fit: cover; display: block; background: #000; }
.compose-error { margin: 8px 0 0; color: var(--accent); font-size: 0.88rem; }
#compose-remove-media { margin-top: 8px; }

/* =========================================================
   WILLGRILLEN Assistent — Floating Chatbot
   Feste Farben (liegt außerhalb der View-Themes im <body>):
   bg #FFFFFF · Panel #0E0E0E · Text #F7F6F2 · 2nd #BDB8B2
   Border #343230 · Akzent #E10600 — keine Verläufe, dezente Schatten.
   ========================================================= */

/* ----- Floating Button ----- */
#wg-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  background: #E10600;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}
#wg-fab:hover { background: #FF2E1F; }
#wg-fab:active { transform: scale(0.96); }
#wg-fab svg { width: 21px; height: 21px; }
#wg-fab .wg-fab-label { white-space: nowrap; }

/* ----- Backdrop (nur mobil) ----- */
#wg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  border: none;
  padding: 0;
  background: rgba(26, 24, 22, 0.42);
  opacity: 0;
  transition: opacity 200ms ease;
  display: none;
}
#wg-backdrop.open { opacity: 1; }

/* ----- Panel ----- */
#wg-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 120;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(600px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0E0E0E;
  border: 1px solid #343230;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(26, 24, 22, 0.16);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
#wg-panel.open { opacity: 1; transform: none; pointer-events: auto; }
#wg-panel[hidden] { display: none; }

/* ----- Header ----- */
#wg-panel .wg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: #1D1D1D;
  border-bottom: 1px solid #343230;
}
#wg-panel .wg-head-avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0E0E0E; border: 1px solid #343230; border-radius: 999px;
  overflow: hidden;
}
#wg-panel .wg-head-avatar img { width: 76%; height: 76%; object-fit: contain; }
#wg-panel .wg-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#wg-panel .wg-head-text strong { font-size: 0.96rem; font-weight: 700; color: #F7F6F2; }
#wg-panel .wg-head-text span {
  font-size: 0.74rem; color: #BDB8B2; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#wg-panel .wg-head-btn {
  flex-shrink: 0; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 8px;
  color: #BDB8B2; cursor: pointer; transition: background 140ms ease, color 140ms ease;
}
#wg-panel .wg-head-btn:hover { background: #0E0E0E; color: #E10600; }
#wg-panel .wg-head-btn svg { width: 18px; height: 18px; }

/* ----- Nachrichten ----- */
#wg-panel .wg-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0E0E0E;
}
#wg-panel .wg-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
#wg-panel .wg-msg-user { justify-content: flex-end; }
#wg-panel .wg-msg-avatar {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1D1D1D; border: 1px solid #343230; border-radius: 999px; overflow: hidden;
}
#wg-panel .wg-msg-avatar img { width: 78%; height: 78%; object-fit: contain; }
#wg-panel .wg-msg-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.46;
  word-wrap: break-word;
}
#wg-panel .wg-msg-bot .wg-msg-bubble {
  background: #1D1D1D; color: #F7F6F2; border: 1px solid #343230;
  border-bottom-left-radius: 5px;
}
#wg-panel .wg-msg-user .wg-msg-bubble {
  background: #E10600; color: #FFFFFF; border-bottom-right-radius: 5px;
}

/* Tipp-Indikator */
#wg-panel .wg-typing { display: inline-flex; gap: 4px; align-items: center; }
#wg-panel .wg-typing span {
  width: 6px; height: 6px; border-radius: 999px; background: #9A948D;
  animation: wgTyping 1s infinite ease-in-out;
}
#wg-panel .wg-typing span:nth-child(2) { animation-delay: 0.15s; }
#wg-panel .wg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wgTyping { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ----- Quick Prompts ----- */
#wg-panel .wg-quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #0E0E0E;
  border-top: 1px solid #343230;
  scrollbar-width: none;
}
#wg-panel .wg-quick::-webkit-scrollbar { display: none; }
#wg-panel .wg-quick-chip {
  flex-shrink: 0;
  background: #1D1D1D;
  border: 1px solid #343230;
  color: #F7F6F2;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
#wg-panel .wg-quick-chip:hover { border-color: #E10600; color: #E10600; }

/* ----- Eingabe ----- */
#wg-panel .wg-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #1D1D1D;
  border-top: 1px solid #343230;
}
#wg-text {
  flex: 1;
  min-width: 0;
  background: #1D1D1D !important;
  border: 1px solid #343230 !important;
  color: #F7F6F2 !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-family: inherit;
  font-size: 0.92rem;
}
#wg-text::placeholder { color: #9A948D; }
#wg-text:focus { outline: none; border-color: #E10600 !important; box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.10) !important; }
#wg-send {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #E10600;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  transition: background 140ms ease;
}
#wg-send:hover { background: #FF2E1F; }
#wg-send svg { width: 18px; height: 18px; }

/* ----- Mobil: Bottom-Sheet ----- */
@media (max-width: 600px) {
  #wg-fab { bottom: 78px; right: 16px; padding: 14px; }
  #wg-fab .wg-fab-label { display: none; }
  #wg-backdrop { display: block; }
  #wg-panel {
    left: 0; right: 0; bottom: 0; top: auto;
    width: auto; max-width: none;
    height: 88vh; max-height: none;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }
  #wg-panel.open { transform: none; }
}

/* =========================================================
   Community "Glut-Feed" — eigenständige WILLGRILLEN-Optik
   (eingerahmte Medien, beschriftete Aktions-Pills, Folgen im
   Karten-Kopf, Stats-Zeile, rechteckige Story-Kacheln).
   ========================================================= */

/* Header mit Tagline */
body[data-view="community"] .feed-header { align-items: flex-end; max-width: 600px; }
.feed-header-text h1 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.feed-header-text p { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-2); }

/* Abschnitts-Label */
.glut-stories-wrap { max-width: 600px; margin: 0 auto 4px; width: 100%; }
.glut-section-label {
  margin: 6px 4px 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ----- Stories als "Glut"-Kacheln (rechteckig, Flammen-Badge) ----- */
.feed-stories { max-width: 600px; }
.glut-story {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 80px; background: none; border: none; cursor: pointer; font-family: inherit;
}
.glut-story-thumb {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 150ms ease, transform 150ms ease;
}
.glut-story:hover .glut-story-thumb { border-color: var(--accent); transform: translateY(-1px); }
.glut-story-img { width: 100%; height: 100%; object-fit: cover; }
.glut-story-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.glut-story-add {
  border-style: dashed; border-color: var(--border-strong); color: var(--accent);
}
.glut-story-add svg { width: 24px; height: 24px; }
.glut-story-badge {
  position: absolute; right: 4px; bottom: 4px;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.glut-story-badge svg { width: 12px; height: 12px; }
.glut-story-own .glut-story-name { color: var(--accent); font-weight: 600; }
.glut-story-name {
  font-size: 0.76rem; color: var(--text-2);
  max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----- Feed-Liste ----- */
.feed-list { max-width: 600px; gap: 20px; }

/* ----- Glut-Karte ----- */
.glut-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease;
}
.glut-card:hover { border-color: var(--border-strong); }

/* Kopf: Autor + Folgen */
.glut-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 12px; }
.glut-author {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 11px;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; padding: 0;
}
.glut-avatar {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; border: 1px solid var(--border);
}
.glut-author-text { display: flex; flex-direction: column; min-width: 0; }
.glut-author-name { font-size: 0.96rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glut-author-sub { font-size: 0.8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glut-follow {
  flex-shrink: 0;
  padding: 7px 15px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  border-radius: 999px;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.glut-follow:hover { background: var(--accent); color: #fff; }
.glut-follow.following { background: var(--bg-subtle); color: var(--text-2); border-color: var(--border); }

/* Medium: eingerahmt, abgerundet, 4:3 (nicht IG-quadratisch) */
.glut-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #F7F6F2;
  padding: 0; cursor: pointer;
}
.glut-media.is-video { cursor: default; }
.glut-kind {
  position: absolute; top: 11px; left: 11px;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(16, 15, 14, 0.92); color: var(--accent); border: 1px solid var(--border);
}

/* Body */
.glut-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 2px 2px; }
.glut-caption { margin: 0; font-size: 0.94rem; line-height: 1.5; color: var(--text); }
.glut-stats { margin: 0; font-size: 0.82rem; color: var(--text-2); }
.glut-stats-likes { font-weight: 700; color: var(--text); }
.glut-stat-link {
  background: none; border: none; padding: 0; font-family: inherit; font-size: 0.82rem;
  color: var(--text-2); cursor: pointer;
}
.glut-stat-link:hover { color: var(--accent); }

/* Aktions-Pills (beschriftet, nicht nackte Icons) */
.glut-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 12px; margin-top: 2px;
  border-top: 1px solid var(--border);
}
.glut-act {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  font-family: inherit; font-size: 0.84rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.glut-act svg { width: 18px; height: 18px; }
.glut-act:hover { border-color: var(--accent); color: var(--accent); }
.glut-act.glut-like.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.glut-act.glut-save.active { background: #F7F6F2; border-color: #F7F6F2; color: #fff; }

@media (max-width: 460px) {
  .glut-act { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

/* =========================================================
   Termine — Grill-Meisterschaften / Kalender
   ========================================================= */
html:has(body[data-view="termine"]) { background-color: #0E0E0E !important; }
body[data-view="termine"] {
  --bg: #0E0E0E; --bg-2: #1D1D1D; --bg-subtle: #282322;
  --text: #F7F6F2; --text-2: #BDB8B2; --muted: #9A948D;
  --surface: #1D1D1D; --surface-2: #262523; --surface-strong: #2C2A28;
  --border: #343230; --border-strong: #4A4744;
  --accent: #E10600; --accent-strong: #FF2E1F; --accent-soft: rgba(225, 6, 0, 0.10);
  background-color: var(--bg) !important;
  background-image: none !important;
  color: var(--text);
}
body[data-view="termine"] .sidebar { display: none !important; }
body[data-view="termine"] .drawer-backdrop { display: none !important; }
body[data-view="termine"] .drawer-toggle { visibility: hidden; pointer-events: none; }
@media (min-width: 960px) { body[data-view="termine"] .app-shell { grid-template-columns: minmax(0, 1fr); } }
/* 7 Bottom-Tabs: auf schmalen Screens kompakter */
@media (max-width: 560px) {
  .bottom-tab span { font-size: 0.7rem; } /* A11y: nicht unter ~11px */
  .bottom-tab svg { width: 22px; height: 22px; }
  .bottom-tab { padding-left: 1px; padding-right: 1px; }
}

/* Header */
.events-header { max-width: 700px; margin: 0 auto; padding: 4px 4px 0; }
.events-header-text h1 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.events-header-text p { margin: 3px 0 0; font-size: 0.92rem; color: var(--text-2); }

/* Filter */
.events-filters { display: flex; gap: 8px; max-width: 700px; margin: 14px auto 0; padding: 0 4px; flex-wrap: wrap; }
.ev-filter {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  border-radius: 999px; padding: 8px 16px; font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.ev-filter:hover { border-color: var(--accent); color: var(--accent); }
.ev-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Liste / Monatsgruppen */
.events-list { max-width: 700px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 22px; }
.ev-month { display: flex; flex-direction: column; gap: 12px; }

/* Eigener Bereich: Österreichische Meisterschaften (angepinnt oben) */
.ev-austria {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(225, 6, 0, 0.10), rgba(29, 29, 29, 0.6) 55%);
  border: 1px solid rgba(225, 6, 0, 0.38);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(225, 6, 0, 0.10);
}
.ev-austria-head { display: flex; align-items: flex-start; gap: 12px; }
.ev-austria-flag {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(225, 6, 0, 0.12); border: 1px solid rgba(225, 6, 0, 0.3);
}
.ev-austria-head-text h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text);
  letter-spacing: 0.02em;
}
.ev-austria-head-text p { margin: 3px 0 0; font-size: 0.82rem; color: var(--text-2); line-height: 1.45; }
.ev-austria .ev-card { background: rgba(14, 14, 14, 0.55); }

.ev-intl-head {
  margin: 8px 4px 0; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.ev-month-head {
  margin: 0 4px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.ev-month-list { display: flex; flex-direction: column; gap: 12px; }

/* Event-Karte */
.ev-card {
  display: flex; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  transition: border-color 160ms ease;
}
.ev-card:hover { border-color: var(--border-strong); }
.ev-date {
  flex-shrink: 0; width: 58px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid rgba(225, 6, 0, 0.18); border-radius: 14px;
}
.ev-date-day { font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--accent); }
.ev-date-mon { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-top: 3px; }

.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1px; }
.ev-cat {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
.ev-country {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-2); border: 1px solid var(--border);
}
.ev-title { margin: 2px 0 0; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); line-height: 1.3; }
.ev-meta { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.ev-loc { margin: 1px 0 0; font-size: 0.85rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.ev-loc svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.ev-org { margin: 0; font-size: 0.82rem; color: var(--muted); }
.ev-desc { margin: 4px 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-2); }

.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-act {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  border-radius: 999px; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.ev-act svg { width: 17px; height: 17px; }
.ev-act:hover { border-color: var(--accent); color: var(--accent); }
.ev-act-cal { background: var(--accent); border-color: var(--accent); color: #fff; }
.ev-act-cal:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.ev-act-save.active { background: #F7F6F2; border-color: #F7F6F2; color: #fff; }

.ev-empty { max-width: 700px; margin: 24px auto; text-align: center; color: var(--muted); font-size: 0.95rem; padding: 0 16px; }

/* Toast (ICS-Download-Hinweis) */
.ev-toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 12px);
  background: #F7F6F2; color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; z-index: 130; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease; box-shadow: 0 8px 24px rgba(26,24,22,0.22);
}
.ev-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .ev-card { padding: 13px; gap: 11px; }
  .ev-date { width: 50px; height: 58px; }
  .ev-date-day { font-size: 1.35rem; }
}

/* Assistent-FAB über der Bottom-Nav halten, solange diese sichtbar ist (< 960px). */
@media (max-width: 959px) {
  #wg-fab { bottom: 80px; }
}

/* ----- Partner-3D-Icons (derselbe Icon-Satz wie die Willshoppen-Kacheln) ----- */
.partner-card .partner-icon3d {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  margin-bottom: 2px;
}
.partner-card .partner-icon3d img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.partner-card:hover .partner-icon3d img { transform: translateY(-4px) scale(1.08) rotate(-2deg); }

/* ----- Partner-Logos (Alt-Layout; aktuell ersetzt durch .partner-icon3d) ----- */
.partner-card .partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 8px 14px;
  background: #1D1D1D;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2px;
}
.partner-card .partner-logo img {
  max-height: 36px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
/* James Flames: weißes Logo auf Schwarz → dunkle Kachel, damit es nahtlos wirkt */
.partner-card .partner-logo-dark { background: #15110F; }
.partner-card .partner-logo-dark img { max-height: 40px; }

.partner-card .partner-card-text { display: flex; flex-direction: column; gap: 2px; }

/* =========================================================
   Wetter-View — WILLGRILLEN Light-Theme
   (ersetzt den immersiven Apple-Wetter-Look: cremiger Grund,
   weiße Karten, dunkle Schrift, roter Akzent, keine Verläufe).
   ========================================================= */
html:has(body[data-view="weather"]) { background-color: #0E0E0E !important; }

body[data-view="weather"],
body[data-view="weather"][data-weather] {
  --bg: #0E0E0E; --bg-2: #1D1D1D; --bg-subtle: #282322;
  --text: #F7F6F2; --text-2: #BDB8B2; --muted: #9A948D;
  --surface: #1D1D1D; --surface-2: #2A2826; --surface-strong: #2C2A28;
  --border: #343230; --border-strong: #4A4744;
  --accent: #E10600; --accent-strong: #FF2E1F; --accent-soft: rgba(225, 6, 0, 0.10);
  --rating-gut: #4a90d9;
  --shadow-card: none;
  background-color: #0E0E0E !important;
  background-image: none !important;
  color: var(--text);
}

/* Milchglas + Schatten weg (auf solidem hellen Grund unnötig) */
body[data-view="weather"] .weather-hero,
body[data-view="weather"] .hourly-card,
body[data-view="weather"] .tenday-card,
body[data-view="weather"] .info-tile {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

body[data-view="weather"] .drawer-toggle { background: var(--surface); border: 1px solid var(--border); color: var(--text); }

/* Sidebar hell */
body[data-view="weather"] .sidebar { background: #1D1D1D; border-right: 1px solid var(--border); }
@media (min-width: 960px) {
  body[data-view="weather"] .sidebar { background: #1D1D1D; border: 1px solid var(--border); }
}
body[data-view="weather"] .search input { background: #1D1D1D; border: 1px solid var(--border); color: var(--text); }
body[data-view="weather"] .search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body[data-view="weather"] .search > button[type="submit"] { color: var(--text-2); }

/* Wetter-Icons im Akzent statt Weiß (mehr Brand-Charakter) */
body[data-view="weather"] .weather-main .icon { color: var(--accent); opacity: 1; }

/* Temperatur weniger „Apple-dünn" */
body[data-view="weather"] .weather-temp { font-weight: 300; letter-spacing: -0.04em; }
@media (max-width: 600px) { body[data-view="weather"] .weather-temp { font-size: 5.4rem; font-weight: 300; } }

/* Hero-Karte: dezenter Top-Akzent in WILLGRILLEN-Rot */
body[data-view="weather"] .weather-hero { border-top: 3px solid var(--accent); }

/* Grill-Entscheidung hervorheben (Status-Farbe als linker Balken) */
body[data-view="weather"] .weather-rating {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rating-color, var(--accent));
  padding: 14px 16px;
}
body[data-view="weather"] .weather-rating .dot { width: 12px; height: 12px; }
body[data-view="weather"] .weather-rating-label { font-size: 1rem; font-weight: 700; }

/* 10-Tage: Balken-Track auf weißer Karte sichtbar machen */
body[data-view="weather"] .ten-bar { background: #343230; }
body[data-view="weather"] .ten-row { border-bottom-color: var(--border); }

/* Stundenvorschau: Regen-Wert in Blau bleibt lesbar */
body[data-view="weather"] .hourly-rain,
body[data-view="weather"] .ten-rain { color: #6FB1FF; }

/* =========================================================
   Splash — Ladeanimation beim App-Start
   Warmes Glut-/Flammenmotiv + Wortmarke, blendet sanft aus.
   ========================================================= */

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(130% 90% at 50% 68%, rgba(255, 138, 66, 0.16) 0%, transparent 52%),
    radial-gradient(120% 80% at 50% 100%, #46271b 0%, #241511 46%, #150c09 100%);
  transition: opacity 620ms var(--ease-out), visibility 620ms var(--ease-out);
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  transform: translateY(0) scale(1);
  transition: opacity 560ms var(--ease-out), transform 620ms var(--ease-out);
  animation: splashInnerIn 700ms var(--ease-out) both;
}

.app-splash.is-hidden .splash-inner {
  opacity: 0;
  transform: translateY(-10px) scale(1.03);
}

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

/* ---- Grill + Flammen ---- */
.splash-grill {
  position: relative;
  width: 132px;
  height: 116px;
}

.splash-glow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 150px;
  height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 60%, rgba(255, 168, 76, 0.55) 0%, rgba(255, 110, 50, 0.28) 34%, transparent 66%);
  filter: blur(6px);
  animation: splashGlow 2.4s var(--ease-in-out) infinite;
}

@keyframes splashGlow {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

.splash-flames {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 80px;
  height: 84px;
  transform: translateX(-50%);
}

.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 0 50% 50% 50%;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.flame-back {
  width: 58px; height: 58px;
  margin-left: -29px;
  background: linear-gradient(45deg, #E10600 0%, #ff5a2c 55%, #ff8a3d 100%);
  opacity: 0.85;
  animation: flameBack 1.7s ease-in-out infinite;
}

.flame-mid {
  width: 40px; height: 40px;
  margin-left: -20px;
  background: linear-gradient(45deg, #ff5a1f 0%, #ffab3d 70%, #ffd36b 100%);
  animation: flameMid 1.15s ease-in-out infinite;
}

.flame-core {
  width: 22px; height: 22px;
  margin-left: -11px;
  bottom: 2px;
  background: linear-gradient(45deg, #ffd36b 0%, #fff2c4 90%);
  animation: flameCore 0.85s ease-in-out infinite;
}

@keyframes flameBack {
  0%, 100% { transform: translateX(-50%) rotate(45deg) scale(1, 1); }
  50%      { transform: translateX(-50%) rotate(45deg) scale(0.94, 1.08); }
}
@keyframes flameMid {
  0%, 100% { transform: translateX(-50%) rotate(45deg) scale(1, 1) translateY(0); }
  40%      { transform: translateX(-54%) rotate(45deg) scale(1.06, 0.92) translateY(-3px); }
  70%      { transform: translateX(-47%) rotate(45deg) scale(0.92, 1.06) translateY(-1px); }
}
@keyframes flameCore {
  0%, 100% { transform: translateX(-50%) rotate(45deg) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) rotate(45deg) scale(1.12, 0.88) translateY(-2px); opacity: 1; }
}

/* ---- Grill-Rost ---- */
.splash-grate {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 96px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 180, 0.55) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #3a2a22 0%, #1c120d 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 140, 70, 0.25);
}

/* ---- Funken ---- */
.splash-spark {
  position: absolute;
  bottom: 34px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd27a;
  box-shadow: 0 0 6px rgba(255, 190, 110, 0.9);
  opacity: 0;
}
.splash-spark.spark-1 { left: 38%; animation: splashSpark 2.1s ease-out infinite; }
.splash-spark.spark-2 { left: 54%; animation: splashSpark 1.7s ease-out 0.5s infinite; }
.splash-spark.spark-3 { left: 62%; animation: splashSpark 2.4s ease-out 1s infinite; }

@keyframes splashSpark {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-70px) scale(0.3); opacity: 0; }
}

/* ---- Wortmarke ---- */
.splash-word {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  display: flex;
}
.splash-word .will { color: #f4ece0; }
.splash-word .grill {
  background: linear-gradient(90deg, #ff5a2c, #ffab3d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Indeterminierter Ladebalken ---- */
.splash-bar {
  position: relative;
  width: 168px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splash-bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffab3d, #ff5a2c, transparent);
  animation: splashBar 1.25s var(--ease-in-out) infinite;
}
@keyframes splashBar {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* =========================================================
   Allergene — im Rezept-Modal
   ========================================================= */

.modal-allergens {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.modal-allergens-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
}
.modal-allergens-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.allergen-chip {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(255, 59, 47, 0.30);
}
.modal-allergens-none {
  font-size: 0.86rem;
  color: var(--text-2);
}
.modal-allergens-hint {
  font-size: 0.7rem;
  color: var(--muted);
}

/* =========================================================
   Premium-Motion — sanfte Einblendungen & Interaktionen
   ========================================================= */

/* Views blenden beim Wechsel weich ein. */
.view:not([hidden]) {
  animation: viewIn 460ms var(--ease-out) both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wetter-Sektionen steigen gestaffelt auf, sobald der Splash abhebt. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.app-ready .view-weather > section {
  animation: riseIn 600ms var(--ease-out) both;
}
body.app-ready .view-weather > section:nth-of-type(1) { animation-delay: 0.03s; }
body.app-ready .view-weather > section:nth-of-type(2) { animation-delay: 0.09s; }
body.app-ready .view-weather > section:nth-of-type(3) { animation-delay: 0.15s; }
body.app-ready .view-weather > section:nth-of-type(4) { animation-delay: 0.21s; }
body.app-ready .view-weather > section:nth-of-type(5) { animation-delay: 0.27s; }
body.app-ready .view-weather > section:nth-of-type(6) { animation-delay: 0.33s; }
body.app-ready .view-weather > section:nth-of-type(7) { animation-delay: 0.39s; }
body.app-ready .view-weather > section:nth-of-type(8) { animation-delay: 0.45s; }

/* Modal öffnet mit weichem Auftauchen. */
.modal:not([hidden]) .modal-backdrop {
  animation: fadeIn 280ms ease both;
}
.modal:not([hidden]) .modal-card {
  animation: modalCardIn 380ms var(--ease-out) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalCardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Karten & Tabs reagieren geschmeidiger und mit dezentem Anheben. */
.recipe-card,
.dod-featured,
.partner-card,
.pf-tile,
.wissen-card,
.view-tab,
.bottom-tab,
.dod-primary {
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    color var(--transition-smooth);
}
.recipe-card:hover,
.wissen-card:hover,
.pf-tile:hover { transform: translateY(-2px); }

.recipe-card:active,
.dod-featured:active,
.partner-card:active,
.pf-tile:active,
.wissen-card:active,
.view-tab:active,
.bottom-tab:active,
.dod-primary:active,
.library-cta:active { transform: scale(0.985); }

/* Bewegungsreduzierung respektieren. */
@media (prefers-reduced-motion: reduce) {
  .splash-glow,
  .flame,
  .splash-spark,
  .splash-bar span { animation: none !important; }
  .flame { opacity: 0.9; }
  .splash-bar span { width: 100%; transform: none; }
  .view:not([hidden]),
  body.app-ready .view-weather > section,
  .modal:not([hidden]) .modal-card,
  .modal:not([hidden]) .modal-backdrop,
  .splash-inner { animation: none !important; }
  .recipe-card:hover,
  .wissen-card:hover,
  .pf-tile:hover { transform: none; }
}

/* =========================================================
   Glut-Serie — täglicher Streak + Tages-Reveal
   Lebt in der (hellen) Wetter-View; Detail im dunklen Modal.
   ========================================================= */

.streak-section { margin: 0; }

.streak-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.streak-card.is-lit { border-color: rgba(255, 138, 66, 0.5); }
.streak-card.is-warning { border-color: rgba(224, 137, 44, 0.45); }

/* ---- Ember (glühende Kohle mit Zähler) ---- */
.streak-ember-btn { background: none; border: 0; padding: 0; flex-shrink: 0; cursor: pointer; }
.streak-ember {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffd88a, #ff7a2c 55%, #7a2d12 100%);
  box-shadow: 0 0 0 4px rgba(255, 138, 66, 0.14), 0 6px 18px rgba(255, 90, 44, 0.35);
}
.streak-ember-num {
  position: relative; z-index: 1;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.streak-card.is-lit .streak-ember { animation: emberPulse 2.6s var(--ease-in-out) infinite; }
.streak-card.is-warm .streak-ember {
  background: radial-gradient(circle at 50% 40%, #ffb877, #d9702f 60%, #5c2a15 100%);
  box-shadow: 0 4px 12px rgba(200, 90, 40, 0.25);
}
.streak-card.is-warning .streak-ember {
  background: radial-gradient(circle at 50% 40%, #ffcf87, #e08a2c 60%, #6b3a12 100%);
  animation: emberWarn 1.4s ease-in-out infinite;
}
.streak-card.is-cold .streak-ember {
  background: radial-gradient(circle at 50% 40%, #cfc7bc, #928779 60%, #625b54 100%);
  box-shadow: none;
}
@keyframes emberPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 138, 66, 0.12), 0 6px 18px rgba(255, 90, 44, 0.30); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 138, 66, 0.20), 0 8px 26px rgba(255, 90, 44, 0.46); }
}
@keyframes emberWarn { 0%, 100% { opacity: 1; } 50% { opacity: 0.76; } }

/* ---- Zünd-Animation beim Einheizen ---- */
.streak-card.just-lit .streak-ember { animation: emberIgnite 1s var(--ease-spring); }
.streak-card.just-lit .streak-ember-num { animation: numPop 0.6s var(--ease-spring); }
.streak-card.just-lit .streak-ember::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 138, 66, 0.6);
  animation: sparkRing 0.8s var(--ease-out) forwards;
}
@keyframes emberIgnite { 0% { transform: scale(0.82); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }
@keyframes numPop { 0% { transform: scale(0.5); opacity: 0.3; } 100% { transform: scale(1); opacity: 1; } }
@keyframes sparkRing { 0% { transform: scale(0.7); opacity: 0.85; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---- Body ---- */
.streak-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.streak-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.streak-title { font-size: 1.02rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.streak-status { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.streak-card.is-lit .streak-status { color: #1f9e57; }
.streak-card.is-warning .streak-status { color: #d9822a; }
.streak-card.is-cold .streak-status { color: var(--muted); }

.streak-verdict { display: flex; align-items: center; gap: 12px; }

/* ---------- Grill-Score: Thermometer 1–10 ----------
   Skala wie ein Thermometer (blau → grün → gelb → orange → rot),
   Füllstand = Score. --gs-fill (0–100%) und --gs-color kommen inline. */
.grill-score {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.gs-thermo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.gs-track {
  position: relative;
  width: 9px;
  height: 42px;
  border-radius: 99px 99px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  background: linear-gradient(to top, #4A9EEB, #5FC98E 34%, #FFD166 58%, #FF9F45 78%, #E10600);
  overflow: hidden;
}
/* Ungefüllter Teil: dunkle Abdeckung von oben. */
.gs-track::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: calc(100% - var(--gs-fill, 50%));
  background: rgba(16, 15, 14, 0.9);
}
.gs-bulb {
  width: 17px;
  height: 17px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--gs-color, #FF9F45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 10px var(--gs-color, rgba(255, 159, 69, 0.5));
}
.gs-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gs-color, var(--accent));
  line-height: 1;
}
.gs-num small { font-size: 0.66rem; font-weight: 600; color: var(--muted); margin-left: 2px; }

.grill-score.compact { gap: 7px; }
.grill-score.compact .gs-track { height: 30px; width: 8px; }
.grill-score.compact .gs-bulb { width: 14px; height: 14px; }
.grill-score.compact .gs-num { font-size: 1.1rem; }

/* Grill-Score-Block in der Start-Wetterkarte */
.hw-scoreblock { gap: 8px; }
.hw-scoreblock .grill-score { margin: 4px 0 2px; }
.streak-verdict-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.streak-verdict-label { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.streak-window { font-size: 0.8rem; color: var(--text-2); overflow-wrap: anywhere; }

.streak-foot { margin-top: 1px; }
.streak-checkin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, #ff7a2c, #E10600);
  color: #fff; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(225, 6, 0, 0.28);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.streak-checkin .flame-icon { width: 18px; height: 18px; }
.streak-checkin:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(225, 6, 0, 0.36); }
.streak-checkin:active { transform: scale(0.97); }

.streak-progress { display: flex; flex-direction: column; gap: 5px; }
.streak-progress-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.streak-progress-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffab3d, #ff5a2c); transition: width 600ms var(--ease-out); }
.streak-progress-text { font-size: 0.78rem; color: var(--text-2); }

@media (max-width: 560px) {
  .streak-card { gap: 14px; padding: 14px 15px; }
  .streak-ember { width: 60px; height: 60px; }
  .streak-ember-num { font-size: 1.3rem; }
  .streak-score { font-size: 1.3rem; }
}

/* =========================================================
   Glut-Serie — Detail-Modal (dunkle Karte)
   ========================================================= */
.streak-modal-card { max-width: 460px; min-width: 0; overflow-x: hidden; }
.streak-modal-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.streak-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 2px; }
.streak-hero-ember {
  position: relative;
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #ffd88a, #ff7a2c 55%, #7a2d12 100%);
  box-shadow: 0 0 0 6px rgba(255, 138, 66, 0.14), 0 10px 30px rgba(255, 90, 44, 0.4);
  animation: emberPulse 2.6s var(--ease-in-out) infinite;
}
.streak-hero.is-cold .streak-hero-ember {
  background: radial-gradient(circle at 50% 40%, #cfc7bc, #928779 60%, #625b54 100%);
  box-shadow: none; animation: none;
}
.streak-hero-num { font-size: 2.4rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.streak-hero-label { font-size: 0.9rem; color: var(--text-2); font-weight: 600; }

.streak-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.streak-day-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: #fff;
}
.streak-day-dot .flame-icon { width: 18px; height: 18px; }
.streak-day.done .streak-day-dot {
  background: radial-gradient(circle at 50% 40%, #ffb066, #ff5a2c 70%);
  border-color: transparent;
}
.streak-day.today .streak-day-dot { box-shadow: 0 0 0 2px var(--accent); }
.streak-day-wd { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.streak-day.today .streak-day-wd { color: var(--accent); }

.streak-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.streak-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.streak-stat strong { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.streak-stat span { font-size: 0.7rem; color: var(--muted); }

.streak-badges h3 { margin: 0 0 12px; font-size: 0.95rem; color: var(--text); }
.streak-badge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.streak-badge {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  padding: 14px 8px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  min-width: 0;
}
.streak-badge-medal { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; }
.streak-badge-medal svg { width: 22px; height: 22px; }
.streak-badge.earned .streak-badge-medal { background: linear-gradient(135deg, #ff7a2c, #E10600); color: #fff; box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3); }
.streak-badge.locked .streak-badge-medal { background: var(--surface-2); color: var(--muted); }
.streak-badge.locked { opacity: 0.65; }
.streak-badge-label { font-size: 0.78rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; hyphens: auto; max-width: 100%; }
.streak-badge-desc { font-size: 0.67rem; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; max-width: 100%; }

@media (max-width: 400px) {
  .streak-badge { padding: 12px 5px; }
  .streak-badge-medal { width: 40px; height: 40px; }
  .streak-badge-label { font-size: 0.72rem; }
  .streak-badge-desc { font-size: 0.6rem; }
  .streak-stat strong { font-size: 1.15rem; }
}

/* ---- Abzeichen-Toast ---- */
.streak-toast {
  position: fixed; left: 50%; bottom: 88px;
  transform: translate(-50%, 20px);
  z-index: 10000;
  display: flex; align-items: center; gap: 12px;
  background: rgba(20, 16, 14, 0.96); color: #fff;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 138, 66, 0.3);
  opacity: 0;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
  max-width: calc(100vw - 32px);
}
.streak-toast.show { opacity: 1; transform: translate(-50%, 0); }
.streak-toast-medal { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff7a2c, #E10600); color: #fff; }
.streak-toast-medal svg { width: 22px; height: 22px; }
.streak-toast-text { display: flex; flex-direction: column; gap: 1px; }
.streak-toast-text strong { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: #ffab6a; }
.streak-toast-text span { font-size: 0.95rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .streak-ember,
  .streak-hero-ember { animation: none !important; }
  .streak-card.just-lit .streak-ember,
  .streak-card.just-lit .streak-ember-num { animation: none !important; }
  .streak-card.just-lit .streak-ember::after { display: none; }
}

/* =========================================================
   WILLGRILLEN 2.0 — Brand-Layer (Austria meets the World)
   Schwarz #0E0E0E · Anthrazit #1D1D1D · Ferrari-Rot #E10600
   Perlmutt #F7F6F2 · Platin-Silber #D8D8D8
   Typo: Bebas Neue (Marke) · Barlow Condensed (Headlines) · Montserrat (Text)
   ========================================================= */

:root {
  --brand-red: #E10600;
  --brand-silver: #D8D8D8;
  --brand-black: #0E0E0E;
  --brand-anthrazit: #1D1D1D;
  --brand-pearl: #F7F6F2;
  --font-display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-brand: "Bebas Neue", var(--font-display);
}

html { background-color: var(--brand-black) !important; }

/* Globale Dark-Tokens — gelten für ALLE Views (inkl. Start). */
body, body[data-weather], body[data-view] {
  --bg: #0E0E0E; --bg-2: #1D1D1D; --bg-subtle: #282322;
  --text: #F7F6F2; --text-2: rgba(247, 246, 242, 0.75); --muted: rgba(247, 246, 242, 0.52);
  --surface: #1D1D1D; --surface-2: #262523; --surface-strong: #2C2A28;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #E10600; --accent-strong: #FF2E1F; --accent-soft: rgba(225, 6, 0, 0.16);
  background-color: var(--brand-black) !important;
  background-image: none !important;
  color: var(--text);
  font-family: "Montserrat", var(--font);
}

/* ---------- Typografie ---------- */

.library-header h1,
.feed-header-text h1,
.events-header-text h1,
.weather-place h1,
#home-greeting {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.library-header h1 { font-size: 2.15rem; }
.weather-temp,
.streak-ember-num,
.streak-hero-num,
.hw-temp { font-family: var(--font-brand); font-weight: 400; }
body[data-view="weather"] .weather-temp { font-weight: 400; letter-spacing: 0.015em; }

/* ---------- Wortmarke & Slogan ---------- */

.brand-mark, .mobile-brand .brand-mark, .splash-word, .home-wordmark {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.brand-mark { font-size: 1.4rem; }
.brand-mark .will, .home-wordmark .will, .splash-word .will { color: var(--brand-silver) !important; }
.brand-mark .grill, .home-wordmark .grill, .splash-word .grill { color: var(--brand-red) !important; }
.splash-word .grill { background: none; -webkit-text-fill-color: currentColor; }

.brand-slogan, .home-slogan, .splash-slogan {
  font-family: "Montserrat", var(--font);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-silver);
  font-weight: 600;
}
.brand-slogan b, .home-slogan b, .splash-slogan b { color: var(--brand-red); font-weight: 700; }
.brand-slogan { display: block; margin: -8px 0 2px 2px; opacity: 0.8; }
.splash-slogan { margin-top: -16px; opacity: 0.85; }

/* Splash auf Markenschwarz mit rotem Glutschein */
.app-splash {
  background:
    radial-gradient(120% 90% at 50% 72%, rgba(225, 6, 0, 0.12) 0%, transparent 55%),
    radial-gradient(120% 80% at 50% 100%, #2a1512 0%, #171010 46%, #0E0E0E 100%);
}
.splash-word { font-size: 2rem; letter-spacing: 0.12em; }
.splash-bar span { background: linear-gradient(90deg, transparent, #FF2E1F, #E10600, transparent); }

/* ---------- Start (Home-Hub) ---------- */

body[data-view="start"] .sidebar,
body[data-view="start"] .drawer-backdrop { display: none !important; }
body[data-view="start"] .drawer-toggle { visibility: hidden; pointer-events: none; }
@media (min-width: 960px) {
  body[data-view="start"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1120px;
    margin: 0 auto;
  }
}

.home-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
}
.home-hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-bottom: 8px; }

/* Markenfigur — freigestellt, mit Glut-Schein, ragt leicht über die Glut-Karte */
.home-hero-figure {
  position: relative;
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: -22px;
  z-index: 1;
  pointer-events: none;
}
.home-hero-figure::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 165%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(225, 6, 0, 0.38), rgba(225, 6, 0, 0.12) 55%, transparent 78%);
  pointer-events: none;
}
.home-hero-figure img {
  position: relative;
  display: block;
  height: clamp(180px, 34vw, 350px);
  width: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}
.home-brandrow { display: flex; align-items: center; gap: 10px; }
.home-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(225, 6, 0, 0.35)); }
.home-wordmark { font-size: 1.35rem; letter-spacing: 0.1em; }
#home-greeting { margin: 8px 0 0; font-size: clamp(2.3rem, 6vw, 3.2rem); line-height: 1; color: var(--text); }
.home-slogan { margin: 2px 0 0; }

.home-weather-card {
  display: flex; align-items: center; gap: 18px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; color: var(--text); text-align: left;
  transition: border-color var(--transition-smooth), background var(--transition-smooth), transform var(--transition-smooth);
}
.home-weather-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.home-weather-card:active { transform: scale(0.99); }
.hw-main { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hw-icon { font-size: 2rem; line-height: 1; display: inline-flex; }
.hw-icon svg { width: 40px; height: 40px; display: block; color: var(--accent); }
.hw-temp { font-size: 3rem; line-height: 0.9; letter-spacing: 0.02em; }
.hw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hw-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.hw-label i { width: 10px; height: 10px; border-radius: 50%; background: var(--rating-color, var(--accent)); box-shadow: 0 0 12px var(--rating-color, var(--accent)); flex-shrink: 0; }
.hw-window { font-size: 0.85rem; color: var(--text-2); }
.hw-desc { font-size: 0.78rem; color: var(--muted); }
.hw-arrow { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: color var(--transition-smooth), transform var(--transition-smooth); }
.home-weather-card:hover .hw-arrow { color: var(--accent); transform: translateX(3px); }
.hw-loading { color: var(--muted); font-size: 0.9rem; padding: 10px 0; }

.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; color: var(--text); text-align: left; min-width: 0;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), background var(--transition-smooth);
}
.home-tile:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.home-tile:active { transform: scale(0.985); }
.home-tile svg { width: 22px; height: 22px; color: var(--accent); }
.home-tile strong { font-size: 0.95rem; font-weight: 700; }
.home-tile span { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }

/* Einstiegs-Stagger für den Start-Hub */
body.app-ready .view-start > * { animation: riseIn 600ms var(--ease-out) both; }
body.app-ready .view-start > *:nth-child(2) { animation-delay: 0.06s; }
body.app-ready .view-start > *:nth-child(3) { animation-delay: 0.12s; }
body.app-ready .view-start > *:nth-child(4) { animation-delay: 0.18s; }
body.app-ready .view-start > *:nth-child(5) { animation-delay: 0.24s; }

/* ---------- Dark-Theme Feinschliff ---------- */

/* Partner-Logos brauchen weiterhin weiße Kacheln */
.partner-card .partner-logo { background: #FFFFFF; border-color: rgba(255, 255, 255, 0.16); }

/* Grün des Streak-Status auf Dunkel heller */
.streak-card.is-lit .streak-status { color: #37C871; }

/* Karten-Schatten auf Dunkel dezenter */
body[data-view] .recipe-card,
body[data-view] .partner-card,
body[data-view] .home-tile { box-shadow: none; }

/* CTA-Buttons nicht umbrechen */
.dod-featured .dod-primary,
.dod-buttons .dod-primary { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  body.app-ready .view-start > * { animation: none !important; }
}

/* ---------- Splash: Flammen-W-Logo statt CSS-Flamme ---------- */

.splash-logo-wrap {
  position: relative;
  width: 150px;
  height: 132px;
  display: grid;
  place-items: center;
}
.splash-logo {
  position: relative;
  width: 118px;
  height: auto;
  animation: splashLogoPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes splashLogoPulse {
  0%, 100% { transform: scale(1);     filter: drop-shadow(0 6px 20px rgba(225, 6, 0, 0.35)); }
  50%      { transform: scale(1.05);  filter: drop-shadow(0 10px 32px rgba(225, 6, 0, 0.60)); }
}

/* =========================================================
   Wetter-Atmosphäre — dezente, animierte Kulisse
   (nur auf der Wetter-View, gesteuert über body[data-weather])
   ========================================================= */

.weather-fx {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
body[data-view="weather"] .weather-fx { display: block; }
body[data-view="weather"] .app-shell { position: relative; z-index: 1; }

/* Farbstimmung oben — je Wetterlage */
.weather-fx::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fx-tint, none);
}
body[data-weather="sonne"]  { --fx-tint: radial-gradient(120% 55% at 72% -10%, rgba(255, 170, 60, 0.15), transparent 62%); }
body[data-weather="warm"]   { --fx-tint: radial-gradient(120% 55% at 65% -10%, rgba(255, 150, 60, 0.11), transparent 60%); }
body[data-weather="heiss"]  { --fx-tint: radial-gradient(130% 60% at 55% -10%, rgba(255, 90, 30, 0.18), transparent 65%); }
body[data-weather="kuehl"]  { --fx-tint: radial-gradient(120% 55% at 50% -10%, rgba(150, 180, 220, 0.09), transparent 60%); }
body[data-weather="wind"]   { --fx-tint: radial-gradient(120% 55% at 50% -10%, rgba(160, 190, 220, 0.08), transparent 60%); }
body[data-weather="regen"]  { --fx-tint: radial-gradient(120% 60% at 50% -10%, rgba(90, 130, 200, 0.13), transparent 65%); }
body[data-weather="sturm"]  { --fx-tint: radial-gradient(130% 60% at 50% -10%, rgba(110, 90, 200, 0.13), transparent 65%); }
body[data-weather="schnee"] { --fx-tint: radial-gradient(120% 55% at 50% -10%, rgba(200, 220, 245, 0.11), transparent 62%); }

/* Sonne — warmer, pulsierender Schein oben rechts */
.fx-sun {
  position: absolute;
  top: -28vmin;
  right: -18vmin;
  width: 74vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.30) 0%, rgba(255, 140, 50, 0.11) 42%, transparent 68%);
}
body[data-weather="sonne"] .fx-sun,
body[data-weather="warm"] .fx-sun { opacity: 1; animation: fxSunPulse 9s var(--ease-in-out) infinite; }
body[data-weather="heiss"] .fx-sun {
  opacity: 1;
  animation: fxSunPulse 7s var(--ease-in-out) infinite;
  background: radial-gradient(circle, rgba(255, 120, 50, 0.38) 0%, rgba(225, 6, 0, 0.13) 45%, transparent 70%);
}
@keyframes fxSunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}

/* Wolken — weiche Schleier, driften langsam durchs Bild */
.fx-cloud {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0;
  background: rgba(235, 240, 250, 0.07);
  will-change: transform;
}
.fx-cloud-1 { top: 9%;  left: -55vmax; width: 55vmax; height: 9vmax;  animation: fxDrift 90s linear infinite; }
.fx-cloud-2 { top: 27%; left: -42vmax; width: 42vmax; height: 7vmax;  animation: fxDrift 130s linear infinite; animation-delay: -50s; }
.fx-cloud-3 { top: 55%; left: -60vmax; width: 60vmax; height: 10vmax; animation: fxDrift 165s linear infinite; animation-delay: -95s; }
@keyframes fxDrift { to { transform: translateX(215vw); } }

body[data-weather="sonne"] .fx-cloud-2 { opacity: 0.5; }
body[data-weather="warm"] .fx-cloud-1,
body[data-weather="warm"] .fx-cloud-3 { opacity: 0.6; }
body[data-weather="kuehl"] .fx-cloud,
body[data-weather="wind"] .fx-cloud,
body[data-weather="regen"] .fx-cloud,
body[data-weather="sturm"] .fx-cloud,
body[data-weather="schnee"] .fx-cloud { opacity: 1; }

/* Wind: gleiche Wolken, deutlich flotter */
body[data-weather="wind"] .fx-cloud-1 { animation-duration: 34s; }
body[data-weather="wind"] .fx-cloud-2 { animation-duration: 50s; }
body[data-weather="wind"] .fx-cloud-3 { animation-duration: 65s; }

/* Niederschlag — Regenstriche bzw. Schneeflocken als nahtlose Kachel */
.fx-precip {
  position: absolute;
  inset: -15%;
  opacity: 0;
  will-change: background-position;
}
body[data-weather="regen"] .fx-precip,
body[data-weather="sturm"] .fx-precip {
  opacity: 1;
  transform: rotate(9deg);
  background-image:
    radial-gradient(1.4px 12px at 22px 25px,  rgba(170, 205, 255, 0.48), transparent),
    radial-gradient(1.3px 10px at 68px 62px,  rgba(170, 205, 255, 0.38), transparent),
    radial-gradient(1.2px 9px  at 105px 108px, rgba(170, 205, 255, 0.30), transparent),
    radial-gradient(1.3px 11px at 148px 42px, rgba(170, 205, 255, 0.42), transparent),
    radial-gradient(1.2px 9px  at 40px 95px,  rgba(170, 205, 255, 0.32), transparent);
  background-size: 175px 150px;
  animation: fxFall 0.9s linear infinite;
}
body[data-weather="sturm"] .fx-precip { animation-duration: 0.55s; }

body[data-weather="schnee"] .fx-precip {
  opacity: 1;
  transform: rotate(-6deg);
  background-image:
    radial-gradient(2.2px 2.2px at 22px 30px,   rgba(255, 255, 255, 0.60), transparent),
    radial-gradient(1.7px 1.7px at 75px 92px,   rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(2.6px 2.6px at 132px 55px,  rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 50px 132px,  rgba(255, 255, 255, 0.36), transparent),
    radial-gradient(2px 2px     at 162px 122px, rgba(255, 255, 255, 0.44), transparent),
    radial-gradient(1.6px 1.6px at 100px 15px,  rgba(255, 255, 255, 0.40), transparent);
  background-size: 190px 170px;
  animation: fxFall 10s linear infinite;
}
@keyframes fxFall { to { background-position: 0 var(--fx-fall, 150px); } }
body[data-weather="schnee"] .fx-precip { --fx-fall: 170px; }

/* Wetterleuchten bei Sturm — seltener, sehr dezenter Flash */
.fx-flash {
  position: absolute;
  inset: 0;
  background: rgba(200, 210, 255, 1);
  opacity: 0;
}
body[data-weather="sturm"] .fx-flash { animation: fxFlash 9s linear infinite; }
@keyframes fxFlash {
  0%, 88%, 100% { opacity: 0; }
  89%   { opacity: 0.07; }
  90%   { opacity: 0.01; }
  91.5% { opacity: 0.05; }
  93%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .fx-sun,
  .fx-cloud,
  .fx-precip,
  .fx-flash { animation: none !important; }
}

/* =========================================================
   Menü-Icons — dezente Farbakzente (macOS-Sidebar-Stil)
   ========================================================= */

.view-tab[data-view="start"] svg,   .bottom-tab[data-view="start"] svg   { color: #D8D8D8; }
.view-tab[data-view="weather"] svg, .bottom-tab[data-view="weather"] svg { color: #6FB1FF; }
.view-tab[data-view="recipes"] svg, .bottom-tab[data-view="recipes"] svg,
.home-tile[data-view="recipes"] svg { color: #FFA94D; }
.view-tab[data-view="wissen"] svg,  .bottom-tab[data-view="wissen"] svg,
.home-tile[data-view="wissen"] svg  { color: #FFD166; }
.view-tab[data-view="community"] svg, .bottom-tab[data-view="community"] svg,
.home-tile[data-view="community"] svg { color: #4DD0C0; }
.view-tab[data-view="termine"] svg,
.home-tile[data-view="termine"] svg { color: #6FCF7A; }
.view-tab[data-view="ai"] svg, .bottom-tab[data-view="ai"] svg,
.home-tile[data-view="ai"] svg { color: #B388FF; }
.view-tab[data-view="willshoppen"] svg, .bottom-tab[data-view="willshoppen"] svg,
.home-tile[data-view="willshoppen"] svg { color: #E10600; }
.view-tab[data-view="profile"] svg, .bottom-tab[data-view="profile"] svg,
.home-tile[data-view="profile"] svg { color: #C9C4BE; }

/* Inaktive Tabs: Icon etwas zurückgenommen, aktiv voll leuchtend */
.view-tab:not(.active) svg, .bottom-tab:not(.active) svg { opacity: 0.78; }
.view-tab.active svg, .bottom-tab.active svg { opacity: 1; }

/* =========================================================
   Wetter-View — Himmel-Verläufe + Glas-Karten
   ========================================================= */

body[data-view="weather"] .weather-fx { background: linear-gradient(180deg, #0B0F16 0%, #131A26 100%); }
body[data-weather="sonne"] .weather-fx  { background: linear-gradient(180deg, #071528 0%, #0E3050 55%, #59331A 100%); }
body[data-weather="warm"] .weather-fx   { background: linear-gradient(180deg, #0A1626 0%, #12304A 60%, #3E2A18 100%); }
body[data-weather="heiss"] .weather-fx  { background: linear-gradient(180deg, #160B08 0%, #35150C 55%, #7A2E12 100%); }
body[data-weather="kuehl"] .weather-fx  { background: linear-gradient(180deg, #0B111A 0%, #16222E 60%, #24303A 100%); }
body[data-weather="wind"] .weather-fx   { background: linear-gradient(180deg, #0C1218 0%, #17212B 60%, #202B34 100%); }
body[data-weather="regen"] .weather-fx  { background: linear-gradient(180deg, #070C14 0%, #101A28 60%, #182430 100%); }
body[data-weather="sturm"] .weather-fx  { background: linear-gradient(180deg, #05070E 0%, #0D1020 60%, #191430 100%); }
body[data-weather="schnee"] .weather-fx { background: linear-gradient(180deg, #0A101C 0%, #16243A 60%, #2E4258 100%); }

/* Wetter-Datenkarten als warmes Milchglas über dem Himmel — freundlich & rund */
body[data-view="weather"] .weather-hero,
body[data-view="weather"] .hourly-card,
body[data-view="weather"] .tenday-card,
body[data-view="weather"] .radar-card,
body[data-view="weather"] .radar-summary,
body[data-view="weather"] .info-tile {
  background: rgba(28, 24, 22, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border-color: rgba(255, 232, 214, 0.12);
  border-radius: 26px;
}
body[data-view="weather"] .weather-hero { border-radius: 30px; }

/* Hero: weicher warmer Glut-Schein statt harter roter Oberkante */
body[data-view="weather"] .weather-hero {
  border: 1px solid rgba(255, 120, 70, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 44px rgba(225, 60, 20, 0.14);
}

/* =========================================================
   Maskottchen „Glutzi" — lugt an zufälligen Kanten hervor
   ========================================================= */

.mascot {
  position: fixed;
  z-index: 60;
  width: clamp(96px, 14vw, 150px);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(225, 6, 0, 0.38));
  transition: transform 750ms var(--ease-spring), opacity 450ms ease;
}
.mascot.show { opacity: 1; }
.mascot .mascot-flip { display: block; }
.mascot img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 92%;
  animation: mascotBob 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-7px) rotate(1.6deg); }
}

/* Plätze — Versteck-Transform (Basis) und Peek-Transform (.show) */
.mascot.m-right { right: 0; top: 34%; transform: translateX(110%); }
.mascot.m-right.show { transform: translateX(30%) rotate(calc(-10deg + var(--m-tilt, 0deg))) translateY(var(--m-shift, 0px)); }

.mascot.m-left { left: 0; top: 58%; transform: translateX(-110%); }
.mascot.m-left.show { transform: translateX(-30%) rotate(calc(10deg + var(--m-tilt, 0deg))) translateY(var(--m-shift, 0px)); }

.mascot.m-br { right: 6%; bottom: 0; transform: translateY(115%); }
.mascot.m-br.show { transform: translateY(40%) rotate(calc(-4deg + var(--m-tilt, 0deg))); }

.mascot.m-bl { left: 5%; bottom: 0; transform: translateY(115%); }
.mascot.m-bl.show { transform: translateY(40%) rotate(calc(5deg + var(--m-tilt, 0deg))); }

/* Bottom-Nav liegt über dem Maskottchen — es lugt dahinter hervor */
.bottom-nav { z-index: 70; }

/* Klick-Reaktion: Wackeln + Sprechblase */
.mascot.talk .mascot-flip { animation: mascotWiggle 350ms ease-in-out 2; }
@keyframes mascotWiggle {
  0%, 100% { rotate: 0deg; }
  25%      { rotate: -7deg; }
  75%      { rotate: 7deg; }
}

.mascot-bubble {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%, -100%);
  background: #F7F6F2;
  color: #1A1816;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 13px;
  border-radius: 14px;
  /* Witze sind länger als „Servus! 🔥" — umbrechen statt überlaufen. */
  white-space: normal;
  width: max-content;
  max-width: min(240px, 62vw);
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #F7F6F2;
  border-bottom: 0;
}
.mascot.m-right .mascot-bubble,
.mascot.m-br .mascot-bubble { left: auto; right: 30%; transform: translateY(-100%); }
.mascot.m-right .mascot-bubble::after,
.mascot.m-br .mascot-bubble::after { left: auto; right: 18px; }
/* Links-Positionen: Blase nach rechts aufklappen, sonst ragt sie aus dem Viewport. */
.mascot.m-left .mascot-bubble,
.mascot.m-bl .mascot-bubble { left: 30%; right: auto; transform: translateY(-100%); }
.mascot.m-left .mascot-bubble::after,
.mascot.m-bl .mascot-bubble::after { left: 18px; right: auto; }

@media (prefers-reduced-motion: reduce) {
  .mascot { transition: opacity 400ms ease; }
  .mascot img,
  .mascot.talk .mascot-flip { animation: none !important; }
}

/* Mobil: Maskottchen VOLL sichtbar (angeschnitten wirkt auf kleinen Screens
   nicht versteckt, sondern kaputt). Seitlich schwebt er komplett herein,
   unten „steht" er auf der Bottom-Nav. Peek-Stil bleibt Desktop-only. */
@media (max-width: 959px) {
  .mascot { width: clamp(116px, 28vw, 150px); }

  .mascot.m-right { right: 10px; }
  .mascot.m-right.show { transform: translateX(0) rotate(calc(-6deg + var(--m-tilt, 0deg))) translateY(var(--m-shift, 0px)); }
  .mascot.m-left { left: 10px; }
  .mascot.m-left.show { transform: translateX(0) rotate(calc(6deg + var(--m-tilt, 0deg))) translateY(var(--m-shift, 0px)); }

  .mascot.m-br, .mascot.m-bl { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mascot.m-br { right: 12px; }
  .mascot.m-bl { left: 12px; }
  .mascot.m-br.show { transform: translateY(0) rotate(calc(-3deg + var(--m-tilt, 0deg))); }
  .mascot.m-bl.show { transform: translateY(0) rotate(calc(3deg + var(--m-tilt, 0deg))); }
}

/* =========================================================
   Regen-Radar — einfache, freundliche 12-Std.-Vorschau
   ========================================================= */

.radar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 16px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
}

/* Klartext-Aussage */
.radar-headline { display: flex; align-items: center; gap: 14px; }
.radar-hicon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.radar-hicon svg { width: 26px; height: 26px; }
.radar-htext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.radar-htext strong { font-size: 1.08rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.radar-htext span { font-size: 0.85rem; color: var(--text-2); line-height: 1.35; }

/* Farbton je Lage */
.tone-dry .radar-hicon    { background: rgba(78, 200, 120, 0.16); color: #5fd48a; }
.tone-incoming .radar-hicon { background: rgba(120, 175, 255, 0.16); color: #8fbcff; }
.tone-rain .radar-hicon   { background: rgba(90, 150, 240, 0.18); color: #6fa8f0; }

/* Balken-Reihe */
.radar-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  align-items: end;
}
.radar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.radar-track {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.radar-fill {
  width: 100%;
  border-radius: 8px 8px 6px 6px;
  transition: height 500ms var(--ease-out);
}
.radar-fill.lvl-0 { background: rgba(180, 195, 215, 0.16); }
.radar-fill.lvl-1 { background: linear-gradient(180deg, #8ecbff, #6fb0f2); }
.radar-fill.lvl-2 { background: linear-gradient(180deg, #5aa2ef, #3f83db); }
.radar-fill.lvl-3 { background: linear-gradient(180deg, #3f83db, #2b63b8); }
.radar-col.is-poss .radar-fill { opacity: 0.7; }

.radar-hour { font-size: 0.66rem; color: var(--muted); font-weight: 600; height: 0.8em; }
.radar-col.is-now .radar-track { box-shadow: inset 0 0 0 2px var(--accent); }
.radar-col.is-now .radar-hour { color: var(--accent); }

/* Legende */
.radar-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.radar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.radar-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.radar-dot.lvl-1 { background: #6fb0f2; }
.radar-dot.lvl-2 { background: #3f83db; }
.radar-dot.lvl-3 { background: #2b63b8; }
.radar-span { margin-left: auto; color: var(--muted); }

@media (max-width: 480px) {
  .radar-card { padding: 16px 15px 14px; }
  .radar-track { height: 48px; }
  .radar-bars { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-fill { transition: none; }
}

/* =========================================================
   Wetter-Radar — interaktiver 3D-Globus
   ========================================================= */

.globe-card {
  position: relative;
  height: clamp(320px, 54vw, 460px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    radial-gradient(120% 90% at 50% 30%, #16233a 0%, #0a0f1a 55%, #06080f 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(0, 0, 0, 0.4);
}
.globe-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
}
.globe-canvas:active { cursor: grabbing; }
.globe-canvas canvas { display: block; }

/* Standort-Chip oben links */
.globe-chip {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  background: rgba(14, 14, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
  max-width: 72%;
}
.globe-chip svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.globe-chip-text { display: flex; flex-direction: column; min-width: 0; }
.globe-chip-text strong { font-size: 0.95rem; font-weight: 800; color: #fff; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.globe-chip-text small { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bedien-Hinweis oben rechts */
.globe-hint {
  position: absolute;
  top: 16px; right: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(14, 14, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 6px 10px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 600ms ease;
}
.globe-hint svg { width: 14px; height: 14px; }
.globe-card.hint-faded .globe-hint { opacity: 0; }

/* (Die Klartext-Zusammenfassung lebt jetzt als .radar-summary unter dem
   Radar — Styles im Wetter-Radar-Block am Dateiende.) */

/* Hinweis bei kleinem Screen etwas reduzieren */
@media (max-width: 560px) {
  .globe-hint-label { display: none; }
  .globe-hint { padding: 8px; }
  .globe-hint svg { width: 16px; height: 16px; }
  .globe-chip-text strong { font-size: 0.86rem; }
}

/* Fallback (kein WebGL / CDN blockiert): Balken-Radar zeigen, Globus-Chrome aus */
.radar-fallback { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.globe-card.globe-failed {
  height: auto;
  background: var(--surface);
}
.globe-card.globe-failed .globe-canvas,
.globe-card.globe-failed .globe-hint,
.globe-card.globe-failed .globe-legend,
.globe-card.globe-failed .globe-mascot-drift { display: none; }

/* =========================================================
   Kühlschrank-Seite („Was hast du da?")
   ========================================================= */

.fridge-hero { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 2px; }
.fridge-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(225, 6, 0, 0.28);
  padding: 6px 12px; border-radius: 999px;
}
.fridge-eyebrow svg { width: 15px; height: 15px; }
.fridge-hero h1 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; }
.fridge-accent { color: var(--accent); }
.fridge-hero p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

.fridge-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.fridge-field { display: flex; flex-direction: column; gap: 10px; }
.fridge-label { font-size: 0.8rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }

.chip-input {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-height: 58px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  cursor: text; transition: border-color var(--transition-smooth);
}
.chip-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-list { display: contents; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid rgba(225, 6, 0, 0.3);
  padding: 6px 6px 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
}
.chip-x { background: rgba(255,255,255,0.12); border: 0; color: var(--text); width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.chip-x:hover { background: var(--accent); color: #fff; }
#fridge-input { flex: 1; min-width: 140px; background: transparent; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 0.95rem; padding: 4px 0; }
#fridge-input::placeholder { color: var(--muted); }

.chip-suggest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.chip-suggest-label { font-size: 0.78rem; color: var(--muted); }
.chip-suggest {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition-smooth);
}
.chip-suggest:hover { border-color: var(--accent); color: var(--text); }

.fridge-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .fridge-options { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fridge-opt { display: flex; flex-direction: column; gap: 6px; }
.fridge-opt span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.fridge-opt select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 11px 12px; border-radius: 14px; font-family: inherit; font-size: 0.92rem; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.fridge-opt select:focus { border-color: var(--accent); outline: none; }

.fridge-wish { display: flex; flex-direction: column; gap: 6px; }
.fridge-wish span { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.fridge-wish small { color: var(--muted); font-weight: 500; }
.fridge-wish input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 14px; font-family: inherit; font-size: 0.95rem;
}
.fridge-wish input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.fridge-wish input::placeholder { color: var(--muted); }

.fridge-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #ff5a2c, #c1100f); color: #fff;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(193, 16, 15, 0.32);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.fridge-submit svg { width: 22px; height: 22px; }
.fridge-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(193, 16, 15, 0.4); }
.fridge-submit:active { transform: scale(0.99); }

/* =========================================================
   Willshoppen (Regional einkaufen)
   ========================================================= */

.shop-hero { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px 2px; }
.shop-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; }
.shop-accent { color: var(--accent); }
.shop-flag { font-size: 0.7em; }
.shop-hero p { margin: 0; color: var(--text-2); font-size: 0.92rem; max-width: 60ch; }

.shop-search { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.shop-search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px 6px 6px 14px;
}
.shop-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.shop-search-box > svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
#shop-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 0.95rem; padding: 10px 0; }
#shop-input::placeholder { color: var(--muted); }
.shop-search-btn { flex-shrink: 0; background: var(--accent); color: #fff; border: 0; padding: 11px 22px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; }
.shop-search-btn:hover { background: var(--accent-strong); }

.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-cat { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-size: 0.83rem; font-weight: 600; transition: all var(--transition-smooth); }
.shop-cat:hover { color: var(--text); border-color: var(--border-strong); }
.shop-cat.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Echte Landkarte (Leaflet) */
.shop-map {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 380px;
  border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  background: #1b2620;
  z-index: 0;
}
@media (min-width: 960px) { .shop-map { height: 440px; } }
.shop-map .leaflet-container { width: 100%; height: 100%; background: #dfe4d8; font-family: "Montserrat", sans-serif; }
.shop-map .leaflet-control-zoom a { background: #1d1d1d; color: #fff; border-color: rgba(255,255,255,0.15); }
.shop-map .leaflet-control-zoom a:hover { background: var(--accent); }
.shop-map .leaflet-popup-content-wrapper { border-radius: 12px; }
.shop-map .leaflet-popup-content { font-size: 0.86rem; line-height: 1.35; }
.shop-map.map-failed { display: grid; place-items: center; }
.shop-map.map-failed::after { content: 'Karte konnte nicht geladen werden (offline?)'; color: var(--muted); font-size: 0.9rem; }

/* Marker (Betriebe + Standort) */
.shop-mk-pin {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c); border: 2px solid #fff; font-size: 18px;
  box-shadow: 0 3px 7px rgba(0,0,0,0.45);
}
.shop-mk-userdot {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(225,6,0,0.3), 0 2px 6px rgba(0,0,0,0.5);
  animation: shopUserPulse 2s ease-out infinite;
}
@keyframes shopUserPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(225,6,0,0.35), 0 2px 6px rgba(0,0,0,0.5); }
  50% { box-shadow: 0 0 0 9px rgba(225,6,0,0.08), 0 2px 6px rgba(0,0,0,0.5); }
}
.shop-map .marker-cluster {
  background: rgba(225, 6, 0, 0.25);
}
.shop-map .marker-cluster div {
  background: var(--accent); color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700;
}

.shop-list { display: flex; flex-direction: column; gap: 12px; }
.shop-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px;
}
.shop-item-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 20%, transparent); border: 2px solid var(--c); }
.shop-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-item-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.shop-item-type { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.shop-item-addr { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.shop-item-addr strong { color: var(--text-2); }
.shop-item-badge { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; background: var(--accent-soft); border: 1px solid rgba(225,6,0,0.3); border-radius: 12px; padding: 7px 10px; }
.shop-item-badge strong { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); }
.shop-item-badge small { font-size: 0.6rem; color: var(--text-2); line-height: 1.1; }
@media (max-width: 480px) {
  .shop-item-badge small { display: none; }
  .shop-item-icon { width: 42px; height: 42px; font-size: 21px; }
}

/* =========================================================
   Profil — Nutzer-Suche + Discover-Avatare
   ========================================================= */

.pf-search { position: relative; margin-bottom: 6px; }
.pf-search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px; }
.pf-search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf-search-box svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
#pf-search-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font-family: inherit; font-size: 0.92rem; padding: 10px 0; }
#pf-search-input::placeholder { color: var(--muted); }
.pf-search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.pf-search-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; color: var(--text); cursor: pointer; }
.pf-search-item:last-child { border-bottom: 0; }
.pf-search-item:hover { background: var(--surface-2); }
.pf-search-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #fff; overflow: hidden; flex-shrink: 0; }
.pf-search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-search-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-search-name { font-weight: 700; font-size: 0.92rem; }
.pf-search-handle { font-size: 0.78rem; color: var(--muted); }
.pf-search-item > svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pf-search-empty { padding: 14px; color: var(--muted); font-size: 0.88rem; text-align: center; }
.discover-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Willshoppen + Kühlschrank auf Desktop zentrieren (nicht über volle Breite) */
@media (min-width: 960px) {
  body[data-view="willshoppen"] .app-shell,
  body[data-view="ai"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1080px;
    margin: 0 auto;
  }
}

/* =========================================================
   „ALLES WAS DA IST!" — Kühlschrank-CTA (Start-Hub)
   ========================================================= */
.fridge-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left;
  padding: 22px 24px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.16), rgba(29, 29, 29, 0.55) 60%);
  border: 1px solid rgba(255, 90, 44, 0.42);
  box-shadow: 0 14px 40px rgba(225, 6, 0, 0.16);
  color: var(--text);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.fridge-cta:hover { transform: translateY(-2px); border-color: rgba(255, 90, 44, 0.7); box-shadow: 0 18px 50px rgba(225, 6, 0, 0.28); }
.fridge-cta:active { transform: scale(0.99); }
.fridge-cta-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fridge-cta-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.fridge-cta-eyebrow svg { width: 14px; height: 14px; }
.fridge-cta-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1; }
.fridge-cta-title .accent { color: var(--accent); }
.fridge-cta-sub { font-size: 0.9rem; color: var(--text-2); max-width: 42ch; }
.fridge-cta-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.fridge-cta-go svg { width: 17px; height: 17px; }
/* Echtes Kühlschrank-Bild statt Icon — gerahmt wie im Mockup, mit rotem Glow */
.fridge-cta-icon {
  flex-shrink: 0; width: 128px; height: 150px; border-radius: 18px;
  display: grid; place-items: center; padding: 6px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(225, 6, 0, 0.16), rgba(18, 17, 16, 0.92) 72%);
  border: 1px solid rgba(255, 90, 44, 0.5);
  box-shadow: 0 0 26px rgba(225, 6, 0, 0.22);
}
.fridge-cta-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55)); }
@media (max-width: 560px) {
  .fridge-cta { padding: 18px; gap: 14px; }
  .fridge-cta-icon { width: 94px; height: 112px; border-radius: 14px; }
}

/* ---------- „Achtung News"-Banner (Live-Feed) ---------- */
.news-section { margin: 0; }

.news-banner {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  background: radial-gradient(135% 150% at 0% 0%, rgba(225, 6, 0, 0.16), transparent 45%), #1D1D1D;
  border: 1px solid rgba(225, 6, 0, 0.30);
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), 0 0 24px rgba(225, 6, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 96px;
  justify-content: center;
  overflow: hidden;
}
/* dezenter „Breaking"-Schimmer, der langsam durchs Banner wandert */
.news-banner::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(75deg, transparent 42%, rgba(255, 255, 255, 0.05) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: newsSheen 7s ease-in-out infinite;
}
@keyframes newsSheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }

/* „Achtung · News"-Badge — auffällige rote Pille mit Blitz + Live-Punkt */
.news-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(225, 6, 0, 0.4);
  animation: newsBadgePulse 2.2s ease-out infinite;
}
.news-badge-icon { width: 13px; height: 13px; flex-shrink: 0; margin-left: -2px; }
.news-live { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex-shrink: 0; animation: newsLiveBlink 1.3s steps(1, end) infinite; }
@keyframes newsBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55), 0 2px 10px rgba(225, 6, 0, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(225, 6, 0, 0), 0 2px 10px rgba(225, 6, 0, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0), 0 2px 10px rgba(225, 6, 0, 0.4); }
}
@keyframes newsLiveBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.2; } }

.news-nav { display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.news-arrow {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.news-arrow svg { width: 14px; height: 14px; }
.news-arrow:hover { color: var(--text); border-color: var(--accent); background: rgba(225, 6, 0, 0.12); }

.news-dots { display: inline-flex; align-items: center; gap: 5px; }
.news-dot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.22); transition: background var(--transition), transform var(--transition);
}
.news-dot.active { background: var(--accent); transform: scale(1.4); }

.news-item {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  text-decoration: none; color: inherit;
  transition: opacity 160ms ease;
}
.news-item.is-swapping { opacity: 0; }
.news-title {
  font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item:hover .news-title { color: var(--accent); }
.news-meta { font-size: 0.76rem; color: var(--text-2); font-weight: 600; }

.news-skeleton { animation: newsShimmer 1.4s ease-in-out infinite; }
@keyframes newsShimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }

@media (max-width: 560px) {
  .news-banner { padding: 14px 16px; border-radius: 16px; }
  .news-title { font-size: 1rem; }
  .news-arrow { width: 24px; height: 24px; }
  .news-badge { font-size: 0.64rem; padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-banner::before, .news-badge, .news-live { animation: none; }
}

/* Wetter-Globus — Legende (Niederschlag / Wolken), Hinweis-Pille entfällt */
.globe-hint { display: none; }
.globe-legend {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
  background: rgba(14, 14, 16, 0.55); border: 1px solid var(--border);
  padding: 9px 12px; border-radius: 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none; max-width: 47%;
}
.globe-legend-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.globe-legend-bar { height: 7px; border-radius: 999px; background: linear-gradient(90deg, #4a9eeb, #5fd48a, #ffd166, #ff8a3d, #e14b3b); }
.globe-legend-scale { display: flex; justify-content: space-between; font-size: 0.56rem; color: var(--muted); }
.globe-legend-row { display: inline-flex; align-items: center; gap: 5px; font-size: 0.6rem; color: var(--text-2); margin-top: 1px; }
.globe-legend-cloud { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); flex-shrink: 0; }
@media (max-width: 560px) {
  .globe-legend { max-width: 54%; padding: 8px 10px; gap: 4px; }
  .globe-legend-title { font-size: 0.56rem; }
  .globe-legend-row { font-size: 0.55rem; }
}

/* Globus: Chip + Legende auf Mobile nebeneinander ohne Überlappung */
@media (max-width: 560px) {
  .globe-chip { max-width: 38%; }
  .globe-legend { max-width: 48%; }
}

/* =========================================================
   Verspielte 3D-Optik — generierte Assets (assets/3d/)
   Berge, echtes Kühlschrank-Bild, 3D-Icons in Nav/Kacheln/Wetter
   ========================================================= */

/* --- Österreich-Note: Alpen-Silhouette hinter dem Start-Hero --- */
.view-start, .view-recipes, .view-wissen, .view-termine { position: relative; }
.view-start > :not(.austria-backdrop),
.view-recipes > :not(.austria-backdrop),
.view-wissen > :not(.austria-backdrop),
.view-termine > :not(.austria-backdrop) { position: relative; z-index: 1; }
/* Auf Inhaltsseiten etwas dezenter als am Start */
.view-recipes .austria-backdrop img,
.view-wissen .austria-backdrop img,
.view-termine .austria-backdrop img { opacity: 0.5; }
.austria-backdrop {
  /* Zentrierung ohne transform (margin-calc) — robust gegen alles,
     was transform überschreiben könnte. */
  position: absolute; top: -28px; left: 50%;
  width: min(100vw, 1500px); height: 470px;
  margin-left: calc(min(100vw, 1500px) / -2);
  z-index: 0; pointer-events: none; overflow: hidden;
}
.austria-backdrop img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 68%;
  opacity: 0.68;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 30%, transparent 96%);
}
@media (max-width: 700px) { .austria-backdrop { height: 350px; top: -18px; } }

/* Kleine Österreich-Flagge als Akzent im Slogan */
.at-flag {
  display: inline-block; width: 21px; height: 14px; border-radius: 3px;
  margin-left: 8px; vertical-align: -1px;
  background: linear-gradient(to bottom, #ED2939 0 33%, #FFFFFF 33% 66%, #ED2939 66% 100%);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* --- Entdecken-Kacheln: große 3D-Icons, zentriert, mit Sprung beim Hover --- */
.home-tile { align-items: center; text-align: center; padding: 20px 14px 16px; }
.tile-3d {
  width: 84px; height: 84px; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.home-tile:hover .tile-3d { transform: translateY(-5px) scale(1.07) rotate(-2deg); }
@media (max-width: 700px) { .tile-3d { width: 68px; height: 68px; } }

/* --- Navigation: 3D-Icons oben + unten --- */
.view-tab .nav-3d { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.bottom-tab .nav-3d {
  width: 38px; height: 38px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), filter var(--transition), opacity var(--transition);
}
.view-tab:not(.active) .nav-3d,
.bottom-tab:not(.active) .nav-3d { opacity: 0.78; filter: saturate(0.7) brightness(0.92); }
.bottom-tab.active .nav-3d { transform: translateY(-2px) scale(1.14); }

/* --- Wetter: 3D-Icons überall (img.wx3d kommt aus weather-code.js) --- */
img.wx3d {
  width: 2.4em; height: 2.4em; object-fit: contain; vertical-align: middle;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.weather-main .icon img.wx3d,
.loc-icon img.wx3d,
.hourly-icon img.wx3d { width: 100%; height: 100%; }
.hw-icon img.wx3d { width: 88px; height: 88px; }
.day-icon img.wx3d { width: 56px; height: 56px; }

/* --- Wetter-Radar: vertikale Legende im Mockup-Stil --- */
.globe-legend { display: flex; flex-direction: column; gap: 6px; }
.globe-legend-vwrap { display: flex; align-items: stretch; gap: 8px; }
.globe-legend-vbar {
  width: 9px; height: 64px; border-radius: 999px;
  background: linear-gradient(to bottom, #e14b3b, #ff8a3d, #ffd166, #5fd48a, #4a9eeb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.globe-legend-vlabels { display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0; }
.globe-legend-vlabels small { font-size: 0.6rem; color: var(--text-2); line-height: 1; }
.globe-legend-title-2 { margin-top: 4px; }

/* =========================================================
   Willshoppen — Modus-Wahl (Regional / Shop) + Shop-Grid
   ========================================================= */
.ws-mode {
  display: flex; gap: 8px; padding: 6px;
  background: #171615; border: 1px solid var(--border); border-radius: 999px;
  width: fit-content; margin: 0 auto 4px;
}
.ws-mode-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer;
  background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 0.92rem; font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.ws-mode-btn img { width: 24px; height: 24px; object-fit: contain; }
.ws-mode-btn.active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(225, 6, 0, 0.35); }
.ws-mode-btn:not(.active):hover { color: var(--text); }

.wsshop-hero {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-strong);
  min-height: 210px; display: flex; align-items: center;
  background: #141312;
}
.wsshop-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; opacity: 0.85;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.55) 34%, #000 62%);
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,0.55) 34%, #000 62%);
}
.wsshop-hero-text { position: relative; z-index: 1; padding: 26px 28px; max-width: 60%; }
.wsshop-hero-text h1 {
  margin: 0 0 8px; font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3rem); line-height: 0.98; letter-spacing: 0.02em;
  display: flex; flex-direction: column;
}
.wsshop-hero-text h1 .accent { color: var(--accent); }
.wsshop-hero-text p { margin: 0; color: var(--text-2); font-size: 0.95rem; max-width: 34ch; }

.wsshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 700px) { .wsshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wsshop-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 14px 18px; border-radius: 20px; cursor: pointer;
  background: #1D1D1D; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; text-align: center;
  font-family: inherit;
  transition: transform var(--transition-smooth), border-color var(--transition), box-shadow var(--transition-smooth);
}
.wsshop-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.wsshop-tile img {
  width: 96px; height: 96px; object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wsshop-tile:hover img { transform: translateY(-4px) scale(1.07) rotate(-2deg); }
.wsshop-tile strong { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem; }
.wsshop-partner { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.wsshop-underline { width: 34px; height: 4px; border-radius: 999px; background: var(--tile-color, var(--accent)); margin-top: 2px; }
@media (max-width: 560px) {
  .wsshop-hero-text { max-width: 70%; padding: 20px; }
  .wsshop-tile img { width: 76px; height: 76px; }
}

/* =========================================================
   Community — Chips, Bild des Tages, Challenge, Live-Karte
   ========================================================= */
.cmty-chips {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cmty-chips::-webkit-scrollbar { display: none; }
.cmty-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer; padding: 0;
  color: var(--text-2); font-family: inherit; font-size: 0.72rem; font-weight: 600;
  flex: 0 0 auto; width: 74px;
  transition: color var(--transition), transform var(--transition);
}
.cmty-chip:hover { color: var(--text); transform: translateY(-2px); }
.cmty-chip-ic {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #1D1D1D; border: 1px solid var(--border-strong);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.cmty-chip-ic img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }

.cmty-bild {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.35);
  min-height: 250px; display: flex; align-items: flex-end;
  background: #141312;
}
.cmty-bild-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cmty-bild-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.92) 0%, rgba(10, 9, 8, 0.35) 45%, rgba(10, 9, 8, 0.15) 100%);
}
.cmty-bild-overlay { position: relative; z-index: 1; padding: 18px 20px; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.cmty-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 209, 102, 0.16); color: #FFD166;
  border: 1px solid rgba(255, 209, 102, 0.4); border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px;
}
.cmty-bild-text { display: flex; flex-direction: column; gap: 2px; }
.cmty-bild-text strong { font-size: 1.25rem; font-weight: 800; }
.cmty-bild-text span { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.cmty-bild-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cmty-bild-foot > span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.8); font-weight: 600; }
.cmty-bild-btn {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 8px 16px; font-family: inherit; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition);
}
.cmty-bild-btn:hover { background: var(--accent); border-color: var(--accent); }

.cmty-duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
@media (max-width: 700px) { .cmty-duo { grid-template-columns: 1fr; } }
.cmty-challenge {
  border-radius: 20px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.22), rgba(29, 29, 29, 0.9) 65%);
  border: 1px solid rgba(255, 90, 44, 0.4);
  display: flex; flex-direction: column; gap: 8px;
}
.cmty-ch-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: #FF8A5C; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.cmty-ch-eyebrow img { width: 22px; height: 22px; object-fit: contain; }
.cmty-challenge h3, .cmty-challenge .cmty-h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; letter-spacing: 0.02em; }
.cmty-challenge p { margin: 0; color: var(--text-2); font-size: 0.88rem; }
.cmty-countdown { display: flex; gap: 8px; margin: 4px 0 2px; }
.cmty-cd-cell {
  display: flex; flex-direction: column; align-items: center; min-width: 52px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px; padding: 8px 6px;
}
.cmty-cd-cell b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cmty-cd-cell small { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cmty-ch-btn {
  align-self: flex-start; margin-top: 4px;
  background: #fff; color: #B3140C; border: none; border-radius: 999px;
  padding: 10px 18px; font-family: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cmty-ch-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }

.cmty-live {
  border-radius: 20px; padding: 16px 18px;
  background: #16211A; border: 1px solid rgba(111, 207, 122, 0.35);
  display: flex; flex-direction: column; gap: 10px;
}
.cmty-live-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #6FCF7A; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.cmty-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6FCF7A;
  animation: newsPulseGreen 1.8s ease-out infinite;
}
@keyframes newsPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(111, 207, 122, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(111, 207, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 207, 122, 0); }
}
.cmty-live-map { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 16 / 9; }
.cmty-live-foot { font-size: 0.82rem; color: var(--text-2); font-weight: 600; }

/* =========================================================
   KI-Küche — 4 Schritte (verspielt)
   ========================================================= */
.ki-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .ki-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ki-step {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; padding: 18px 12px 14px;
  background: #1D1D1D; border: 1px solid var(--border); border-radius: 18px;
}
.ki-step img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.ki-step strong { font-size: 0.85rem; font-weight: 800; margin-top: 4px; }
.ki-step > span:not(.ki-step-num) { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.ki-step-num {
  position: absolute; top: 10px; left: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}

/* Dekorative 3D-Icons in den Bereichs-Headern (Rezepte/Wissen/Termine) */
.lib-header-deco { display: flex; align-items: center; gap: 14px; }
.lib-header-deco > div, .lib-header-deco h1 { min-width: 0; }
.lib-deco-3d {
  width: 62px; height: 62px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
  animation: decoFloat 4.5s ease-in-out infinite;
}
.events-header .lib-deco-3d { margin-right: 2px; }
@keyframes decoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .lib-deco-3d { animation: none; } }
.events-header { display: flex; align-items: center; gap: 14px; }

/* =========================================================
   Feinschliff-Runde: Start-Wetterkarte, Chip-Temp, Regional-
   Abstände, Jahreskalender, Event-Flash
   ========================================================= */

/* Start: nur Heute + Morgen, große Icons, kein Fließtext */
.home-weather-card { display: flex; align-items: stretch; gap: 10px; }
.hw-day {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.hw-day-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.hw-temp { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.hw-range { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.hw-arrow { align-self: center; }

/* Wetter-Radar: Temperatur direkt im Standort-Chip */
.globe-chip-temp {
  margin-left: 8px; font-size: 1.5rem; font-weight: 800; color: #fff;
  line-height: 1; flex-shrink: 0;
}

/* Regional einkaufen: mehr Luft zwischen Suche, Kategorien und Karte */
.shop-search { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 6px; }
.shop-cats { display: flex; flex-wrap: wrap; gap: 10px; }
#ws-regional .section { margin-top: 26px; }
#ws-regional .shop-hero { margin-bottom: 4px; }
#ws-regional .section-head { margin-bottom: 12px; }
.shop-map { border-radius: 18px; overflow: hidden; }

/* Termine: Jahreskalender */
.events-year-section { max-width: 700px; margin: 18px auto 0; }
.events-year {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  background: #1D1D1D; border: 1px solid var(--border); border-radius: 20px; padding: 16px;
}
@media (max-width: 560px) { .events-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yc-month { display: flex; flex-direction: column; gap: 6px; }
.yc-month-name { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.yc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.yc-day {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px;
  font-size: 0.58rem; color: var(--text-2); border: none; background: transparent;
  font-family: inherit; padding: 0;
}
.yc-empty { visibility: hidden; }
.yc-today { outline: 1px solid rgba(255, 255, 255, 0.45); font-weight: 800; color: #fff; }
.yc-day.yc-ev {
  background: var(--accent); color: #fff; font-weight: 800; cursor: pointer;
  box-shadow: 0 0 8px rgba(225, 6, 0, 0.5);
  transition: transform var(--transition);
}
.yc-day.yc-ev:hover { transform: scale(1.25); }

/* Angesprungener Termin blitzt kurz auf */
.ev-flash { animation: evFlash 1.6s ease; }
@keyframes evFlash {
  0%, 60% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(225, 6, 0, 0.45); }
  100% { box-shadow: none; }
}

/* Standort-Chip: Temperatur darf den Ortsnamen nicht verdrängen */
.globe-chip { max-width: 64%; }
.globe-chip-text { flex: 1; }
@media (max-width: 560px) {
  .globe-chip { max-width: 62%; }
  .globe-chip-text small { display: none; }
  .globe-chip-temp { font-size: 1.35rem; }
}

/* „Live am Grill" — einfache 1-2-3-Erklärung + Mitmach-Knopf */
.cmty-live-steps { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.cmty-live-step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: var(--text-2); line-height: 1.45;
}
.cmty-live-step b {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: rgba(111, 207, 122, 0.16); color: #6FCF7A;
  border: 1px solid rgba(111, 207, 122, 0.4);
  font-size: 0.68rem; font-weight: 800;
}
.cmty-live-cta {
  margin-top: 8px; width: 100%;
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 13px 18px; font-family: inherit; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; box-shadow: 0 8px 22px rgba(225, 6, 0, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cmty-live-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225, 6, 0, 0.45); }
.cmty-live-cta:active { transform: scale(0.98); }

.glut-section-hint { font-size: 0.72rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }


/* Glutzi hat sich im Weltall verirrt: winzig, treibt quer durch die ganze
   Karte (Drift-Ebene) und dreht sich dabei langsam um die eigene Achse
   (Spin-Ebene). UI-Chips liegen über ihm. */
/* Zwei kartengroße Ebenen treiben per transform (GPU-animiert).
   Wichtig: KEIN `alternate` + ease-in-out über die volle Dauer — dabei stand
   Glutzi an den Umkehrpunkten sekundenlang still („bleibt hängen").
   Stattdessen Rundkurs-Keyframes mit versetzten Wegpunkten: X und Y kehren
   nie gleichzeitig um, dadurch ist immer Bewegung im Bild. */
.globe-mascot-drift {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  animation: mascotDriftX 36s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.globe-mascot-y { position: absolute; inset: 0; animation: mascotDriftY 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.globe-mascot {
  position: absolute; left: 7%; top: 10%;
  display: block; width: 44px; opacity: 0.95;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  animation: mascotSpin 16s linear infinite;
}
@keyframes mascotDriftX {
  0%   { transform: translateX(2%); }
  28%  { transform: translateX(46%); }
  52%  { transform: translateX(14%); }
  76%  { transform: translateX(56%); }
  100% { transform: translateX(2%); }
}
@keyframes mascotDriftY {
  0%   { transform: translateY(3%); }
  30%  { transform: translateY(44%); }
  55%  { transform: translateY(12%); }
  80%  { transform: translateY(50%); }
  100% { transform: translateY(3%); }
}
@keyframes mascotSpin { to { transform: rotate(360deg); } }
.globe-chip, .globe-legend, .globe-summary, .globe-hint { z-index: 3; }
@media (max-width: 560px) { .globe-mascot { width: 32px; } }
@media (prefers-reduced-motion: reduce) {
  .globe-mascot-drift, .globe-mascot-y, .globe-mascot { animation: none; }
  .globe-mascot { left: auto; right: 12px; top: 22%; }
}

.view-tabs::-webkit-scrollbar { display: none; }
.view-tab { flex-shrink: 0; }

/* Jahreskalender: zugeklappt bis zum Öffnen */
.events-year-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: #1D1D1D; border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 18px; cursor: pointer; color: var(--text);
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  transition: border-color var(--transition), background var(--transition);
}
.events-year-toggle:hover { border-color: var(--accent); }
.events-year-toggle img { width: 34px; height: 34px; object-fit: contain; }
.eyt-meta { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.eyt-chev { width: 20px; height: 20px; color: var(--text-2); transition: transform var(--transition); }
.events-year-toggle[aria-expanded="true"] .eyt-chev { transform: rotate(180deg); }
.events-year { margin-top: 12px; }

/* =========================================================
   Filter-Pills mit 3D-Icons (Rezepte- & Wissen-Filter)
   Die Pille wandert vom <select> auf das umschließende
   <label.filter-field>; das Select wird innen transparent.
   ========================================================= */
.filter-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  background: #1D1D1D;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-field:focus-within,
.filter-field:hover { border-color: var(--accent); }
.filter-field .filter-icon3d {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
body .filter-field select,
body .recipe-filters .filter-field select {
  background: transparent;
  border: none;
  padding: 8px 2px 8px 0;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body .filter-field select:focus:not(:focus-visible),
body .recipe-filters .filter-field select:focus:not(:focus-visible) { border: none; outline: none; }

@media (max-width: 700px) {
  .filter-field { width: 100%; padding: 4px 14px 4px 10px; }
  body .filter-field select,
  body .recipe-filters .filter-field select { width: 100%; flex: 1; padding: 12px 2px 12px 0; font-size: 0.95rem; }
}

/* =========================================================
   Gebraucht-Börse (Willshoppen-Modus „boerse")
   Schlanker willhaben-Ansatz: Toolbar, Kategorie-Chips,
   Anzeigen-Grid, Inline-Formular.
   ========================================================= */
.boerse-hero p { max-width: 560px; }

.b-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.b-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  background: #1D1D1D; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 16px;
}
.b-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.b-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 0.92rem; min-width: 0;
}
.b-sort { flex-shrink: 0; }
.b-create {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.b-create:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(225, 6, 0, 0.35); }
.b-create svg { width: 16px; height: 16px; }

.b-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.b-count { color: var(--muted); font-size: 0.85rem; margin: 14px 0 10px; }

.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .b-grid { grid-template-columns: 1fr; } }

.b-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #1D1D1D; border: 1px solid var(--border); border-radius: 20px;
  padding: 18px;
  transition: transform var(--transition-smooth), border-color var(--transition), box-shadow var(--transition-smooth);
}
.b-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.b-card-mine { border-color: rgba(225, 6, 0, 0.45); }

.b-card-top { display: flex; gap: 12px; align-items: flex-start; }
.b-icon { flex-shrink: 0; }
.b-icon img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.b-top-text { min-width: 0; }
.b-cat { display: block; color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.b-title { margin: 2px 0 0; font-size: 1.02rem; line-height: 1.3; }

.b-price { margin: 0; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.02em; }
.b-vb { font-size: 0.72rem; color: var(--muted); font-family: var(--font-body, inherit); font-weight: 600; vertical-align: middle; }

.b-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.b-badge {
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: var(--text-2); border: 1px solid var(--border);
}
.b-badge-neuwertig { color: #6FCF7A; border-color: rgba(111, 207, 122, 0.4); }
.b-badge-bastler { color: #FFA94D; border-color: rgba(255, 169, 77, 0.4); }
.b-badge-mine { color: var(--accent); border-color: rgba(225, 6, 0, 0.45); }

.b-desc {
  margin: 0; color: var(--text-2); font-size: 0.88rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.b-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; color: var(--muted); font-size: 0.8rem; }
.b-meta svg { width: 14px; height: 14px; }
.b-dot { opacity: 0.6; }

.b-actions { margin-top: auto; padding-top: 4px; }
.b-act {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-family: inherit; font-size: 0.85rem; font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.b-act svg { width: 15px; height: 15px; }
.b-act-contact:hover { border-color: var(--accent); background: rgba(225, 6, 0, 0.12); }
.b-act-delete:hover { border-color: #FFA94D; background: rgba(255, 169, 77, 0.1); }

/* Anzeige-Formular */
.b-form {
  margin-top: 14px; padding: 20px;
  background: #1D1D1D; border: 1px solid rgba(225, 6, 0, 0.35); border-radius: 20px;
}
.b-form h3 { margin: 0 0 14px; font-family: var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.b-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .b-form-grid { grid-template-columns: 1fr; } }
.b-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-2); }
.b-field-wide { grid-column: 1 / -1; }
.b-field input[type="text"], .b-field input[type="number"], .b-field select, .b-field textarea {
  background: #141414; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 0.92rem; padding: 10px 12px;
}
.b-field input:focus, .b-field select:focus, .b-field textarea:focus { outline: none; border-color: var(--accent); }
.b-field textarea { resize: vertical; }
.b-field-check { flex-direction: row; align-items: center; gap: 10px; padding-top: 22px; }
.b-field-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.b-form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.b-submit {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font-family: inherit; font-weight: 700;
}
.b-cancel {
  background: transparent; color: var(--text-2); border: 1px solid var(--border); cursor: pointer;
  padding: 12px 20px; border-radius: 999px; font-family: inherit; font-weight: 600;
}
.b-form-note { margin: 12px 0 0; color: var(--muted); font-size: 0.78rem; }

/* =========================================================
   Chat-System (FAB + Panel) — scripts/chat.js
   ========================================================= */
.chat-fab {
  position: fixed; right: 20px; bottom: 24px; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #1D1D1D; border: 1px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition), border-color var(--transition);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); border-color: var(--accent); }
.chat-fab img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid #0E0E0E;
}
@media (max-width: 959px) {
  .chat-fab { bottom: 88px; } /* über der Bottom-Nav */
}

.chat-panel {
  position: fixed; right: 20px; bottom: 96px; z-index: 1200;
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  background: #161616; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
@media (max-width: 959px) {
  .chat-panel { bottom: 160px; height: min(480px, calc(100vh - 220px)); }
}

.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: #1D1D1D;
}
.chat-head strong { font-family: var(--font-display); letter-spacing: 0.04em; font-size: 1.05rem; }
.chat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head .chat-icon-btn:last-child { margin-left: auto; }
.chat-head-text + .chat-icon-btn { margin-left: 0 !important; }
.chat-icon-btn {
  background: transparent; border: none; color: var(--text-2); cursor: pointer;
  font-size: 1.05rem; line-height: 1; padding: 6px 8px; border-radius: 10px;
}
.chat-icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.chat-context {
  color: var(--muted); font-size: 0.72rem; font-style: normal;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.chat-body { flex: 1; overflow-y: auto; padding: 12px; }
.chat-body-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px; color: var(--text-2);
}
.chat-hero-icon { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.chat-empty { color: var(--muted); font-size: 0.88rem; line-height: 1.5; padding: 10px 6px; }

.chat-thread {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 12px 8px; cursor: pointer; text-align: left; color: var(--text); font-family: inherit;
}
.chat-thread:hover { background: rgba(255, 255, 255, 0.04); }
.chat-avatar {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #E10600, #8f0400); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.chat-thread-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-thread-text strong { font-size: 0.95rem; }
.chat-preview {
  color: var(--muted); font-size: 0.82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-thread-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-thread-meta time { color: var(--muted); font-size: 0.72rem; }
.chat-unread {
  min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

.chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; }
.chat-msg p { margin: 0; font-size: 0.9rem; line-height: 1.45; word-break: break-word; }
.chat-msg span { display: block; margin-top: 3px; font-size: 0.66rem; color: rgba(255, 255, 255, 0.55); }
.chat-msg-me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg-them { align-self: flex-start; background: #262626; color: var(--text); border-bottom-left-radius: 6px; }
.chat-msg-them span { color: var(--muted); }

.chat-composer {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #1D1D1D;
}
.chat-composer input {
  flex: 1; min-width: 0; background: #141414; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text); font-family: inherit; font-size: 0.92rem; padding: 11px 16px;
}
.chat-composer input:focus { outline: none; border-color: var(--accent); }
.chat-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: 11px 16px; font-family: inherit; font-weight: 700; font-size: 0.88rem;
}
.chat-send svg { width: 17px; height: 17px; }
.chat-send:hover { filter: brightness(1.1); }

.chat-new { padding: 6px 4px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.chat-new-form { display: flex; gap: 8px; }
.chat-new-form select {
  flex: 1; min-width: 0; background: #141414; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 0.9rem; padding: 10px 12px;
}

/* =========================================================
   Nachträge: ws-mode mobil, Feuerplatten-Multi-Kachel,
   Maskottchen-Schließen, Börse-Fotos
   ========================================================= */

/* ws-mode: auf schmalen Screens umbrechen statt abschneiden */
@media (max-width: 700px) {
  .ws-mode { flex-wrap: wrap; justify-content: center; width: auto; max-width: 100%; border-radius: 24px; }
  .ws-mode-btn { padding: 9px 13px; font-size: 0.84rem; gap: 6px; }
  .ws-mode-btn img { width: 20px; height: 20px; }
}

/* Feuerplatten-Kachel mit mehreren Anbieter-Links */
.wsshop-tile-multi { cursor: default; }
.wsshop-multi-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.wsshop-multi-links a {
  color: var(--muted); font-size: 0.72rem; font-weight: 600; text-decoration: none;
  padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px;
  transition: color var(--transition), border-color var(--transition);
}
.wsshop-multi-links a:hover { color: var(--text); border-color: var(--accent); }

/* Maskottchen: Schließen-X (nur sichtbar, solange Glutzi da ist) */
.mascot-close {
  position: absolute; top: -10px; right: -10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: #1D1D1D; color: var(--text-2); border: 1px solid var(--border);
  font-size: 0.72rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition), color var(--transition);
}
.mascot.show .mascot-close { opacity: 1; pointer-events: auto; }
.mascot-close:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

/* Börse: Fotos im Formular + auf der Karte */
.b-photo-add {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; width: fit-content;
  background: #141414; border: 1px dashed var(--border); border-radius: 12px;
  color: var(--text-2); font-size: 0.88rem; padding: 10px 14px;
  transition: border-color var(--transition), color var(--transition);
}
.b-photo-add:hover { border-color: var(--accent); color: var(--text); }
.b-photo-add input { display: none; }
.b-photo-add svg { width: 18px; height: 18px; }
.b-photo-hint { color: var(--muted); font-size: 0.8rem; }
.b-photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.b-photo-thumb { position: relative; }
.b-photo-thumb img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); display: block;
}
.b-photo-thumb button {
  position: absolute; top: -7px; right: -7px; width: 20px; height: 20px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 0.62rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.b-photos { margin: -4px 0 2px; }
.b-photo-cover {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border); display: block;
}
.b-photo-row { display: flex; gap: 6px; margin-top: 6px; }
.b-photo-row img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Rechtstexte (legal.js) + Gewinnspiel (gewinnspiel.js)
   ========================================================================== */

/* ---------- Link-Buttons in Fließtext & Footer ---------- */
.footer-legal { margin-top: 6px; }
.footer-legal button,
.auth-legal-hint button,
.legal-modal-body button[data-legal],
.gws-consent button[data-legal],
.gws-legal-line button[data-legal] {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-decoration: underline; cursor: pointer;
  text-underline-offset: 2px;
}
.footer-legal button:hover,
.auth-legal-hint button:hover,
.legal-modal-body button[data-legal]:hover,
.gws-consent button[data-legal]:hover,
.gws-legal-line button[data-legal]:hover { color: var(--accent); }

.auth-legal-hint { margin-top: 10px; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ---------- Legal-Modal ---------- */
.legal-modal-card { max-width: 720px; }
.legal-modal-body { font-size: 0.92rem; line-height: 1.65; color: var(--text-2); }
.legal-modal-body h3 {
  margin: 20px 0 6px; font-size: 1.02rem; color: var(--text);
  font-family: var(--font-condensed, inherit); letter-spacing: 0.02em;
}
.legal-modal-body h3:first-child { margin-top: 4px; }
.legal-modal-body p { margin: 0 0 10px; }
.legal-modal-body ul { margin: 0 0 10px; padding-left: 20px; }
.legal-modal-body li { margin-bottom: 5px; }
.legal-modal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-modal-body a:hover { color: var(--accent); }
.legal-intro {
  padding: 12px 14px; border-radius: var(--radius-xs);
  background: var(--surface); border: 1px solid var(--border);
}
.legal-stand { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Gewinnspiel: Karte am Start-Hub ---------- */
.gws-section { margin: 0; }
.gws-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; text-align: left;
  padding: 22px 24px; border-radius: 24px;
  background:
    radial-gradient(140% 180% at 100% 0%, rgba(255, 190, 90, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(225, 6, 0, 0.18), rgba(29, 29, 29, 0.6) 62%);
  border: 1px solid rgba(255, 170, 70, 0.45);
  box-shadow: 0 14px 40px rgba(225, 6, 0, 0.14);
  color: var(--text);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
button.gws-card { cursor: pointer; }
button.gws-card:hover { transform: translateY(-2px); border-color: rgba(255, 190, 90, 0.75); box-shadow: 0 18px 50px rgba(255, 150, 40, 0.22); }
button.gws-card:active { transform: scale(0.99); }
.gws-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gws-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #ffbe5a;
}
.gws-eyebrow svg { width: 14px; height: 14px; }
.gws-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1.05;
}
.gws-accent { color: var(--accent); }
.gws-sub { font-size: 0.9rem; color: var(--text-2); max-width: 46ch; }
.gws-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.gws-badge {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.gws-countdown { font-size: 0.82rem; font-weight: 600; color: #ffbe5a; }
.gws-card-media {
  flex-shrink: 0; width: 128px; height: 150px; border-radius: 18px;
  display: grid; place-items: center; padding: 6px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 170, 70, 0.18), rgba(18, 17, 16, 0.92) 72%);
  border: 1px solid rgba(255, 170, 70, 0.5);
  box-shadow: 0 0 26px rgba(255, 150, 40, 0.2);
}
.gws-card-media.gws-noimg { display: none; }
.gws-card-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55)); }
.gws-card-ended { opacity: 0.75; }
.gws-legal-line { margin: 8px 4px 0; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 560px) {
  .gws-card { padding: 18px; gap: 14px; }
  .gws-card-media { width: 94px; height: 112px; border-radius: 14px; }
}

/* ---------- Gewinnspiel: Modal ---------- */
.gws-modal-card { max-width: 640px; }
.gws-hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.gws-hero-img {
  flex-shrink: 0; width: 150px; max-height: 190px; object-fit: contain;
  border-radius: var(--radius-sm);
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 170, 70, 0.14), rgba(18, 17, 16, 0.9) 75%);
  border: 1px solid rgba(255, 170, 70, 0.4);
  padding: 8px;
}
.gws-hero-lead { margin: 0 0 10px; line-height: 1.55; color: var(--text-2); }
.gws-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gws-facts li {
  padding: 8px 12px; border-radius: var(--radius-xs); font-size: 0.88rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.gws-facts strong { color: var(--text); }
@media (max-width: 560px) {
  .gws-hero { flex-direction: column; align-items: center; text-align: left; }
  .gws-hero-img { width: 180px; }
}
.gws-form { display: flex; flex-direction: column; gap: 12px; }
.gws-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gws-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.82rem; color: var(--text-2); line-height: 1.5; cursor: pointer;
}
.gws-consent input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; }
.gws-error { margin: 0; font-size: 0.85rem; color: #ff9d94; font-weight: 600; }
.gws-submit { width: 100%; }
.gws-done-note { padding: 12px 14px; border-radius: var(--radius-xs); background: var(--surface); border: 1px solid var(--border); }

/* ---------- Gewinnspiel: Erfolg ---------- */
.gws-success { text-align: center; padding: 8px 4px 4px; }
.gws-success-icon { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.gws-success h3 { margin: 0 0 8px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.5rem; }
.gws-success p { margin: 0 0 10px; color: var(--text-2); }
.gws-mail-note { font-size: 0.9rem; }
.gws-mail-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin: 4px 0 10px; }
.gws-success .gws-legal-line { margin-top: 10px; }

/* ---------- Partner-Gruppen-Karte (z. B. Feuerplatten: GuC / James Flames / Fennek) ---------- */
.partner-card-multi { cursor: default; }
.partner-multi-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.partner-multi-links a {
  color: var(--text-2); font-size: 0.78rem; font-weight: 700; text-decoration: none;
  padding: 5px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  transition: color var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}
.partner-multi-links a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* ==========================================================================
   Willi-Tour (tutorial.js) — geführte Erst-Tour durch die App
   ========================================================================== */
#tutorial-root { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.tut-card {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(520px, calc(100vw - 24px));
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 14px 16px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(46, 24, 16, 0.97), rgba(20, 18, 17, 0.97) 55%);
  border: 1px solid rgba(255, 150, 60, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 34px rgba(225, 6, 0, 0.22);
  color: var(--text);
  pointer-events: auto;
  animation: tut-in 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}
@keyframes tut-in {
  from { opacity: 0; transform: translateX(-50%) translateY(26px) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.tut-willi {
  width: 84px; height: 84px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: tut-bounce 2.6s ease-in-out infinite;
}
@keyframes tut-bounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tut-card { animation: none; }
  .tut-willi { animation: none; }
}
.tut-close {
  position: absolute; top: 10px; right: 12px;
  appearance: none; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1rem; line-height: 1; padding: 4px;
}
.tut-close:hover { color: var(--text); }
.tut-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tut-progress { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: #ffbe5a; }
.tut-title { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.3rem; line-height: 1.1; }
.tut-text { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--text-2); }
.tut-witz {
  margin: 2px 0 0; padding: 8px 12px; border-radius: var(--radius-xs);
  background: rgba(255, 190, 90, 0.12); border: 1px dashed rgba(255, 190, 90, 0.45);
  font-size: 0.85rem; line-height: 1.45; color: #ffd9a0; font-style: italic;
}
.tut-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tut-spacer { flex: 1; }
.tut-btn-primary {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 9px 18px; font: inherit; font-weight: 800; font-size: 0.88rem;
  background: var(--accent); color: #fff;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.tut-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(225, 6, 0, 0.4); }
.tut-btn-ghost {
  appearance: none; cursor: pointer; border-radius: 999px;
  padding: 8px 14px; font: inherit; font-weight: 600; font-size: 0.85rem;
  background: none; border: 1px solid var(--border-strong); color: var(--text-2);
}
.tut-btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.tut-btn-witz {
  appearance: none; cursor: pointer; border-radius: 999px;
  padding: 8px 12px; font: inherit; font-weight: 700; font-size: 0.8rem;
  background: rgba(255, 190, 90, 0.14); border: 1px solid rgba(255, 190, 90, 0.5); color: #ffbe5a;
  transition: background var(--transition-smooth);
}
.tut-btn-witz:hover { background: rgba(255, 190, 90, 0.26); }
.tut-skip {
  appearance: none; background: none; border: 0; cursor: pointer;
  align-self: center; margin-top: 2px; padding: 4px;
  font: inherit; font-size: 0.76rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px;
}
.tut-skip:hover { color: var(--text); }

/* Aufleuchtender Nav-Tab / hervorgehobenes Ziel während der Tour */
.tut-glow { position: relative; }
.view-tab.tut-glow, .bottom-tab.tut-glow {
  box-shadow: 0 0 0 2px rgba(255, 170, 70, 0.9), 0 0 22px rgba(255, 150, 40, 0.55);
  border-radius: 14px;
  animation: tut-pulse 1.4s ease-in-out infinite;
}
#gewinnspiel-card .gws-card.tut-glow,
.gws-card.tut-glow {
  box-shadow: 0 0 0 3px rgba(255, 190, 90, 0.9), 0 0 40px rgba(255, 150, 40, 0.5);
  animation: tut-pulse 1.4s ease-in-out infinite;
}
@keyframes tut-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

/* Mobile: Karte über der Bottom-Nav platzieren, Willi etwas kleiner */
@media (max-width: 700px) {
  .tut-card { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 14px 14px 12px; }
  .tut-willi { width: 62px; height: 62px; }
  .tut-title { font-size: 1.15rem; }
}

/* Willis Sprechblase: Umbruch/Breite direkt in der Hauptregel (.mascot-bubble oben) geregelt. */

/* ---------- Sichtbarer Gewähr-/Sicherheits-Hinweis (Rezept-Modal + KI-Ergebnis) ---------- */
.modal-disclaimer {
  margin: 16px 0 0; padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem; line-height: 1.5; color: var(--muted);
}

/* ---------- Gefahren-Aktion (Konto löschen) ---------- */
.btn-danger { color: #ff9d94; border-color: rgba(255, 120, 110, 0.45); }
.btn-danger:hover { color: #fff; background: rgba(225, 6, 0, 0.25); border-color: rgba(255, 120, 110, 0.8); }

/* ---------- Transparenzhinweis KI-Küche (AI-Act-/UWG-Absicherung) ---------- */
.ai-transparency {
  margin: 0 0 4px; padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--surface); border: 1px dashed var(--border-strong);
  font-size: 0.78rem; line-height: 1.5; color: var(--muted);
}
.ai-transparency strong { color: var(--text-2); }

/* ---------- Beta-Kennzeichnung (Community/Chat/Börse bis zum Auth-Umbau) ---------- */
.beta-pill {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--font); font-size: 0.55em; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 190, 90, 0.16); color: #ffbe5a;
  border: 1px solid rgba(255, 190, 90, 0.5);
}

/* ---------- Kontaktformular (im Legal-Modal, legal.js → TEXTS.kontakt) ---------- */
.kontakt-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.kontakt-form .pe-field select {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-xs);
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font: inherit;
}
.kontakt-form .auth-legal-hint { text-align: left; margin-top: 2px; }
#kontakt-success { margin-bottom: 18px; }

/* ---------- Library-Nachladen (iOS-Speicher-Fix, recipes.js) ---------- */
.library-loader {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 0 8px;
}
.library-progress { font-size: 0.82rem; color: var(--muted); }

/* ---------- Fennek-Rabattcode auf der Shop-Kachel + Partner-Karte ---------- */
.wsshop-code {
  display: inline-block; margin-top: 8px; padding: 4px 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 190, 90, 0.14); color: #ffbe5a;
  border: 1px dashed rgba(255, 190, 90, 0.55);
}
.wsshop-code b { color: #fff; letter-spacing: 0.06em; }
.partner-code-hint {
  display: block; margin-top: 6px; font-size: 0.74rem; font-weight: 700; color: #ffbe5a;
}

/* ---------- Herzensprojekt (Charity — bewusst KEIN Werbe-Look) ---------- */
.charity-card {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 214, 90, 0.07);
  border: 1px solid rgba(255, 214, 90, 0.35);
}
.charity-heart { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.charity-text strong { display: block; margin-bottom: 4px; color: var(--text); }
.charity-text p { margin: 0; font-size: 0.9rem; color: var(--text-2); line-height: 1.5; }
.charity-text a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.charity-text a:hover { color: #ffd65a; }

/* Herzensprojekt global über dem Footer (auf jeder Seite sichtbar) */
.charity-card-global { margin: 34px 0 6px; }

/* =========================================================
   Compliance-UI (Audit August 2026): Skip-Link, Fokus,
   Melde-Modal, Consent-Einstellungen, Börse-Kennzeichnung,
   Upload-Hinweise, Grill-Score-Disclaimer, Moderation.
   ========================================================= */

/* ----- Skip-Link (WCAG 2.4.1) ----- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

/* ----- Sichtbarer Tastatur-Fokus (WCAG 2.4.7) ----- */
:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Grill-Score-Disclaimer (unverbindliche Orientierung) ----- */
.score-disclaimer {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 560px;
}
.score-disclaimer a { color: var(--text-2); }

/* ----- Melden-Buttons (Feed-Header, Kommentare, Post-Modal) ----- */
.glut-head-act {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
}
.glut-head-act:hover { color: var(--text); border-color: var(--border-strong); }
.glut-head-act svg { width: 15px; height: 15px; }
.glut-follow + .glut-head-act { margin-left: 10px; }

.post-comment { position: relative; padding-right: 30px; }
.post-comment-act {
  position: absolute;
  right: 0;
  top: 2px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 4px;
}
.post-comment-act:hover { color: var(--text); }

.post-action-delete { color: var(--muted); }

/* ----- Melde-Modal (melden.js) ----- */
.report-modal-card { max-width: 560px; }
.report-modal-body { padding: 4px 22px 26px; overflow-y: auto; }
.report-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.report-target {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.report-target-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-target-sub { color: var(--text-2); font-size: 0.85rem; }
.report-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .report-identity { grid-template-columns: 1fr; } }
.report-optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

/* ----- Consent-Einstellungen (Datenschutz-Einstellungen) ----- */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.consent-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.consent-text strong { color: var(--text); }
.consent-text span { color: var(--text-2); font-size: 0.85rem; line-height: 1.5; }
.consent-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; }
.consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.001;
  cursor: pointer;
}
.consent-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a3835;
  border: 1px solid var(--border-strong);
  transition: background 160ms ease;
  pointer-events: none;
}
.consent-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #cfc9c2;
  transition: transform 160ms ease, background 160ms ease;
}
.consent-switch input:checked + .consent-slider { background: var(--accent); }
.consent-switch input:checked + .consent-slider::after { transform: translateX(19px); background: #fff; }
.consent-switch input:focus-visible + .consent-slider { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.consent-switch-fixed .consent-slider { opacity: 0.55; }
.consent-note { min-height: 1.2em; color: #7fc98a; font-size: 0.85rem; }

/* ----- Rechte-/Upload-Hinweise & Consent-Zeilen ----- */
.upload-rights-hint,
.gws-consent-links {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
}
.upload-rights-hint button,
.gws-consent-links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
}
.auth-terms { margin-top: 6px; }

/* ----- Börse: Kennzeichnung & Melden ----- */
.b-badge-gewerblich { background: #4d3620; color: #ffce8a; }
.b-badge-privat { background: #2c2a28; color: var(--text-2); }
.b-gewerbe-info { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-2); }
.b-act-report { color: var(--muted); }
.b-field-hint { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }

/* ----- Profil: Datenschutz & Konto ----- */
.pe-privacy-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----- Lektion/Profil melden ----- */
.lesson-btn-report { color: var(--muted); }
.pp-report-btn { margin-top: 8px; }

/* ----- Footer-Rechtslinks: Links wie Buttons stylen ----- */
.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- Admin: Moderations-Formular ----- */
.admin-row-block { flex-wrap: wrap; }
.mod-remove-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
}
.mod-remove-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }

/* ----- Bewegung reduzieren: neue Elemente ----- */
@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
  .consent-slider, .consent-slider::after { transition: none; }
}

/* =========================================================
   Willshoppen: Lebensmittel-Modus (Fleisch/Gemüse) —
   Platzhalter-Panels, Inhalte folgen später.
   ========================================================= */
.lm-cats { margin: 6px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.lm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 24px 64px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 20px;
}
.lm-empty img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.lm-empty h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.6rem;
}
.lm-empty p { margin: 0; color: var(--text-2); line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .lm-empty img { transition: transform 240ms ease; }
  .lm-empty:hover img { transform: translateY(-4px) rotate(-2deg); }
}

/* =========================================================
   Wetter-Radar (EIN Bereich: Regenradar-Karte + 3D-Globus)
   ========================================================= */

/* --- Ansichts-Umschalter (Radar | 3D-Globus) im Section-Head --- */
.radar-mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.radar-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.radar-mode-btn:hover { color: var(--text); }
.radar-mode-btn.is-active {
  background: var(--accent);
  color: #fff;
}

/* --- Regenradar-Karte --- */
.rainmap-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.rainmap-canvas {
  width: 100%;
  height: clamp(360px, 54vh, 560px);
  background: #101418;
}
/* Basis-Kacheln (OSM) dunkel einfärben — der Filter liegt NUR auf dem
   eigenen Basis-Pane (rain-radar.js → createPane), Radar-Farben bleiben. */
.rainmap-base-pane {
  filter: invert(1) hue-rotate(190deg) saturate(0.32) brightness(0.82) contrast(0.92);
}
/* Leaflet-Elemente an das dunkle Theme angleichen.
   (Spezifität bewusst über Leaflets ".leaflet-container .leaflet-control-…",
   da leaflet.css NACH main.css geladen wird.) */
.rainmap-card .leaflet-container .leaflet-control-attribution {
  background: rgba(14, 14, 14, 0.82);
  color: #c9c4be;
  font-size: 0.68rem;
}
.rainmap-card .leaflet-container .leaflet-control-attribution a { color: #eae6e0; }
.rainmap-card .leaflet-container .leaflet-bar a {
  background: #1d1d1d;
  color: #eae6e0;
  border-color: #2c2a28;
}
.rainmap-card .leaflet-container .leaflet-bar a:hover { background: #262523; }

/* Standort-Chip oben links (nutzt die globe-chip-Optik, aber über den
   Leaflet-Panes). */
.rainmap-chip { z-index: 900; }

/* Niederschlags-Legende: rechts unten über der Zeitleiste. */
.rainmap-legend {
  position: absolute;
  right: 14px;
  bottom: 92px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(14, 14, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.rainmap-legend-title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.rainmap-legend-bar {
  display: block;
  width: 120px;
  height: 7px;
  border-radius: 999px;
  /* Farbverlauf angelehnt an RainViewer-Schema „Universal Blue". */
  background: linear-gradient(90deg, #88d5f2, #4aa8e8, #2e6fd8, #7b51c7, #d54f8f);
}
.rainmap-legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--muted);
}

/* Zeitleiste unten (Play + Schieber mit Zeitmarken + Uhrzeit). */
.rainmap-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 900; /* über den Leaflet-Panes */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 22px;
  border-radius: 20px;
  background: rgba(14, 14, 16, 0.86);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rainmap-play {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}
.rainmap-play:hover { transform: scale(1.06); }
.rainmap-play.is-playing { background: #2c2a28; }
.rainmap-play svg { width: 18px; height: 18px; }
.rainmap-track {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: center;
}
.rainmap-slider {
  width: 100%;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  outline-offset: 4px;
  cursor: pointer;
}
.rainmap-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.rainmap-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.rainmap-slider:disabled { opacity: 0.5; cursor: wait; }
/* Zeitmarken unter der Schiene (rain-radar.js → renderTicks). */
.rainmap-ticks {
  position: absolute;
  left: 10px;   /* Thumb-Breite ausgleichen */
  right: 10px;
  top: 100%;
  height: 14px;
  pointer-events: none;
}
.rainmap-tick {
  position: absolute;
  transform: translateX(-50%);
  margin-top: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rainmap-tick-now { color: var(--text); font-weight: 700; }
.rainmap-time {
  flex-shrink: 0;
  min-width: 96px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  align-self: center;
}
/* Neuester Frame = live: pulsierender roter Punkt vor der Uhrzeit. */
.rainmap-time.is-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
  animation: rainmap-live-pulse 1.8s ease-out infinite;
}
@keyframes rainmap-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

/* --- Klartext-Zusammenfassung unter dem Radar (app.js → updateWeatherRadar) --- */
.radar-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 13px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.5;
}
.radar-summary:empty { display: none; }
.radar-summary strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}
.radar-summary.tone-dry strong { color: #63d68d; }
.radar-summary.tone-incoming strong { color: #93bdff; }
.radar-summary.tone-rain strong { color: #74a8f0; }

@media (max-width: 560px) {
  .rainmap-legend { display: none; } /* Mobile: Karte frei halten */
  .rainmap-controls { left: 8px; right: 8px; bottom: 8px; padding: 8px 12px 20px; gap: 10px; }
  .rainmap-time { min-width: 74px; font-size: 0.8rem; }
  .rainmap-tick { font-size: 0.58rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rainmap-play { transition: none; }
  .rainmap-play:hover { transform: none; }
  .rainmap-time.is-live::before { animation: none; }
}

/* =========================================================
   Rabattcodes: Sticky-Button (Start-Hub) + Modal
   ========================================================= */
/* Der Button ist NUR am Start-Hub sichtbar (rein per CSS über data-view). */
.rabatt-fab { display: none; }
body[data-view="start"] .rabatt-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 58; /* unter Maskottchen Willi (60) — er darf den Button überdecken */
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 12px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: background 160ms ease, transform 160ms ease;
}
body[data-view="start"] .rabatt-fab:hover { background: var(--accent-strong); transform: translateY(-2px); }
body[data-view="start"] .rabatt-fab:active { transform: scale(0.96); }
.rabatt-fab-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}
@media (max-width: 959px) {
  body[data-view="start"] .rabatt-fab { left: 16px; bottom: 84px; } /* über der Bottom-Nav */
}

.rabatt-modal-card { max-width: 560px; }
.rabatt-intro {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-xs, 12px);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}
.rabatt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.rabatt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.rabatt-emoji { font-size: 1.4rem; flex-shrink: 0; }
.rabatt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rabatt-info strong { font-size: 0.98rem; }
.rabatt-info small { color: var(--muted); font-size: 0.78rem; }
.rabatt-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.rabatt-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  background: rgba(225, 6, 0, 0.08);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.rabatt-code:hover { border-color: var(--accent); background: rgba(225, 6, 0, 0.16); }
.rabatt-code.is-copied {
  border-color: #63d68d;
  background: rgba(78, 200, 120, 0.14);
  color: #63d68d;
}
.rabatt-code svg { width: 14px; height: 14px; opacity: 0.7; }
.rabatt-shoplink {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rabatt-shoplink:hover { color: var(--text); }
@media (max-width: 480px) {
  .rabatt-row { flex-wrap: wrap; }
  .rabatt-actions { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
