/* Theme2 Home: Minimap nutzt verfügbare Höhe wie .dl-card__image (gleiche Höhe wie Dish-Bild) */
/* Hero-H1: zentral in base/widgets-headlines.css (.base-headline-h1-hero) */

/* Zeilenausrichtung: Labels und Abstände einheitlich, damit dl-input pro Zeile auf einer Linie liegen */
.home-filter-panel .base-form-label {
 min-height: 1.25rem;
 line-height: 1.25;
 display: block;
}
.home-filter-panel .screen-home-filter-field-dish,
.home-filter-panel .screen-home-filter-field-dish-open {
 display: flex;
 flex-direction: column;
 gap: 6px;
 position: relative;
}
.home-filter-panel .dl-search__fields {
 align-items: start;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.home-filter-panel .dl-search__field {
 display: flex;
 flex-direction: column;
 gap: 10px;
 width: 100%;
}

.home-filter-panel .dl-search__field,
.home-filter-panel .screen-home-filter-field-kitchen,
.home-filter-panel .screen-home-filter-field-gang,
.home-filter-panel .screen-home-filter-field-land,
.home-filter-panel .screen-home-filter-field-place,
.home-filter-panel .screen-home-filter-field-radius {
 display: flex;
 flex-direction: column;
 gap: 10px;
}

/* Alle Filter-Elemente (.dl-input, .dl-range): einheitliche Höhe 48px */
.home-filter-panel .dl-input,
.home-filter-panel .dl-range {
 min-height: 48px;
 height: 48px;
 display: flex;
 align-items: center;
 width: 100%;
 max-width: 100%;
 box-sizing: border-box;
 overflow: hidden;
}
.home-filter-panel .dl-range {
 flex-direction: column;
 justify-content: center;
 padding: 6px 12px;
 gap: 2px;
 margin-top: 0;
}
.home-filter-panel .dl-range__hint {
 margin-top: 0;
 line-height: 1;
 font-size: 0.7rem;
 order: 2;
}
.home-filter-panel .dl-range__input {
 order: 1;
 min-height: 20px;
}

.home-filter-panel {
 background: rgba(255, 255, 255, 0.95);
 border-radius: var(--dl-radius-lg);
 box-shadow: var(--dl-shadow-soft);
 padding: 18px 20px 16px;
 width: 100%;
 max-width: 100%;
 box-sizing: border-box;
 overflow-x: hidden;
}

.screen-home-main-layout {
 display: grid;
 grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
 gap: 20px;
 align-items: start;
max-width: 1440px;
margin: 0 auto;
}

.screen-home-filters-column {
 position: sticky;
 top: 20px;
 align-self: start;
 background: rgba(255, 255, 255, 0.95);
 border-radius: var(--dl-radius-lg);
 box-shadow: var(--dl-shadow-soft);
 padding: 14px;
}

.screen-home-filters-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 margin-bottom: 10px;
}

.screen-home-filters-header .base-headline-h2 {
 margin: 0;
}

.screen-home-filters-header #screen-home-filters-toggle {
 min-width: 60px;
 min-height: 40px;
 padding: 0 12px;
 border-radius: 999px;
 border: 1px solid rgba(69, 127, 61, 0.32);
 background: linear-gradient(180deg, var(--dl-bg-alt) 0%, var(--screen-home-filter-toggle-light-end) 100%);
 color: var(--dl-accent);
 font-size: 0.92rem;
 font-weight: 700;
 letter-spacing: 0.02em;
 line-height: 1;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 box-shadow: 0 8px 18px rgba(26, 38, 50, 0.08);
 transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.screen-home-filters-header #screen-home-filters-toggle:hover {
 transform: translateY(-1px);
 border-color: rgba(69, 127, 61, 0.5);
 background: linear-gradient(180deg, var(--dl-bg-alt) 0%, var(--screen-home-filter-toggle-light-hover-end) 100%);
 box-shadow: 0 10px 22px rgba(26, 38, 50, 0.12);
}

.screen-home-filters-header #screen-home-filters-toggle:focus-visible {
 outline: 0;
 border-color: var(--dl-accent);
 box-shadow: 0 0 0 3px rgba(69, 127, 61, 0.24), 0 10px 22px rgba(26, 38, 50, 0.12);
}

.screen-home-filters-body {
 display: block;
}

.screen-home-filters-column.screen-home-filters-collapsed .screen-home-filters-body {
 display: none;
}

.screen-home-filters-column.screen-home-filters-collapsed {
 padding: 10px;
}

.screen-home-filters-column.screen-home-filters-collapsed .screen-home-filters-header {
 margin-bottom: 0;
 justify-content: center;
}

.screen-home-filters-column.screen-home-filters-collapsed .screen-home-filters-header .base-headline-h2 {
 display: none;
}

.screen-home-filters-layout-collapsed .screen-home-filters-column {
 background: transparent;
 box-shadow: none;
 padding: 0;
 border-radius: 0;
}

.screen-home-filters-layout-collapsed #screen-home-filters-toggle {
 min-width: 52px;
 min-height: 52px;
 width: 52px;
 height: 52px;
 border-radius: 0 14px 14px 0;
 background: linear-gradient(180deg, var(--screen-home-filter-toggle-collapsed-start) 0%, var(--screen-home-filter-toggle-collapsed-end) 100%);
 border: 1px solid var(--screen-home-filter-toggle-collapsed-border);
 color: var(--dl-bg-alt);
 font-weight: 700;
 position: fixed;
 left: 0;
 top: 240px;
 z-index: 1200;
 box-shadow: 0 12px 26px rgba(24, 43, 23, 0.32);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 0;
 font-size: 1rem;
 letter-spacing: 0.02em;
 transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.screen-home-filters-layout-collapsed #screen-home-filters-toggle:hover,
.screen-home-filters-layout-collapsed #screen-home-filters-toggle:focus-visible {
 transform: translateX(1px);
 background: linear-gradient(180deg, var(--screen-home-filter-toggle-collapsed-hover-start) 0%, var(--screen-home-filter-toggle-collapsed-hover-end) 100%);
 border-color: var(--screen-home-filter-toggle-collapsed-hover-border);
 color: var(--dl-bg-alt);
 box-shadow: 0 14px 28px rgba(24, 43, 23, 0.36);
}

/* Desktop: eingeklappte Sidebar nimmt keine Grid-Spalte mehr ein – Ergebnisbereich volle Content-Breite */
@media (min-width: 1024px) {
 .screen-home-main-layout.screen-home-filters-layout-collapsed {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
 }

 .screen-home-main-layout.screen-home-filters-layout-collapsed > #screen-home-filters-overlay,
 .screen-home-main-layout.screen-home-filters-layout-collapsed > .screen-home-filters-overlay {
  grid-column: 1;
  grid-row: 1;
 }

 .screen-home-main-layout.screen-home-filters-layout-collapsed > .screen-home-filters-column {
  grid-column: 1;
  grid-row: 1;
  width: 0;
  max-width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  justify-self: start;
  align-self: start;
  overflow: visible;
  pointer-events: none;
  z-index: 1250;
  position: static;
  top: auto;
 }

 .screen-home-main-layout.screen-home-filters-layout-collapsed > .screen-home-filters-column #screen-home-filters-toggle {
  pointer-events: auto;
 }

 .screen-home-main-layout.screen-home-filters-layout-collapsed > .screen-home-content-column {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
 }
}

.screen-home-content-column {
 min-width: 0;
width: 100%;
}

