/* Runde 38 (01.10.2026): Filterfenster (Computer) und Bottom-Sheet (Handy).
   Bewusst dezent: Grau, Weiss und Dealoo-Gruen. Markup: _dealoo_filter.twig, Steuerung: js/dealoo-filter.js */
:root {
    --dlf-brand: #6fac93;
    --dlf-brand-ink: #2f6f57;
    --dlf-tint: #eaf5f0;
    --dlf-ink: #111827;
    --dlf-ink2: #374151;
    --dlf-muted: #6b7280;
    --dlf-faint: #9aa4a0;
    --dlf-line: #e5e9e7;
    --dlf-sunk: #f2f4f3;
}
html.dlf-lock, html.dlf-lock body { overflow: hidden !important; }

/* ---------- Aktive Filter als Chips ---------- */
.dlf-chips-wrap { background: #fff; border-bottom: 1px solid #eef0f2; }
.dlf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; }
.dlf-note { font-size: 12.5px; font-weight: 800; color: var(--dlf-muted); margin-right: 2px; }
.dlf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--dlf-tint); color: var(--dlf-brand-ink) !important; font: 800 12.5px/1.2 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: none !important; white-space: nowrap; }
.dlf-chip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(47, 111, 87, .12); font-size: 13px; line-height: 1; transition: background .15s, color .15s; }
.dlf-chip:hover i { background: var(--dlf-brand); color: #fff; }
.dlf-clear { font: 800 12.5px 'Nunito', system-ui, sans-serif; color: var(--dlf-muted) !important; text-decoration: underline !important; padding: 5px 4px; white-space: nowrap; }

/* ---------- Filter-Knoepfe in der Leiste ---------- */
button.filter-trigger { cursor: pointer; font-family: inherit; }
button.mobile-filter-trigger-btn { cursor: pointer; padding: 0; position: relative; }
.dlf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--dlf-brand); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mobile-filter-trigger-btn .dlf-badge { position: absolute; top: -7px; right: -7px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; }

