/* ============================================================
   New York zu Fuß – dunkles Design, Karten-zentriertes Layout
   Vorbild: Apple-Maps-Wandern (Vollbild-Karte, Bottom Sheet,
   Filter-Pills, Routen-Thumbnails) – übersetzt in die
   Nacht/Subway-Farbwelt. Schrift: IBM Plex Sans.
   ============================================================ */

:root {
    --grund:      #202124;
    --flaeche:    #2b2d30;
    --flaeche-2:  #383a3e;
    --linie:      #505258;
    --text:       #f7f9fc;
    --text-2:     #c9cbd0;
    --marke:      #34363a;
    --akzent:     #4f86c6;
    --highlight:  #f28c28;
    --akzent-text:#ffffff;
    --radius:     12px;
    --schatten:   0 12px 36px rgba(0,0,0,.35);
    --schrift:    "IBM Plex Sans", system-ui, sans-serif;
    --mono:       "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
    /* Basisgröße – wird vom A−/A+-Regler per JS verstellt (13.6–22.4px) */
    font-size: 16px;
}
html, body {
    margin: 0;
    height: 100%;
    background: var(--grund);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 1rem;
    line-height: 1.5;
    overflow: hidden;
}

a { color: var(--text-2); }

/* ---------- Vollbild-Karte ---------- */
#karte {
    position: fixed;
    inset: 0;
    background: #202124;
    z-index: 1;
}

/* Die CARTO-Dark-Kacheln sind fast schwarz – hier heben wir sie
   auf Dunkelgrau. Nur an dieser Zeile drehen, wenn's heller oder
   dunkler sein soll (z. B. brightness(1.4) oder (1.9)). */
#karte .leaflet-tile {
    filter: grayscale(1) brightness(1.55) contrast(0.95);
}

/* ---------- Ebenen-Umschalter (schwebend, unter dem Zoom) ---------- */

/* ---------- Standort-Knopf (schwebend) ---------- */
.hier-knopf {
    position: fixed;
    right: 16px;
    z-index: 1200;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--linie);
    border-radius: 50%;
    background: var(--flaeche);
    color: var(--akzent);
    cursor: pointer;
    box-shadow: var(--schatten);
    transition: bottom .25s ease;
}
.hier-knopf:hover { background: var(--flaeche-2); }
.hier-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.hier-knopf.sucht svg { animation: drehen 1.2s linear infinite; }
@keyframes drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hier-knopf.sucht svg { animation: none; } }

/* ---------- Panel: Bottom Sheet / Desktop-Karte ---------- */
.panel {
    position: fixed;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: rgba(43, 45, 48, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--linie);
    box-shadow: var(--schatten);
}

/* Mobil: Sheet unten, per Griff in drei Stufen ziehbar */
@media (max-width: 819px) {
    .panel {
        left: 0; right: 0; bottom: 0;
        height: var(--sheet-hoehe, 100dvh);
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        transform: translateY(var(--sheet-y, 53dvh));
        transition: transform .28s cubic-bezier(.25,.8,.35,1);
        touch-action: none;
    }
    .panel.zieht { transition: none; }
    .hier-knopf { bottom: calc(var(--sheet-hoehe, 100dvh) - var(--sheet-y, 53dvh) + 16px); }
}

/* Desktop: schwebende Spalte links, Karte bleibt sichtbar */
@media (min-width: 820px) {
    .panel {
        top: 16px; left: 16px; bottom: 16px;
        width: 400px;
        border-radius: var(--radius);
    }
    .griff-zone { display: none; }
    .hier-knopf { bottom: 24px; }
}

.griff-zone {
    padding: 18px 0;
    margin: -6px 0 -8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    position: relative;
    z-index: 1150;
    touch-action: none;
}
.griff {
    display: block;
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--linie);
}

/* ---------- Kopfzeile im Panel ---------- */
.kopf {
    padding: 6px 14px 0;
    flex-shrink: 0;
}
.kopf h1 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.kopf h1 span { color: var(--akzent); }
@media (min-width: 820px) {
    .kopf { padding-top: 16px; }
    .kopf h1 { font-size: 1.25rem; }
}

/* ---------- Suche ---------- */
.such-zeile {
    position: relative;
    display: flex;
    align-items: center;
    margin: 8px 14px 0;
    flex-shrink: 0;
}
.such-symbol {
    position: absolute;
    left: 12px;
    color: var(--text-2);
    pointer-events: none;
}
#suche {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1px solid var(--linie);
    border-radius: 10px;
    background: var(--grund);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 0.9375rem;
}
#suche::placeholder { color: var(--text-2); }
#suche:focus-visible { outline: 2px solid var(--akzent); outline-offset: 1px; }
.suche-leeren {
    position: absolute;
    right: 6px;
    width: 30px; height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-2);
    font-size: 1.25rem;
    cursor: pointer;
}
.suche-leeren:hover { color: var(--text); }

/* ---------- Filter-Pills mit Dropdowns ---------- */
.pill-zeile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 14px 0;
    flex-shrink: 0;
    align-items: center;
}
.pill-zeile > .dropdown { flex-shrink: 0; }
/* Schriftknöpfe rechts; bei Umbruch rutschen sie sauber in die nächste Reihe */
.schrift-knoepfe { margin-left: auto; }
.dropdown { position: relative; z-index: 1150; }
.schrift-knoepfe {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.schrift-knoepfe button {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--linie);
    border-radius: 999px;
    background: var(--flaeche-2);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.schrift-knoepfe button:hover { border-color: var(--text-2); }
.schrift-knoepfe button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.schrift-knoepfe button:disabled { opacity: .4; cursor: default; }
.pill {
    padding: 8px 14px;
    border: 1px solid var(--linie);
    border-radius: 999px;
    background: var(--flaeche-2);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
}
.pill:hover { border-color: var(--text-2); }
.pill.aktiv {
    background: var(--flaeche-2);
    border-color: var(--akzent);
    color: var(--text);
    font-weight: 600;
}
.pill:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.info-pill {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    flex: 0 0 36px;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    text-decoration: none;
}
.info-pill:hover { text-decoration: none; }
.info-pill { color:#e53945; }
.info-pill:hover { color:#ff5a65; }

.dropdown-menue {
    position: fixed;
    z-index: 10000;
    min-width: 190px;
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    background: var(--flaeche);
    box-shadow: var(--schatten);
}

/* dezenter Scrollbalken im dunklen Menü */
.dropdown-menue::-webkit-scrollbar { width: 8px; }
.dropdown-menue::-webkit-scrollbar-thumb { background: var(--linie); border-radius: 4px; }
.option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-family: var(--schrift);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}
.option:hover { background: var(--flaeche-2); }
.option-zuruecksetzen {
    margin-bottom: 5px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--linie);
    border-radius: 8px 8px 0 0;
    color: var(--text-2);
}
.option.aktiv { color: var(--akzent); font-weight: 600; }
.option.aktiv::after { content: " ✓"; }
.option-punkt {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ---------- Vorschlag ---------- */
.vorschlag {
    margin: 12px 14px 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--flaeche-2);
    border: 1px solid var(--akzent);
    color: var(--text-2);
    font-size: 0.875rem;
    flex-shrink: 0;
}
.vorschlag strong { color: var(--text); }
.vorschlag-titel {
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
}
.vorschlag-titel:not(:first-child) { margin-top: 12px; }
.nah-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nah-ort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--linie);
    border-radius: 8px;
    background: var(--flaeche);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}
.nah-ort:hover { background: var(--flaeche-2); border-color: var(--text-2); }
.nah-ort:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.nah-ort > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nah-dist { color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; flex-shrink: 0; }
.punkt-mini { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }

/* ---------- Routenliste mit Thumbnails ---------- */
.routenliste {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overscroll-behavior: contain;
}
.routen-karte {
    display: grid;
    grid-template-columns: 1fr 64px;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    background: var(--flaeche);
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
}
.routen-karte:hover { background: var(--flaeche-2); }
.routen-karte.aktiv { border-color: var(--routenfarbe, var(--akzent)); }
.routen-karte:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.routen-karte h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
/* Subway-Bullet vor dem Routennamen: farbige Scheibe mit Anfangsbuchstabe */
.routen-karte .punkt {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--routenfarbe, var(--akzent));
    box-shadow: 0 0 0 2px rgba(255,255,255,.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    /* dunkle Schrift auf hellen Linienfarben (Gelb, Grau) lesbarer */
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.routen-karte .stadtteil {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-2);
}
.routen-karte .meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-2);
}
.routen-zeiten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 9px;
}
.routen-zeiten > span {
    display: grid;
    min-width: 0;
}
.routen-zeiten small {
    overflow: hidden;
    color: var(--text-2);
    font-size: .68rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.routen-zeiten strong {
    color: var(--text);
    font-family: var(--mono);
    font-size: .77rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}
.routen-zeit-ausfuehrlich { display: none !important; }
.routen-karte.aktiv .routen-zeit-ausfuehrlich { display: grid !important; }
.routen-karte .beschreibung {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--text-2);
    display: none;
}
.routen-karte.aktiv .beschreibung { display: block; }

/* Mini-Vorschau der Strecke, wie bei Apple */
.thumb {
    width: 64px; height: 64px;
    border-radius: 10px;
    background: var(--grund);
    border: 1px solid var(--linie);
}

.leer-hinweis { color: var(--text-2); font-size: 0.875rem; }

.fuss {
    padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
    font-size: 0.75rem;
    color: var(--text-2);
    flex-shrink: 0;
    border-top: 1px solid var(--linie);
}

/* ---------- Leaflet dunkel ---------- */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--flaeche);
    color: var(--text);
    box-shadow: var(--schatten);
}
.leaflet-popup-content-wrapper { border-radius: var(--radius); }
.leaflet-popup-content {
    margin: 14px 16px;
    font-family: var(--schrift);
    font-size: 0.875rem;
    line-height: 1.5;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.leaflet-control-zoom a {
    background: var(--flaeche);
    color: var(--text);
    border-color: var(--linie);
}
.leaflet-control-zoom a:hover { background: var(--flaeche-2); }
.leaflet-control-attribution {
    background: rgba(36,39,44,.75);
    color: var(--text-2);
}
.leaflet-control-attribution a { color: var(--text-2); }

/* ---------- Fotospot-Popup + Marker ---------- */
.poi-kategorien {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 7px;
    margin-bottom: 3px;
}
.poi-kategorie {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    font-size: .72rem;
    line-height: 1.25;
}
.poi-kategorie-punkt {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.spot-popup .spot-kategorien { margin: 0 0 5px; }
.spot-popup .spot-dauer {
    margin: 0 0 3px;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--text-2);
}
.spot-popup h3 { margin: 0 0 3px; font-size: 1rem; font-weight: 600; }
.spot-popup p { margin: 0; color: var(--text-2); }
.spot-popup .spot-tipp { font-size: 0.875rem; margin: 0; }

.spot-popup .spot-beschreibung {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--linie);
}
.spot-popup .spot-mehr {
    display: none;
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--akzent);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}
.spot-popup .spot-bild {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.spot-popup .spot-knopfreihe {
    display: flex;
    margin-top: 0;
    gap: 8px;
    flex-wrap: wrap;
}
.spot-popup .spot-knopf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 15px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: var(--flaeche-2);
    color: var(--text);
    border: 1px solid var(--linie);
}
.spot-popup .spot-knopf:hover { border-color: var(--text-2); }
.spot-pin {
    position: relative;
    width: 30px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.spot-pin::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 24px;
    height: 24px;
    background: var(--pin-farbe);
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-sizing: border-box;
}
.spot-pin span {
    position: absolute;
    left: 11px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
.spot-pin.klein {
    width: 22px;
    height: 30px;
    opacity: .9;
}
.spot-pin.klein::before {
    left: 2px;
    top: 1px;
    width: 18px;
    height: 18px;
    border-width: 1.5px;
}
.spot-pin.klein span {
    left: 8px;
    top: 7px;
    width: 6px;
    height: 6px;
}


/* ---------- Ansichtsumschalter ---------- */
.ansicht-umschalter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 12px 14px 10px;
    padding: 4px;
    border: 1px solid var(--linie);
    border-radius: 10px;
    background: var(--grund);
}
.ansicht-knopf {
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-2);
    font: 600 .875rem var(--schrift);
    cursor: pointer;
}
.ansicht-knopf.aktiv {
    background: var(--flaeche-2);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.ansicht-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

/* ---------- POI-Liste ---------- */
.poi-karte {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 88px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    background: var(--flaeche);
    color: var(--text);
    text-align: left;
    font-family: var(--schrift);
    cursor: pointer;
}
.poi-karte:hover { background: var(--flaeche-2); }
.poi-karte:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.poi-kartenbild {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    background: var(--grund);
}
.poi-ohne-bild {
    display: grid;
    place-items: center;
    padding: 16px;
}
.poi-ohne-bild img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
}
.poi-karteninhalt {
    display: flex;
    min-width: 0;
    padding: 10px 12px 10px 0;
    flex-direction: column;
    gap: 2px;
}
.poi-karteninhalt strong {
    overflow: hidden;
    font-size: .95rem;
    line-height: 1.3;
    text-overflow: ellipsis;
}
.poi-entfernung {
    color: var(--text-2);
    font-size: .75rem;
}
.poi-entfernung { font-family: var(--mono); }