.screen-home-filters-mobile-toggle {
 display: none;
}

.screen-home-filters-mobile-toggle__icon {
 display: inline-flex;
 flex-shrink: 0;
 align-items: center;
 justify-content: center;
 color: var(--dl-accent);
}

.screen-home-filters-mobile-toggle__icon svg {
 display: block;
}

.screen-home-filters-mobile-toggle__text {
 text-align: left;
 line-height: 1.25;
 font-weight: 600;
 letter-spacing: 0.01em;
 max-width: 10.5rem;
 white-space: normal;
}

.screen-home-filters-overlay {
 display: none;
}

/* Home-Filter: Ort, Radius, Kueche, Gang, Land, Gericht – gleicher Kasten wie .dl-range / Max-Preis */
.home-filter-panel .screen-home-filter-field-place .dl-input,
.home-filter-panel .screen-home-filter-field-radius .dl-input,
.home-filter-panel .screen-home-filter-field-kitchen .dl-input,
.home-filter-panel .screen-home-filter-field-gang .dl-input,
.home-filter-panel .screen-home-filter-field-land .dl-input,
.home-filter-panel .screen-home-filter-field-dish .dl-input,
.home-filter-panel .screen-home-filter-field-dish-open .dl-input {
 padding: 6px 12px;
 background: var(--color-background) !important;
 border: 1px solid var(--dl-border) !important;
 border-radius: var(--dl-radius-sm);
 box-shadow: none !important;
 outline: none !important;
}

.home-filter-panel .screen-home-filter-field-dish .dl-input,
.home-filter-panel .screen-home-filter-field-dish-open .dl-input {
 padding-right: 42px;
}

.home-filter-panel .screen-home-filter-field-place .dl-input:hover,
.home-filter-panel .screen-home-filter-field-radius .dl-input:hover,
.home-filter-panel .screen-home-filter-field-kitchen .dl-input:hover,
.home-filter-panel .screen-home-filter-field-gang .dl-input:hover,
.home-filter-panel .screen-home-filter-field-land .dl-input:hover,
.home-filter-panel .screen-home-filter-field-dish .dl-input:hover,
.home-filter-panel .screen-home-filter-field-dish-open .dl-input:hover {
 border-color: var(--dl-border) !important;
 box-shadow: none !important;
 outline: none !important;
}

.home-filter-panel .screen-home-filter-field-place .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-radius .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-kitchen .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-gang .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-land .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-dish .dl-input:focus-within,
.home-filter-panel .screen-home-filter-field-dish-open .dl-input:focus-within {
 border-color: var(--dl-border) !important;
 box-shadow: none !important;
 outline: none !important;
}

/* Autosuggest geoeffnet: untere Ecken ohne Radius (Dropdown-Anschluss) */
.home-filter-panel .screen-home-filter-field-dish-open .dl-input {
 border-bottom-left-radius: 0;
 border-bottom-right-radius: 0;
}

.screen-home-dish-clear-button {
 position: absolute;
 right: 10px;
 top: 50%;
 transform: translateY(-50%);
 border: 0;
 background: transparent;
 color: var(--dl-text-soft);
 font-size: 1.1rem;
 line-height: 1;
 width: 22px;
 height: 22px;
 border-radius: 999px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 z-index: 3;
}

.screen-home-dish-clear-button:hover,
.screen-home-dish-clear-button:focus-visible {
 color: var(--dl-text);
 background: rgba(0, 0, 0, 0.06);
 outline: none;
}

/* Input-Felder: transparent, damit Wrapper-Hintergrund sichtbar ist */
.screen-home-filter-field-dish input.base-form-input,
.screen-home-filter-field-dish-open input.base-form-input,
.screen-home-filter-field-place input.base-form-input,
.screen-home-filter-input-max-price {
 background: transparent !important;
 border: 0 !important;
 padding: 0 !important;
 border-radius: 0 !important;
}

/* Autosuggest-Textfelder: inneren Fokus-/Standard-Rahmen komplett entfernen (inkl. dish-open: globales Widget-input:focus) */
.screen-home-filter-field-dish input.base-form-input:focus,
.screen-home-filter-field-dish input.base-form-input:focus-visible,
.screen-home-filter-field-dish-open input.base-form-input:focus,
.screen-home-filter-field-dish-open input.base-form-input:focus-visible,
.screen-home-filter-field-place input.base-form-input:focus,
.screen-home-filter-field-place input.base-form-input:focus-visible {
 border: 0 !important;
 outline: none !important;
 box-shadow: none !important;
 background: transparent !important;
}

/* Gerichtsfeld #qDish: globales Widget-CSS input[type=text] per ID und hoechster Kontext-Spezifitaet neutralisieren */
.home-filter-panel #home-filter-field-dish input#qDish,
.home-filter-panel #home-filter-field-dish input#qDish:focus,
.home-filter-panel #home-filter-field-dish input#qDish:focus-visible {
 border: 0 !important;
 outline: none !important;
 outline-offset: 0 !important;
 box-shadow: none !important;
 padding: 0 !important;
 border-radius: 0 !important;
 background: transparent !important;
 -webkit-appearance: none;
 appearance: none;
}

/* Home-Filter: bei allen Select/Dropdown-Controls keinen inneren Rahmen anzeigen */
.home-filter-panel select.base-form-input,
.home-filter-panel select.base-form-input:focus,
.home-filter-panel select.base-form-input:focus-visible,
.home-filter-panel .dl-input > select.base-form-input,
.home-filter-panel .dl-input > select.base-form-input:focus,
.home-filter-panel .dl-input > select.base-form-input:focus-visible {
 border: 0 !important;
 outline: none !important;
 box-shadow: none !important;
 background: transparent !important;
 -webkit-appearance: none;
 appearance: none;
 display: block;
 width: 100%;
 max-width: 100%;
 min-width: 0;
 box-sizing: border-box;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 padding-right: 40px !important;
}

/* Max-Preis-Zeile: gleicher Kasten wie .dl-range (border, Radius, Fuellfarbe, Innenabstand) */
.home-filter-panel .dl-input:has(.screen-home-filter-input-max-price) {
 padding: 6px 12px;
 background: var(--color-background);
 border: 1px solid var(--dl-border);
 border-radius: var(--dl-radius-sm);
}
.home-filter-panel .dl-input:has(.screen-home-filter-input-max-price):hover {
 border-color: var(--dl-border);
}
.home-filter-panel .dl-input:has(.screen-home-filter-input-max-price):focus-within {
 border-color: var(--dl-border);
 box-shadow: none;
}

/* Preis: Zahlfeld links, Range rechts; gemeinsam eine Zeile, Breite wie Filter-Spalte */
.home-filter-panel .screen-home-filter-price-row {
 display: flex;
 flex-direction: row;
 align-items: stretch;
 gap: 8px;
 width: 100%;
 max-width: 100%;
 min-width: 0;
 box-sizing: border-box;
}

/* Zahlfeld: nur Platz fuer zwei Stellen (10–80) + €; Slider erhaelt den Rest */
.home-filter-panel .screen-home-filter-price-row > .dl-input:has(.screen-home-filter-input-max-price) {
 flex: 0 0 auto;
 width: auto;
 min-width: 0;
 max-width: min(5.5rem, 28%);
}

.home-filter-panel .screen-home-filter-price-row > .dl-range {
 flex: 1 1 0;
 min-width: 0;
 width: auto;
 margin-top: 0;
}

