:root {
  --ink: #596782;
  --slate: #7a86a3;
  --slate-dark: #596782;
  --pink: #f198b8;
  --pink-soft: #fbc1d5;
  --green: #47776a;
  --paper: #ffffff;
  --card: #ffffff;
  --muted: #7a86a3;
  --border: #dfe3ec;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif; transition: background-color 180ms ease, color 180ms ease; }
button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.main-content { padding-block: 36px 56px; }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgb(122 134 163 / 16%); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 8px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-logo-wrap { width: 54px; height: 62px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgb(122 134 163 / 14%); border-radius: 13px; background: white; padding: 4px; box-shadow: 0 7px 18px rgb(122 134 163 / 10%); }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { margin: 0; color: var(--slate); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.18em; }
.brand-detail { margin: 2px 0 0; color: var(--pink); font-size: 0.78rem; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.theme-toggle { width: 42px; height: 42px; display: grid; flex: none; place-items: center; border: 1px solid rgb(122 134 163 / 22%); border-radius: 50%; background: #fff7fa; color: var(--slate-dark); cursor: pointer; transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.theme-toggle:hover { border-color: var(--pink); background: #fff0f5; transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 3px solid rgb(241 152 184 / 32%); outline-offset: 3px; }
.theme-icon { width: 20px; height: 20px; }
.theme-icon-sun { display: none; }
.data-status { display: inline-flex; align-items: center; gap: 8px; color: var(--slate); font-size: 0.82rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--pink-soft); box-shadow: 0 0 0 4px rgb(251 193 213 / 25%); }
.status-dot.is-live { background: var(--green); box-shadow: 0 0 0 4px rgb(71 119 106 / 13%); }

.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.intro-copy { padding-block: 14px; }
.eyebrow { margin: 0 0 8px; color: var(--pink); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.intro-copy h1 { margin: 0; max-width: 720px; color: var(--slate); font: 500 clamp(2.45rem, 5vw, 5.2rem)/0.97 "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.045em; }
.intro-text { margin: 20px 0 0; max-width: 600px; color: var(--slate); font-size: 1.08rem; line-height: 1.65; }
.food-banner { position: relative; min-height: 250px; overflow: hidden; border-radius: 28px 28px 90px 28px; background: var(--slate); box-shadow: 0 24px 60px rgb(122 134 163 / 20%); }
.food-banner picture { display: block; width: 100%; height: 100%; }
.food-banner img { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.image-wash { position: absolute; inset: 0; background: linear-gradient(120deg, rgb(122 134 163 / 10%), transparent 52%, rgb(241 152 184 / 22%)); pointer-events: none; }

.safety-notice { display: flex; gap: 12px; align-items: flex-start; margin: 30px 0; border: 1px solid var(--pink-soft); border-left: 5px solid var(--pink); border-radius: 14px; background: #fff7fa; padding: 16px 18px; color: #675362; }
.safety-notice svg { width: 21px; height: 21px; flex: none; margin-top: 2px; }
.safety-notice p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

.finder-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 26px; align-items: start; }
.filter-panel { position: sticky; top: 94px; border: 1px solid rgb(122 134 163 / 18%); border-radius: 22px; background: var(--card); padding: 24px; box-shadow: 0 14px 42px rgb(122 134 163 / 10%); }
.filter-heading, .results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.filter-heading h2, .results-heading h2 { margin: 0; color: var(--slate-dark); font: 500 1.7rem "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; }
.reset-button { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; background: transparent; padding: 8px 10px; color: #b9577a; font-weight: 800; cursor: pointer; }
.reset-button:hover { background: #fff1f6; }
.reset-button svg { width: 16px; height: 16px; }
.filter-group { display: grid; gap: 8px; margin-top: 22px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter-group > label, .filter-group legend { color: var(--slate-dark); font-size: 0.9rem; font-weight: 800; }
.filter-group legend { padding: 0; }
.filter-help { margin: 0; color: var(--slate); font-size: 0.82rem; line-height: 1.45; }
.search-wrap { position: relative; }
.search-wrap > svg { position: absolute; z-index: 1; left: 13px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #738096; pointer-events: none; }
input[type="search"], select { width: 100%; min-width: 0; height: 48px; border: 1px solid #cfd4dc; border-radius: 12px; background: white; color: var(--ink); outline: none; }
input[type="search"] { padding: 0 14px 0 42px; font-size: 1rem; }
select { height: 46px; padding: 0 36px 0 12px; font-size: 0.94rem; }
input[type="search"]:focus, select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgb(241 152 184 / 18%); }
.allergen-fieldset { border: 0; padding: 0; min-width: 0; }
.allergen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 4px; }
.allergen-choice { min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 10px; border: 1px solid #dfe3ec; border-radius: 11px; background: #fbfbfd; padding: 10px 11px; color: var(--slate-dark); cursor: pointer; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.allergen-choice:hover { border-color: #9eabba; background: white; transform: translateY(-1px); }
.allergen-choice.selected { border-color: var(--pink); background: #fff1f6; color: #9f4567; }
.allergen-choice input { width: 19px; height: 19px; flex: none; margin: 0; accent-color: var(--pink); }
.allergen-choice span { min-width: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.filter-footnote { margin: 20px 0 0; border-top: 1px solid #e2e0da; padding-top: 16px; color: #6d7684; font-size: 0.78rem; line-height: 1.5; }

.results-panel { min-width: 0; }
.results-heading { margin: 2px 2px 18px; }
.result-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: #667184; font-size: 0.78rem; font-weight: 700; }
.result-key > span { display: inline-flex; align-items: center; gap: 6px; }
.key-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.key-swatch.safe { background: #2f7c63; }
.key-swatch.contains { background: var(--pink); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-card { min-width: 0; border: 1px solid rgb(122 134 163 / 18%); border-radius: 18px; background: var(--card); padding: 19px; box-shadow: 0 8px 26px rgb(122 134 163 / 7%); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.menu-card:hover { transform: translateY(-2px); border-color: rgb(241 152 184 / 55%); box-shadow: 0 14px 34px rgb(122 134 163 / 12%); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-category { margin: 2px 0 0; color: var(--pink); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.diet-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.diet-badge { display: inline-flex; align-items: center; border-radius: 999px; background: #e5f1ec; padding: 4px 8px; color: #285d4c; font-size: 0.72rem; font-weight: 800; }
.diet-badge.vegetarian { color: #49602c; background: #edf1df; }
.menu-card h3 { margin: 13px 0 18px; color: var(--slate-dark); font: 500 1.42rem/1.15 "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contains-block { border-top: 1px solid #ebe8e0; padding-top: 13px; }
.contains-label { margin: 0 0 9px; color: #717b8b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ingredient-chip { border-radius: 999px; background: #fff0f5; padding: 5px 9px; color: #a54e70; font-size: 0.76rem; font-weight: 800; line-height: 1.2; }
.none-listed { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--green); font-size: 0.85rem; font-weight: 800; }
.none-listed::before { content: "✓"; display: grid; width: 18px; height: 18px; place-items: center; border: 2px solid currentColor; border-radius: 50%; font-size: 0.7rem; }
.empty-state { min-height: 330px; border: 1px dashed #b9bec6; border-radius: 20px; background: rgb(255 254 251 / 65%); padding: 40px 20px; text-align: center; }
.empty-state:not([hidden]) { display: grid; place-items: center; align-content: center; }
.empty-state > svg { width: 36px; height: 36px; color: var(--pink); }
.empty-state h3 { margin: 16px 0 6px; font: 500 1.45rem "aktiv-grotesk", "Helvetica Neue", Arial, sans-serif; }
.empty-state p { margin: 0 0 18px; color: #687487; }
.primary-button { min-height: 44px; border: 0; border-radius: 10px; background: var(--slate); padding: 10px 17px; color: white; font-weight: 800; cursor: pointer; }
.primary-button:hover { background: var(--slate-dark); }
.site-footer { display: flex; justify-content: center; gap: 20px; margin-top: 36px; border-top: 1px solid rgb(122 134 163 / 18%); padding: 22px 2px 0; color: var(--slate); font-size: 0.84rem; text-align: center; }
.site-footer p { margin: 0; }

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #dfe5f1;
  --slate: #b9c3d6;
  --slate-dark: #f3f5fa;
  --green: #7fc0ad;
  --paper: #11141c;
  --card: #1a1f2b;
  --muted: #aeb8cb;
  --border: #343c4d;
}
html[data-theme="dark"] .site-header { border-bottom-color: rgb(185 195 214 / 14%); background: rgb(17 20 28 / 94%); }
html[data-theme="dark"] .brand-logo-wrap { border-color: rgb(241 152 184 / 26%); box-shadow: 0 7px 20px rgb(0 0 0 / 25%); }
html[data-theme="dark"] .theme-toggle { border-color: #394255; background: #202634; color: #fbc1d5; }
html[data-theme="dark"] .theme-toggle:hover { border-color: var(--pink); background: #2b2330; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .food-banner { box-shadow: 0 24px 60px rgb(0 0 0 / 36%); }
html[data-theme="dark"] .safety-notice { border-color: #5b3445; border-left-color: var(--pink); background: #2a1c24; color: #f1d9e4; }
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .menu-card { border-color: rgb(185 195 214 / 16%); box-shadow: 0 14px 42px rgb(0 0 0 / 24%); }
html[data-theme="dark"] .reset-button { color: #f5a7c4; }
html[data-theme="dark"] .reset-button:hover { background: #2d1e27; }
html[data-theme="dark"] .search-wrap > svg { color: var(--muted); }
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] select { border-color: #3b4457; background: #151a24; color: var(--ink); }
html[data-theme="dark"] input[type="search"]::placeholder { color: #8994aa; }
html[data-theme="dark"] .allergen-choice { border-color: #343c4d; background: #171c27; color: var(--ink); }
html[data-theme="dark"] .allergen-choice:hover { border-color: #68748d; background: #202634; }
html[data-theme="dark"] .allergen-choice.selected { border-color: var(--pink); background: #35212b; color: #ffc4da; }
html[data-theme="dark"] .filter-footnote,
html[data-theme="dark"] .contains-block { border-color: #343c4d; }
html[data-theme="dark"] .result-key,
html[data-theme="dark"] .contains-label,
html[data-theme="dark"] .filter-footnote,
html[data-theme="dark"] .empty-state p { color: var(--muted); }
html[data-theme="dark"] .diet-badge { background: #17352d; color: #a8dfcf; }
html[data-theme="dark"] .diet-badge.vegetarian { background: #2c351f; color: #c8d99e; }
html[data-theme="dark"] .ingredient-chip { background: #37212c; color: #ffc0d7; }
html[data-theme="dark"] .empty-state { border-color: #4b556a; background: rgb(26 31 43 / 70%); }
html[data-theme="dark"] .primary-button { background: #8f9ab5; color: #11141c; }
html[data-theme="dark"] .primary-button:hover { background: #aeb8cb; }
html[data-theme="dark"] .site-footer { border-top-color: rgb(185 195 214 / 16%); }

@media (max-width: 930px) {
  .intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .food-banner { min-height: 220px; max-height: 300px; }
  .finder-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}

@media (max-width: 650px) {
  .page-shell { width: min(100% - 22px, 1180px); }
  .main-content { padding-top: 24px; }
  .brand-logo-wrap { width: 46px; height: 54px; }
  .brand-detail { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .theme-toggle { width: 38px; height: 38px; }
  .data-status { max-width: 132px; justify-content: flex-end; text-align: right; font-size: 0.72rem; }
  .intro-copy h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .intro-text { font-size: 1rem; }
  .food-banner { min-height: 180px; border-radius: 22px 22px 58px 22px; }
  .food-banner img { min-height: 180px; }
  .safety-notice { margin-block: 22px; padding: 14px; }
  .filter-panel { border-radius: 17px; padding: 18px; }
  .filter-row, .result-grid { grid-template-columns: 1fr; }
  .results-heading { align-items: flex-end; }
  .result-key { display: none; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 390px) { .allergen-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