.spot-routen {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--linie);
}
.spot-routen > p,
.spot-keine-route {
    margin: 0 0 7px !important;
    font-size: .75rem !important;
    font-weight: 600;
    color: var(--text-2);
}
.spot-routenliste {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spot-route {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--linie);
    border-radius: 7px;
    background: var(--flaeche-2);
    color: var(--text);
    font: 600 .8125rem var(--schrift);
    text-align: left;
    cursor: pointer;
}
.spot-route:hover { border-color: var(--text-2); }
.spot-route > span {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--routenfarbe);
    color: #fff;
    font-size: .7rem;
}

/* ---------- Cookie-Banner (Google Analytics) ---------- */
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 4300;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 20px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
}
.cookie-banner p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-2);
}
.cookie-banner strong { color: var(--text); }
.cookie-banner a { color: var(--akzent); }
.cookie-banner-knoepfe { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-knopf {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid var(--linie);
    background: var(--flaeche-2);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.cookie-knopf:not(.leise) { background: var(--flaeche-2); color: var(--text); border-color: var(--akzent); }
.cookie-knopf:hover { filter: brightness(1.08); }
@media (max-width: 600px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .cookie-banner-knoepfe { flex-direction: column-reverse; }
    .cookie-knopf { width: 100%; text-align: center; padding: 12px; }
}

/* ---------- Marker-Cluster (viele Orte dicht beieinander) ---------- */
/* Überschreibt die Standard-Grün/Gelb-Farben von Leaflet.markercluster
   mit dem App-eigenen Anthrazit/Messing-Look. */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
    background: transparent;
}
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
    background: transparent;
}
.spot-cluster {
    display: grid;
    place-items: center;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #3a3c40; /* nochmal deutlich dezenter */
    border: 1.5px solid rgba(255,255,255,.28);
    box-shadow: 0 2px 5px rgba(0,0,0,.45);
    color: #d1d3d7;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 14px;
}

.info-link{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid currentColor;border-radius:50%;font-weight:700;text-decoration:none;line-height:1}


/* ---------- Installation auf dem Homebildschirm ---------- */
.install-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    white-space: nowrap;
}
.install-pill svg { flex: 0 0 auto; }
.install-pill[hidden] { display: none !important; }

.install-dialog {
    width: min(360px, calc(100vw - 28px));
    padding: 0;
    border: 1px solid var(--linie);
    border-radius: 16px;
    background: var(--flaeche);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.install-dialog::backdrop {
    background: rgba(12, 15, 20, .72);
    backdrop-filter: blur(3px);
}
.install-dialog form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 22px;
}
.install-dialog img {
    border-radius: 17px;
}
.install-dialog h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}
.install-dialog p {
    margin: 0;
    color: var(--text-2);
}
.install-dialog ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-2);
}
.install-dialog li + li { margin-top: 7px; }
.install-schliessen {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--flaeche-2);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.install-verstanden {
    align-self: stretch;
    margin-top: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--flaeche-2);
    color: var(--text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

@media (max-width: 430px) {
    .install-pill span { display: none; }
    .install-pill {
        width: 36px;
        padding: 0;
        flex: 0 0 36px;
    }
}


/* ---------- Marken-Farbsystem NYC Fotowalks ---------- */
.kopf h1 { display:flex; align-items:center; gap:10px; }
.kopf-logo-wrap { position:relative; display:inline-flex; flex:0 0 34px; }
.kopf-logo { width:34px; height:34px; border-radius:9px; flex:0 0 34px; }
.alpha-badge {
    position:absolute;
    right:-7px;
    bottom:-5px;
    padding:2px 5px;
    border:1px solid rgba(255,255,255,.28);
    border-radius:999px;
    background:rgba(31,33,37,.94);
    color:rgba(255,255,255,.9);
    font-size:8px;
    font-weight:700;
    line-height:1;
    letter-spacing:.04em;
    text-transform:uppercase;
    box-shadow:0 2px 6px rgba(0,0,0,.28);
    pointer-events:none;
}
.info-pill, .install-pill { background:var(--flaeche-2); border-color:var(--linie); color:var(--text); }
.info-pill:hover, .install-pill:hover { background:#44464b; border-color:var(--akzent); }
.pill.aktiv { background:var(--flaeche-2); border-color:var(--akzent); color:var(--text); }
.vorschlag { border-color:var(--highlight); }
.vorschlag strong { color:var(--highlight); }
.cookie-knopf:not(.leise), .install-verstanden { background:var(--flaeche-2); color:var(--text); border-color:var(--akzent); }


.kopf h1 > span { color:var(--text); }
.kopf h1 .brand-wortmarke { display:inline; color:var(--text); letter-spacing:.08em; text-transform:uppercase; }
.kopf h1 .brand-prefix {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 300;
    color: var(--text);
}
.kopf h1 .brand-highlight {
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--akzent);
    font-weight: 700;
}


/* Designbereinigung Juli 2026 */
.hier-knopf { display:none !important; }
.fuss { margin-top:auto; padding:14px 14px 10px; font-size:.72rem; line-height:1.4; color:rgba(201,203,208,.62); border-top:1px solid rgba(80,82,88,.45); }
.fuss a { color:inherit; text-decoration:none; }
.fuss a:hover { color:var(--text-2); }
.fuss-aktionen { display:flex; gap:16px; align-items:center; margin-bottom:7px; }
.fuss-aktion { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; background:none; color:rgba(201,203,208,.82); font:inherit; font-size:.78rem; cursor:pointer; text-decoration:none; }
.fuss-aktion:hover { color:var(--text); }
.fuss-aktion span[aria-hidden="true"] { font-size:.9rem; }
.fuss-rechtlich { opacity:.78; }
.install-pill[hidden] { display:none !important; }
@media (max-width:819px) { .fuss { padding-bottom:max(10px, env(safe-area-inset-bottom)); } }

/* Dezente, einfarbige Serviceleiste */
.serviceleiste {
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    gap:8px 18px;
    margin:2px 0 14px;
    padding:0 2px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.service-link {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:3px 0;
    border:0;
    background:transparent;
    color:var(--text-2);
    font:inherit;
    font-size:13px;
    line-height:1.2;
    text-decoration:none;
    cursor:pointer;
    transition:color .16s ease;
}
.service-link:hover,
.service-link:focus-visible { color:var(--text); }
.service-link:focus-visible { outline:2px solid var(--akzent); outline-offset:4px; border-radius:3px; }
.service-link svg {
    width:16px;
    height:16px;
    flex:0 0 16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.service-link svg .icon-fill { fill:currentColor; stroke:none; }
.service-link[hidden] { display:none !important; }
.fuss { padding-top:10px; margin-top:14px; }
.fuss-rechtlich { opacity:.66; font-size:11px; line-height:1.45; }
.fuss-rechtlich:hover { opacity:.9; }
@media (max-width:520px) {
    .serviceleiste { gap:9px 15px; }
    .service-link { font-size:12px; }
    .service-link svg { width:15px; height:15px; flex-basis:15px; }
}

@media (max-width:900px){.service-link.install-pill span{display:inline}}

/* Service-Navigation als touchfreundliche Icon-Leiste */
.serviceleiste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 8px;
    margin: 10px 14px 12px;
    padding: 0 0 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.service-link {
    display: flex;
    min-width: 0;
    min-height: 64px;
    padding: 8px 4px 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.service-link:hover,
.service-link:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.07);
}
.service-link:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
}
.service-link svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.service-link span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.service-link.install-pill span { display: block; }
.service-link[hidden] { display: none !important; }
.ansicht-umschalter {
    margin-top: 0;
    margin-bottom: 10px;
}
@media (max-width: 380px) {
    .serviceleiste { gap: 5px; margin-left: 10px; margin-right: 10px; }
    .service-link { min-height: 60px; padding-left: 2px; padding-right: 2px; }
    .service-link svg { width: 22px; height: 22px; flex-basis: 22px; }
    .service-link span { font-size: 10.5px; }
}


/* Service-Funktionen als dezenter Abschluss im Footer */
.fuss {
    margin-top: 22px;
    padding: 18px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(80,82,88,.42);
}
.fuss .serviceleiste {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 12px 28px;
    width: 100%;
    margin: 0 0 17px;
    padding: 0;
}
.fuss .service-link {
    flex: 0 1 68px;
    min-width: 52px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: rgba(201,203,208,.68);
    font: inherit;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.fuss .service-link:hover,
.fuss .service-link:focus-visible { color: var(--text); }
.fuss .service-link:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 4px;
    border-radius: 4px;
}
.fuss .service-link .lucide {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    stroke-width: 1.7;
}
.fuss .service-link[hidden] { display: none !important; }
.fuss-rechtlich {
    padding-top: 13px;
    border-top: 1px solid rgba(80,82,88,.28);
    opacity: .58;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}
.fuss-rechtlich:hover { opacity: .82; }
@media (max-width: 420px) {
    .fuss .serviceleiste { gap: 10px 18px; justify-content: space-between; }
    .fuss .service-link { flex-basis: 58px; }
}

/* Mehr Luft zwischen Seitenlogo und Ansichtsumschalter */
.ansicht-umschalter { margin-top: 14px; }


/* Aufenthaltsangaben bewusst in Worten statt als technische Minutenzeile */
.spot-aufenthalt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
    margin: 12px 0 14px;
    padding-top: 9px;
    border-top: 1px solid var(--linie);
    color: var(--text-2);
}
.spot-aufenthalt > span {
    font-size: .7rem;
}
.spot-aufenthalt > strong {
    color: var(--text);
    font-size: .75rem;
    font-weight: 600;
}
.spot-aufenthalt > small {
    flex-basis: 100%;
    font-size: .7rem;
    line-height: 1.35;
}

.spot-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0 0 8px;
    line-height: 1.3;
}
.spot-hauptkategorie {
    color: var(--text-2);
    font-size: .76rem;
    font-weight: 600;
}
.spot-tags {
    color: var(--text-3, #9da3ad);
    font-size: .72rem;
    overflow-wrap: anywhere;
}
.poi-tagzeile{display:block;margin-top:5px;color:var(--text-3,#9da3ad);font-size:.78rem;line-height:1.35}


/* Entdecken-Filter: zentrale Frage und Laufdistanz */
.entdecken-filter {
    position: relative;
    margin: 14px 14px 2px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    flex-shrink: 0;
}
.entdecken-kopf,
.distanz-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.filter-frage {
    display: block;
    color: var(--text);
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.25;
}
.entdecken-kopf .schrift-knoepfe { margin: -4px 0 -2px auto; }
.entdecken-kopf .schrift-knoepfe button { min-width: 32px; height: 32px; }
.entdecken-auswahl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    padding: 11px 13px;
    border: 1px solid var(--linie);
    border-radius: 11px;
    background: var(--flaeche-2);
    color: var(--text);
    font: inherit;
    font-size: .92rem;
    text-align: left;
    cursor: pointer;
}
.entdecken-auswahl:hover { border-color: var(--text-2); }
.entdecken-auswahl.aktiv { border-color: var(--akzent); }
.entdecken-auswahl svg { flex: 0 0 20px; color: var(--text-2); transition: transform .18s ease; }
.entdecken-auswahl[aria-expanded="true"] svg { transform: rotate(180deg); }
.entdecken-dialog {
    position: absolute;
    z-index: 10020;
    top: 60px;
    left: 14px;
    right: 14px;
    padding: 14px;
    border: 1px solid var(--linie);
    border-radius: 14px;
    background: var(--flaeche);
    box-shadow: var(--schatten);
}
.entdecken-dialog-titel { margin: 0 2px 10px; font-size: .95rem; font-weight: 650; }
.entdecken-optionen { max-height: min(52vh, 390px); overflow-y: auto; }
.entdecken-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 8px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: .88rem;
    text-align: left;
    cursor: pointer;
}
.entdecken-option:hover { background: var(--flaeche-2); }
.auswahl-haken { opacity: 0; color: var(--akzent); font-weight: 700; }
.entdecken-option.aktiv { font-weight: 650; }
.entdecken-option.aktiv .auswahl-haken { opacity: 1; }
.entdecken-dialog-aktionen {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--linie);
}
.dialog-knopf {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--akzent);
    border-radius: 9px;
    background: var(--akzent);
    color: #fff;
    font: inherit;
    font-size: .84rem;
    font-weight: 650;
    cursor: pointer;
}
.dialog-knopf.leise { border-color: var(--linie); background: transparent; color: var(--text-2); }
.distanz-filter { margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.distanz-kopf output { color: var(--text-2); font-size: .84rem; white-space: nowrap; }
#laufdistanz {
    width: 100%;
    height: 24px;
    margin: 9px 0 0;
    accent-color: var(--akzent);
    cursor: pointer;
}
.distanz-skala { display: flex; justify-content: space-between; margin-top: -2px; color: var(--text-2); font-size: .69rem; }
@media (max-width: 819px) {
    .entdecken-filter { margin-top: 10px; padding: 12px; }
    .entdecken-dialog { top: 56px; left: 12px; right: 12px; }
}