.home-filter-panel .screen-home-filter-price-row .screen-home-filter-input-max-price {
 flex: 0 0 auto;
 width: 2.35rem;
 min-width: 2.35rem;
 max-width: 2.85rem;
 box-sizing: border-box;
 text-align: right;
}

.home-filter-panel .screen-home-filter-price-row .screen-home-filter-input-max-price::placeholder {
 font-size: 0.68rem;
 line-height: 1.2;
}

/* Select-Felder: kein innerer Rahmen */
.screen-home-filter-field-kitchen select.base-form-input,
.screen-home-filter-field-gang select.base-form-input,
.screen-home-filter-field-land select.base-form-input,
.screen-home-filter-field-radius select.base-form-input {
 background: transparent !important;
 border: 0 !important;
 padding: 0 !important;
 border-radius: 0 !important;
 outline: none !important;
}

/* AJAX-Loading-Indicator links in Dropdown-Feldern (Kitchen/Gang/Land) */
.screen-home-filter-field-kitchen .dl-input,
.screen-home-filter-field-gang .dl-input,
.screen-home-filter-field-land .dl-input {
 position: relative;
}

.screen-home-filter-field-kitchen select.base-form-input,
.screen-home-filter-field-gang select.base-form-input,
.screen-home-filter-field-land select.base-form-input,
.screen-home-filter-field-radius select.base-form-input {
 padding-left: 28px !important;
}

/* Kitchen/Gang/Radius: linke Feld-Icons */
.screen-home-filter-field-kitchen .dl-input > .dl-input__icon,
.screen-home-filter-field-gang .dl-input > .dl-input__icon {
 left: 10px;
 right: auto;
 width: 20px;
 height: 20px;
 color: var(--dl-text-soft);
}

.screen-home-filter-field-radius .dl-input > .dl-input__icon {
 left: 10px;
 right: auto;
 width: 20px;
 height: 20px;
 color: var(--dl-text-soft);
}

.screen-home-filter-field-kitchen select.base-form-input,
.screen-home-filter-field-gang select.base-form-input {
 padding-left: 36px !important;
 padding-right: 32px !important;
}

.screen-home-filter-field-radius select.base-form-input {
 padding-left: 36px !important;
}

.screen-home-filter-field-land .dl-input > .screen-home-land-flag-icon-wrap {
 left: 10px;
 right: auto;
 width: 20px;
 height: 20px;
 color: var(--dl-text-soft);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 overflow: hidden;
 border-radius: 3px;
}

.screen-home-land-flag-icon {
 width: 20px;
 height: 14px;
 object-fit: cover;
 display: block;
 border: 1px solid var(--dl-border-soft);
 border-radius: 2px;
}

.screen-home-filter-field-land select.base-form-input {
 padding-left: 40px !important;
 padding-right: 32px !important;
}

.screen-home-dropdown-loading-gif {
 position: absolute;
 left: 10px;
 top: 50%;
 transform: translateY(-50%);
 display: none;
 align-items: center;
 justify-content: center;
 width: 14px;
 height: 14px;
 color: var(--dl-accent);
 pointer-events: none;
 z-index: 2;
}

/* Gang-Loader rechts, damit links Platz für das Icon bleibt */
.screen-home-filter-field-gang .screen-home-dropdown-loading-gif {
 left: auto;
 right: 10px;
}

.screen-home-filter-field-kitchen .screen-home-dropdown-loading-gif {
 left: auto;
 right: 10px;
}

.screen-home-filter-field-land .screen-home-dropdown-loading-gif {
 left: auto;
 right: 10px;
}

.screen-home-dropdown-loading-gif:not([hidden]) {
 display: inline-flex;
}

.screen-home-dropdown-loading-gif svg {
 animation: screen-home-dropdown-loading-spin 0.9s linear infinite;
}

@keyframes screen-home-dropdown-loading-spin {
 from { transform: rotate(0deg); }
 to { transform: rotate(360deg); }
}

.screen-home-dish-suggest-dropdown {
 position: absolute;
 background: var(--dl-bg);
 border: 0;
 border-top: none;
 border-radius: 0 0 var(--dl-radius-md) var(--dl-radius-md);
 box-shadow: var(--dl-shadow-soft);
 max-height: 300px;
 overflow-y: auto;
 overflow-x: hidden;
 z-index: 1000;
 display: none;
 width: 100%;
 left: 0;
 top: 100%;
 max-width: calc(100vw - 40px);
 box-sizing: border-box;
 word-wrap: break-word;
 word-break: break-word;
}

.screen-home-dish-suggest-dropdown-open {
 position: absolute;
 background: var(--dl-bg);
 border: 0;
 border-top: none;
 border-radius: 0 0 var(--dl-radius-md) var(--dl-radius-md);
 box-shadow: var(--dl-shadow-soft);
 max-height: 300px;
 overflow-y: auto;
 overflow-x: hidden;
 z-index: 1000;
 display: block;
 width: 100%;
 left: 0;
 top: 100%;
 max-width: calc(100vw - 40px);
 box-sizing: border-box;
 word-wrap: break-word;
 word-break: break-word;
}

.screen-home-dish-suggest-match,
.screen-home-dish-suggest-dropdown strong {
 font-weight: 700;
 border: 0 !important;
 outline: none !important;
 outline-offset: 0 !important;
 box-shadow: none !important;
 background: transparent;
}

/* Suggest-Zeilen: kein Fokus-/Hover-Rahmen um Match-Text (nur Zeilenhintergrund aus widgets-forms) */
.home-filter-panel #home-dish-suggest-dropdown .screen-home-dish-suggest-match,
.home-filter-panel #home-dish-suggest-dropdown .base-suggest-dropdown-item {
 outline: none !important;
 box-shadow: none !important;
}

/* Minimap-Spalte in Trefferkarten ausblenden; Karte nur per Button-Popup */
.screen-home-card-minimap {
 position: relative;
 overflow: hidden;
 min-height: 200px;
 display: none;
}
.base-button-secondary-screen-home-map,
.home-map-button-mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.home-pdf-menu-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 44px;
 height: 44px;
 min-width: 44px;
 min-height: 44px;
 border-radius: var(--dl-radius-md, 8px);
 color: var(--dl-text);
 border: 1px solid var(--dl-btn-ghost-border);
 background: var(--dl-bg-alt);
}
.home-pdf-menu-link:hover {
 background: var(--dl-bg-hover);
 color: var(--dl-text);
}
.home-pdf-menu-icon {
 flex-shrink: 0;
 display: block;
}
.base-button-secondary-screen-home-details {
 display: block;
 text-align: center;
 width: 100%;
}
.base-button-secondary-screen-home-map, .home-map-button-mobile-only, .base-button-secondary-screen-home-merkliste {
 width: 100%;
}
.base-merkliste-form-home {
 flex-basis: 100%;
 width: 100%;
}

/* "Jetzt geöffnet" Ja/Unwichtig-Schalter und Aktions-Buttons */
.screen-home-filter-open-now-wrap {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: 8px;
 min-height: 48px;
 width: 100%;
}
.home-filter-open-now-label {
 font-size: var(--font-size-base, 1rem);
 font-weight: 600;
 line-height: 1.25;
 color: var(--dl-text);
 white-space: normal;
 flex-shrink: 1;
 letter-spacing: 0.01em;
}
.home-filter-open-now-switch {
 display: flex;
 gap: 0;
 border-radius: var(--dl-radius-md, 8px);
 overflow: hidden;
 border: 1px solid var(--dl-btn-ghost-border);
 min-height: 44px;
 width: 100%;
}
.home-filter-open-now-option {
 margin: 0;
 border-radius: 0;
 border: none;
 min-width: 0;
 flex: 1 1 50%;
 padding: 10px 14px;
 font-size: var(--font-size-base, 1rem);
 font-weight: 500;
 line-height: 1.25;
 background: var(--dl-bg-alt);
 color: var(--dl-text);
 justify-content: center;
}
.home-filter-open-now-option[aria-pressed="true"] {
 background: var(--dl-accent);
 color: var(--dl-bg-alt);
 border-color: var(--dl-accent);
}