/* ---------- Fenster ---------- */
.dlf-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(17, 24, 39, .14); opacity: 0; transition: opacity .2s ease; }
.dlf-backdrop.is-open { opacity: 1; }
.dlf { position: fixed; z-index: 100001; display: flex; flex-direction: column; box-sizing: border-box; background: #fff; color: var(--dlf-ink); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; border: 1px solid var(--dlf-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 24, 39, .16); opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease; overflow: hidden; }
.dlf *, .dlf *::before, .dlf *::after { box-sizing: border-box; }
.dlf.is-open { opacity: 1; transform: none; }
.dlf[hidden], .dlf-backdrop[hidden] { display: none !important; }
.dlf-grab { display: none; }
.dlf-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--dlf-line); flex-shrink: 0; }
.dlf-head h3 { margin: 0; font-size: 17px; font-weight: 900; color: var(--dlf-ink); line-height: 1.2; }
.dlf-x { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--dlf-sunk); color: var(--dlf-ink2); font-size: 22px; line-height: 1; cursor: pointer; }
.dlf-x:hover { background: #e6eae8; }
.dlf-head-r { display: flex; align-items: center; gap: 6px; }
.dlf-reset-top, .dlf-s { display: none; }
.dlf-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.dlf-col { padding: 16px 18px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.dlf-col + .dlf-col { border-left: 1px solid var(--dlf-line); }
.dlf-sec { display: grid; gap: 8px; margin: 0; min-width: 0; }
.dlf-t { margin: 0; font-size: 13px; font-weight: 900; color: var(--dlf-ink); line-height: 1.3; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dlf-t small { font-size: 11.5px; font-weight: 700; color: var(--dlf-faint); }

/* Pillen (Radio/Checkbox im Label versteckt) */
.dlf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dlf-pill { position: relative; display: inline-flex; margin: 0; cursor: pointer; max-width: 100%; }
.dlf-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dlf-pill > span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--dlf-line); background: #fff; color: var(--dlf-ink2); font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, background .15s; }
.dlf-pill:hover > span { border-color: #cfd8d4; }
.dlf-pill input:checked + span, .dlf-q.is-on > span { background: var(--dlf-tint); border-color: var(--dlf-brand); color: var(--dlf-brand-ink); font-weight: 800; }
.dlf-pill input:checked + span::before, .dlf-q.is-on > span::before { content: ''; flex-shrink: 0; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.dlf-pill input:focus-visible + span, button.dlf-pill:focus-visible > span { outline: 2px solid var(--dlf-brand); outline-offset: 2px; }
.dlf-pill em { font-style: normal; color: var(--dlf-faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.dlf-pill input:checked + span em { color: var(--dlf-brand-ink); opacity: .7; }
.dlf-pill.is-zero > span { color: #b2babd; }
.dlf-pill[hidden] { display: none !important; }
button.dlf-pill { padding: 0; border: 0; background: none; font: inherit; }

/* Segment-Auswahl */
.dlf-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--dlf-sunk); }
.dlf-seg .dlf-pill { flex: 1 1 0; min-width: 0; }
.dlf-seg .dlf-pill > span { width: 100%; justify-content: center; border: 0; border-radius: 8px; background: none; padding: 7px 4px; }
.dlf-seg .dlf-pill input:checked + span { background: #fff; color: var(--dlf-ink); box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
.dlf-seg .dlf-pill input:checked + span::before { display: none; }

/* Eingabefelder */
.dlf-row { display: flex; align-items: center; gap: 8px; }
.dlf-to { font-size: 12.5px; color: var(--dlf-muted); font-weight: 700; }
.dlf-inp { position: relative; display: block; flex: 1 1 0; min-width: 0; margin: 0; }
.dlf-inp input { display: block; width: 100%; height: 38px; margin: 0; padding: 0 28px 0 12px; border: 1px solid var(--dlf-line); border-radius: 10px; background: #fff; color: var(--dlf-ink); font: 700 14px 'Nunito', system-ui, sans-serif; box-shadow: none; }
.dlf-inp input:focus { outline: none; border-color: var(--dlf-brand); box-shadow: 0 0 0 3px var(--dlf-tint); }
.dlf-inp > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--dlf-faint); font-weight: 800; font-size: 13px; pointer-events: none; }
.dlf-search input { padding: 0 12px 0 34px; }
.dlf-search > span { left: 12px; right: auto; line-height: 1; }
.dlf-ort input { padding-right: 12px; }
.dlf-ort[hidden] { display: none !important; }
.dlf-more { justify-self: start; padding: 2px 0; border: 0; background: none; color: var(--dlf-brand-ink); font: 800 12px 'Nunito', system-ui, sans-serif; cursor: pointer; }
.dlf-none { margin: 0; font-size: 12.5px; color: var(--dlf-muted); }

/* Schalter */
.dlf-toggles { display: grid; }
.dlf-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 6px 0; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--dlf-ink2); line-height: 1.3; }
.dlf-tg input { flex-shrink: 0; -webkit-appearance: none; appearance: none; position: relative; width: 36px; height: 21px; margin: 0; border: 0; border-radius: 999px; background: #d9dfdc; cursor: pointer; transition: background .2s; }
.dlf-tg input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); transition: transform .2s; }
.dlf-tg input:checked { background: var(--dlf-brand); }
.dlf-tg input:checked::after { transform: translateX(15px); }
.dlf-tg input:focus-visible { outline: 2px solid var(--dlf-brand); outline-offset: 2px; }

/* Hinweise und Fuss */
.dlf-status { padding: 0 18px; flex-shrink: 0; }
.dlf-zero, .dlf-msg { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.dlf-zero { background: #fbf1e3; color: #8a5312; }
.dlf-zero button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 900; text-decoration: underline; cursor: pointer; }
.dlf-msg { background: var(--dlf-tint); color: var(--dlf-brand-ink); }
.dlf-msg.is-error { background: #fdeceb; color: #a1251b; }
.dlf-msg a { color: inherit; font-weight: 900; text-decoration: underline; }
.dlf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--dlf-line); background: #fff; flex-shrink: 0; }
.dlf-remember { margin-right: auto; padding: 0; gap: 10px; justify-content: flex-start; font-size: 13px; }
.dlf-remember span { order: 2; }
.dlf-reset { padding: 8px 4px; border: 0; background: none; color: var(--dlf-muted); font: 800 13px 'Nunito', system-ui, sans-serif; cursor: pointer; }
.dlf-reset:hover { color: var(--dlf-ink); }
.dlf-alarm { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--dlf-line); border-radius: 999px; background: #fff; color: var(--dlf-ink2) !important; font: 800 13px 'Nunito', system-ui, sans-serif; text-decoration: none !important; cursor: pointer; }
.dlf-alarm:hover { border-color: var(--dlf-brand); color: var(--dlf-brand-ink) !important; }
.dlf-alarm:disabled { opacity: .6; cursor: default; }
.dlf-apply { min-width: 190px; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--dlf-brand); color: #fff; font: 900 14px 'Nunito', system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: none; transition: background .15s, opacity .15s; }
.dlf-apply:hover { background: #5f9c83; }
.dlf-apply:disabled { background: #c9d3cf; cursor: default; }
.dlf-apply.is-loading { opacity: .75; }

/* ---------- Handy und kleine Tablets: Bottom-Sheet ---------- */
@media (max-width: 991px) {
    .dlf { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: auto !important; max-height: 88vh !important; max-height: 88dvh !important; border: 0; border-radius: 22px 22px 0 0; opacity: 1; transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
    .dlf.is-open { transform: none; }
    .dlf-backdrop { background: rgba(17, 24, 39, .32); }
    .dlf-grab { display: block; flex-shrink: 0; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: #d6ddda; }
    .dlf-head { padding: 6px 16px 10px; }
    .dlf-body { grid-template-columns: minmax(0, 1fr); }
    .dlf-col { padding: 14px 16px; gap: 20px; }
    .dlf-col + .dlf-col { border-left: 0; border-top: 1px solid var(--dlf-line); }
    .dlf-status { padding: 0 16px; }
    .dlf-foot { gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .dlf-reset-top { display: inline-block; }
    .dlf-foot .dlf-reset { display: none; }
    .dlf-l { display: none; }
    .dlf-s { display: inline; }
    .dlf-remember { order: 1; }
    .dlf-alarm { order: 2; }
    .dlf-apply { order: 3; flex: 1 1 100%; min-width: 0; padding: 13px; }
    .dlf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
    .dlf-chips::-webkit-scrollbar { display: none; }
    .dlf-chip, .dlf-clear, .dlf-note { flex-shrink: 0; }
}
@media (max-width: 400px) {
    .dlf-alarm { padding: 8px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .dlf, .dlf-backdrop, .dlf-tg input, .dlf-tg input::after { transition: none; }
}

/* ---------- 18.10.2026 (Laiss: „Filter D“): ein schmales Fenster, Beliebt-Kacheln, Rest aufklappbar, Schwarz als Hauptfarbe ---------- */
.dlf-body.dlf-d { display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 18px; }
.dlf-d .dlf-t { font-size: 14px; }
.dlf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dlf-tile { position: relative; display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 8px; min-height: 78px; margin: 0; padding: 12px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; color: #111827; cursor: pointer; transition: border-color .15s, background .15s; }
.dlf-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dlf-tile span { font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.dlf-tile svg { color: #111827; }
.dlf-tile:hover { border-color: #9ca3af; }
.dlf-tile:has(input:checked) { border: 2px solid #111827; padding: 11px; background: #f9fafb; }
.dlf-tile:has(input:checked)::after { content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: #111827 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.dlf-tile:has(input:focus-visible) { outline: 2px solid #111827; outline-offset: 2px; }
.dlf-d .dlf-pill > span { padding: 7px 12px; font-size: 13.5px; }
.dlf-d .dlf-pill input:checked + span, .dlf-d .dlf-q.is-on > span { background: #111827; border-color: #111827; color: #fff; }
.dlf-d .dlf-pill input:checked + span em { color: #fff; }
.dlf-d .dlf-seg .dlf-pill input:checked + span { background: #fff; color: #111827; border: 0; }
.dlf-d .dlf-inp input { height: 44px; border-color: #d1d5db; font-size: 14.5px; }
.dlf-d .dlf-inp input:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(111, 172, 147, .25); }
.dlf-d .dlf-tg { font-size: 14px; padding: 8px 0; }
.dlf-d .dlf-tg input:checked { background: #111827; }
.dlf-accs { display: flex; flex-direction: column; border-top: 1px solid #eef0f2; }
.dlf-acc { border-bottom: 1px solid #eef0f2; }
.dlf-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 800; color: #111827; }
.dlf-acc summary::-webkit-details-marker { display: none; }
.dlf-acc summary:focus-visible { outline: 2px solid #111827; outline-offset: 2px; border-radius: 6px; }
.dlf-acc-r { display: inline-flex; align-items: center; gap: 10px; }
.dlf-acc-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #111827; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.dlf-acc-n[hidden] { display: none; }
.dlf-acc-r i { width: 9px; height: 9px; border-right: 2px solid #6b7280; border-bottom: 2px solid #6b7280; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.dlf-acc[open] .dlf-acc-r i { transform: rotate(-135deg) translate(-2px, -2px); }
.dlf-acc-b { display: grid; gap: 10px; padding: 0 0 16px; }
.dlf-acc-b.dlf-toggles { gap: 0; }
.dlf-hint { font-size: 12px; color: #9ca3af; font-weight: 700; }
.dlf-foot .dlf-apply { background: #111827; border-radius: 10px; min-height: 46px; }
.dlf-foot .dlf-apply:hover { background: #2f6f57; }
.dlf-foot .dlf-alarm { border-radius: 10px; min-height: 46px; border-color: #d1d5db; color: #111827 !important; }
.dlf-foot .dlf-alarm:hover { border-color: #111827; color: #111827 !important; }
.dlf-foot .dlf-tg input:checked { background: #111827; }
@media (min-width: 992px) { .dlf { max-width: 580px; } }
@media (max-width: 991px) { .dlf-body.dlf-d { padding: 12px 16px 16px; } .dlf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dlf-tile { min-height: 70px; } }