/* Kompakter Entdecken-Filter und eigenständige Kategorienauswahl */
.kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.kopf .schrift-knoepfe { margin-left: auto; flex: 0 0 auto; }
.kopf .schrift-knoepfe button { min-width: 30px; width: 30px; height: 30px; padding: 0; }

.entdecken-filter {
    margin: 9px 14px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.entdecken-auswahl {
    min-height: 42px;
    margin-top: 0;
    padding: 7px 11px;
    border-radius: 10px;
}
.entdecken-auswahl-inhalt {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.entdecken-auswahl-frage {
    color: var(--text-2);
    font-size: .69rem;
    font-weight: 500;
    line-height: 1.1;
}
.entdecken-auswahl strong {
    overflow: hidden;
    color: var(--text);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.distanz-filter {
    margin-top: 7px;
    padding: 0 2px;
    border-top: 0;
}
.distanz-kopf { min-height: 20px; }
.distanz-kopf .filter-frage { font-size: .76rem; font-weight: 550; }
.distanz-kopf output { font-size: .74rem; }
#laufdistanz { height: 18px; margin: 1px 0 0; }
.distanz-skala { display: none; }

.entdecken-dialog-hintergrund {
    position: fixed;
    z-index: 20000;
    inset: 0;
    background: rgba(0,0,0,.56);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.entdecken-dialog {
    position: fixed;
    z-index: 20010;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100dvh - 32px));
    padding: 16px;
    border: 1px solid var(--linie);
    border-radius: 16px;
    background: var(--flaeche);
    box-shadow: var(--schatten);
    transform: translate(-50%, -50%);
}
.entdecken-dialog[hidden],
.entdecken-dialog-hintergrund[hidden] { display: none !important; }
.entdecken-dialog-griff { display: none; }
.entdecken-dialog-titel { margin: 0 2px 11px; font-size: 1rem; font-weight: 650; }
.entdecken-optionen {
    max-height: calc(min(720px, 100dvh - 32px) - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
body.kategorie-dialog-offen { overflow: hidden; }

@media (max-width: 819px) {
    .entdecken-filter { margin-top: 7px; }
    .entdecken-dialog {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: min(78dvh, 680px);
        padding: 10px 14px max(14px, env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        transform: none;
    }
    .entdecken-dialog-griff {
        display: block;
        width: 38px;
        height: 4px;
        margin: 0 auto 12px;
        border-radius: 999px;
        background: var(--linie);
    }
    .entdecken-optionen { max-height: calc(min(78dvh, 680px) - 126px); }
    .fuss {
        margin-top: 0;
        padding: 8px 14px max(7px, env(safe-area-inset-bottom));
    }
    .fuss .serviceleiste { margin-bottom: 7px; }
    .fuss .service-link { gap: 3px; padding: 1px 2px; }
    .fuss-rechtlich { display: none; }
}

/* Kompakte Tab-Bar für die Servicefunktionen */
.fuss {
    margin-top: 10px;
    padding: 0 12px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(80,82,88,.42);
}
.fuss .serviceleiste {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    min-height: 46px;
    margin: 0;
    padding: 2px 0 1px;
}
.fuss .service-link {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    flex-basis: auto;
    gap: 1px;
    padding: 3px 2px 2px;
    justify-content: center;
    border-radius: 7px;
    font-size: 9.5px;
    line-height: 1;
}
.fuss .service-link .lucide {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    stroke-width: 1.8;
}
.fuss .service-link span {
    font-size: 9.5px;
    line-height: 1;
}
.fuss-rechtlich {
    margin-top: 0;
    padding: 8px 0 6px;
}

@media (max-width: 819px) {
    .fuss {
        margin-top: 0;
        padding: 0 8px max(3px, env(safe-area-inset-bottom));
    }
    .fuss .serviceleiste {
        min-height: 44px;
        margin: 0;
        padding: 1px 0 0;
    }
    .fuss .service-link {
        min-height: 40px;
        gap: 1px;
        padding: 2px 1px 1px;
    }
    .fuss .service-link .lucide {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }
    .fuss .service-link span { font-size: 9px; }
}


/* Kompakte Tab-Bar mit vier gleichberechtigten Punkten */
.fuss {
    border-top: 0;
    text-align: center;
}
.fuss .serviceleiste {
    grid-template-columns: repeat(4, minmax(0, 72px));
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 0;
}
.fuss .service-link {
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
}
.fuss .service-link::before,
.fuss .service-link::after {
    display: none;
}
.paragraph-symbol {
    display: flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px !important;
    font-weight: 700;
    line-height: 1;
}
@media (max-width: 819px) {
    .fuss .serviceleiste {
        grid-template-columns: repeat(4, minmax(0, 64px));
    }
}

.serviceleiste{justify-content:space-between}.service-link{flex:1;min-width:0;justify-content:center}.install-pill{flex:1}.service-link span{white-space:nowrap}


/* UI-Fix Juli 2026: dynamische Serviceleiste und iPhone-sicheres Kategorie-Sheet */
.fuss .serviceleiste {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    gap: 0;
}
.fuss .service-link,
.fuss .install-pill {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
}
.fuss .service-link span {
    white-space: nowrap;
}

@media (max-width: 819px) {
    .entdecken-dialog {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        max-height: calc(100dvh - max(72px, calc(env(safe-area-inset-top) + 16px)));
    }
    .entdecken-optionen {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    .entdecken-dialog-griff {
        flex: 0 0 auto;
    }
    .entdecken-dialog-titel,
    .entdecken-dialog-aktionen {
        flex: 0 0 auto;
    }
}


/* UI-Korrektur Juli 2026: iPhone-Safe-Area, sichtbare Tabbar und Filteraktionen */
@media (max-width: 819px) {
    .panel {
        height: var(--sheet-hoehe, calc(100dvh - 64px));
        max-height: calc(100dvh - 64px);
    }
    .routenliste {
        min-height: 0;
        padding-bottom: 12px;
    }
    .fuss {
        flex: 0 0 auto;
        margin-top: 0;
        background: rgba(43,45,48,.98);
        padding-bottom: max(5px, env(safe-area-inset-bottom));
    }
    .entdecken-dialog {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: calc(var(--sichtbare-hoehe, 100dvh) - max(16px, env(safe-area-inset-top)) - 12px);
        overflow: hidden;
    }
    .entdecken-optionen {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding-bottom: 4px;
    }
    .entdecken-dialog-aktionen {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        margin-top: 8px;
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        background: var(--flaeche);
    }
}


/* ---------- Kompakte Walk-Details auf der Karte ---------- */
.routen-detail {
    position: fixed;
    z-index: 1120;
    left: 14px;
    right: 14px;
    bottom: 16px;
    max-width: 390px;
    padding: 12px 38px 12px 14px;
    border: 1px solid var(--routenfarbe, var(--akzent));
    border-radius: 12px;
    background: rgba(43,45,48,.96);
    color: var(--text);
    box-shadow: var(--schatten);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: bottom .25s ease, opacity .18s ease;
}
.routen-detail[hidden] { display: none; }
.routen-detail > strong {
    display: block;
    margin: 0 0 2px;
    font-size: .95rem;
}
.routen-detail > span,
.routen-detail-leer {
    display: block;
    margin: 0;
    color: var(--text-2);
    font-size: .78rem;
}
.routen-detail-mehr {
    display: inline-block;
    margin: 3px 0 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: 600 .78rem var(--schrift);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.routen-detail-mehr:hover,
.routen-detail-mehr:focus-visible { color: var(--text); }
.routen-detail-zusatz[hidden] { display: none; }
.routen-detail ol {
    display: grid;
    gap: 1px;
    margin: 6px 0 2px;
    padding: 0;
    list-style: none;
    counter-reset: walk-highlight;
}
.routen-detail li {
    position: relative;
    overflow: hidden;
    padding-left: 22px;
    counter-increment: walk-highlight;
    font-size: .82rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.routen-detail li::before {
    content: counter(walk-highlight) '.';
    position: absolute;
    left: 0;
    color: var(--routenfarbe, var(--akzent));
}
.routen-detail-poi {
    display: block;
    width: 100%;
    overflow: hidden;
    padding: 1px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--routenfarbe, var(--akzent)) 55%, transparent);
    text-underline-offset: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.routen-detail-poi:focus-visible {
    outline: 2px solid var(--routenfarbe, var(--akzent));
    outline-offset: 2px;
    border-radius: 3px;
}
.routen-detail-schliessen {
    position: absolute;
    top: 5px;
    right: 7px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
@media (min-width: 820px) {
    .routen-detail {
        left: 432px;
        right: auto;
        width: min(390px, calc(100vw - 448px));
    }
}

/* ===== Ruhiger Einstieg: eine Frage, die Bedienung erst auf Ebene zwei ===== */
.startdialog-hintergrund {
    position: fixed; inset: 0; z-index: 4100;
    background: rgba(12,14,17,.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.startdialog {
    position: fixed; inset: 0; z-index: 4101;
    display: grid; place-items: center;
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    pointer-events: none;
}
.startdialog[hidden], .startdialog-hintergrund[hidden] { display:none !important; }
.startdialog-inhalt {
    width: min(680px, 100%);
    padding: clamp(22px, 5vw, 38px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    background: rgba(35,38,43,.96);
    box-shadow: 0 24px 80px rgba(0,0,0,.42);
    pointer-events: auto;
}
.startdialog h2 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.startdialog-suche {
    display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:10px;
    min-height:58px; padding:6px 7px 6px 16px;
    border:1px solid rgba(255,255,255,.24); border-radius:16px;
    background:#1e2024;
}
.startdialog-suche:focus-within { border-color:var(--akzent); box-shadow:0 0 0 3px rgba(83,148,220,.18); }
.startdialog-suche svg { color:var(--text-2); }
.startdialog-suche input {
    min-width:0; width:100%; padding:10px 0; border:0; outline:0;
    background:transparent; color:var(--text); font:inherit; font-size:1.05rem;
}

.startdialog-zweite-ebene { margin-top:22px; }
.startdialog-zweite-ebene p { margin:0 0 10px; color:var(--text-2); font-size:.9rem; }
.startdialog-vorschlaege { display:flex; flex-wrap:wrap; gap:9px; }
.startdialog-vorschlaege button {
    padding:10px 13px; border:1px solid var(--linie); border-radius:999px;
    background:var(--flaeche-2); color:var(--text); font:inherit; cursor:pointer;
}
.startdialog-vorschlaege button:hover, .startdialog-vorschlaege button:focus-visible { border-color:var(--akzent); }
.startdialog-ueberspringen {
    display:block; margin:18px auto 0; padding:8px 10px; border:0;
    background:transparent; color:var(--text-2); font:inherit; cursor:pointer;
}
@media (max-width: 560px) {
    .startdialog { place-items:end center; padding-left:10px; padding-right:10px; }
    .startdialog-inhalt { border-radius:22px; padding:22px 18px; }
    .startdialog h2 { margin-bottom:18px; }
    .startdialog-suche { grid-template-columns:auto minmax(0,1fr); padding-right:12px; }
}

/* Chrome auf iOS: Popup bleibt innerhalb des sichtbaren Kartenbereichs. */
@media (max-width: 819px) {
    .leaflet-popup {
        width: min(90vw, 430px) !important;
        max-width: min(90vw, 430px) !important;
    }
    .leaflet-popup-content-wrapper {
        width: 100%;
        max-height: min(64dvh, 520px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    .leaflet-popup-content {
        width: auto !important;
        min-width: 0;
        max-width: none;
        margin: 12px 14px;
    }
    .spot-popup .spot-bild { height: 190px; max-height: 190px; object-fit: cover; }
    .spot-popup .spot-knopfreihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 13px; }
    .spot-popup .spot-knopf { justify-content: center; padding: 10px 12px; }
    .spot-popup .spot-knopfreihe .spot-knopf:only-child { grid-column: 1 / -1; }
    .spot-popup .spot-beschreibung .spot-tipp {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .spot-popup .spot-beschreibung.offen .spot-tipp {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
    .spot-popup .spot-mehr { display: inline-flex; }
}

/* Statistik V2 */
.stat-zeitraumleiste{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;margin:0 0 18px}.stat-datumswahl{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}.stat-datumswahl label{display:grid;gap:5px;font-size:.8rem;color:var(--text-leise,#b7bcc4)}.stat-datumswahl input[type=date]{min-width:145px}.stat-inhaltscockpit{margin-bottom:18px}.stat-kopfzeile{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.stat-kopfzeile h3{margin:0 0 4px}.stat-kopfzeile p{margin:0}.stat-badge{white-space:nowrap;border:1px solid rgba(87,153,224,.6);border-radius:999px;padding:5px 9px;font-size:.72rem;color:#8dc3ff}.stat-kacheln-kompakt{margin-bottom:18px}.stat-inhaltstabellen{align-items:start}.stat-inhaltstabellen h4{margin:0 0 10px}.stat-inhaltstabellen>div{min-width:0;padding-top:2px}
@media(max-width:700px){.stat-zeitraumleiste{align-items:stretch}.stat-datumswahl{display:grid;grid-template-columns:1fr 1fr}.stat-datumswahl .knopf{grid-column:1/-1}.stat-datumswahl input[type=date]{min-width:0;width:100%}.stat-kopfzeile{display:block}.stat-badge{display:inline-block;margin-top:10px}}

/* Statistik-Dashboard – kompakter Zeitraum, integriertes GA und ruhige Redaktionslisten */
.stat-filterbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 18px;padding:10px 12px;border:1px solid var(--linie,#4b5058);border-radius:14px;background:var(--flaeche-2,#282b30)}
.stat-filterbar .zeitraum-auswahl{display:flex;gap:5px;flex-wrap:wrap}.stat-filterbar .zeitraum-pill{padding:7px 11px;font-size:.82rem;border-radius:999px}.stat-datumswahl-inline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.stat-datumswahl-inline label{display:flex;align-items:center;gap:6px;color:var(--text-leise,#b8bdc5);font-size:.76rem}.stat-datumswahl-inline input[type=date]{width:132px;min-width:0;height:34px;padding:5px 8px;border:1px solid var(--linie,#4b5058);border-radius:9px;background:var(--feld,#1d2025);color:var(--text,#fff);color-scheme:dark;font:inherit;font-size:.78rem}.stat-datumswahl-inline input[type=date]:focus{outline:2px solid rgba(75,145,224,.4);border-color:var(--akzent,#4b91e0)}.stat-date-separator{color:var(--text-leise,#9fa5ae)}.stat-date-submit{min-height:34px;padding:6px 11px;font-size:.78rem}
.stat-dashboard-section{margin:0 0 18px;padding:20px;border:1px solid var(--linie,#4b5058);border-radius:15px;background:var(--flaeche-2,#282b30)}.stat-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.stat-section-head h3{margin:2px 0 4px}.stat-section-head p{margin:0;color:var(--text-leise,#b8bdc5)}.stat-sync{color:var(--text-leise,#aeb4bd);white-space:nowrap}
.stat-ga-compact{padding-bottom:18px}.stat-ga-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.stat-ga-kpis article{min-height:92px;padding:14px;border:1px solid var(--linie,#4b5058);border-radius:12px;background:rgba(0,0,0,.08);display:flex;flex-direction:column;justify-content:center}.stat-ga-kpis b{font-size:1.55rem;line-height:1.1;color:var(--akzent,#5799e0);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.stat-ga-kpis span{margin-top:8px;font-size:.78rem;color:var(--text-leise,#c2c6cd)}
.stat-chart-card{padding:15px 16px 10px;border:1px solid var(--linie,#4b5058);border-radius:12px;background:rgba(0,0,0,.08)}.stat-chart-card h4{margin:0}.stat-verlauf-kompakt{min-height:145px;height:145px;margin-top:4px}.stat-verlauf-kompakt .verlauf-saeule{min-width:24px}.verlauf-wert{font-size:.66rem;color:var(--text-leise,#b8bdc5);min-height:16px}
.stat-dashboard-grid-content{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.stat-panel-wide{grid-column:1/-1}.stat-content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.stat-mini-empty{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text-leise,#b8bdc5);gap:5px}.stat-mini-empty b{color:var(--text,#fff)}
.stat-editorial-section{padding-bottom:16px}.stat-editorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.stat-editorial-grid h4{margin:0 0 8px}.stat-more{margin-top:8px}.stat-more summary{cursor:pointer;color:var(--akzent,#5799e0);font-size:.8rem;padding:7px 0}.stat-more[open] summary{margin-bottom:4px}.stat-inline-warning{margin:0 0 18px;padding:12px 14px;border:1px solid rgba(220,166,67,.55);border-radius:11px;background:rgba(220,166,67,.08);color:#e6c178;font-size:.86rem}
@media(max-width:900px){.stat-ga-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-ga-kpis article:last-child{grid-column:1/-1}.stat-filterbar{align-items:stretch}.stat-datumswahl-inline{width:100%}.stat-dashboard-grid-content,.stat-editorial-grid{grid-template-columns:1fr}.stat-panel-wide{grid-column:auto}.stat-content-grid{grid-template-columns:1fr}}
@media(max-width:600px){.stat-filterbar{padding:9px}.stat-filterbar .zeitraum-auswahl{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;width:100%}.stat-filterbar .zeitraum-pill{white-space:nowrap}.stat-datumswahl-inline{display:grid;grid-template-columns:1fr auto 1fr}.stat-datumswahl-inline label{display:grid;gap:4px}.stat-datumswahl-inline input[type=date]{width:100%}.stat-date-submit{grid-column:1/-1}.stat-dashboard-section{padding:15px}.stat-ga-kpis{grid-template-columns:1fr 1fr}.stat-section-head{display:block}.stat-sync{display:block;margin-top:5px}.stat-verlauf-kompakt{overflow-x:auto;justify-content:flex-start}.stat-content-grid{display:block}}

/* ---------- Ruhiges POI-Popup für Desktop und iPad ---------- */
@media (min-width: 700px) {
    .leaflet-popup {
        width: min(440px, calc(100vw - 48px)) !important;
        max-width: min(440px, calc(100vw - 48px)) !important;
    }
    .leaflet-popup-content-wrapper {
        width: 100%;
        max-height: min(78vh, 720px);
        overflow: auto;
        border-radius: 18px;
    }
    .leaflet-popup-content {
        width: auto !important;
        min-width: 0;
        margin: 0;
        font-size: 1rem;
        line-height: 1.55;
    }
    .leaflet-container a.leaflet-popup-close-button {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 25px;
        line-height: 30px;
        border-radius: 50%;
        background: rgba(20, 22, 25, .78);
        color: var(--text);
    }
    .spot-popup {
        padding: 18px 20px 20px;
    }
    .spot-popup .spot-bild {
        height: 220px;
        margin: 0 0 22px;
        border-radius: 12px;
    }
    .spot-popup .spot-kopf {
        display: grid;
        gap: 8px;
    }
    .spot-popup h3 {
        margin: 0;
        font-size: 1.38rem;
        line-height: 1.25;
        font-weight: 650;
        letter-spacing: -.012em;
    }
    .spot-popup .spot-meta {
        display: grid;
        gap: 3px;
        margin: 0;
    }
    .spot-popup .spot-hauptkategorie,
    .spot-popup .spot-tags {
        display: block;
        color: var(--text-2);
        font-size: .84rem;
        line-height: 1.4;
        font-weight: 400;
    }
    .spot-popup .spot-hauptkategorie {
        color: var(--text);
        font-weight: 550;
    }
    .spot-popup .spot-beschreibung {
        margin: 24px 0 0;
        padding: 0;
        border: 0;
    }
    .spot-popup .spot-tipp {
        margin: 0;
        color: var(--text-2);
        font-size: 1rem;
        line-height: 1.62;
    }
    .spot-popup .spot-mehr { display: none; }
    .spot-popup .spot-aktionen {
        margin-top: 24px;
    }
    .spot-popup .spot-knopf {
        min-height: 44px;
        padding: 10px 16px;
        border-radius: 9px;
        font-size: .92rem;
        font-weight: 600;
    }
    .spot-popup .spot-routen {
        margin-top: 28px;
    }
    .spot-popup .spot-routen h4 {
        margin: 0 0 10px;
        color: var(--text);
        font-size: .88rem;
        line-height: 1.35;
        font-weight: 600;
    }
    .spot-popup .spot-routenliste {
        display: grid;
        gap: 8px;
    }
    .spot-popup .spot-route {
        width: 100%;
        justify-content: flex-start;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 9px;
        text-align: left;
    }
    .spot-popup .spot-details {
        margin-top: 28px;
        padding-top: 18px;
        border-top: 1px solid var(--linie);
    }
    .spot-popup .spot-details summary {
        cursor: pointer;
        color: var(--text);
        font-size: .9rem;
        font-weight: 600;
        list-style-position: outside;
    }
    .spot-popup .spot-details-inhalt {
        display: grid;
        gap: 16px;
        margin-top: 16px;
    }
    .spot-popup .spot-aufenthalt {
        display: grid;
        gap: 3px;
        margin: 0;
        padding: 0;
        border: 0;
    }
    .spot-popup .spot-aufenthalt span,
    .spot-popup .spot-aufenthalt small {
        color: var(--text-2);
        font-size: .78rem;
        line-height: 1.4;
    }
    .spot-popup .spot-aufenthalt strong {
        color: var(--text);
        font-size: .9rem;
        font-weight: 600;
    }
    .spot-popup .spot-detail-link {
        width: fit-content;
        color: var(--akzent);
        font-size: .88rem;
        font-weight: 600;
        text-decoration: none;
    }
    .spot-popup .spot-detail-link:hover { text-decoration: underline; }
}

/* ============================================================
   Mobile UX: Suche und Filter nur auf ausdrücklichen Wunsch
   ============================================================ */
.filter-zusammenfassung { display: none; }

@media (max-width: 819px) {
    .filter-zusammenfassung {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: calc(100% - 28px);
        margin: 8px 14px 4px;
        padding: 10px 0;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        background: transparent;
        color: var(--text);
        font: inherit;
        text-align: left;
        cursor: pointer;
        flex: 0 0 auto;
    }
    .filter-zusammenfassung > span:first-child {
        display: grid;
        min-width: 0;
        gap: 2px;
    }
    .filter-zusammenfassung strong {
        font-size: .86rem;
        font-weight: 600;
    }
    .filter-zusammenfassung small {
        overflow: hidden;
        color: var(--text-2);
        font-size: .72rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .filter-zusammenfassung-aktion {
        color: var(--akzent);
        font-size: .76rem;
        font-weight: 600;
        white-space: nowrap;
    }
    .entdecken-filter[hidden] { display: none !important; }
    .panel.filter-kompakt .kopf { display: none; }
    .panel.filter-kompakt .ansicht-umschalter { margin-top: 2px; }
    .panel.filter-kompakt .such-zeile { display: none; }
    .panel.filter-kompakt .routenliste { padding-top: 4px; }
    .panel.filter-kompakt .fuss { display: none; }
}

/* Zugehörige Touren im POI-Popup bewusst eingeklappt. */
.spot-routen > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  list-style:none;
  color:var(--text);
  font-size:.82rem;
  font-weight:650;
}
.spot-routen > summary::-webkit-details-marker { display:none; }
.spot-routen > summary::after { content:'›'; color:var(--text-2); transform:rotate(90deg); transition:transform .15s ease; }
.spot-routen[open] > summary::after { transform:rotate(-90deg); }
.spot-routen > summary span { margin-left:auto; color:var(--text-2); font-size:.75rem; font-weight:500; }
.spot-routen[open] .spot-routenliste { margin-top:10px; }


/* ---------- Schlanker Kopf des Bottom Sheets bei gewählter Tour ----------
   Im geschlossenen Zustand bleiben nur Griff und Marken-Kopf sichtbar.
   Alle Such-/Filterelemente beginnen erst, wenn das Sheet wieder geöffnet
   wird. Das entspricht der installierten mobilen Darstellung und verhindert
   den schmalen, abgeschnittenen Filterstreifen über der Tourenkarte. */
@media (max-width: 819px) {
    .panel.element-aktiv.sheet-zu .kopf {
        display: flex !important;
        min-height: 72px;
        padding: 4px 28px 14px;
        align-items: center;
        border: 0;
        background: transparent;
    }
    .panel.element-aktiv.sheet-zu .kopf h1 {
        min-width: 0;
        font-size: clamp(.95rem, 4.2vw, 1.15rem);
    }
    .panel.element-aktiv.sheet-zu .kopf-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .panel.element-aktiv.sheet-zu .ansicht-umschalter,
    .panel.element-aktiv.sheet-zu .such-zeile,
    .panel.element-aktiv.sheet-zu .filter-zusammenfassung,
    .panel.element-aktiv.sheet-zu .entdecken-filter,
    .panel.element-aktiv.sheet-zu .routenliste,
    .panel.element-aktiv.sheet-zu .poi-liste,
    .panel.element-aktiv.sheet-zu .fuss {
        display: none !important;
    }
    .panel.element-aktiv.sheet-zu .griff-zone {
        padding: 14px 0 10px;
        margin: 0;
        min-height: 34px;
    }
    .panel.element-aktiv.sheet-zu {
        overflow: hidden;
    }
}


/* ---------- Auswahlmodus: maximiert die sichtbare Karte ----------
   Sobald eine Tour oder ein POI ausgewählt ist, kann das Bottom Sheet bis
   auf Griff und Marken-Kopf zusammengeschoben werden. */
@media (max-width: 819px) {
    .panel.element-aktiv.sheet-zu {
        min-height: 0;
    }

    /* Deutliches, gut erreichbares Schließen im POI-Popup */
    .leaflet-container a.leaflet-popup-close-button {
        top: 8px;
        right: 8px;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 50%;
        background: rgba(31,33,37,.94);
        color: #fff;
        font-size: 31px;
        font-weight: 500;
        line-height: 1;
        text-shadow: 0 1px 2px rgba(0,0,0,.65);
        box-shadow: 0 4px 14px rgba(0,0,0,.38);
        opacity: 1;
        z-index: 10;
    }
    .leaflet-container a.leaflet-popup-close-button:hover,
    .leaflet-container a.leaflet-popup-close-button:focus-visible {
        background: var(--flaeche-2);
        border-color: rgba(255,255,255,.5);
        outline: 2px solid var(--akzent);
        outline-offset: 2px;
    }
    .spot-popup {
        padding-top: 34px;
    }
}


/* ---------- Juli 2026: wirklich kompakter Auswahlzustand ---------- */
@media (max-width: 819px) {
    .panel.element-aktiv.sheet-zu .griff-zone {
        min-height: 26px;
        padding: 9px 0 6px;
        margin: 0;
    }
    .panel.element-aktiv.sheet-zu .griff {
        width: 42px;
        height: 5px;
    }
    .panel.element-aktiv.sheet-zu .kopf {
        min-height: 62px;
        padding: 2px 28px 10px;
    }
    .panel.element-aktiv.sheet-zu .kopf-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
    .panel.element-aktiv.sheet-zu .schrift-knoepfe button {
        width: 42px;
        height: 42px;
    }

    /* POI schließen: dezent über dem Bild statt großer Kreis mit Rand. */
    .leaflet-container a.leaflet-popup-close-button {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(25, 27, 31, .78);
        color: transparent;
        font-size: 0;
        line-height: 0;
        text-shadow: none;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 1;
        z-index: 20;
    }
    .leaflet-container a.leaflet-popup-close-button::before,
    .leaflet-container a.leaflet-popup-close-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transform-origin: center;
    }
    .leaflet-container a.leaflet-popup-close-button::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .leaflet-container a.leaflet-popup-close-button::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    .leaflet-container a.leaflet-popup-close-button:hover,
    .leaflet-container a.leaflet-popup-close-button:focus-visible {
        border: 0;
        background: rgba(18, 20, 23, .92);
        outline: 2px solid rgba(255, 255, 255, .8);
        outline-offset: 2px;
    }
    .spot-popup {
        padding-top: 0;
    }
}


/* ---------- Juli 2026: minimaler Bottom-Sheet-Zustand ----------
   Bei aktiver Tour oder aktivem POI bleibt in der untersten Raststufe
   ausschließlich der Ziehgriff sichtbar. */
@media (max-width: 819px) {
    .panel.element-aktiv.sheet-zu .kopf,
    .panel.element-aktiv.sheet-zu .ansicht-umschalter,
    .panel.element-aktiv.sheet-zu .such-zeile,
    .panel.element-aktiv.sheet-zu .filter-zusammenfassung,
    .panel.element-aktiv.sheet-zu .entdecken-filter,
    .panel.element-aktiv.sheet-zu .routenliste,
    .panel.element-aktiv.sheet-zu .poi-liste,
    .panel.element-aktiv.sheet-zu .fuss {
        display: none !important;
    }

    .panel.element-aktiv.sheet-zu .griff-zone {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: 34px;
        min-height: 34px;
        padding: 10px 0 12px;
        margin: 0;
        background: transparent;
    }

    .panel.element-aktiv.sheet-zu .griff {
        width: 44px;
        height: 5px;
        margin: 0;
        opacity: .78;
    }

    .panel.element-aktiv.sheet-zu {
        min-height: 0 !important;
        overflow: hidden !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        background: rgba(70, 73, 79, .98);
        border-color: rgba(255, 255, 255, .22);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .34);
    }

    .panel.element-aktiv.sheet-zu .griff-zone {
        background: rgba(70, 73, 79, .98);
    }

    .panel.element-aktiv.sheet-zu .griff {
        background: rgba(255, 255, 255, .42);
        opacity: 1;
    }
}

/* Karten-Zoomsteuerung: Auf Touch-Geräten erfolgt der Zoom per Geste. */
@media (hover: none), (pointer: coarse) {
  .leaflet-control-zoom {
    display: none !important;
  }
}

/* ---------- Juli 2026: Tastatur, Filterbutton und einheitliches POI-Popup ---------- */
@media (max-width: 819px) {
    /* Das Sheet folgt dem tatsächlich sichtbaren Browserfenster. Dadurch bleibt
       das Suchfeld oberhalb der Bildschirmtastatur statt dahinter. */
    .panel {
        top: var(--viewport-oben, 0px);
        bottom: auto;
    }
    .panel.tastatur-aktiv {
        border-radius: 14px 14px 0 0;
    }

    /* Der Filterzugang soll wie eine echte, gut erkennbare Aktion wirken. */
    .filter-zusammenfassung {
        min-height: 48px;
        margin: 9px 14px 5px;
        padding: 9px 12px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 11px;
        background: rgba(255,255,255,.055);
        color: var(--text);
        box-shadow: 0 1px 0 rgba(255,255,255,.035) inset;
    }
    .filter-zusammenfassung:hover,
    .filter-zusammenfassung:focus-visible {
        border-color: rgba(79,134,198,.8);
        background: rgba(79,134,198,.12);
        outline: none;
    }
    .filter-zusammenfassung > span:first-child {
        display: grid;
        min-width: 0;
        gap: 1px;
        text-align: left;
    }
    .filter-zusammenfassung strong {
        font-size: .84rem;
        line-height: 1.2;
    }
    .filter-zusammenfassung small {
        overflow: hidden;
        color: var(--text-2);
        font-size: .72rem;
        line-height: 1.2;
        text-overflow: ellipsis;
    }
    .filter-zusammenfassung-aktion {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 8px;
        border-radius: 999px;
        background: rgba(79,134,198,.18);
        color: #9fc7f3;
        font-size: .72rem;
    }
    .filter-zusammenfassung-aktion::after {
        content: '›';
        font-size: 1rem;
        line-height: .8;
        transform: rotate(90deg);
        transition: transform .18s ease;
    }
    .filter-zusammenfassung[aria-expanded="true"] .filter-zusammenfassung-aktion::after {
        transform: rotate(-90deg);
    }
}

/* Zusatzbereiche im POI-Popup verwenden dieselbe visuelle Logik. */
.spot-popup .spot-accordion {
    margin: 16px 0 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    overflow: hidden;
}
.spot-popup .spot-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}
.spot-popup .spot-accordion > summary::-webkit-details-marker { display: none; }
.spot-popup .spot-accordion > summary::after {
    content: '›';
    flex: 0 0 auto;
    color: var(--text-2);
    font-size: 1.2rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform .16s ease;
}
.spot-popup .spot-accordion[open] > summary::after { transform: rotate(-90deg); }
.spot-popup .spot-accordion-text {
    display: grid;
    min-width: 0;
    gap: 2px;
    text-align: left;
}
.spot-popup .spot-accordion-text strong {
    color: var(--text);
    font-size: .86rem;
    line-height: 1.25;
    font-weight: 650;
}
.spot-popup .spot-accordion-text small {
    color: var(--text-2);
    font-size: .72rem;
    line-height: 1.25;
    font-weight: 400;
}
.spot-popup .spot-accordion[open] > summary {
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.025);
}
.spot-popup .spot-routenliste,
.spot-popup .spot-details-inhalt {
    margin: 0 !important;
    padding: 10px 12px 12px;
}
.spot-popup .spot-details {
    border-top: 1px solid rgba(255,255,255,.12) !important;
}
.spot-popup .spot-routen {
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

@media (max-width: 699px) {
    .spot-popup {
        padding: 0 14px 16px;
    }
    .spot-popup .spot-bild {
        margin-left: -14px;
        width: calc(100% + 28px);
        border-radius: 10px 10px 0 0;
    }
    .spot-popup .spot-kopf { margin-top: 14px; }
    .spot-popup .spot-beschreibung,
    .spot-popup .spot-aktionen,
    .spot-popup .spot-accordion { margin-top: 16px; }
}
\n\n/* ---------- Juli 2026: klarere Sheet-Stufen ---------- */\n@media (max-width: 819px) {\n    /* Voll geöffnet bleibt bewusst unter Statusleiste/Dynamic Island und lässt\n       einen schmalen Kartenstreifen als räumliche Orientierung sichtbar. */\n    .panel.sheet-offen {\n        border-radius: 18px 18px 0 0;\n    }\n\n    /* Wenn das Sheet die Inhaltsansicht vollständig übernimmt, haben\n       schwebende Karteninformationen keinen Nutzen und erzeugen nur Unruhe. */\n    body.sheet-voll-geoeffnet .routen-detail,\n    body.sheet-voll-geoeffnet .leaflet-popup-pane,\n    body.sheet-voll-geoeffnet .hier-knopf {\n        opacity: 0 !important;\n        visibility: hidden !important;\n        pointer-events: none !important;\n    }\n}\n\n\n/* ---------- Juli 2026: korrigierte Viewport- und Sheet-Offsets ---------- */\n@media (max-width: 819px) {\n    /* Die JS-Höhe entspricht bereits dem visualViewport. Keine zweite\n       Höhenbegrenzung und kein zusätzlicher Reserveabzug im CSS. */\n    .panel {\n        height: var(--sheet-hoehe, 100dvh) !important;\n        max-height: none !important;\n        top: var(--viewport-oben, 0px) !important;\n        bottom: auto !important;\n    }\n\n    /* Im Minimalzustand endet das Sheet exakt am sichtbaren unteren Rand. */\n    .panel.element-aktiv.sheet-zu {\n        height: var(--sheet-hoehe, 100dvh) !important;\n    }\n}\n

/* ---------- Juli 2026: Karten-Overlays bei vollständig geöffnetem Sheet ---------- */
@media (max-width: 819px) {
    body.sheet-kartenoverlays-aus .routen-detail,
    body.sheet-kartenoverlays-aus .leaflet-popup-pane,
    body.sheet-kartenoverlays-aus .leaflet-tooltip-pane,
    body.sheet-kartenoverlays-aus .hier-knopf {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

.routen-detail-transfers{margin:10px 0 12px;padding:10px 12px;border-radius:12px;background:rgba(119,87,200,.09);display:grid;gap:6px}.routen-detail-transfers>span{font-size:.78rem;font-weight:700}.routen-detail-transfers>div{display:flex;gap:7px;align-items:baseline}.routen-detail-transfers>div span{font-size:.82rem}.routen-detail-transfers small{font-size:.72rem;opacity:.72}


/* ---------- Tour für jetzt ---------- */
.hier-knopf{display:flex!important;align-items:center;justify-content:center;font-size:24px}
.jetzt-tour{padding:4px 0 18px}.jetzt-tour-kopf{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.jetzt-tour-kopf small{color:var(--text-leise);text-transform:uppercase;letter-spacing:.08em}.jetzt-tour-kopf h2{margin:3px 0 0;font-size:1.35rem}.jetzt-tour-kopf button{width:42px;height:42px;border-radius:50%;border:0;background:var(--flaeche-2);color:var(--text);font-size:26px}.jetzt-tour-fortschritt{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0}.jetzt-tour-fortschritt span{font-size:.75rem;text-align:center;color:var(--text-leise);padding-bottom:8px;border-bottom:2px solid var(--linie)}.jetzt-tour-fortschritt span.aktiv{color:var(--text);border-color:var(--akzent)}.jetzt-tour-optionen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.jetzt-tour-optionen button{min-height:58px;text-align:left;border:1px solid var(--linie);border-radius:14px;background:var(--flaeche-2);color:var(--text);padding:13px 14px;font:inherit}.jetzt-tour-optionen button small{display:block;color:var(--text-leise);margin-top:4px}.jetzt-tour-optionen button.aktiv{border-color:var(--akzent);box-shadow:0 0 0 2px color-mix(in srgb,var(--akzent) 28%,transparent);background:color-mix(in srgb,var(--akzent) 12%,var(--flaeche-2))}.jetzt-tour-aktionen{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.jetzt-tour-aktionen button,.jetzt-tour-ergebnis-aktionen button,.jetzt-tour-ergebnis>button{min-height:46px;border:0;border-radius:12px;background:var(--akzent);color:white;padding:0 18px;font-weight:700}.jetzt-tour-aktionen .leise,.jetzt-tour-ergebnis-aktionen .leise{background:var(--flaeche-2);color:var(--text)}.jetzt-tour-ergebnis strong{font-size:1.2rem}.jetzt-tour-ergebnis ol{padding-left:22px}.jetzt-tour-hinweis{color:var(--text-leise)}.jetzt-tour-ergebnis-aktionen{display:flex;gap:10px;flex-wrap:wrap}.jetzt-tour-marker{display:flex;width:30px;height:30px;border-radius:50%;align-items:center;justify-content:center;background:#58a6ff;color:#fff;font-weight:800;border:2px solid #fff;box-shadow:0 2px 8px #0008}
@media(max-width:560px){.jetzt-tour-optionen{grid-template-columns:1fr}.jetzt-tour-fortschritt span{font-size:.68rem}}

.standort-popup{display:grid;gap:8px;min-width:190px}.standort-popup strong{font-size:1rem}.standort-popup button{border:0;border-radius:10px;background:#377fc2;color:#fff;padding:10px 12px;font-weight:700;text-align:left}.standort-popup small{color:#667085}


/* Frontend-Test und Standort-Verfügbarkeit */
.frontend-test-hinweis{display:flex;flex-direction:column;gap:2px;max-width:250px;padding:10px 12px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(18,24,32,.92);box-shadow:0 8px 24px rgba(0,0,0,.28);color:#fff;font:14px/1.35 system-ui,sans-serif;backdrop-filter:blur(12px)}
.frontend-test-hinweis span{color:rgba(255,255,255,.72);font-size:12px}
.standort-popup p{margin:8px 0 2px;max-width:240px;line-height:1.4}


/* Standort-Hinweis: nicht verfügbar */
.standort-popup--gesperrt{grid-template-columns:38px minmax(0,1fr);align-items:start;gap:11px;min-width:245px;max-width:290px;padding:3px 1px}
.standort-popup--gesperrt .standort-popup-symbol{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(223,111,91,.14);color:#c95f4b;font-size:22px;font-weight:800}
.standort-popup--gesperrt small{display:block;margin-bottom:3px;color:#f0b3a7;font-size:.69rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.standort-popup--gesperrt strong{display:block;color:#ffffff;font-size:1rem;line-height:1.28}
.standort-popup--gesperrt p{margin:8px 0 1px;color:#d7dce3;font-size:.84rem;line-height:1.48}
.standort-popup--gesperrt b{color:#ffffff;font-weight:800}
.leaflet-popup-content-wrapper:has(.standort-popup--gesperrt){border:1px solid rgba(255,255,255,.13);border-radius:16px;background:#2b2e33;color:#fff;box-shadow:0 14px 36px rgba(0,0,0,.38)}
.leaflet-popup-content-wrapper:has(.standort-popup--gesperrt)+.leaflet-popup-tip-container .leaflet-popup-tip{background:#2b2e33}
.leaflet-popup:has(.standort-popup--gesperrt) .leaflet-popup-close-button{top:10px;right:10px;width:32px;height:32px;border-radius:50%;background:rgba(10,12,15,.58);color:#fff!important;font-size:24px;line-height:29px;text-align:center}
@media(max-width:560px){.standort-popup--gesperrt{min-width:220px;max-width:250px}}

/* ---------- Standort-Popups: mobile Aktionskarten ---------- */
.standort-popup {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: min(320px, calc(100vw - 54px));
    min-width: 0;
    padding: 2px;
    color: #f7f9fc;
}
.standort-popup-inhalt { min-width: 0; }
.standort-popup-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(88,166,255,.15);
    color: #72b7ff;
    font-size: 19px;
    font-weight: 900;
}
.standort-popup > .standort-popup-inhalt > small {
    display: block;
    margin: 1px 42px 4px 0;
    color: #9bc9ff;
    font-size: .68rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .085em;
    text-transform: uppercase;
}
.standort-popup strong {
    display: block;
    margin-right: 34px;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.28;
}
.standort-popup p {
    max-width: none;
    margin: 8px 0 12px;
    color: #d3d9e2;
    font-size: .86rem;
    line-height: 1.48;
}
.standort-popup b { color: #fff; font-weight: 850; }
.standort-popup .standort-tour-start {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 13px;
    background: #4d96df;
    color: #fff;
    box-shadow: 0 7px 18px rgba(22,105,187,.25);
    font: inherit;
    text-align: left;
    touch-action: manipulation;
}
.standort-popup .standort-tour-start span {
    font-size: .92rem;
    line-height: 1.2;
    font-weight: 800;
}
.standort-popup .standort-tour-start small {
    margin-top: 3px;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    line-height: 1.2;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
}
.standort-popup .standort-tour-start:active { transform: scale(.985); }
.standort-popup-datenschutz,
.standort-popup-hinweis {
    display: block;
    margin-top: 9px;
    color: #9da7b5;
    font-size: .72rem;
    line-height: 1.35;
}
.standort-popup--gesperrt .standort-popup-symbol {
    background: rgba(232,133,110,.15);
    color: #f09a83;
}
.standort-popup--gesperrt > .standort-popup-inhalt > small { color: #f1aa98; }

.leaflet-popup-content-wrapper:has(.standort-popup) {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(38,41,47,.97);
    color: #fff;
    box-shadow: 0 18px 44px rgba(0,0,0,.46);
    backdrop-filter: blur(16px);
}
.leaflet-popup-content-wrapper:has(.standort-popup) .leaflet-popup-content {
    margin: 14px 14px 13px;
}
.leaflet-popup-content-wrapper:has(.standort-popup) + .leaflet-popup-tip-container .leaflet-popup-tip {
    background: rgba(38,41,47,.97);
}
.leaflet-popup:has(.standort-popup) .leaflet-popup-close-button {
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    background: rgba(12,14,18,.72);
    color: #fff !important;
    font-size: 26px;
    line-height: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

@media (max-width: 560px) {
    .leaflet-popup:has(.standort-popup) {
        margin-left: 0;
    }
    .standort-popup {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        width: min(330px, calc(100vw - 46px));
    }
    .standort-popup-symbol {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 17px;
    }
    .standort-popup strong { font-size: 1rem; }
    .standort-popup p { font-size: .82rem; margin-bottom: 11px; }
    .standort-popup .standort-tour-start { min-height: 54px; }
    .leaflet-popup-content-wrapper:has(.standort-popup) .leaflet-popup-content {
        margin: 13px 12px 12px;
    }
}

/* Tour-für-jetzt-Assistent direkt im Standort-Popup */
.standort-popup--wizard{display:block;width:min(330px,calc(100vw - 54px));padding:2px;color:#f5f7fa}
.standort-wizard-kopf{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.standort-wizard-kopf>small{color:#8fbff0!important;font-size:.7rem!important;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.standort-wizard-kopf button{display:grid;place-items:center;width:34px;height:34px;padding:0;border-radius:50%;background:#171a1f;color:#fff;font-size:1.45rem;text-align:center}
.standort-wizard-fortschritt{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:14px}
.standort-wizard-fortschritt span{height:3px;border-radius:99px;background:#484d55;font-size:0;color:transparent}
.standort-wizard-fortschritt span.aktiv{background:#5b9bdd}
.standort-popup--wizard h3{margin:0 0 12px;color:#fff;font-size:1.08rem;line-height:1.25}
.standort-wizard-optionen{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.standort-wizard-optionen button{min-height:46px;padding:10px 11px;border:1px solid #555c66;border-radius:12px;background:#353940;color:#f5f7fa;font-size:.84rem;font-weight:700;text-align:left}
.standort-wizard-optionen button.aktiv{border-color:#66a8e8;background:#25496c;box-shadow:0 0 0 2px rgba(102,168,232,.18)}
.standort-wizard-optionen--form{grid-template-columns:1fr}
.standort-wizard-optionen--form button strong,.standort-wizard-optionen--form button small{display:block;color:inherit}
.standort-wizard-optionen--form button small{margin-top:3px;color:#bdc5d0;font-size:.75rem;font-weight:500}
.standort-wizard-aktionen{display:flex;justify-content:space-between;gap:8px;margin-top:14px}
.standort-wizard-aktionen button{min-height:44px;padding:0 15px;border-radius:11px;background:#4f94d7;color:#fff;text-align:center}
.standort-wizard-aktionen button.sekundaer{background:#383d44;color:#e8ebef}
.standort-wizard-aktionen button:disabled{opacity:.42}
.standort-wizard-laden{display:flex;align-items:center;gap:10px;padding:18px 2px}
.standort-wizard-laden span{width:22px;height:22px;border:3px solid #555c66;border-top-color:#5b9bdd;border-radius:50%;animation:standort-spin .8s linear infinite}
@keyframes standort-spin{to{transform:rotate(360deg)}}
.standort-wizard-laden p{margin:0;color:#d8dde4}
.standort-wizard-ergebnis h3{margin-bottom:4px}.standort-wizard-ergebnis>p{margin:0 0 9px;color:#dce1e7}
.standort-wizard-check{display:grid;place-items:center;width:34px;height:34px;margin-bottom:8px;border-radius:50%;background:#2f7955;color:#fff;font-weight:900}
.standort-wizard-ergebnis ol{max-height:130px;margin:8px 0;padding-left:22px;overflow:auto;color:#e9edf2;font-size:.82rem;line-height:1.55}
.standort-wizard-ergebnis>small{display:block;color:#aeb7c2}
.standort-wizard-ergebnis-aktionen{display:grid;gap:8px;margin-top:13px}
.standort-wizard-ergebnis-aktionen button{min-height:44px;border-radius:11px;background:#4f94d7;text-align:center}
.standort-wizard-ergebnis-aktionen button.sekundaer{background:#3a3f46}.standort-wizard-ergebnis-aktionen button.text{min-height:34px;background:transparent;color:#9fc9f2}
.standort-wizard-fehler p{color:#dce1e7}.standort-wizard-fehler button{min-height:44px;text-align:center}
.leaflet-popup-content-wrapper:has(.standort-popup--wizard){max-height:min(78vh,620px);overflow:auto}

/* Interne Route vom Standort zu einem POI */
.ziel-route{padding:4px 0 18px}.ziel-route small{display:block;color:var(--akzent);font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ziel-route h2{margin:4px 0 12px;font-size:1.35rem}.ziel-route-werte{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ziel-route-werte strong{font-size:1.25rem}.ziel-route-werte span{color:var(--text-leise)}.ziel-route>div>p{color:var(--text-leise);line-height:1.45}.ziel-route-aktionen{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.ziel-route-aktionen button,.ziel-route-aktionen a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border:0;border-radius:12px;background:var(--akzent);color:#fff;font-weight:750;text-decoration:none}.ziel-route-aktionen a{background:var(--flaeche-2);color:var(--text);border:1px solid var(--linie)}
.spot-aktionen .spot-knopf.nav{width:100%;cursor:pointer}
@media(max-width:560px){.standort-popup--wizard{width:min(310px,calc(100vw - 42px))}.standort-wizard-optionen{grid-template-columns:1fr 1fr}.standort-wizard-optionen--form{grid-template-columns:1fr}.leaflet-popup-content-wrapper:has(.standort-popup--wizard){max-height:72vh}.ziel-route-aktionen{display:grid}.ziel-route-aktionen>*{width:100%}}
.ziel-route-stationen{margin:12px 0;padding-left:22px;color:var(--text);line-height:1.55}.ziel-route-aktionen .sekundaer{background:var(--flaeche-2);color:var(--text);border:1px solid var(--linie)}

/* ---------- Standort-Flow 2.0: mobile Popup-Bedienung ---------- */
.spot-popup--route{min-width:min(286px,calc(100vw - 58px));padding:2px 1px 3px;color:#f5f7fa}
.popup-route-laden{display:grid;justify-items:center;text-align:center;gap:9px;padding:18px 8px}
.popup-route-laden span{width:30px;height:30px;border:3px solid rgba(255,255,255,.2);border-top-color:#58a6ff;border-radius:50%;animation:popup-route-spin .8s linear infinite}
.popup-route-laden h3,.popup-route-kopf h3{margin:0;color:#fff;font-size:1.08rem;line-height:1.25}
.popup-route-laden p,.spot-popup--route>p{margin:0;color:#d7dce3;font-size:.84rem;line-height:1.45}
.popup-route-kopf small{display:block;margin-bottom:4px;color:#8fc4f5;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.popup-route-werte{display:grid;grid-template-columns:auto 1fr;gap:4px 11px;align-items:baseline;margin:14px 0 10px;padding:12px;border-radius:13px;background:rgba(255,255,255,.07)}
.popup-route-werte strong{color:#fff;font-size:1.25rem}.popup-route-werte span{color:#d7dce3;font-size:.83rem}.popup-route-werte span:last-child:nth-child(3){grid-column:1/-1;color:#c7b8f4}
.popup-route-aktionen{display:grid;gap:8px;margin-top:15px}.popup-route-aktionen button,.popup-route-aktionen a{display:flex;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:12px;padding:0 15px;font:inherit;font-weight:800;text-decoration:none}.popup-route-aktionen button{background:#377fc2;color:#fff}.popup-route-aktionen a{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);color:#fff}
.leaflet-popup-content-wrapper:has(.spot-popup--route){border:1px solid rgba(255,255,255,.13);border-radius:18px;background:#292d32;color:#fff;box-shadow:0 16px 38px rgba(0,0,0,.42)}
.leaflet-popup-content-wrapper:has(.spot-popup--route)+.leaflet-popup-tip-container .leaflet-popup-tip{background:#292d32}
.leaflet-popup-content-wrapper:has(.spot-popup--route) .leaflet-popup-content{margin:16px 17px 17px}
.standort-popup--route{display:block;width:min(286px,calc(100vw - 58px));color:#f5f7fa}.standort-popup--route h3{margin:10px 0 6px;color:#fff;font-size:1.08rem}.standort-popup--route p{margin:0 0 9px;color:#d7dce3;line-height:1.45}.standort-popup--route>small{display:block;color:#aeb8c4;line-height:1.4}
@keyframes popup-route-spin{to{transform:rotate(360deg)}}
@media(max-width:560px){
  .leaflet-popup:has(.standort-popup--wizard),.leaflet-popup:has(.standort-popup--route),.leaflet-popup:has(.spot-popup--route){max-width:calc(100vw - 24px)!important}
  .leaflet-popup-content-wrapper:has(.standort-popup--wizard) .leaflet-popup-content,.leaflet-popup-content-wrapper:has(.standort-popup--route) .leaflet-popup-content,.leaflet-popup-content-wrapper:has(.spot-popup--route) .leaflet-popup-content{margin:14px 14px 15px}
  .standort-popup--wizard{width:min(330px,calc(100vw - 50px))}
  .standort-wizard-optionen{gap:8px}.standort-wizard-optionen button{min-height:48px;padding:10px 11px}
  .standort-wizard-aktionen{position:sticky;bottom:-1px;padding-top:10px;background:linear-gradient(transparent,#292d32 22%)}
  .standort-wizard-ergebnis ol{max-height:145px;overflow:auto;padding-right:4px}
  .popup-route-aktionen{grid-template-columns:1fr}
}

/* Standort-Flow 3.0: Im Standortmodus bleibt das Bottom Sheet minimal. */
body.standort-flow-aktiv #vorschlag,
body.standort-flow-aktiv #jetzt-tour,
body.standort-flow-aktiv #ziel-route {
    display: none !important;
}
body.standort-flow-aktiv #panel.sheet-zu .panel-inhalt,
body.standort-flow-aktiv #panel.sheet-zu .panel-kopf {
    visibility: hidden;
    pointer-events: none;
}


/* Interne Weganzeige nur innerhalb des NYC-Stadtgebiets */
body.standort-ausserhalb-nyc .spot-knopf[data-poi-navigation] {
    display: none !important;
}
.spot-popup--ausserhalb-nyc .popup-route-kopf small {
    color: #f2b36f;
}
.spot-popup--ausserhalb-nyc p {
    color: rgba(255,255,255,.86);
    line-height: 1.5;
}


/* ---------- Standortbutton 4.0 ---------- */
.hier-knopf {
    z-index: 5000 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.hier-knopf[aria-busy="true"] { opacity: .82; }
.hier-knopf.sucht > span { animation: standort-puls 1s ease-in-out infinite; }
@keyframes standort-puls { 50% { transform: scale(.72); opacity: .45; } }
.standort-status-toast {
    position: fixed;
    z-index: 30000;
    left: 50%;
    top: max(18px, calc(env(safe-area-inset-top) + 12px));
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(35,37,40,.96);
    color: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    backdrop-filter: blur(12px);
}
.standort-status-toast[hidden] { display: none !important; }
.standort-status-toast--fehler { border-color: rgba(255,166,117,.55); }
@media (max-width: 819px) {
    .standort-status-toast { font-size: 14px; padding: 11px 14px; }
}


/* ---------- Juli 2026: POI-Popup vereinfacht, Standortfunktionen entfernt ---------- */
.hier-knopf,
.jetzt-tour,
.ziel-route,
body:not([data-frontend-test="1"]) .frontend-test-hinweis { display:none !important; }

.leaflet-popup:has(.spot-popup--neu) {
    width:min(360px,calc(100vw - 28px));
}
.leaflet-popup-content-wrapper:has(.spot-popup--neu) {
    padding:0;
    border:1px solid rgba(255,255,255,.14);
    border-radius:20px;
    background:#2a2d32;
    color:#f5f7fa;
    box-shadow:0 20px 54px rgba(0,0,0,.48);
    overflow:hidden;
}
.leaflet-popup-content-wrapper:has(.spot-popup--neu) .leaflet-popup-content {
    width:auto !important;
    margin:0 !important;
}
.leaflet-popup-content-wrapper:has(.spot-popup--neu) + .leaflet-popup-tip-container .leaflet-popup-tip {
    background:#2a2d32;
}
.leaflet-popup:has(.spot-popup--neu) .leaflet-popup-close-button {
    top:12px;
    right:12px;
    z-index:5;
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(20,22,26,.82);
    color:#fff !important;
    font-size:30px;
    line-height:1;
    box-shadow:0 5px 16px rgba(0,0,0,.35);
    backdrop-filter:blur(8px);
}
.spot-popup--neu { padding:0; color:#f5f7fa; }
.spot-popup--neu .spot-media { margin:0; background:#1c1f23; }
.spot-popup--neu .spot-bild {
    display:block;
    width:100%;
    height:clamp(150px,29vh,210px);
    margin:0;
    border-radius:0;
    object-fit:cover;
}
.spot-popup--neu .spot-inhalt { padding:18px; }
.spot-popup--neu .spot-kopf { margin:0; }
.spot-popup--neu .spot-kopf h3 {
    margin:0 52px 7px 0;
    color:#fff;
    font-size:1.18rem;
    font-weight:780;
    line-height:1.22;
    letter-spacing:-.012em;
}
.spot-popup--neu .spot-meta { gap:3px; margin:0; }
.spot-popup--neu .spot-hauptkategorie { color:#e1e5ea; font-size:.82rem; font-weight:700; }
.spot-popup--neu .spot-tags { color:#aeb5bf; font-size:.77rem; line-height:1.35; }
.spot-popup--neu .spot-beschreibung {
    margin:16px 0 0;
    padding:15px 0 0;
    border-top:1px solid rgba(255,255,255,.13);
}
.spot-popup--neu .spot-tipp {
    display:-webkit-box;
    margin:0;
    overflow:hidden;
    color:#d3d7dd;
    font-size:.92rem;
    line-height:1.55;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}
.spot-popup--neu .spot-beschreibung.offen .spot-tipp,
.spot-popup--neu .spot-beschreibung:has(.spot-mehr[aria-expanded="true"]) .spot-tipp { display:block; }
.spot-popup--neu .spot-mehr {
    display:inline-flex;
    margin:8px 0 0;
    color:#76afe8;
    font-size:.84rem;
    font-weight:750;
}
.spot-popup--neu .spot-zusatzbereiche { display:grid; gap:9px; margin-top:16px; }
.spot-popup--neu .spot-accordion {
    margin:0;
    border:1px solid rgba(255,255,255,.13);
    border-radius:13px;
    background:rgba(255,255,255,.035);
}
.spot-popup--neu .spot-accordion > summary {
    min-height:54px;
    padding:11px 13px;
}
.spot-popup--neu .spot-accordion-text strong { font-size:.88rem; }
.spot-popup--neu .spot-accordion-text small { font-size:.74rem; }
.spot-popup--neu .spot-routenliste,
.spot-popup--neu .spot-details-inhalt { padding:10px 13px 13px; }

@media (max-width:699px) {
    .leaflet-popup:has(.spot-popup--neu) { width:min(342px,calc(100vw - 22px)); }
    .leaflet-popup-content-wrapper:has(.spot-popup--neu) { border-radius:18px; }
    .spot-popup--neu { padding:0; }
    .spot-popup--neu .spot-inhalt { padding:16px; }
    .spot-popup--neu .spot-bild { height:clamp(145px,27vh,190px); }
    .spot-popup--neu .spot-kopf h3 { font-size:1.08rem; }
    .spot-popup--neu .spot-tipp { font-size:.88rem; -webkit-line-clamp:3; }
}

/* Sichtbarer Teststandort im Backend-Frontend-Test */
.frontend-test-marker-wrap{background:transparent!important;border:0!important}
.frontend-test-marker{display:block;width:30px;height:30px;border-radius:50%;background:#4f9ce8;border:4px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.55),0 0 0 7px rgba(79,156,232,.22);position:relative}
.frontend-test-marker i{position:absolute;inset:7px;border-radius:50%;background:#fff}

/* ---------- Juli 2026: POI-Popup – einheitliche Akkordeons und mobiles Scrollen ---------- */
.spot-popup--neu .spot-accordion > summary {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.spot-popup--neu .spot-routen > summary .spot-accordion-text,
.spot-popup--neu .spot-details > summary .spot-accordion-text {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
}
.spot-popup--neu .spot-routen > summary::after,
.spot-popup--neu .spot-details > summary::after {
    margin-left: 12px;
}
.spot-popup--neu .spot-routen,
.spot-popup--neu .spot-details {
    padding-top: 0 !important;
    border-top: 0 !important;
}

@media (max-width: 699px) {
    .leaflet-popup:has(.spot-popup--neu) {
        max-height: calc(100dvh - max(88px, env(safe-area-inset-top)) - 20px);
    }
    .leaflet-popup-content-wrapper:has(.spot-popup--neu) {
        max-height: calc(100dvh - max(88px, env(safe-area-inset-top)) - 20px);
        overflow: hidden;
    }
    .leaflet-popup-content-wrapper:has(.spot-popup--neu) .leaflet-popup-content {
        max-height: calc(100dvh - max(88px, env(safe-area-inset-top)) - 20px);
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        scrollbar-width: thin;
    }
    .spot-popup--neu {
        min-height: 0;
    }
    .spot-popup--neu .spot-zusatzbereiche {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* Direkter Teststandort im Backend-Frontend-Test */
.frontend-test-marker-wrapper{background:transparent!important;border:0!important}
.frontend-test-marker-kern,.frontend-test-marker-puls{position:absolute;left:50%;top:50%;border-radius:999px;transform:translate(-50%,-50%)}
.frontend-test-marker-kern{width:16px;height:16px;background:#4f9ce8;border:4px solid #fff;box-shadow:0 3px 12px rgba(0,0,0,.55);z-index:2}
.frontend-test-marker-puls{width:34px;height:34px;background:rgba(79,156,232,.28);animation:frontend-test-puls 1.8s ease-out infinite;z-index:1}
@keyframes frontend-test-puls{0%{transform:translate(-50%,-50%) scale(.55);opacity:.9}100%{transform:translate(-50%,-50%) scale(1.25);opacity:0}}

/* ===== Vor-Ort-Erlebnis (zunächst im Frontend-Test aktiv) ===== */
.location-test-control{position:fixed;right:16px;bottom:54px;z-index:880;display:flex;align-items:center;gap:9px;min-height:46px;padding:0 15px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(31,35,41,.94);color:#fff;box-shadow:0 10px 28px rgba(0,0,0,.35);backdrop-filter:blur(12px);font:inherit}.location-test-control span{font-size:1.2rem;color:#72b7ff}.location-test-control b{font-size:.82rem}
.location-experience-backdrop{position:fixed;inset:0;z-index:1200;background:rgba(4,7,11,.48);backdrop-filter:blur(3px)}
.location-experience-dialog{position:fixed;left:50%;top:50%;z-index:1210;width:min(430px,calc(100vw - 28px));max-height:min(720px,calc(100dvh - 32px));overflow:auto;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.12);border-radius:22px;background:#252a31;color:#f7f9fb;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.location-dialog-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;padding:16px 17px 13px;background:linear-gradient(#252a31 78%,rgba(37,42,49,.92));border-bottom:1px solid rgba(255,255,255,.08)}.location-dialog-head>button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#343a43;color:#fff;font-size:1.35rem}.location-dialog-head div{text-align:center}.location-dialog-head small{display:block;margin-bottom:2px;color:#84bdf3;font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.location-dialog-head h2{margin:0;color:#fff;font-size:1.12rem;line-height:1.25}
.location-dialog-body{padding:18px}.location-dialog-body p{color:#d2d8e0;line-height:1.5}.location-action-grid{display:grid;gap:10px}.location-action-card{display:grid;grid-template-columns:42px 1fr;column-gap:11px;align-items:center;width:100%;padding:15px;border:1px solid #505965;border-radius:16px;background:#323840;color:#fff;text-align:left}.location-action-card>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#24598a;color:#cfe9ff;font-size:1.35rem}.location-action-card strong{font-size:.98rem}.location-action-card small{color:#b9c2cd}.location-existing-mini{display:grid;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid rgba(255,255,255,.09)}.location-existing-mini>small{color:#8fa1b4;font-weight:700}.location-existing-mini button{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;border:0;border-radius:12px;background:#30363e;color:#fff;text-align:left}.location-existing-mini span{color:#aeb9c5;font-size:.78rem}
.location-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.location-choice{min-height:49px;padding:11px 12px;border:1px solid #505965;border-radius:13px;background:#30363e;color:#edf2f7;font:inherit;font-weight:700;text-align:left}.location-choice.active{border-color:#65aef1;background:#214d72;box-shadow:0 0 0 2px rgba(101,174,241,.18)}.location-choice-grid--time .location-choice{text-align:center}.location-help{margin:13px 0 0;font-size:.8rem}.location-dialog-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.location-primary,.location-secondary,.location-text{min-height:46px;padding:0 16px;border:0;border-radius:12px;font:inherit;font-weight:800}.location-primary{background:#4f9de5;color:#fff}.location-primary:disabled{opacity:.4}.location-secondary{background:#3a414a;color:#edf2f7}.location-text{background:transparent;color:#8fc6f6}.location-target-options{display:grid;gap:9px}.location-target-card{display:block;width:100%;padding:13px 14px;border:1px solid #505965;border-radius:14px;background:#30363e;color:#fff;text-align:left}.location-target-card strong,.location-target-card small{display:block}.location-target-card small{margin-top:4px;color:#b6c0ca}.location-target-card.active{border-color:#65aef1;background:#214d72}.location-target-search{margin-top:13px;padding:13px;border-radius:14px;background:#1e2329}.location-target-search label{display:block;margin-bottom:7px;font-weight:750}.location-target-search>div{display:grid;grid-template-columns:1fr auto;gap:8px}.location-target-search input{min-width:0;height:46px;padding:0 12px;border:1px solid #4f5863;border-radius:11px;background:#30363e;color:#fff;font:inherit}.location-target-search button{padding:0 14px;border:0;border-radius:11px;background:#4f9de5;color:#fff;font-weight:800}.location-target-search p{margin:8px 0 0;font-size:.78rem}.location-loading{display:flex;align-items:center;gap:12px;padding-block:28px}.location-loading span{width:26px;height:26px;border:3px solid #55606c;border-top-color:#65aef1;border-radius:50%;animation:location-spin .8s linear infinite}@keyframes location-spin{to{transform:rotate(360deg)}}
.location-result{display:grid;gap:13px}.location-existing{display:grid;gap:5px;padding:13px;border:1px solid rgba(101,174,241,.35);border-radius:14px;background:#20364a}.location-existing small{color:#8fc6f6;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.location-existing span{color:#c0ceda;font-size:.82rem}.location-existing button{justify-self:start;margin-top:4px;padding:8px 11px;border:0;border-radius:10px;background:#4f9de5;color:#fff;font-weight:800}.location-result-main{padding:14px;border-radius:15px;background:#30363e}.location-result-main>div{display:grid;gap:3px}.location-result-main span{color:#c0c9d3;font-size:.83rem}.location-result-main ol{max-height:150px;overflow:auto;margin:12px 0 0;padding-left:22px;color:#edf2f7;line-height:1.55}.location-result-actions{display:grid;gap:8px}.location-outside{text-align:center}.location-distance{font-size:2rem;font-weight:900;color:#76baff}.location-outside .location-primary{width:100%;margin-top:8px}
.location-route-card{position:fixed;left:50%;bottom:48px;z-index:950;display:flex;align-items:center;gap:14px;width:min(520px,calc(100vw - 28px));padding:13px 14px;transform:translateX(-50%);border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(34,39,46,.96);color:#fff;box-shadow:0 14px 40px rgba(0,0,0,.42);backdrop-filter:blur(13px)}.location-route-card>div{display:grid;gap:2px;min-width:0;flex:1}.location-route-card small{color:#86bff4;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.location-route-card strong,.location-route-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.location-route-card span{color:#c4ccd5;font-size:.82rem}.location-route-card button{flex:none;padding:9px 11px;border:0;border-radius:10px;background:#3b424b;color:#fff;font-weight:800}.location-stop-marker{display:grid;place-items:center;width:30px;height:30px;border:3px solid #fff;border-radius:50%;background:#357fc1;color:#fff;font-weight:900;box-shadow:0 3px 12px rgba(0,0,0,.35)}
.spot-location-action{width:100%;min-height:46px;margin-top:12px;border:0;border-radius:12px;background:#4f9de5;color:#fff;font:inherit;font-weight:850}.route-location-action{display:grid;gap:7px;margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.1)}.route-location-action span{color:#c4ccd5;font-size:.8rem}.route-location-action button{justify-self:start;padding:8px 11px;border:0;border-radius:10px;background:#4f9de5;color:#fff;font-weight:800}
@media(max-width:600px){.location-test-control{right:12px;bottom:42px;min-height:42px;padding:0 12px}.location-test-control b{display:none}.location-experience-dialog{top:auto;bottom:10px;transform:translateX(-50%);max-height:calc(100dvh - 20px);border-radius:22px 22px 18px 18px}.location-dialog-head{padding:13px 14px 11px}.location-dialog-body{padding:15px}.location-choice-grid{grid-template-columns:1fr 1fr}.location-route-card{bottom:42px;padding:11px 12px}.location-route-card button{font-size:.78rem}.location-target-search>div{grid-template-columns:1fr}.location-target-search button{height:44px}}


/* ---------- Juli 2026: fokussierte Route vom Standort zum POI ---------- */
body.location-route-focus .routen-detail,
body.location-route-focus .leaflet-tooltip-pane {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 820px) {
    /* Die Ergebnisleiste liegt mittig in der freien Kartenfläche rechts vom
       redaktionellen Seitenpanel und verdeckt dadurch weder Panel noch Route. */
    .location-route-card {
        left: calc(416px + (100vw - 416px) / 2);
        bottom: 24px;
        width: min(560px, calc(100vw - 462px));
    }
}

@media (max-width: 819px) {
    .location-route-card {
        bottom: 44px;
        width: calc(100vw - 24px);
    }
}


/* ---------- Juli 2026: sauberer Rücksprung in den Recherchemodus ---------- */
html, body {
    width: 100%;
    min-width: 100%;
    min-height: 100%;
}
#karte,
.leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
}
body[data-frontend-test="1"],
body[data-frontend-test="1"] #karte {
    height: 100dvh;
    min-height: 100dvh;
}
.location-outside .location-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ---------- Juli 2026: klare POI-Routeninformation und Fähren ---------- */
.location-route-card{align-items:flex-start}
.location-route-card>div{gap:7px}
.location-route-card strong{white-space:normal;line-height:1.2}
.location-route-card .location-route-facts{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:2px}
.location-route-card .location-route-facts span{display:flex;gap:4px;align-items:baseline;white-space:normal;color:#cbd3dc;font-size:.78rem}
.location-route-card .location-route-facts b{color:#fff;font-size:.88rem}
.location-route-transfers{display:grid;gap:5px;margin:2px 0 0;padding:0;list-style:none}
.location-route-transfer{display:grid;grid-template-columns:1fr auto;gap:1px 10px;padding:7px 9px;border-radius:10px;background:rgba(255,255,255,.055)}
.location-route-transfer b{font-size:.76rem;color:#f4f7fa}
.location-route-transfer span{grid-column:1/2;white-space:normal!important;color:#bfc9d4!important;font-size:.72rem!important}
.location-route-transfer small{grid-column:2;grid-row:1/3;align-self:center;color:#dce5ed;font-weight:750}
.location-route-transfer--ferry{border-left:3px dotted #43c7c2}
.location-route-transfer--subway,.location-route-transfer--path{border-left:3px dashed #8b6ed8}
.location-route-note{margin:0;color:#98a5b3;font-size:.68rem;line-height:1.35}
@media(max-width:819px){
  .location-route-card{max-height:min(42dvh,330px);overflow:auto;align-items:flex-start}
  .location-route-card>button{position:sticky;top:0}
  .location-route-card .location-route-facts{display:grid;grid-template-columns:1fr 1fr}
}

/* ---------- Live-Standort: bewusst einfache Kartenaktion ---------- */
.hier-knopf {
    display: grid !important;
    place-items: center;
    color: #9fc8f4;
    background: rgba(38,41,46,.94);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 10px 28px rgba(0,0,0,.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hier-knopf:hover { background: rgba(49,53,59,.98); }
.hier-knopf.aktiv {
    color: #fff;
    background: #397fc4;
    border-color: rgba(255,255,255,.55);
}
.hier-knopf svg { display:block; }
.hier-knopf.sucht svg { animation: drehen 1.1s linear infinite; }
body.sheet-voll-geoeffnet .hier-knopf,
body.sheet-kartenoverlays-aus .hier-knopf,
body.location-route-focus .hier-knopf {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.location-permission p:first-child { margin-top:0; }
.location-permission .location-help { margin-top:-4px; color:rgba(255,255,255,.68); }
@media (max-width:819px) {
    .hier-knopf { right:14px; width:46px; height:46px; }
}


/* Multi-City: kompakte Stadtauswahl auf frameyourcity.de */
.stadt-waehler{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;margin:0 22px 12px;color:var(--text-2,#c7cbd1);font-size:.82rem;font-weight:700}
.stadt-waehler select{width:100%;min-height:42px;border:1px solid #50545c;border-radius:10px;background:#24262b;color:#f3f4f6;padding:8px 34px 8px 11px;font:inherit}
@media(max-width:700px){.stadt-waehler{margin:0 16px 10px}}

/* ---------- Juli 2026: ruhiger und klarer strukturierter Bottomsheet-Kopf ---------- */
.kopf {
    padding-left: 18px;
    padding-right: 18px;
}

/* Auf frameyourcity ist die Stadt ein eigener Kontextblock und klebt nicht am Logo. */
.stadt-waehler {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 16px 18px 12px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: var(--text-2,#c7cbd1);
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.stadt-waehler select {
    width: 100%;
    min-height: 38px;
    padding: 7px 32px 7px 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    color: var(--text);
    font: 650 .88rem var(--schrift);
    letter-spacing: 0;
    text-transform: none;
}

.ansicht-umschalter {
    margin: 10px 18px 7px;
}
.ansicht-knopf {
    min-height: 36px;
}

/* Suche und Erlebnisfilter bilden nur noch einen einklappbaren Bereich. */
.filter-zusammenfassung {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: calc(100% - 36px);
    min-height: 46px;
    margin: 0 18px 5px;
    padding: 8px 2px 9px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    flex: 0 0 auto;
}
.filter-zusammenfassung:hover,
.filter-zusammenfassung:focus-visible {
    color: var(--text);
    outline: none;
}
.filter-zusammenfassung > span:first-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}
.filter-zusammenfassung strong {
    font-size: .84rem;
    font-weight: 650;
    line-height: 1.2;
}
.filter-zusammenfassung small {
    overflow: hidden;
    color: var(--text-2);
    font-size: .71rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.filter-zusammenfassung-aktion {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--akzent);
    font-size: .73rem;
    font-weight: 650;
    white-space: nowrap;
}
.filter-zusammenfassung-aktion::after {
    content: '›';
    font-size: 1rem;
    line-height: .8;
    transform: rotate(90deg);
    transition: transform .18s ease;
}
.filter-zusammenfassung[aria-expanded="true"] .filter-zusammenfassung-aktion::after {
    transform: rotate(-90deg);
}

.entdecken-filter {
    margin: 7px 18px 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}
.entdecken-filter[hidden] {
    display: none !important;
}
.entdecken-filter .such-zeile {
    margin: 0 0 9px;
}
.entdecken-filter #suche {
    min-height: 40px;
    padding-top: 9px;
    padding-bottom: 9px;
    background: rgba(0,0,0,.08);
}
.entdecken-filter .entdecken-auswahl {
    min-height: 40px;
}
.filter-nebenfunktionen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: var(--text-2);
    font-size: .72rem;
}
.filter-nebenfunktionen .schrift-knoepfe {
    margin-left: auto;
}
.filter-nebenfunktionen .schrift-knoepfe button {
    width: 30px;
    min-width: 30px;
    height: 28px;
}

@media (max-width: 819px) {
    .panel.filter-kompakt .kopf {
        display: flex !important;
    }
    .kopf {
        padding-left: 16px;
        padding-right: 16px;
    }
    .stadt-waehler {
        margin: 15px 16px 11px;
        padding-top: 12px;
    }
    .ansicht-umschalter {
        margin-left: 16px;
        margin-right: 16px;
    }
    .filter-zusammenfassung {
        width: calc(100% - 32px);
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 1px;
        padding-right: 1px;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,.09);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .filter-zusammenfassung-aktion {
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: var(--akzent);
    }
    .entdecken-filter {
        margin-left: 16px;
        margin-right: 16px;
    }
}