/* Aktionen-Zeile in Spalte 3 */
.home-filter-actions-row {
 width: 100%;
}
.home-filter-actions-row .dl-search__field--actions {
 display: flex;
 gap: 8px;
 justify-content: flex-start;
 width: 100%;
}

.screen-home-results-top-header-wrap {
 width: 100%;
 box-sizing: border-box;
}

.screen-home-results-header {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 10px;
 width: 100%;
 min-width: 0;
 flex: 1 1 auto;
 padding: 12px 14px;
 border: 1px solid var(--dl-border-soft);
 border-radius: var(--dl-radius-md);
 background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 244, 0.98) 100%);
 box-shadow: 0 6px 18px rgba(24, 43, 23, 0.06);
}

.screen-home-results-header .dl-results__info {
 display: none;
}

.screen-home-results-header #home-results-view-toggle {
 flex: 0 0 auto;
 display: inline-flex;
 align-items: center;
 justify-content: flex-start;
 flex-wrap: nowrap;
}

.screen-home-results-header #home-results-view-toggle .base-view-toggle {
 flex-wrap: nowrap;
 justify-content: flex-start;
}

#screen-home-results-title {
 margin: 0;
 display: inline-block;
 width: 100%;
 color: var(--color-headline);
 font-size: clamp(0.94rem, 1.1vw, 1.04rem);
 font-weight: 600;
 line-height: 1.35;
 padding: 7px 10px;
 border-radius: var(--dl-radius-sm);
 background: rgba(255, 255, 255, 0.92);
 border: 1px solid rgba(24, 43, 23, 0.08);
}

/* Sort-Toolbar: erste Zeile Gruppierung (segmentierte Schalter), zweite Zeile Sort-Chips */
.screen-home-sort-toolbar {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: flex-start;
 flex-wrap: nowrap;
 gap: 12px;
 width: 100%;
 max-width: 100%;
 box-sizing: border-box;
}

.screen-home-sort-toolbar #home-results-view-toggle {
 flex: 0 0 auto;
 display: inline-flex;
 align-items: center;
 justify-content: flex-start;
}

.screen-home-sort-chips-row {
 display: flex;
 flex-wrap: nowrap;
 gap: 8px;
 justify-content: flex-end;
 width: auto;
 max-width: 100%;
 margin-left: auto;
 padding-top: 0;
 margin-top: 0;
 border-top: 0;
 box-sizing: border-box;
}

.screen-home-group-by-block {
 display: flex;
 flex-wrap: nowrap;
 align-items: center;
 gap: 10px 16px;
 justify-content: flex-start;
 width: auto;
 margin-left: 0;
 flex: 0 0 auto;
 box-sizing: border-box;
white-space: nowrap;
}

.screen-home-group-by-legend {
 font-size: 0.8rem;
 font-weight: 600;
 color: var(--dl-text);
 letter-spacing: 0.02em;
 line-height: 1.3;
 flex-shrink: 0;
 max-width: 100%;
 white-space: nowrap;
}

.screen-home-group-by-segment {
 display: inline-flex;
 flex-wrap: nowrap;
 justify-content: flex-start;
 max-width: 100%;
 border-radius: 999px;
 overflow: hidden;
 box-shadow: var(--dl-shadow-chip);
}

.screen-home-group-by-pill-off,
.screen-home-group-by-pill-on {
 border: 0;
 margin: 0;
 padding: 7px 14px;
 font-size: 0.78rem;
 line-height: 1.25;
 cursor: pointer;
 white-space: nowrap;
 font-family: var(--dl-font-sans);
 box-sizing: border-box;
}

.screen-home-group-by-pill-off {
 background: rgba(255, 255, 255, 0.92);
 color: var(--dl-text-soft);
 font-weight: 500;
}

.screen-home-group-by-pill-on {
 background: var(--dl-chip-active-bg);
 color: var(--dl-text);
 font-weight: 600;
}

.screen-home-group-by-segment .screen-home-group-by-pill-on[disabled] {
 cursor: default;
 opacity: 1;
 pointer-events: none;
}

.screen-home-group-by-segment > button + button {
 border-left: 1px solid var(--dl-border-soft);
}

/* Schmalere Viewports: längere Schalter-Texte (z. B. „Nach Obergericht“) als einzelne Pills */
@media (max-width: 900px) {
 .screen-home-group-by-segment {
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  justify-content: flex-end;
 }
 .screen-home-group-by-segment > button + button {
  border-left: 0;
 }
 .screen-home-group-by-pill-off,
 .screen-home-group-by-pill-on {
  border-radius: 999px;
  box-shadow: var(--dl-shadow-chip);
 }
}

@media (max-width: 768px) {
 .dl-results__list .screen-home-dish-group-card > .dl-card__header,
 .screen-home-results-list .screen-home-dish-group-card > .dl-card__header,
 .dl-results__list .screen-home-dish-group-card > .screen-home-card-dish-media,
 .screen-home-results-list .screen-home-dish-group-card > .screen-home-card-dish-media,
 .dl-results__list .screen-home-dish-group-card > .dl-card__body,
 .screen-home-results-list .screen-home-dish-group-card > .dl-card__body {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
 }

 .dl-results__list .screen-home-dish-group-card .screen-home-dish-group-headline-row,
 .screen-home-results-list .screen-home-dish-group-card .screen-home-dish-group-headline-row {
  width: 100%;
 }

 .dl-results__list .screen-home-dish-group-card .screen-home-dish-group-lead,
 .screen-home-results-list .screen-home-dish-group-card .screen-home-dish-group-lead {
  width: 100%;
  max-width: 100%;
 }

 .screen-home-results-header .dl-results__info {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  white-space: normal;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
 }
 .screen-home-sort-toolbar {
  align-items: flex-start;
  flex-wrap: wrap;
 }
 .screen-home-sort-chips-row {
  justify-content: flex-start;
  flex-wrap: wrap;
 }
 .screen-home-group-by-block {
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
 }
 .screen-home-group-by-segment {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
 }
 .screen-home-group-by-pill-off,
 .screen-home-group-by-pill-on {
  flex: 0 0 auto;
  min-width: 0;
  text-align: center;
 }
}

/* Wrapper: Liste links, Karte rechts (.home-results-with-map = Marker wie vor Layout-Refactor, JS-Fallback) */
.home-results-with-map,
.screen-home-layout-results-list,
.screen-home-layout-results-map {
 display: flex;
 flex-direction: column;
 gap: 24px;
 overflow-x: hidden;
}

.screen-home-results-map-panel {
 display: none;
}

/* Lade-GIF zentriert, bis das echte Gerichtbild per fetch eingesetzt ist (alle Viewports) */
.dl-results__list .dl-card__image:has(.dl-card__dish-image.js-home-dish-image-lazy:not([data-dish-image-loaded="done"]):not(.broken-image)),
.screen-home-results-list .dl-card__image:has(.dl-card__dish-image.js-home-dish-image-lazy:not([data-dish-image-loaded="done"]):not(.broken-image)) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(245, 248, 246, 0.95) 0%, rgba(232, 240, 234, 0.98) 100%);
}

