/* LS Händlersuche – Optik nach lsChild-Tokens (Archivo, Schwarz/Weiß, Akzent #009FE1, Pillen r60) */
.lsh {
    --lsh-ink: #111418;
    --lsh-text: #4A4F55;
    --lsh-muted: #7A8087;
    --lsh-line: #DCDFE2;
    --lsh-surface: #EFEFEF;
    --lsh-bg: #FFFFFF;
    --lsh-accent: #009FE1;
    --lsh-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --lsh-h: 560px;
    color: var(--lsh-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    max-width: 1720px;
    margin: 0 auto;
    padding: 80px 32px;
    box-sizing: border-box;
}
.lsh *, .lsh *::before, .lsh *::after { box-sizing: border-box; }
.lsh--laedt { min-height: 200px; }

/* Kopf */
.lsh__titel {
    color: var(--lsh-ink);
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    font-stretch: 125%;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.lsh__intro { max-width: 720px; margin: 0 0 32px; }

/* Suche */
.lsh__suche { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.lsh__feld { position: relative; flex: 1 1 280px; min-width: 0; }
.lsh__eingabe, .lsh__umkreis, .lsh__land {
    height: 50px;
    border: 1px solid var(--lsh-ink);
    border-radius: 60px;
    background: var(--lsh-bg);
    color: var(--lsh-ink);
    font: inherit;
    padding: 0 24px;
    outline: none;
    transition: border-color .2s var(--lsh-ease), box-shadow .2s var(--lsh-ease);
}
.lsh__eingabe { width: 100%; -webkit-appearance: none; appearance: none; }
.lsh__umkreis, .lsh__land { padding-right: 40px; -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111418' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center; }
.lsh__eingabe:focus, .lsh__umkreis:focus, .lsh__land:focus { border-color: var(--lsh-accent); box-shadow: 0 0 0 3px rgba(0, 159, 225, .2); }

.lsh__vorschlaege {
    position: absolute; z-index: 1001; left: 0; right: 0; top: calc(100% + 6px);
    margin: 0; padding: 6px 0; list-style: none;
    background: var(--lsh-bg); border: 1px solid var(--lsh-line); border-radius: 16px;
    box-shadow: 0 12px 32px rgba(17, 20, 24, .12);
    max-height: 320px; overflow: auto;
}
.lsh__vorschlaege[hidden] { display: none; }
.lsh__vorschlag { padding: 10px 24px; cursor: pointer; color: var(--lsh-ink); }
.lsh__vorschlag:hover, .lsh__vorschlag[aria-selected="true"] { background: var(--lsh-surface); }

/* Buttons (Pillen) */
.lsh__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 50px; padding: 0 32px;
    border-radius: 60px; border: 1px solid var(--lsh-ink);
    font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--lsh-ease), border-color .2s var(--lsh-ease), color .2s var(--lsh-ease);
}
.lsh__btn--voll { background: var(--lsh-ink); color: #fff; }
.lsh__btn--linie { background: transparent; color: var(--lsh-ink); }
.lsh__btn:hover, .lsh__btn:focus-visible { background: var(--lsh-accent); border-color: var(--lsh-accent); color: var(--lsh-ink); outline: none; }
.lsh__ico-standort { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.lsh__ico-standort::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }

.lsh__meldung { margin: 12px 0 0; color: #B3261E; }
.lsh__meldung[hidden] { display: none; }

/* Filter */
.lsh__filter { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 24px; }
.lsh__gruppe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lsh__gruppe-titel { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lsh-muted); margin-right: 4px; }
.lsh__pille {
    height: 40px; padding: 0 20px; border-radius: 60px;
    border: 1px solid var(--lsh-line); background: var(--lsh-bg); color: var(--lsh-ink);
    font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
    transition: all .2s var(--lsh-ease);
}
.lsh__pille:hover { border-color: var(--lsh-ink); }
.lsh__pille[aria-pressed="true"] { background: var(--lsh-ink); border-color: var(--lsh-ink); color: #fff; }

/* Tabs (nur mobil) */
.lsh__tabs { display: none; }

/* Liste + Karte */
.lsh__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; margin-top: 40px; align-items: start; }
.lsh__body--ohne-karte { grid-template-columns: minmax(0, 1fr); }
.lsh__liste { max-height: var(--lsh-h); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.lsh__body--ohne-karte .lsh__liste { max-height: none; overflow: visible; }
.lsh__status { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lsh-muted); margin: 0 0 12px; }
.lsh__fehler { color: #B3261E; }
.lsh__eintraege { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lsh-line); }
.lsh__body--ohne-karte .lsh__eintraege { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.lsh__leer { padding: 24px 0; }
.lsh__leer[hidden], .lsh__mehr[hidden] { display: none; }
.lsh__leer p { margin: 0 0 16px; color: var(--lsh-ink); }
.lsh__mehr { margin: 24px 0 0; height: 40px; padding: 0 24px; font-size: 14px; }

.lsh-e { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--lsh-line); position: relative; transition: background-color .2s var(--lsh-ease); }
.lsh-e::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color .2s var(--lsh-ease); }
.lsh-e.is-aktiv::before { background: var(--lsh-accent); }
.lsh-e__kopf { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lsh-e__name { margin: 0; color: var(--lsh-ink); font-size: 20px; line-height: 1.2; font-weight: 800; font-stretch: 125%; text-transform: uppercase; }
.lsh-e__km { flex: none; font-weight: 600; color: var(--lsh-ink); font-variant-numeric: tabular-nums; }
.lsh-e__adr { margin: 6px 0 0; }
.lsh-e__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.lsh-e__badge { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 60px; background: var(--lsh-surface); color: var(--lsh-ink); }
.lsh-e__badge--bereich { background: transparent; border: 1px solid var(--lsh-line); }
.lsh-e__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; font-size: 14px; }
.lsh-e__link {
    color: var(--lsh-ink); text-decoration: none; border: 0; background: none; padding: 0; font: inherit; cursor: pointer;
    background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
    transition: color .2s var(--lsh-ease);
    word-break: break-word;
}
.lsh-e__link:hover, .lsh-e__link:focus-visible { color: var(--lsh-accent); outline: none; }

.lsh__karte { position: sticky; top: 100px; height: var(--lsh-h); background: var(--lsh-surface); overflow: hidden; }
.lsh__map { position: absolute; inset: 0; }
.lsh--grau .leaflet-tile-pane { filter: grayscale(1) contrast(1.04) brightness(1.03); }
.lsh__platzhalter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center;
    background:
        repeating-linear-gradient(0deg, transparent 0 59px, rgba(17, 20, 24, .05) 59px 60px),
        repeating-linear-gradient(90deg, transparent 0 59px, rgba(17, 20, 24, .05) 59px 60px),
        var(--lsh-surface); }
.lsh__platzhalter-inhalt { max-width: 380px; }
.lsh__platzhalter-pin { display: block; margin: 0 auto 16px; width: 30px; }
.lsh__platzhalter-pin .lsh-pin__f { fill: var(--lsh-accent); }
.lsh__platzhalter-text { font-size: 14px; margin: 16px 0 8px; }
.lsh__platzhalter-text a { color: var(--lsh-ink); }
.lsh__merken { font-size: 14px; cursor: pointer; }

/* Pins */
.lsh-pin { background: none; border: 0; }
.lsh-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(17, 20, 24, .35)); transition: transform .2s var(--lsh-ease); transform-origin: 50% 100%; }
.lsh-pin .lsh-pin__f { fill: var(--lsh-accent); }
.lsh-pin:hover svg { transform: scale(1.12); }
.lsh-pin.is-aktiv .lsh-pin__f { fill: var(--lsh-ink); }
.lsh-pin.is-aktiv svg { transform: scale(1.18); }
.lsh .leaflet-container { font-family: inherit; }
.lsh .leaflet-popup-content-wrapper { border-radius: 4px; }
.lsh-popup { font-size: 14px; line-height: 1.45; color: var(--lsh-text); }
.lsh-popup strong { color: var(--lsh-ink); text-transform: uppercase; }
.lsh-popup a { color: var(--lsh-ink); }