.dl-results__list .dl-card__dish-image.js-home-dish-image-lazy:not([data-dish-image-loaded="done"]):not(.broken-image),
.screen-home-results-list .dl-card__dish-image.js-home-dish-image-lazy:not([data-dish-image-loaded="done"]):not(.broken-image) {
  width: auto;
  height: auto;
  max-width: min(96px, 42%);
  max-height: min(96px, 42%);
  margin: 0;
  object-fit: contain;
  object-position: center center;
}

@media (min-width: 1024px) {
 .screen-home-layout-results-map {
  flex-direction: row;
  align-items: stretch;
  gap: 24px;
 }
 .screen-home-layout-results-map .screen-home-results-top-section {
  flex: 1;
  min-width: 0;
 }
 .screen-home-layout-results-map .screen-home-results-map-panel {
  display: block;
  flex-shrink: 0;
  width: clamp(300px, 28vw, 420px);
  max-width: 420px;
  min-width: 300px;
  min-height: 0;
  position: sticky;
  top: 24px;
  align-self: flex-start;
  height: calc(100vh - 48px);
  max-height: 720px;
  isolation: isolate;
 }
 .base-button-secondary-screen-home-merkliste {
  width: auto;
 }
 .base-merkliste-form-home {
  flex-basis: auto;
  width: auto;
 }
 .dl-results__list .dl-card,
 .screen-home-results-list .dl-card {
  grid-template-columns: 260px 1fr;
 }
 .dl-results__list .dl-card__image,
 .screen-home-results-list .dl-card__image {
  height: 260px;
  width: 100%;
 overflow: hidden;
 border-radius: 10px 16px 18px 10px;
}
.dl-results__list .dl-card__dish-image,
.screen-home-results-list .dl-card__dish-image {
 width: 94%;
 height: 94%;
 margin: auto;
 object-fit: cover;
object-position: left center;
display: block;
 border-radius: 10px 16px 18px 10px;
 }
}

/* Linke Karten-Spalte: Dish-Bild und KI-Hinweis als eine Einheit (geringer Abstand unter dem Bild) */
.screen-home-card-dish-media {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 align-self: start;
 gap: 4px;
 width: 100%;
 min-width: 0;
 box-sizing: border-box;
}

.screen-home-ai-image-note-wrap {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
margin: 0;
padding: 5px 8px;
border-radius: 8px;
background: linear-gradient(180deg, rgba(250, 253, 250, 0.98) 0%, rgba(243, 250, 243, 0.98) 100%);
border: 1px solid rgba(69, 127, 61, 0.22);
box-shadow: 0 4px 12px rgba(9, 28, 52, 0.08);
width: 100%;
box-sizing: border-box;
font: inherit;
text-align: left;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
color: inherit;
}

.screen-home-ai-image-note-wrap:hover,
.screen-home-ai-image-note-wrap:focus-visible {
border-color: rgba(69, 127, 61, 0.38);
outline: none;
}

/* Klassische Home-Karte: linke Spalte = Bild + KI-Hinweis in .screen-home-card-dish-media */
@media (min-width: 1024px) {
 .dl-results__list .dl-card:not(.screen-home-dish-group-card),
 .screen-home-results-list .dl-card:not(.screen-home-dish-group-card) {
  grid-template-columns: 260px 1fr;
 }

 .dl-results__list .dl-card:not(.screen-home-dish-group-card) > .screen-home-card-dish-media,
 .screen-home-results-list .dl-card:not(.screen-home-dish-group-card) > .screen-home-card-dish-media {
  width: 100%;
  box-sizing: border-box;
 }
}

.screen-home-ai-image-note-text {
font-size: 0.68rem;
line-height: 1.2;
font-weight: 400;
font-style: italic;
color: rgba(24, 43, 23, 0.62);
flex: 1 1 auto;
}

.screen-home-ai-image-note-info-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
padding: 0;
border-radius: 999px;
border: 1px solid rgba(24, 43, 23, 0.24);
background: var(--dl-bg-alt);
color: var(--dl-accent);
flex: 0 0 auto;
pointer-events: none;
}

.screen-home-ai-image-note-wrap:hover .screen-home-ai-image-note-info-icon,
.screen-home-ai-image-note-wrap:focus-visible .screen-home-ai-image-note-info-icon {
border-color: rgba(24, 43, 23, 0.4);
}

.screen-home-ai-image-modal {
position: fixed;
inset: 0;
z-index: 2200;
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}

.screen-home-ai-image-modal[hidden] {
display: none;
}

.screen-home-ai-image-modal-overlay {
position: absolute;
inset: 0;
background: rgba(20, 35, 31, 0.62);
backdrop-filter: blur(1px);
}

.screen-home-ai-image-modal-dialog {
position: relative;
width: min(760px, calc(100vw - 28px));
max-height: min(80vh, 680px);
overflow-y: auto;
padding: 22px 24px 18px;
border-radius: 14px;
border: 1px solid rgba(69, 127, 61, 0.36);
background: linear-gradient(135deg, var(--dl-bg-alt) 0%, var(--screen-home-ai-modal-gradient-mid) 38%, var(--screen-home-ai-modal-gradient-end) 100%);
box-shadow: 0 24px 48px rgba(6, 26, 34, 0.34);
}

.screen-home-ai-image-modal-close {
position: absolute;
top: 10px;
right: 12px;
width: 34px;
height: 34px;
padding: 0;
border-radius: 999px;
border: 1px solid rgba(24, 43, 23, 0.2);
background: var(--dl-bg-alt);
color: var(--dl-text);
font-size: 1.2rem;
line-height: 1;
cursor: pointer;
}

.screen-home-ai-image-modal-title {
margin: 0 40px 10px 0;
font-size: 1.08rem;
font-weight: 700;
line-height: 1.25;
color: var(--color-headline);
}

.screen-home-ai-image-modal-text {
margin: 0;
font-size: 0.95rem;
line-height: 1.55;
color: var(--dl-text);
}

.screen-home-ai-image-modal-actions {
display: flex;
justify-content: flex-end;
margin-top: 16px;
}

.screen-home-ai-image-modal-close-button {
min-height: 38px;
padding: 0 16px;
}

@media (max-width: 768px) {
 .screen-home-ai-image-modal-dialog {
  padding: 18px 16px 14px;
 }
 .screen-home-ai-image-modal-title {
  font-size: 1rem;
 }
 .screen-home-ai-image-modal-text {
  font-size: 0.9rem;
 }
}

.screen-home-layout-results-list .screen-home-results-map-panel {
 display: none !important;
}

.home-results-layout {
 display: flex;
 flex-direction: column;
 gap: 24px;
}
.home-results-list-col {
 min-width: 0;
 width: 100%;
}

/* Trefferbereich: keine interne Scrollbar, nur Browser-Scrollbar */
#home-layout-results,
#home-results-top,
.home-results-layout,
.home-results-list-col,
#results,
#results .dl-card,
#results .dl-card__body,
#results .screen-home-dish-group-offers {
 overflow: visible !important;
 overflow-x: visible !important;
 overflow-y: visible !important;
 max-height: none !important;
}

.screen-home-results-map-panel.leaflet-map-container {
 position: relative;
 min-height: 320px;
 width: 100%;
 max-width: 100%;
 border-radius: var(--dl-radius-sm, 10px);
 overflow: hidden;
}

.screen-home-results-map-panel-loading {
 display: flex;
 align-items: center;
 justify-content: center;
 background: var(--dl-surface);
}
.home-results-map-loading-placeholder {
 margin: 0;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 12px;
 padding: 14px 18px;
 max-width: calc(100% - 32px);
 box-sizing: border-box;
 font-family: var(--dl-font-sans);
 font-size: var(--font-size-base);
 font-weight: 600;
 letter-spacing: 0.01em;
 color: var(--dl-text);
 background: var(--dl-bg-alt);
 border: 1px solid var(--dl-border-soft);
 border-radius: var(--dl-radius-md);
 box-shadow: var(--dl-shadow-chip);
}

.home-results-map-loading-spinner {
display: inline-flex;
width: 16px;
height: 16px;
border-radius: 999px;
border: 2px solid rgba(69, 127, 61, 0.22);
border-top-color: var(--dl-accent);
animation: home-results-map-loading-spin 0.9s linear infinite;
}

.home-results-map-loading-text {
display: inline-flex;
align-items: center;
}

@keyframes home-results-map-loading-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

#home-results-view-map[data-loading="1"] {
opacity: 0.75;
cursor: wait;
pointer-events: none;
}

.home-results-map-popup {
 margin: 0;
 min-width: 140px;
 font-family: var(--dl-font-sans);
 font-size: var(--font-size-base);
}
.home-results-map-popup-image {
 display: block;
 width: 120px;
 height: 90px;
 object-fit: cover;
 border-radius: var(--dl-radius-sm, 6px);
 margin-bottom: 8px;
}
.home-results-map-popup-name {
 margin: 0 0 4px;
 font-weight: 700;
 color: var(--color-headline);
}
.home-results-map-popup-dish {
 margin: 0;
 color: var(--color-content-text);
}
.home-results-map-popup-price {
 margin: 0 0 8px;
 font-weight: 600;
 color: var(--dl-accent);
}
.home-results-map-popup-link {
 display: inline-block;
 margin-top: 4px;
}
.home-results-map-popup-loading {
 margin: 0;
 padding: 12px 0;
 color: var(--color-content-text);
}

/* Detail-Button immer in eigener Zeile */
/* Home-Treffer: Footer nicht als zwei nebeneinanderliegende Flex-Spalten (Desktop), sondern gestapelte Zeilen wie unter 768px in widgets-cards.css */
.dl-results__list .dl-card__footer,
.screen-home-results-list .dl-card__footer {
 flex-direction: column;
 align-items: stretch;
 justify-content: flex-start;
 gap: 8px;
}
.dl-results__list .dl-card__footer .dl-card__meta-row:first-child,
.screen-home-results-list .dl-card__footer .dl-card__meta-row:first-child {
 justify-content: flex-start;
}
.dl-results__list .dl-card__meta-row {
 flex-wrap: wrap;
}
.dl-results__list .dl-card__footer .dl-card__footer-actions-row {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: nowrap;
 flex-shrink: 0;
 min-width: 0;
}
.dl-results__list .base-button-secondary-screen-home-details {
 flex-basis: 100%;
 width: 100%;
 display: block;
 text-align: center;
}

.dl-results__list .dl-card__footer .dl-card__meta-row:last-child {
 display: flex;
 justify-content: flex-end;
 align-items: center;
 gap: 8px;
}

.dl-results__list .dl-card__footer .dl-card__meta-row:last-child .dl-card__footer-actions-row {
 justify-content: flex-end;
}

.dl-results__list .dl-card__header {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: 3px;
 padding-bottom: 0;
 min-width: 0;
}

/* Gruppenkarten: Card-Header liegt als Geschwister vor .dl-card__body (nicht darin); Box-Styling siehe .screen-home-dish-group-card > .dl-card__header */

/* Gruppenkarten: Header ist im Markup oberhalb des Bildes */
.dl-results__list .screen-home-dish-group-card > .dl-card__header,
.screen-home-results-list .screen-home-dish-group-card > .dl-card__header {
 margin-bottom: 8px;
grid-column: 1 / -1;
grid-row: 1;
}

.dl-results__list .screen-home-dish-group-card > .screen-home-card-dish-media,
.screen-home-results-list .screen-home-dish-group-card > .screen-home-card-dish-media {
grid-column: 1;
grid-row: 2;
}

.dl-results__list .screen-home-dish-group-card > .dl-card__body,
.screen-home-results-list .screen-home-dish-group-card > .dl-card__body {
grid-column: 2;
grid-row: 2;
}

.dl-results__list .base-headline-h3-dl-card-restaurant {
 margin-top: 6px;
 margin-bottom: 3px;
}

.dl-results__list .dl-card__body {
 padding: 5px 5px 5px 7px;
 gap: 5px;
 min-width: 0;
 overflow: hidden;
}
.dl-results__list .dl-card__body.dl-card__body--dish-group,
.screen-home-results-list .dl-card__body.dl-card__body--dish-group {
 overflow: visible;
}
.dl-results__list .base-headline-h2-card {
 display: -webkit-box;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
 overflow: hidden;
 text-overflow: ellipsis;
 word-wrap: break-word;
 overflow-wrap: break-word;
 color: var(--color-primary);
}
.dl-results__list .dl-card__description {
 display: -webkit-box;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 3;
 overflow: hidden;
 text-overflow: ellipsis;
 min-width: 0;
}

.dl-results__empty {
 text-align: center;
 padding: 40px 20px;
 color: var(--dl-text-soft);
 font-size: 1rem;
}

.home-restaurant-minimap-marker,
.home-restaurant-minimap-marker.leaflet-div-icon,
.leaflet-div-icon.home-restaurant-minimap-marker {
 background: transparent !important;
 border: none !important;
 width: 20px !important;
 height: 30px !important;
 padding: 0 !important;
 margin: 0 !important;
 box-shadow: none !important;
}

.home-restaurant-minimap-marker-inner {
 display: flex !important;
 align-items: center;
 justify-content: center;
 width: 100%;
 height: 100%;
 background: transparent !important;
}

.leaflet-zoom-hide {
 display: none;
}