.lsh__quelle { margin: 12px 0 0; font-size: 11px; color: var(--lsh-muted); }
.lsh__quelle a { color: inherit; }

/* CTA */
.lsh__cta { margin: 40px 0 0; font-size: 18px; color: var(--lsh-ink); }
.lsh__cta-link { color: var(--lsh-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; transition: color .2s var(--lsh-ease); }
.lsh__cta-link:hover { color: var(--lsh-accent); }

/* Mobil */
@media (max-width: 767.98px) {
    .lsh { padding: 50px 16px; --lsh-h: 70vh; }
    .lsh__titel { font-size: 30px; }
    .lsh__suche > * { flex: 1 1 100%; }
    .lsh__umkreis, .lsh__land { flex: 1 1 calc(50% - 6px); }
    .lsh__btn--standort { flex: 1 1 100%; }
    .lsh__btn { padding: 0 20px; }
    .lsh__filter { gap: 12px; }
    .lsh__tabs { display: flex; margin-top: 32px; border-bottom: 1px solid var(--lsh-line); }
    .lsh__tab { flex: 1; height: 44px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600;
        text-transform: uppercase; letter-spacing: .08em; color: var(--lsh-muted); cursor: pointer; }
    .lsh__tab[aria-selected="true"] { color: var(--lsh-ink); border-bottom-color: var(--lsh-ink); }
    .lsh__body { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
    .lsh__liste { max-height: none; overflow: visible; padding-right: 0; }
    .lsh__karte { position: relative; top: 0; }
    .lsh[data-ansicht="karte"] .lsh__liste { display: none; }
    .lsh:not([data-ansicht="karte"]) .lsh__body:not(.lsh__body--ohne-karte) .lsh__karte { display: none; }
    .lsh-e::before { left: -8px; }
}