@media (max-width: 1023px) {
 .screen-home-results-top-header-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
 }

 .screen-home-filters-mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: static;
  flex: 0 0 auto;
  align-self: flex-start;
  z-index: auto;
  min-height: 44px;
  min-width: 44px;
  max-width: none;
  padding: 4px 5px;
  border-radius: var(--dl-radius-md, 10px);
  border: 1px solid var(--dl-border-soft);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(18, 28, 16, 0.1), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  font-size: inherit;
  text-align: center;
  white-space: normal;
 }

 .screen-home-filters-mobile-toggle__icon svg {
  width: 13px;
  height: 13px;
 }

 .screen-home-filters-mobile-toggle__text {
  display: inline-block;
  max-width: none;
  text-align: center;
  line-height: 1.15;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transform-origin: center center;
 }

 .screen-home-results-header {
  flex: 1 1 min(0);
 }

 .screen-home-filters-overlay:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1340;
  background: rgba(18, 27, 22, 0.42);
 }

 .screen-home-filters-column {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 420px);
  height: 100vh;
  z-index: 1360;
  border-radius: 0;
  transform: translateX(-104%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  box-shadow: 20px 0 36px rgba(20, 31, 23, 0.24);
  padding: 18px 14px calc(24px + env(safe-area-inset-bottom));
 }

 .screen-home-filters-column.screen-home-filters-drawer-open {
  transform: translateX(0);
 }

 .screen-home-filters-column .screen-home-filters-header #screen-home-filters-toggle {
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
 }

 .dl-results__list .screen-home-dish-group-card,
 .screen-home-results-list .screen-home-dish-group-card {
  grid-template-columns: 1fr;
 }

 .dl-results__list .screen-home-dish-group-card > .dl-card__header,
 .screen-home-results-list .screen-home-dish-group-card > .dl-card__header,
 .dl-results__list .screen-home-dish-group-card > .screen-home-card-dish-media,
 .screen-home-results-list .screen-home-dish-group-card > .screen-home-card-dish-media,
 .dl-results__list .screen-home-dish-group-card > .dl-card__body,
 .screen-home-results-list .screen-home-dish-group-card > .dl-card__body {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
 }

 .dl-results__list .screen-home-card-dish-media .dl-card__image,
 .screen-home-results-list .screen-home-card-dish-media .dl-card__image {
  height: 248px;
  min-height: 248px;
  max-height: 248px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px 16px 18px 10px;
 }

 .dl-results__list .screen-home-dish-group-card .screen-home-dish-group-headline-row,
 .screen-home-results-list .screen-home-dish-group-card .screen-home-dish-group-headline-row {
  width: 100%;
  align-items: flex-start;
 }

 .dl-results__list .screen-home-dish-group-card .screen-home-dish-group-lead,
 .screen-home-results-list .screen-home-dish-group-card .screen-home-dish-group-lead {
  width: 100%;
  max-width: 100%;
 }

 .screen-home-main-layout {
  grid-template-columns: 1fr;
  gap: 14px;
 }
 .home-filter-panel .dl-search__fields {
  grid-template-columns: 1fr;
 }
 .home-filter-actions-row {
  grid-column: 1;
 }
}

@media (min-width: 1024px) and (max-width: 1365px) {
 .screen-home-main-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
 }

 .screen-home-filters-column {
  top: 12px;
  padding: 12px;
 }

 .screen-home-layout-results-map {
  gap: 14px;
 }

 .screen-home-layout-results-map .screen-home-results-map-panel {
  width: clamp(260px, 30vw, 340px);
  min-width: 260px;
  max-width: 340px;
 }

 .dl-results__list .dl-card,
 .screen-home-results-list .dl-card {
  grid-template-columns: 220px 1fr;
 }

 .dl-results__list .dl-card__image,
 .screen-home-results-list .dl-card__image {
  height: 220px;
 }
}

@media (min-width: 768px) and (max-width: 1023px) {
 .screen-home-main-layout {
  padding-top: 0;
 }
}

@media (min-width: 1024px) {
 .dl-results__list .base-button-secondary-screen-home-details {
  flex-basis: auto;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
 }
}

/* Gruppierte Treffer: ein Gericht-Bild, mehrere Menü-Positionen / Restaurants */
.screen-home-dish-group-lead {
 margin: 0;
 padding: 8px 0 10px 8px;
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 4px 0;
 font-size: inherit;
 line-height: 1.35;
 font-weight: 400;
 color: var(--dl-text);
 white-space: normal;
 overflow-wrap: anywhere;
 word-break: break-word;
 max-width: 100%;
 flex: 1 1 auto;
}

.screen-home-dish-group-title-row {
 display: flex;
 flex-direction: row;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 0 0.35em;
 width: 100%;
 min-width: 0;
 max-width: 100%;
 color: var(--color-primary);
}

.screen-home-dish-group-title-sep {
 font-size: 1.28rem;
 line-height: 1.22;
 font-weight: 400;
 color: inherit;
 letter-spacing: -0.02em;
 user-select: none;
}

.screen-home-dish-group-headline-row {
 display: flex;
 align-items: stretch;
 flex-direction: column;
 gap: 0;
 min-width: 0;
 flex-wrap: nowrap;
 border-bottom: 1px solid var(--dl-border-subtle);
 padding-bottom: 8px;
}

.screen-home-dish-group-dish-primary {
 font-size: 1.28rem;
 line-height: 1.22;
 font-weight: 700;
 letter-spacing: -0.02em;
 max-width: 100%;
}

.screen-home-dish-group-dish-primary .screen-home-dish-group-highlight {
 color: inherit;
}

.screen-home-dish-group-oberklasse-sub {
 font-size: 1.28rem;
 font-weight: 700;
 font-style: normal;
 color: var(--dl-text);
 line-height: 1.22;
 letter-spacing: -0.02em;
 max-width: 100%;
}

.screen-home-dish-group-title-row .screen-home-dish-group-oberklasse-sub {
 color: inherit;
}

.screen-home-dish-group-meta-line {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 6px 10px;
 margin-top: 6px;
 font-size: 0.92rem;
 font-weight: 500;
 line-height: 1.35;
 width: 100%;
 max-width: 100%;
}

.screen-home-dish-group-meta-sep {
 color: var(--dl-muted);
 font-weight: 400;
 user-select: none;
}

.screen-home-dish-group-highlight {
 color: var(--color-primary);
}

.screen-home-dish-group-price-range {
 color: var(--dl-accent-warm);
 font-weight: 600;
}

.screen-home-dish-group-total-restaurants {
 color: var(--dl-link-color);
 font-weight: 700;
}

.screen-home-dish-group-offers {
 list-style: none;
 margin: 0;
 padding: 0;
}

.screen-home-dish-group-offer {
border-top: 1px solid var(--dl-border-subtle);
border: 1px solid rgba(18, 45, 78, 0.12);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.92) 100%);
 border-radius: 10px;
 padding: 8px 10px 7px;
margin-top: 12px;
box-shadow: 0 3px 10px rgba(9, 28, 52, 0.07);
transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
position: relative;
}

.screen-home-dish-group-offer:first-child {
 border-top: none;
 margin-top: 4px;
}

.screen-home-dish-group-offer:hover {
border-color: rgba(18, 45, 78, 0.2);
box-shadow: 0 6px 16px rgba(9, 28, 52, 0.1);
transform: translateY(-1px);
}

.screen-home-dish-group-offer-row {
 display: block;
}

.screen-home-dish-group-offer-text {
 min-width: 0;
 display: flex;
 flex-direction: column;
 gap: 3px 0;
}

.screen-home-dish-group-offer-headline-row {
 display: flex;
 flex-wrap: wrap;
 align-items: flex-start;
 gap: 2px 10px;
 line-height: 1.2;
}

/* 008.003.003 / 008.003.012: Zeile 1 = Titel links, Preis+Merkliste rechts; Zeile 2 = Meta volle Breite */
.screen-home-dish-group-offer-title {
 font-family: Georgia, "Times New Roman", Times, serif;
 font-style: italic;
 font-weight: 600;
 font-size: 1rem;
 line-height: 1.25;
 color: var(--color-primary);
 letter-spacing: 0.01em;
 order: 1;
 flex: 1 1 auto;
 min-width: 0;
 margin: 0 0 1px;
 box-sizing: border-box;
 display: -webkit-box;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
 overflow: hidden;
 text-overflow: ellipsis;
 word-wrap: break-word;
 overflow-wrap: break-word;
}

.screen-home-dish-group-offer-headline-row .screen-home-dish-group-offer-price {
 order: 2;
 margin-left: auto;
}

.screen-home-dish-group-offer-headline-row .screen-home-dish-group-merkliste-form {
 order: 3;
 flex: 0 0 auto;
 display: inline-flex;
 justify-content: flex-end;
 margin-top: 0;
}

.screen-home-dish-group-offer-meta {
 font-size: 0.88rem;
 color: var(--dl-text);
 order: 4;
 flex: 0 0 100%;
 width: 100%;
 margin-top: 0;
 margin-bottom: 0;
 line-height: 1.15;
 font-family: Georgia, "Times New Roman", Times, serif;
 font-style: italic;
 letter-spacing: 0.01em;
}

.screen-home-dish-group-offer-price-cell {
 text-align: right;
 justify-self: end;
 align-self: center;
}

/* 008.003.028: kein gruenes Chip-CI trotz Klasse .dl-card__price im Markup */
.screen-home-dish-group-offer-price.dl-card__price,
.dl-results__list .screen-home-dish-group-offer-price.dl-card__price,
.screen-home-results-list .screen-home-dish-group-offer-price.dl-card__price {
 background: transparent;
 border: 0;
 box-shadow: none;
 padding: 0;
 color: var(--dl-text);
 border-radius: 0;
}

.screen-home-dish-group-offer-price {
 font-size: 0.95rem;
 font-weight: 600;
 white-space: nowrap;
 margin-left: auto;
 display: inline-flex;
 align-items: center;
 justify-content: flex-end;
 min-width: 80px;
 min-height: 22px;
 line-height: 1.25;
 font-family: Georgia, "Times New Roman", Times, serif;
 font-style: normal;
}

.screen-home-dish-group-offer-restaurant {
 display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 2px 8px;
line-height: 1.2;
 font-size: 0.9rem;
 margin-top: 6px;
}

.screen-home-dish-group-offer-restaurant-main {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: 4px;
min-width: 0;
max-width: 100%;
flex: 0 0 100%;
flex-wrap: nowrap;
overflow: hidden;
}

.screen-home-dish-group-offer-restaurant .base-link-standard {
display: inline-flex;
align-items: baseline;
gap: 0;
min-width: 0;
flex: 0 1 auto;
width: auto;
max-width: 100%;
overflow: hidden;
color: var(--color-primary);
}

.screen-home-dish-group-offer-restaurant .base-link-standard:hover,
.screen-home-dish-group-offer-restaurant .base-link-standard:focus-visible {
color: var(--color-primary);
}

.screen-home-dish-group-offer-pdf-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
color: var(--color-primary);
flex: 0 0 auto;
}

.screen-home-dish-group-offer-menu-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
flex: 0 0 auto;
}

.screen-home-dish-group-offer-map-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
flex: 0 0 auto;
}

.screen-home-dish-group-offer-map-image {
display: block;
}

.screen-home-dish-group-offer-menu-image {
display: block;
}

.screen-home-dish-group-offer-pdf-link .screen-home-dish-group-offer-pdf-icon {
display: none;
}

.screen-home-dish-group-offer-pdf-image {
display: block;
}

.screen-home-dish-group-offer-restaurant-name {
font-weight: 600;
color: var(--color-primary);
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.screen-home-dish-group-offer-restaurant-link {
 text-decoration: none;
}

.screen-home-dish-group-offer-restaurant-location,
.screen-home-dish-group-offer-restaurant-address {
color: var(--dl-text-muted);
flex: 0 0 100%;
}

.screen-home-dish-group-offer-rating {
 font-size: 0.85rem;
 display: inline-flex;
 align-items: center;
 gap: 4px;
 color: var(--dl-text);
 flex: 0 0 100%;
}

.screen-home-dish-group-offer-rating-stars {
 --rating: 0;
 position: relative;
 display: inline-block;
 font-size: 0.88rem;
 line-height: 1;
 letter-spacing: 1px;
 color: var(--screen-home-rating-star-empty);
}

.screen-home-dish-group-offer-rating-stars::before {
 content: "★★★★★";
}

.screen-home-dish-group-offer-rating-stars::after {
 content: "★★★★★";
 position: absolute;
 top: 0;
 left: 0;
 width: calc((var(--rating) / 5) * 100%);
 overflow: hidden;
 color: var(--screen-home-rating-star-filled);
 white-space: nowrap;
}

.screen-home-dish-group-offer-rating-value {
 color: var(--dl-text);
 font-weight: 400;
font-size: 0.9rem;
line-height: 1.2;
}

.screen-home-dish-group-merkliste-form {
 display: inline-flex;
 margin: 0;
}

.screen-home-dish-group-offer-headline-row .screen-home-dish-group-merkliste-form {
 margin-left: 0;
 flex: 0 0 auto;
}

.screen-home-dish-group-offer-headline-row .base-button-secondary-screen-home-merkliste {
 width: auto;
 min-width: 34px;
height: 22px;
min-height: 22px;
 padding: 0 6px;
 padding-top: 0;
 padding-bottom: 0;
}

.screen-home-dish-group-offers-pager {
 margin-top: 12px;
 width: 100%;
}

.screen-home-dish-group-offers-pager-buttons {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 10px 14px;
 width: 100%;
}

.screen-home-dish-group-load-prev,
.screen-home-dish-group-load-more {
 min-width: 108px;
}

.screen-home-dish-group-load-prev[disabled],
.screen-home-dish-group-load-more[disabled] {
 opacity: 0.45;
 cursor: not-allowed;
}

.screen-home-dish-group-offers-pager-status {
 flex: 1 1 140px;
 min-width: 7.5rem;
 max-width: 100%;
 text-align: center;
 font-size: 0.88rem;
 font-weight: 500;
 color: var(--dl-text, #1a1a1a);
 line-height: 1.35;
}

@media (max-width: 560px) {
 .screen-home-main-layout {
  gap: 12px;
 }

 .screen-home-content-column {
  min-width: 0;
 }

 #home-layout-results {
  gap: 16px;
 }

 .screen-home-results-header {
  gap: 8px;
 }

 .screen-home-dish-group-offer-headline-row {
  align-items: flex-start;
 }

 .screen-home-group-by-pill-off,
 .screen-home-group-by-pill-on {
  padding: 6px 10px;
  font-size: 0.72rem;
  min-width: 84px;
 }

 .screen-home-dish-group-offer-restaurant-main {
  width: 100%;
 }
}

.screen-home-result-card-footer--dish-group .screen-home-result-footer-actions {
 gap: 8px;
}

#home-infinite-scroll-sentinel {
 min-height: 2px;
 width: 100%;
 pointer-events: none;
}

#home-infinite-scroll-sentinel[hidden] {
 display: none !important;
}

.home-infinite-scroll-loading {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
 width: 100%;
 margin: 8px 0 2px;
 color: var(--dl-text-soft);
 font-size: 0.9rem;
}

.home-infinite-scroll-loading[hidden] {
 display: none !important;
}

.home-infinite-scroll-loading-spinner {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 color: var(--dl-accent);
}

.home-infinite-scroll-loading-spinner svg {
 animation: home-infinite-scroll-loading-spin 0.9s linear infinite;
}

@keyframes home-infinite-scroll-loading-spin {
 from { transform: rotate(0deg); }
 to { transform: rotate(360deg); }
}

/* Merkliste-Screen: Entfernen pro Karte (POST action=remove) */
.screen-merkliste-remove-form {
 display: inline-flex;
 flex: 0 1 auto;
 width: auto;
 max-width: 100%;
}

.screen-merkliste-remove-button {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 44px;
 min-height: 44px;
 padding: 10px;
 width: auto;
 max-width: 100%;
}

.screen-merkliste-remove-icon {
 display: inline-flex;
 flex-shrink: 0;
 line-height: 0;
}
