/* ==========================================================
   Osttirol Maps — Tour-Templates Design-System
   Basiert auf Osttirol_Maps_Desktop.html
   ========================================================== */

/* ---------- Schriften (selbst gehostet, DSGVO-konform — KEIN Google-CDN) ----------
   Vorgabe Designspec: Body/UI = Hanken Grotesk, Display = Brown (kommerziell, nicht
   verfügbar) → Fallback Bricolage Grotesque. woff2 (latin) liegen in ../Fonts/.
   Copyright: Stefan Ennemoser, web-crossing GmbH */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../Fonts/hanken-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../Fonts/hanken-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../Fonts/hanken-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../Fonts/hanken-grotesk-700.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 800; font-display: swap; src: url('../Fonts/hanken-grotesk-800.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('../Fonts/bricolage-grotesque-600.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('../Fonts/bricolage-grotesque-700.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../Fonts/bricolage-grotesque-800.woff2') format('woff2'); }

/* ---------- Design Tokens ---------- */
:root {
    --ot-surface: #ffffff;
    --ot-surface-warm: #faf8f3;
    --ot-surface-2: #f2efe8;
    --ot-surface-3: #e8e3da;
    --ot-ink: #181510;
    --ot-ink-2: #6b665c;
    --ot-ink-3: #726d60;   /* A11y: auf ~4.6:1 (weiss) angehoben, WCAG AA fuer Text (war #8b8578 = 3.67:1, davor #a09a8e = 2.8:1) */
    --ot-line: rgba(24, 21, 16, 0.09);
    --ot-line-2: rgba(24, 21, 16, 0.15);

    --ot-accent: #B51621;
    --ot-accent-2: #8f111a;
    --ot-accent-soft: #fbe7e8;
    --ot-on-accent: #ffffff;

    --ot-warn: #c0182f;
    --ot-warn-soft: #fbe8ea;
    --ot-detour: #f0c20c;

    --ot-diff-1: #2f6fb0;   /* leicht / blau   */
    --ot-diff-2: #d1453b;   /* mittel / rot    */
    --ot-diff-3: #1c1c1c;   /* schwer / schwarz*/

    --ot-shadow-pill: 0 2px 8px rgba(20, 18, 12, 0.10), 0 10px 28px rgba(20, 18, 12, 0.10);
    --ot-shadow-card: 0 1px 2px rgba(20, 18, 12, 0.06), 0 8px 24px rgba(20, 18, 12, 0.08);
    --ot-shadow-sheet: 0 -10px 44px rgba(20, 18, 12, 0.18);

    --ot-r-sheet: 26px;
    --ot-r-card: 18px;
    --ot-r-btn: 14px;
    --ot-r-chip: 999px;
    --ot-side-width: 400px;
    --ot-side-width-lg: 440px;

    --ot-font: 'Brown', 'Hanken Grotesk', system-ui, sans-serif;              /* Body/UI */
    --ot-font-display: 'Brown', 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif; /* Headlines */
}

/* Display-Font auf Überschriften/Titeln (Rest erbt Body-Font von .ot-maps-root) */
.ot-maps-card-title,
.ot-detail-title,
.ot-maps-root h1,
.ot-maps-root h2,
.ot-maps-root h3 {
    font-family: var(--ot-font-display);
}
/* Formularelemente erben die Body-Font (Browser-Default sonst) */
.ot-maps-root input,
.ot-maps-root button,
.ot-maps-root select,
.ot-maps-root textarea {
    font-family: inherit;
}

/* ---------- Root Shell ---------- */
.ot-maps-root {
    display: flex;
    width: 100%;
    height: calc(100vh - var(--header-height, 0px));
    min-height: 600px;
    overflow: hidden;
    background: var(--ot-surface-warm);
    font-family: var(--ot-font);
    color: var(--ot-ink);
    -webkit-font-smoothing: antialiased;
}

/* Eingebetteter Modus (FlexForm „Vollbild" abgewählt): Widget mit Standardhöhe im
   Seitenfluss statt immersivem Vollbild. Alle Kinder rechnen relativ zur Root-Höhe. */
.ot-maps-root.ot-embed {
    /* Hoehen stehen im Embed-v2-Block am Dateiende (Desktop/Mobil getrennt) —
       hier nur Rahmen/Radius, damit es EINE massgebliche Sizing-Stelle gibt. */
    border: 1px solid var(--ot-line);
    border-radius: var(--ot-r-lg, 16px);
}

/* ---------- Sidebar ---------- */
.ot-maps-side {
    width: var(--ot-side-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--ot-surface);
    border-right: 1px solid var(--ot-line);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Subtiler warmer Verlauf hinter der Listen-Fläche (Prototyp-Atmosphäre).
   Nur in der Liste — die Detailseite (.ot-detail-page) bleibt clean weiß wie im Prototyp.
   Die weißen Karten heben sich dadurch angenehm vom warmen Grund ab. */
.ot-maps-root:not(.ot-detail-page) .ot-maps-side {
    background: linear-gradient(180deg, #fffdfa 0%, var(--ot-surface-warm) 55%, #f3eee4 100%);
}

@media (min-width: 1400px) {
    .ot-maps-side {
        width: var(--ot-side-width-lg);
    }
}

/* Brand/Titel-Kopf am 10.07. ersatzlos gestrichen (Kundenfeedback) — Styles entfernt. */

/* Sidebar head: search + chips */
.ot-maps-side-head {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--ot-line);
    flex-shrink: 0;
}

/* Search row */
.ot-maps-searchrow {
    display: flex;
    gap: 10px;
    /* 12px -> 4px (Kundenfeedback 06.08.2026, Punkt 1.2): Suchfeld und Ergebniszeile
       ruecken zusammen. Weniger geht nicht sinnvoll - die Chips darunter sind aus
       Touch-Gruenden 44px hoch und zentrieren ihren Text, was optisch schon ~10px
       Luft erzeugt. */
    margin-bottom: 4px;
    /* Anker fuer das Autosuggest-Dropdown (.ot-suggest, absolut darunter) */
    position: relative;
}

/* ---- Autosuggest (P2): Dropdown unter dem Suchfeld ----
   Volle Breite der Suchzeile, scrollbar (overflow-y:auto statt hidden — Projektregel),
   z-Index wie das Sortier-Dropdown (var(--z-dropdown, 60), bestehendes Token-Muster). */
.ot-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    padding: 6px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-line);
    border-radius: var(--ot-r-btn);
    box-shadow: var(--ot-shadow-card);
    z-index: var(--z-dropdown, 60);
    max-height: min(40vh, 420px);
    overflow-y: auto;
}
.ot-suggest.open { display: block; }
.ot-suggest-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;          /* Touch-Target >= 44px (Projektregel) */
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.ot-suggest-opt:hover,
.ot-suggest-opt.active { background: var(--ot-surface-2); }
.ot-suggest-opt img {
    width: 24px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}
.ot-suggest-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--ot-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ot-suggest-name strong { font-weight: 700; }
.ot-suggest-type {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--ot-ink-3);
}
.ot-suggest-empty {
    padding: 12px 10px;
    font-size: 14px;
    color: var(--ot-ink-3);
}
/* Abschlusszeile des Dropdowns (Kundenfeedback 06.08.2026, Punkt 1.4): fuehrt zur
   vollstaendigen Ergebnisliste. Als Button (nicht als Option) ausgezeichnet - er
   waehlt keinen Treffer aus, sondern loest die Suche aus. 44px hoch = Touch-Target. */
.ot-suggest-all {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 10px;
    border: 0;
    border-top: 1px solid var(--ot-line);
    background: none;
    text-align: left;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ot-accent);
    cursor: pointer;
}
.ot-suggest-all:hover,
.ot-suggest-all:focus-visible {
    background: var(--ot-surface-2);
}

.ot-maps-search {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-surface-2);
    border: 1px solid var(--ot-line-2);
    padding: 0 12px 0 40px;
    transition: border-color 0.15s, background 0.15s;
}

.ot-maps-search:focus-within {
    background: var(--ot-surface);
    border-color: var(--ot-accent);
    box-shadow: 0 0 0 3px var(--ot-accent-soft);
}

.ot-maps-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ot-ink-3);
    pointer-events: none;
}

.ot-maps-search input {
    border: 0;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--ot-ink);
    width: 100%;
    outline: none;
}

.ot-maps-search input::placeholder {
    color: var(--ot-ink-3);
}

/* ---- Suchbegriff loeschen (Issue 3, 04.08.2026) ----
   Sitzt im rechten Innenrand des Suchfelds und loescht NUR den Begriff. Hoehe = Hoehe des
   Suchfelds (44 px, Touch-Target-Minimum der UI-Checkliste); der Kreis ist im Pill-Radius
   eingeschrieben, deshalb right:0 ohne Ueberstand. Das Reservieren des Platzes haengt am
   sichtbaren Button (:has), damit das Feld ohne Begriff exakt wie bisher aussieht. */
.ot-maps-search:has(.jsOtSearchClear:not([hidden])) {
    padding-right: 44px;
}

.ot-maps-search-clear {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ot-ink-3);
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
}

.ot-maps-search-clear:hover,
.ot-maps-search-clear:focus-visible {
    background: var(--ot-surface-3);
    color: var(--ot-ink);
}

.ot-maps-search-clear[hidden] {
    display: none;
}

/* Filter button */
.ot-maps-filterbtn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-surface-2);
    border: 1px solid var(--ot-line-2);
    color: var(--ot-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.ot-maps-filterbtn:hover {
    background: var(--ot-surface-3);
}

.ot-maps-filterbtn.active {
    background: var(--ot-accent-soft);
    border-color: var(--ot-accent);
    color: var(--ot-accent);
}

.ot-maps-filterbtn .ot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--ot-accent);
    color: var(--ot-on-accent);
    font-size: 11px;
    font-weight: 700;
}

/* P60.5 (Kundenfeedback 22.07., Referenz-Design): Chip-Reihe = scrollbare Chips links +
   fixe Ergebnisanzeige rechts (ausserhalb des Scrollers, sonst waere sie oft unsichtbar). */
.ot-maps-chiprow {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ot-maps-chiprow .ot-maps-chips { flex: 1; min-width: 0; }
.ot-maps-chips-count {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--ot-ink);
}
/* Kartenansicht: ueber der Karte zaehlt die schwebende Chip-Leiste - keine Ergebniszahl. */
.ot-maps-root.is-view-map .ot-maps-chips-count { display: none; }

/* P60.4: "Um mich"-Chip (Geolocation) - GPS-Icon vor dem Text. */
.ot-maps-chip--nearme { display: inline-flex; align-items: center; gap: 6px; }
.ot-maps-chip--nearme .ico { display: inline-flex; }
.ot-maps-chip--nearme .ico svg { width: 14px; height: 14px; }

/* Category chips */
.ot-maps-chips {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Kundenfeedback 11.07.: kein sichtbarer Scrollbalken mehr — die
       Affordanz kommt vom angeschnittenen letzten Chip; Wheel→Horizontal
       per JS (siehe List.html), Drag-to-Scroll fuer die Maus. */
    scrollbar-width: none;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    cursor: grab;   /* Affordanz: Streifen ist klick-und-ziehbar (Maus), Touch scrollt nativ */
    touch-action: pan-x;
}

.ot-maps-chips::-webkit-scrollbar { display: none; }
.ot-maps-chip { scroll-snap-align: start; }

/* Während des Ziehens: Greifhand-Cursor, kein Text-Select, Snap kurz aus (ruckelt sonst) */
.ot-maps-chips.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
    -webkit-user-select: none;
}
.ot-maps-chips.is-dragging .ot-maps-chip { pointer-events: none; }

/* ---- Umkreis-Auswahl "Um mich" (06.08.2026) ----
   Sitzt als Gruppe direkt hinter dem "Um mich"-Chip in derselben scrollenden Zeile, deshalb
   dieselbe Hoehe (34 px) wie die Chips - eine 44 px hohe Schaltflaeche wuerde die Zeile
   sprengen. Die Trefferflaeche wird stattdessen per ::after unsichtbar auf 44 px gestreckt
   (34 + 2x5 px), damit das Touch-Target-Minimum der UI-Checkliste trotzdem erfuellt ist.
   Nur vertikal gestreckt: horizontal wuerden sich die Flaechen der Nachbarn ueberlappen. */
.ot-maps-radius {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding-left: 2px;
}

.ot-maps-radius-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 11px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-surface-2);
    border: 1px dashed var(--ot-line-2);
    color: var(--ot-ink-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ot-maps-radius-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -5px;
    bottom: -5px;
}

.ot-maps-radius-btn:hover { background: var(--ot-surface-3); }

.ot-maps-radius-btn.active {
    background: var(--ot-accent-soft);
    border-style: solid;
    border-color: var(--ot-accent);
    color: var(--ot-accent);
}

.ot-maps-radius-btn:focus-visible {
    outline: 2px solid var(--ot-accent);
    outline-offset: 2px;
}

.ot-maps-chip {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-surface);
    border: 1px solid var(--ot-line-2);
    color: var(--ot-ink-2);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ot-maps-chip:hover {
    background: var(--ot-surface-3);
    color: var(--ot-ink);
}

.ot-maps-chip.active {
    background: var(--ot-accent);
    border-color: var(--ot-accent);
    color: var(--ot-on-accent);
}

/* Abwaehl-✕ am aktiven Chip (P94, Kundenfeedback 29.07.: „Mehrfachauswahl nicht
   ersichtlich ... wie kann man Chips abwaehlen?"). Nur im aktiven Zustand sichtbar,
   damit die Leiste im Ruhezustand ruhig bleibt; ohne Eigenbreite im Inaktiv-Zustand,
   sonst wandern die Chips beim An-/Abwaehlen. Nicht klickbar (pointer-events: none) -
   der Klick soll immer das umschliessende Label treffen, damit auch ein Treffer NEBEN
   dem ✕ zuverlaessig toggelt. */
.ot-maps-chip-x {
    display: none;
    align-items: center;
    margin-left: 7px;
    margin-right: -3px;
    opacity: 0.85;
    pointer-events: none;
}
.ot-maps-chip.active .ot-maps-chip-x { display: inline-flex; }
/* "Um mich" und "Alle" tragen kein ✕ - sie sind Zustandsschalter, keine Mehrfachauswahl. */
.ot-maps-chip--nearme .ot-maps-chip-x,
.jsOtTypeAll .ot-maps-chip-x { display: none; }

/* Active filter pills.
   Horizontal KEIN eigenes Padding: der Elternblock .ot-maps-side-head bringt bereits
   16px (Mobil-Kartenansicht: 12px, s.u.) — mit eigenem 16px hier addierten sich beide
   auf, die Pillen standen dadurch 16px weiter rechts als Suchfeld/Kategorie-Chips
   (misaligned). Vertikal align-items:center für sauberes Aussehen beim Zeilenumbruch.
   Padding oben/unten symmetrisch (vorher 10px/2px): asymmetrisch klebte die Pillenreihe
   an der Kategorie-Chip-Zeile darunter, während oben zur Suche viel mehr Abstand war
   (Kundenfeedback 2026-07-03, siehe Screenshot). */
.ot-maps-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
}

/* Leer (nur Whitespace aus Fluid) → per JS ausgeblendet; :empty greift wegen Whitespace nicht. */
.ot-maps-active-filters:empty,
.ot-maps-active-filters.is-empty {
    display: none;
}

.ot-maps-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-accent-soft);
    border: 1px solid var(--ot-accent);
    color: var(--ot-accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Reset-Pille (P94, 29.07.): bewusst NEUTRAL statt rot - sie entfernt Filter, ist also
   kein aktiver Filter. Steht als letzte Pille in der Zeile. */
.ot-maps-filter-pill--reset {
    background: var(--ot-surface);
    border-color: var(--ot-line-2);
    color: var(--ot-ink-2);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}
.ot-maps-filter-pill--reset:hover {
    background: var(--ot-surface-3);
    color: var(--ot-ink);
}

.ot-maps-filter-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Scroll area for cards */
.ot-maps-side-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ot-line-2) transparent;
}

.ot-maps-side-scroll::-webkit-scrollbar { width: 6px; }
.ot-maps-side-scroll::-webkit-scrollbar-track { background: transparent; }
.ot-maps-side-scroll::-webkit-scrollbar-thumb {
    background: var(--ot-line-2);
    border-radius: 3px;
}

/* List head */
.ot-maps-listhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px 10px;
    font-size: 13px;
    color: var(--ot-ink-2);
}

.ot-maps-listhead .cnt {
    font-weight: 600;
    color: var(--ot-ink);
}

.ot-maps-listhead-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ---- "Touren um mich" (Feature-Branch geolocation-nearby) ----
   Copyright: Stefan Ennemoser, web-crossing GmbH */
.ot-maps-nearme-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
/* Kundenfeedback 10.07. abends + 11.07. (Prototyp-Listenkopf): "Touren um
   mich" als Text mit Standort-Icon — kein Pill-Rahmen, kein Hintergrund.
   Aktiv-Zustand nur ueber die Akzentfarbe. */
.ot-maps-nearme {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ot-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.12s;
}
.ot-maps-nearme:hover { color: var(--ot-accent-2); text-decoration: underline; }
.ot-maps-nearme .ico { display: flex; color: var(--ot-ink-2); }
.ot-maps-nearme .ico svg { width: 15px; height: 15px; display: block; }
.ot-maps-nearme:hover .ico { color: var(--ot-accent-2); }
.ot-maps-nearme.active { color: var(--ot-accent-2); }
.ot-maps-nearme.active .ico { color: var(--ot-accent-2); }
.ot-maps-nearme-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--ot-line-2);
    border-radius: 50%;
    background: var(--ot-surface-2);
    color: var(--ot-accent-2);
    cursor: pointer;
}
.ot-maps-nearme-reset:hover { background: rgba(181, 22, 33, 0.12); }
.ot-maps-nearme-reset svg { width: 11px; height: 11px; display: block; }
.ot-maps-nearme-hint {
    display: block;
    width: 100%;
    padding: 6px 16px 0;
    font-size: 12px;
    color: var(--ot-warn);
}
.ot-maps-nearme-hint[hidden] { display: none; }

/* ---- Toast ueber der Karte (Issue 5, 04.08.2026) ----
   Der Inline-Hinweis oben haengt in der Listen-Kopfzeile und ist bei offener Karte nicht
   im Blick; der Toast ist der sichtbare Kanal fuer Standort-Meldungen. Unten zentriert,
   Safe-Area beruecksichtigt, pointer-events: none -> verdeckt keine Bedienelemente.
   Fallback 1010 ist NICHT beliebig: der Toast haengt am body, waehrend .ot-maps-root
   mobil selbst position:fixed mit z-index 900 ist (s. Media-Query unten) und der
   Site-Header des Fremd-Themes bei ~1000 liegt - mit einem kleineren Wert lag der Toast
   HINTER der Karte und war auf dem Handy unsichtbar, also genau dort, wo Issue 5
   gemeldet wurde. Unter der Lightbox (--z-modal, 100000) bleibt er bewusst. */
/* Zentrierung ueber left/right + margin-inline statt left:50% + translateX: mit left:50%
   reicht der verfuegbare Platz nur bis zum rechten Rand, der Kasten schrumpfte auf ~188 px
   und brach den Text auf fuenf Zeilen (im Browser-Check am 05.08. gesehen). */
.ot-maps-toast {
    position: fixed;
    left: 16px;
    right: 16px;
    /* 78px = 18 (bottom des Umschalters „Liste anzeigen", .ot-maps-viewtoggle) + 46 (dessen
       Hoehe) + 14 Abstand: mit 24px lag der Toast im Browser-Check am 05.08. genau ueber
       diesem Button. */
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    margin-inline: auto;
    width: fit-content;
    transform: translateY(8px);
    z-index: var(--z-toast, 1010);
    max-width: min(420px, 100%);
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(23, 23, 23, 0.94);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.ot-maps-toast.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ot-maps-toast { transition: none; }
}

/* Deaktivierter Geolocate-Button (MapLibre setzt disabled nach verweigertem Zugriff):
   klickdurchlaessig machen, damit der Klick die Control-Gruppe erreicht und dort den
   Toast auslöst - ein disabled <button> feuert selbst kein click-Event (Issue 5). */
.maplibregl-ctrl-geolocate:disabled { pointer-events: none; }

/* Distanz-Badge auf der Karte (nur wenn "Touren um mich" aktiv), farblich hervorgehoben.
   Compound-Selektor (statt !important), da .ot-maps-stat weiter unten in der Kaskade steht. */
.ot-maps-stat.ot-maps-stat-near {
    color: var(--ot-accent-2);
    font-weight: 700;
}

/* ---------- Tour Cards ---------- */
.ot-maps-cards {
    padding: 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ot-maps-card {
    display: flex;
    border-radius: var(--ot-r-card);
    overflow: hidden;
    background: var(--ot-surface);
    border: 1px solid var(--ot-line);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, transform 0.12s;
    width: 100%;
    text-align: left;
    padding: 0;
    font: inherit;
}

.ot-maps-card:hover {
    box-shadow: var(--ot-shadow-card);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}

.ot-maps-card.selected {
    border-color: var(--ot-accent);
    box-shadow: 0 0 0 2px var(--ot-accent);
}

.ot-maps-card-thumb {
    width: 110px;
    min-width: 110px;
    position: relative;
    background: var(--ot-surface-2);
    overflow: hidden;
}

.ot-maps-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ot-maps-card-thumb .ot-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ot-ink-3);
}

.ot-maps-card-body {
    flex: 1;
    padding: 12px 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ot-maps-card-ort {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ot-ink-3);
    font-weight: 500;
}

.ot-maps-card-ort svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.ot-maps-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ot-ink);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ot-maps-card-sub {
    font-size: 12px;
    color: var(--ot-ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Teaser/Kurzbeschreibung in der Card (Feld-Vollabgleich 10.07.): max. 2 Zeilen. */
.ot-maps-card-teaser {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ot-ink-2);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ot-maps-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
}

.ot-maps-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ot-ink-2);
    font-weight: 500;
}

.ot-maps-stat svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Difficulty pill on card */
.ot-glasspill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: var(--ot-r-chip);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ot-glasspill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

/* Difficulty colors */
.ot-diff-0, .ot-diff-leicht { background: var(--ot-diff-1); }
.ot-diff-1, .ot-diff-mittel { background: var(--ot-diff-2); }
.ot-diff-2, .ot-diff-schwer { background: var(--ot-diff-3); }
/* Neutrale Darstellung fuer Klettersteig-Grade A-E (Audit 21.07. Punkt 8):
   bewusst KEIN 0-2-Farbmapping - dezentes Grau-Braun aus der Ink-Palette. */
.ot-diff-grade { background: var(--ot-ink-2); }

/* ---------- Map Area ---------- */
.ot-maps-map {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #d9ddd2;
}

.ot-maps-map contwise-maps {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Map controls */
.ot-maps-rail {
    position: absolute;
    right: 16px;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
}

.ot-maps-rail-group {
    display: flex;
    flex-direction: column;
    border-radius: var(--ot-r-btn);
    overflow: hidden;
    box-shadow: var(--ot-shadow-pill);
    border: 1px solid var(--ot-line);
}

.ot-maps-railbtn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ot-surface);
    border: 0;
    cursor: pointer;
    color: var(--ot-ink);
    transition: background 0.12s;
    border-top: 1px solid var(--ot-line);
}

.ot-maps-railbtn:first-child { border-top: 0; }
.ot-maps-railbtn:hover { background: var(--ot-surface-2); }

/* Map attribution */
.ot-maps-attr {
    position: absolute;
    bottom: 8px;
    left: 12px;
    font-size: 11px;
    color: rgba(24, 21, 16, 0.55);
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 4;
}

/* ---------- Filter Popover ---------- */
.ot-maps-pop-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.15);
    display: none;
}

.ot-maps-pop-backdrop.open {
    display: block;
}

.ot-filter-pop {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--ot-surface);
    border-radius: var(--ot-r-card);
    box-shadow: var(--ot-shadow-sheet);
    border: 1px solid var(--ot-line);
    z-index: 60;   /* über dem Backdrop (55), sonst überlagert der Schleier die Filter */
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.ot-filter-pop.open {
    display: flex;
}

.ot-filter-pop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ot-line);
    flex-shrink: 0;
}

.ot-filter-pop-head h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.ot-filter-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--ot-surface-2);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ot-ink);
}

.ot-filter-pop-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ot-filter-sec h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ot-ink-2);   /* A11y: Kontrast (war --ot-ink-3) */
    margin: 0 0 8px;
    /* deckt eine hinter dem Heading liegende Linie ab (Slider-Restlinie) → kein „Trennstrich" mehr.
       display:block (volle Breite) ist nötig, damit die Maske die Linie auch rechts vom Text abdeckt. */
    position: relative;
    z-index: 1;
    background: var(--ot-surface);
    display: block;
}

/* ── Aufklappbare Filtergruppen (Region/Gemeinde, Gebirgsgruppe) — natives <details> ── */
.ot-filter-acc { }
.ot-filter-acc > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    min-height: 32px;
}
.ot-filter-acc > summary::-webkit-details-marker { display: none; }
.ot-filter-acc > summary h4 { margin: 0; }
.ot-filter-acc-chev {
    flex: 0 0 auto;
    color: var(--ot-ink-2);
    transition: transform 0.15s;
}
.ot-filter-acc[open] > summary .ot-filter-acc-chev { transform: rotate(180deg); }
.ot-filter-acc > summary:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; border-radius: 6px; }

.ot-filter-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ot-filter-opt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--ot-r-chip);
    background: var(--ot-surface-2);
    border: 1px solid var(--ot-line);
    color: var(--ot-ink);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    font-family: inherit;
}

.ot-filter-opt:hover { background: var(--ot-surface-3); }
.ot-filter-opt.selected {
    background: var(--ot-accent-soft);
    border-color: var(--ot-accent);
    color: var(--ot-accent);
}

.ot-filter-pop-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--ot-line);
    flex-shrink: 0;
}

.ot-filter-reset {
    font-size: 14px;
    color: var(--ot-ink-2);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: 0;
    font-family: inherit;
    padding: 0;
}

.ot-filter-apply {
    height: 40px;
    padding: 0 20px;
    border-radius: var(--ot-r-btn);
    background: var(--ot-accent);
    color: var(--ot-on-accent);
    border: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s;
}

.ot-filter-apply:hover { background: var(--ot-accent-2); }

/* Difficulty dots in filter */
.ot-diff-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Tour Detail Panel ---------- */
.ot-maps-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ot-maps-detail-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ot-line-2) transparent;
}

/* Hero image */
.ot-detail-hero {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--ot-surface-2);
    flex-shrink: 0;
}

.ot-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ot-detail-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.ot-detail-hero-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.ot-detail-hicon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    cursor: pointer;
    color: var(--ot-ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    transition: background 0.12s;
}

.ot-detail-hicon:hover { background: rgba(255, 255, 255, 1); }

.ot-detail-hicons-right {
    display: flex;
    gap: 8px;
}

.ot-detail-hero-text {
    position: absolute;
    /* P81 (Kundenfeedback 22.07.): seit der P62-Ueberlappung (Body -18px mit
       20px-Rundung) muss der Hero-Text hoeher sitzen, sonst liegt die Ortszeile
       genau auf der weissen Kante. Desktop setzt im Media-Query ein eigenes
       bottom (kein Overlap dort). */
    bottom: 40px;
    left: 16px;
    right: 16px;
    z-index: 2;
}

.ot-detail-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ot-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 5px;
}

.ot-detail-ort {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.ot-detail-ort svg {
    width: 14px;
    height: 14px;
}

/* No hero placeholder */
.ot-detail-hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ot-surface-2);
    color: var(--ot-ink-3);
}

/* Detail body */
.ot-detail-body {
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* P62 (Kundenfeedback 22.07., Referenz-Design): der Inhalt schiebt sich mit runden
       oberen Ecken UEBER das Hero-Bild statt einer harten geraden Kante. Im Karten-Sheet
       (Hero ausgeblendet) und auf der Desktop-Detailseite (Hero freistehend gerundet)
       wird die Ueberlappung gezielt zurueckgesetzt. */
    position: relative;
    z-index: 2;
    margin-top: -18px;
    border-radius: 20px 20px 0 0;
    background: var(--ot-surface);
}

/* Desktop-Umbau 10.07. abends: die Sektionen liegen jetzt in .ot-detail-main
   (Body wird am Desktop zum 2-Spalten-Grid) — der Hauptstrang uebernimmt
   mobil/im Sheet das bisherige Spalten-Layout des Bodys. Sidebar und
   Breadcrumb existieren nur auf der eigenstaendigen Desktop-Detailseite
   (Einschalt-Regeln im Media-Block bei .ot-detail-page). */
.ot-detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.ot-detail-side { display: none; }
.ot-detail-crumbs { display: none; }

/* Pill row */
.ot-detail-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* Anker für das Wegekategorie-(i)-Popover (volle Zeilenbreite statt am
       (i) selbst — sonst ragt die Box mobil aus dem Viewport). */
    position: relative;
}

.ot-diffpill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px 0 9px;
    border-radius: var(--ot-r-chip);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.ot-diffpill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* Wegekategorie + (i)-Popover (Kunden-Excel wegekategorien.xlsx 10.07.).
   Öffnen: :hover (Maus) ODER Klasse .is-open (JS-Klick-Toggle in
   tour-detail-map.js — funktioniert damit auch auf iOS Safari, das Buttons
   beim Tap NICHT fokussiert; Escape/Klick daneben schließen dort ebenfalls
   per JS). Der Erklärtext (Spalte D, teils sehr lang) steht in einer echten
   Box mit max-height + overflow-y:auto statt title-Attribut; die Box ist
   fokussierbar (tabindex im Template), damit Tastatur-Nutzer:innen scrollen
   können. */
.ot-wegkat-wrap {
    /* bewusst NICHT position:relative — das Popover verankert sich an
       .ot-detail-pills (voller Zeilenraum, bleibt mobil im Viewport).
       align-self:stretch: der Wrap füllt die Pill-Zeilenhöhe, dadurch reißt
       die Hover-Kette auf dem Weg vom (i) nach unten zur Box nicht ab. */
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    gap: 5px;
    /* Label + (i) togglen gemeinsam per JS-Klick → großes Touch-Ziel */
    cursor: pointer;
}

/* Mehrtagestour-Pill (vorher Inline-Style im Template, Review-Finding
   10.07. abends — als Klasse erreichen sie Design-Anpassungen mit). */
.ot-multidaypill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--ot-surface-2);
    border: 1px solid var(--ot-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--ot-ink-2);
}

.ot-wegkat-i {
    /* Prototyp-Optik (Kundenfeedback 10.07. abends): Outline-Kreis-i als SVG
       VOR dem Text — der Button selbst ist rahmenlos, der Kreis kommt aus dem
       Icon. Visuell 17px; Klick-Ziel ist der ganze Wrap (Label + Icon,
       JS-Toggle), ::before weitet nur moderat auf — ein 44px-Overlay würde
       die Nachbar-Pills überdecken (Review-Finding 10.07.). */
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 0;
    background: none;
    color: var(--ot-ink-2);
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}
.ot-wegkat-i svg { display: block; }

.ot-wegkat-i::before {
    content: "";
    position: absolute;
    inset: -12px -4px;
}

/* Popover unterhalb der Pill-Zeile; padding-top statt margin, damit die
   Hover-Kette beim Überfahren der Lücke nicht abreißt (Tip ist Kind des Wraps,
   :hover auf dem Wrap schließt den Tip als Kind mit ein). */
.ot-wegkat-tip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: 8px;
    z-index: var(--z-dropdown, 60);
}

/* P82 (Kundenfeedback 22.07.): Hover-Oeffnung NUR fuer echte Hover-Geraete
   MIT feinem Zeiger (Maus). Touch-Laptops matchen zwar (hover: hover), der
   emulierte :hover "klebt" dort aber nach dem Tap am Element - die Box blieb
   offen, obwohl der JS-Toggle .is-open laengst entfernt hatte (Popover liess
   sich per Touch nicht mehr schliessen). (pointer: fine) grenzt auf Maus/Stift
   ein und schliesst den klebenden Touch-:hover aus. */
@media (hover: hover) and (pointer: fine) {
    .ot-wegkat-wrap:hover .ot-wegkat-tip { display: block; }
}
.ot-wegkat-wrap.is-open .ot-wegkat-tip {
    display: block;
}

.ot-wegkat-tipbox {
    display: block;
    max-width: 420px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ot-line, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ot-text, #1f2937);
    /* \n aus dem ViewHelper (Singletrail-Merkmalsliste) als Zeilenumbrüche rendern */
    white-space: pre-line;
    text-align: left;
}

/* Stats grid */
/* Kundenfeedback 10.07. (Prototyp): Stat-Kacheln EINZEILIG — flex statt festem
   2-Spalten-Grid, dadurch teilen sich nur real vorhandene Kacheln die Breite
   (nie ein leeres Feld). Icons in Akzentfarbe, Labels in Versalien. */
.ot-detail-stats {
    display: flex;
    gap: 1px;
    background: var(--ot-line);
    border-radius: var(--ot-r-btn);
    overflow: hidden;
    border: 1px solid var(--ot-line);
}

.ot-detail-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 4px;
    background: var(--ot-surface);
    gap: 3px;
}

.ot-detail-stat svg {
    width: 18px;
    height: 18px;
    color: var(--ot-accent);
}

.ot-detail-stat-v {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ot-ink);
    white-space: nowrap;
    /* Schutz gegen Nachbar-Ueberlappung bei 5 Kacheln auf schmalen Panels
       (Review-Finding): lieber Ellipsis in der eigenen Zelle. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .ot-detail-stat-v { font-size: 13px; }
    .ot-detail-stat-k { font-size: 9px; letter-spacing: 0.03em; }
    .ot-detail-stat { padding: 10px 2px; }
}

.ot-detail-stat-k {
    font-size: 9.5px;
    color: var(--ot-ink-3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Section */
.ot-detail-sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Kundenfeedback 10.07. abends: Headlines "richtig schwarz wie im Screenshot"
   inkl. normaler Gross-/Kleinschreibung (Prototyp dp-sec h3) — statt der
   bisherigen grauen Uppercase-Labels. */
.ot-detail-sec h3 {
    font-size: 19px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ot-ink);
    margin: 0;
}

/* Description */
.ot-detail-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ot-ink-2);
    margin: 0;
}

/* Teaser/Kurzbeschreibung als Lead-Absatz (Feld-Vollabgleich 10.07.) */
.ot-detail-teaser {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--ot-ink);
}
.ot-detail-teaser p { margin: 0 0 8px; }
.ot-detail-teaser p:last-child { margin-bottom: 0; }

/* Tipp des Autors: dezente Hervorhebung */
.ot-detail-tip {
    background: var(--ot-bg-2, #f7f4ee);
    border-left: 3px solid var(--ot-accent, #B51621);
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
}

/* Quelle/Autor-Fussnote am Ende des Detail-Contents */
.ot-detail-source {
    font-size: 12px;
    color: var(--ot-ink-3);
    margin: 14px 0 0;
}

/* Tour facts table */
.ot-detail-facts {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ot-line);
    border-radius: var(--ot-r-btn);
    overflow: hidden;
}

/* Kundenfeedback 10.07. (Prototyp "Tourdaten"): schlankes Zeilen-Layout OHNE
   Aussenrahmen — nur duenne Trennlinien zwischen den Zeilen. */
.ot-detail-facts--plain {
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.ot-detail-facts--plain .ot-detail-fact { padding: 11px 2px; }
.ot-detail-facts--plain .ot-detail-fact:last-child { border-bottom: 0; }

/* Routenplaner-Zeile (Link) am Ende der Tourdaten: kleiner, Akzent-Icon, Chevron rechts. */
a.ot-detail-fact--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.ot-detail-fact--link .ot-detail-fact-k { color: var(--ot-ink); font-weight: 700; }
a.ot-detail-fact--link .ot-detail-fact-k svg { color: var(--ot-accent); }
a.ot-detail-fact--link .ot-detail-fact-v { color: var(--ot-ink-3); flex: 1; display: flex; justify-content: flex-end; }
a.ot-detail-fact--link:hover .ot-detail-fact-k { color: var(--ot-accent); }

.ot-detail-fact {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--ot-line);
    font-size: 13px;
    gap: 10px;
}

.ot-detail-fact:last-child { border-bottom: 0; }

.ot-detail-fact-k {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ot-ink-2);
    font-weight: 500;
    min-width: 130px;
    flex-shrink: 0;
}

.ot-detail-fact-k svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ot-detail-fact-v {
    font-weight: 600;
    color: var(--ot-ink);
}

/* Website-Link zeigt die URL selbst als Linktext (Kundenfeedback 21.07., Punkt 23).
   Lange URLs ohne Leerzeichen duerfen die Zeile nicht sprengen: kontrollierter Umbruch
   statt horizontalem Ueberlauf (overflow-wrap greift an Wortgrenzen, break-word als
   Fallback fuer sehr lange Segmente). */
.ot-web-link {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* "Tourdetails" (Routen): Werte rechtsbündig, Prototyp detail3.png "Tourdaten".
   Bewusst als Modifier statt global auf .ot-detail-fact-v, da "Kontakt & Lage" (POIs)
   dieselbe Basisklasse nutzt und dort linksbündige Adressen/Telefonnummern besser lesbar sind. */
.ot-detail-facts--right .ot-detail-fact-v {
    margin-left: auto;
    text-align: right;
}

/* Bugfix (beim Rechtsbündig-Machen entdeckt, nicht dadurch verursacht): .ot-diff-0/1/2 setzt
   "background" (für die Pille oben im Kopf, kombiniert mit .ot-diffpill { color:#fff }). Auf der
   Tourdetails-Zeile "Schwierigkeit" hängt dieselbe Klasse direkt am Wert-Span OHNE .ot-diffpill —
   Ergebnis: fast schwarzer Text auf fast schwarzem Hintergrund (Stufe "Schwer"), unlesbar.
   Höher-spezifische Regel neutralisiert den Hintergrund und färbt stattdessen nur Text/Punkt
   (Punkt nutzt background:currentColor) über die vorhandenen --ot-diff-*-Variablen. */
.ot-detail-fact-v.ot-diff-0 { background: none; color: var(--ot-diff-1); }
.ot-detail-fact-v.ot-diff-1 { background: none; color: var(--ot-diff-2); }
.ot-detail-fact-v.ot-diff-2 { background: none; color: var(--ot-diff-3); }
/* Klettersteig-Grad (A-E) in der Tourdaten-Zeile: neutral in Textfarbe, kein Pill-Hintergrund. */
.ot-detail-fact-v.ot-diff-grade { background: none; color: inherit; }

/* Map section in detail */
.ot-detail-map-wrap {
    border-radius: var(--ot-r-btn);
    overflow: hidden;
    height: 280px;
    position: relative;
    background: var(--ot-surface-2);
}

.ot-detail-map-wrap contwise-maps {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Elevation profile section */
.ot-detail-altitude-wrap {
    border-radius: var(--ot-r-btn);
    overflow: hidden;
    position: relative;
    background: var(--ot-surface-2);
}

.ot-detail-altitude-wrap contwise-altitude-profile {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 1;
    display: block;
}

/* Detail-Aktionen (GPX/Drucken): normale Inhalts-Sektion statt Sticky Bar
   (Kundenfeedback 10.07.: Sticky Bar entfernen, Inhalte direkt einbinden). */
.ot-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
}

.ot-detail-actionbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;   /* Touch-Target-Minimum (UI-Checkliste) */
    padding: 8px 14px;
    border-radius: var(--ot-r-btn);
    background: var(--ot-surface);
    border: 1px solid var(--ot-line-2);
    color: var(--ot-ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s;
    text-decoration: none;
}

.ot-detail-actionbtn:hover {
    background: var(--ot-surface-2);
    color: var(--ot-ink);
    text-decoration: none;
}

.ot-detail-actionbtn svg { flex-shrink: 0; }

/* ---------- Empty state ---------- */
.ot-maps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 10px;
    text-align: center;
    color: var(--ot-ink-3);
}

.ot-maps-empty svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.ot-maps-empty .h {
    font-size: 16px;
    font-weight: 700;
    color: var(--ot-ink-2);
}

.ot-maps-empty .s {
    font-size: 14px;
}

/* ---------- Pagination ---------- */
.ot-maps-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border-top: 1px solid var(--ot-line);
    flex-shrink: 0;
}

/* ==========================================================
   Redesign-Abgleich final (Prototyp Desktop + Mobil "Johanna")
   Copyright: Stefan Ennemoser, web-crossing GmbH
   Ergänzt/überschreibt die obigen Basisregeln. Bewusst am
   Dateiende, damit gleich-spezifische Regeln hier gewinnen.
   ========================================================== */

/* ---- Status-Tokens (Sperrstatus) ---- */
:root {
    --ot-status-open:        #008e48;   /* begehbar / geöffnet  */
    --ot-status-open-soft:   #e4f3ea;
    --ot-status-warn:        #e8820a;   /* eingeschränkt/Achtung */
    --ot-status-warn-soft:   #fdf0df;
    --ot-status-closed:      #c0182f;   /* gesperrt              */
    --ot-status-closed-soft: #fbe8ea;
}

/* ---- Status-Pill (Karte + Detail) ----
   Mapping: isOpen  0 = gesperrt, -1 = begehbar, 1 = eingeschränkt */
.ot-statuspill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: var(--ot-r-chip);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}
.ot-statuspill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.ot-statuspill.is-open   { background: var(--ot-status-open-soft);   color: var(--ot-status-open); }
.ot-statuspill.is-warn   { background: var(--ot-status-warn-soft);   color: var(--ot-status-warn); }
.ot-statuspill.is-closed { background: var(--ot-status-closed-soft); color: var(--ot-status-closed); }
.ot-statuspill.compact   { height: 22px; padding: 0 8px; font-size: 10.5px; }
/* in der Karten-Fußzeile rechtsbündig */
.ot-maps-card-foot .ot-statuspill { margin-left: auto; }
/* Öffnungszeiten-Kontext neben der Card-Pill („Schließt um …" / „Öffnet am …", Google-Muster) */
.ot-maps-card-openinfo { font-size: 11px; font-weight: 600; color: var(--ot-ink-3); }

/* ---- Desktop-Kartenfeinschliff (quadratischer Thumb, Display-Titel) ---- */
.ot-maps-card {
    gap: 13px;
    padding: 10px;
    border-radius: 16px;
    align-items: stretch;
}
.ot-maps-card-thumb {
    width: 104px;
    min-width: 104px;
    height: 104px;
    border-radius: 12px;
}
.ot-maps-card-body { padding: 2px 2px 2px 0; gap: 3px; }
.ot-maps-card-ort {
    font-weight: 700;
    color: var(--ot-ink-2);
}
.ot-maps-card-ort svg { color: var(--ot-accent); }
.ot-maps-card-title {
    font-family: 'Brown', 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.18;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ot-maps-card-sub { color: var(--ot-ink-3); font-weight: 600; }

/* Schwierigkeits-Glass-Pill als Overlay auf dem Thumb (oben links) */
.ot-maps-card-thumb .ot-glasspill {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Favoriten-Herz-Overlay auf dem Thumb (oben rechts) — nur Mobil sichtbar */
.ot-maps-card-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: none;   /* Desktop: aus (Design zeigt Herz nur mobil) */
}

/* ---- Sortierung im Listenkopf (eigenes Dropdown; kein natives <select>,
   damit die Site-weite Selectric-Erweiterung es nicht zu einer 54px-Box umbaut) ---- */
.ot-maps-sort {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
}
/* Kundenfeedback 10.07. abends + 11.07.: Sortierung ohne Pill-Rahmen und
   ohne das Wort "Sortieren" — Hoch/Runter-Sortier-Icon + Wert + Chevron. */
.ot-maps-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ot-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.12s;
}
.ot-maps-sort-btn:hover:not(:disabled) { color: var(--ot-accent-2); }
.ot-maps-sort-btn:disabled { cursor: default; }
.ot-maps-sort-btn .ot-maps-sort-ico { display: flex; color: var(--ot-ink-2); }
.ot-maps-sort-btn .ot-maps-sort-ico svg { width: 15px; height: 15px; display: block; }
.ot-maps-sort-btn:hover:not(:disabled) .ot-maps-sort-ico { color: var(--ot-accent-2); }
.ot-maps-sort-btn .chev { color: var(--ot-ink-3); transition: transform 0.15s; }
.ot-maps-sort-btn .chev svg { width: 13px; height: 13px; display: block; }
.ot-maps-sort[aria-expanded="true"] .ot-maps-sort-btn .chev { transform: rotate(180deg); }

.ot-maps-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-line);
    border-radius: var(--ot-r-btn);
    box-shadow: var(--ot-shadow-sheet);
    z-index: var(--z-dropdown, 60);
    display: none;
    flex-direction: column;
    gap: 2px;
}
.ot-maps-sort[aria-expanded="true"] .ot-maps-sort-menu { display: flex; }
.ot-maps-sort-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--ot-r-chip);
    background: none;
    color: var(--ot-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.ot-maps-sort-item:hover { background: var(--ot-surface-2); }
.ot-maps-sort-item[aria-checked="true"] { color: var(--ot-accent); font-weight: 800; }
.ot-maps-sort-item .tick { opacity: 0; }
.ot-maps-sort-item[aria-checked="true"] .tick { opacity: 1; }
.ot-maps-sort-item .tick svg { width: 15px; height: 15px; display: block; }

/* ---- Detail: Sicherheitshinweise-Box ---- */
.ot-detail-safety {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--ot-r-btn);
    background: var(--ot-status-warn-soft);
    border: 1px solid rgba(232, 130, 10, 0.35);
    color: #7a4a06;
}
.ot-detail-safety-icon {
    flex-shrink: 0;
    color: var(--ot-status-warn);
    margin-top: 1px;
}
.ot-detail-safety-icon svg { width: 22px; height: 22px; }
.ot-detail-safety-body { min-width: 0; }
.ot-detail-safety-body h4 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ot-status-warn);
}
.ot-detail-safety-body .txt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b4a1a;
}
.ot-detail-safety-body .txt p:last-child { margin-bottom: 0; }

/* ---- Detail: "Mehr anzeigen" (aufklappbare Beschreibung) ---- */
.ot-detail-desc.ot-clamp {
    position: relative;
    max-height: 7.2em;               /* ~4-5 Zeilen */
    overflow: hidden;
}
.ot-detail-desc.ot-clamp::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--ot-surface));
    pointer-events: none;
}
.ot-detail-desc.is-expanded {
    max-height: none;
}
.ot-detail-desc.is-expanded::after { display: none; }
.ot-detail-more {
    align-self: flex-start;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0;
    color: var(--ot-accent);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.ot-detail-more svg { width: 15px; height: 15px; transition: transform 0.18s; }
.ot-detail-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---- Detail: Routenplaner / Anreise ---- */
.ot-detail-route {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ot-detail-routebtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--ot-r-btn);
    background: var(--ot-surface-2);
    border: 1px solid var(--ot-line-2);
    color: var(--ot-ink);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s;
}
.ot-detail-routebtn:hover {
    background: var(--ot-surface-3);
    color: var(--ot-ink);
    text-decoration: none;
}
.ot-detail-routebtn svg { width: 18px; height: 18px; color: var(--ot-accent); flex-shrink: 0; }

/* ---- Topbar (ganz oben): Segment Karte/Touren + Filter ---- */
.ot-maps-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 8px;
}
/* Segment als Pillen-Track (aktiv = weiße Pille, wie Referenz) */
.ot-maps-seg {
    display: none;               /* Desktop: aus (Split-View zeigt beides) */
    flex: 1;
    /* P60.2 (Kundenfeedback 22.07., Referenz-Design): Toggle auf WEISS statt grauem
       Container; der aktive Button hebt sich per Rahmen + Schatten ab. */
    background: var(--ot-surface);
    border: 1px solid var(--ot-line-2);
    border-radius: var(--ot-r-chip);
    padding: 4px;
    gap: 4px;
}
.ot-maps-seg button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    border: 0;
    border-radius: var(--ot-r-chip);
    background: transparent;
    color: var(--ot-ink-2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.ot-maps-seg button svg { width: 17px; height: 17px; }
.ot-maps-seg button.active {
    background: var(--ot-surface);
    color: var(--ot-ink);
    /* P60.2: auf weissem Container braucht der aktive Button einen Rahmen (Referenz). */
    box-shadow: inset 0 0 0 1.5px var(--ot-ink), 0 1px 3px rgba(20, 18, 12, 0.14);
}
/* Filter-Button in der Topbar: runder Icon-Button (Sliders), ohne Füllfarbe (weiß) */
.ot-maps-topbar .ot-maps-filterbtn {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 50%;
    background: var(--ot-surface);
    border: 1px solid var(--ot-line);
    box-shadow: var(--ot-shadow-pill);
    justify-content: center;
}
.ot-maps-topbar .ot-maps-filterbtn.active { background: var(--ot-surface); border-color: var(--ot-accent); color: var(--ot-accent); }
.ot-maps-topbar .ot-maps-filterbtn .ot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Filter-Anzahl als rote Bubble, leicht über dem Icon (weißer Ring hebt sie ab) */
.ot-maps-filterbtn { position: relative; }
.ot-maps-filterbtn .ot-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--ot-accent);   /* rot #B51621 */
    color: #fff;
    border: 2px solid var(--ot-surface);
    box-shadow: 0 1px 3px rgba(20, 18, 12, 0.25);
}

/* Desktop (Split-View, Segment-Control ausgeblendet): Der Filter-Button ist das einzige
   sichtbare Topbar-Element und saß dadurch allein ÜBER der Überschrift „Osttirol entdecken"
   (eine ganze Leer-Zeile). Fix: Topbar aus dem Fluss nehmen und rechts neben der Überschrift
   in der Brand-Zeile positionieren — Überschrift links, runder Filter-Button rechts, EINE Zeile.
   Mobile (≤767px) bleibt unverändert: dort zeigt die Topbar Segment-Control + Filter. */
@media (min-width: 768px) {
    /* Filter am Desktop IN die Suchzeile (Kundenwunsch 18.08.2026), statt als schwebender
       runder Button oben rechts. Vorher: .ot-maps-topbar war hier position:absolute mit
       top/right:16px - der 52px-Button ragte damit ueber den Panelrand in die Karte und
       lag optisch neben nichts. Die Topbar enthaelt am Desktop ohnehin nur ihn, weil das
       Segment "Karte|Touren" im Split-View aus ist (.ot-maps-seg display:none) - sie kann
       hier also komplett entfallen. Der inline-Button in der Suchzeile ist fuer genau
       diese Position gebaut und wird mobil in der Kartenansicht schon so verwendet.
       Die Embed-Sticky-Regel fuer .ot-maps-topbar (weiter unten) steht in einem
       max-width:767px-Block und ist davon nicht betroffen. */
    .ot-maps-topbar { display: none; }
    /* `.ot-maps-root` als Vorfahre ist hier NOETIG, nicht Kosmetik: die Basisregel
       `.ot-filterbtn-inline { display: none }` steht weiter unten in der Datei und haette
       bei gleicher Spezifitaet gewonnen - ein Media-Query erhoeht sie nicht. */
    .ot-maps-root .ot-filterbtn-inline {
        display: flex;
        /* Auf Suchfeldhoehe (44px) statt der mobilen 48px, damit beide Elemente in der
           Zeile gleich hoch sind; 44px bleibt das Touch-Minimum. Optik wie das Suchfeld
           (gleiche Flaeche/Rahmen, kein Schatten): der mobile Schatten kommt daher, dass
           der Button dort ueber der Karte schwebt - im weissen Panel wirkt er fremd. */
        width: 44px;
        height: 44px;
        background: var(--ot-surface-2);
        border-color: var(--ot-line-2);
        box-shadow: none;
    }
    /* Abstand ueber der Suche (Kundenwunsch 18.08.2026): den lieferte bisher das
       Topbar-Padding (18px oben). Da die Topbar hier entfaellt, bringt ihn der
       Kopfbereich selbst mit - .ot-maps-side-head hat serienmaessig padding-top 0. */
    .ot-maps-side-head { padding-top: 16px; }
}

/* Umschalt-Box (Listenansicht): nur in der mobilen Kartenansicht sichtbar (s. .is-view-map) */
.ot-maps-viewtoggle { display: none; }

/* Inline-Filter neben der Suche (Kartenansicht): runder Icon-Button, sonst versteckt */
.ot-filterbtn-inline {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 50%;
    background: var(--ot-surface);
    border: 1px solid var(--ot-line);
    box-shadow: var(--ot-shadow-pill);
    justify-content: center;
}

/* ---- Detailseite (einspaltig, zentriert) — kein Splitview ---- */
.ot-detail-page {
    display: block;
    height: auto;
    min-height: 0;
    background: var(--ot-surface);
    overflow: visible;
}
.ot-detail-page .ot-maps-side {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    border-right: 0;
    height: auto;
    max-height: none;
    overflow: visible;
}
.ot-detail-page .ot-maps-detail { height: auto; }
.ot-detail-page .ot-maps-detail-scroll { overflow: visible; }

/* ---- Desktop-Detailseite (Prototyp "Osttirol Maps Detailseite Desktop",
   Kundenfeedback 10.07. abends): breiter zentrierter Wrap, Breadcrumb,
   gerundeter Hero, 2-Spalten-Grid mit sticky Sidebar-Card (Pills,
   Stat-Kacheln, Aktionen). Gilt NUR fuer die eigenstaendige Seite
   (.ot-detail-page) — Karten-Sheet und Mobile bleiben einspaltig. ---- */
@media (min-width: 1000px) {
    .ot-detail-page .ot-maps-side {
        max-width: 1200px;
        padding: 0 34px;
    }
    .ot-detail-page .ot-detail-crumbs {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 20px 0 0;
        font-size: 13px;
        font-weight: 600;
        color: var(--ot-ink-3);
        min-width: 0;
    }
    .ot-detail-page .ot-detail-crumbs a { color: inherit; text-decoration: none; }
    .ot-detail-page .ot-detail-crumbs a:hover { color: var(--ot-accent); }
    .ot-detail-page .ot-detail-crumbs svg { color: var(--ot-line-2); flex-shrink: 0; }
    .ot-detail-page .ot-detail-crumbs .cur {
        color: var(--ot-ink);
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ot-detail-page .ot-detail-hero {
        height: 440px;
        border-radius: 22px;
        margin-top: 16px;
    }
    .ot-detail-page .ot-detail-hero-grad {
        background: linear-gradient(to top, rgba(10, 12, 9, 0.72) 0%, rgba(10, 12, 9, 0.12) 46%, rgba(10, 12, 9, 0.24) 100%);
    }
    .ot-detail-page .ot-detail-hero-top { top: 18px; left: 18px; right: 18px; }
    .ot-detail-page .ot-detail-hicon { width: 44px; height: 44px; }
    .ot-detail-page .ot-detail-hero-text { left: 30px; right: 30px; bottom: 26px; }
    .ot-detail-page .ot-detail-eyebrow { font-size: 13px; letter-spacing: 0.04em; }
    .ot-detail-page .ot-detail-title {
        font-size: 44px;
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.02em;
        margin: 8px 0 0;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
    }
    .ot-detail-page .ot-detail-ort { font-size: 15px; font-weight: 600; margin-top: 10px; }
    /* P81: Desktop-Hero ist freistehend gerundet (kein Body-Overlap) - Copyright
       darf wieder an den Bildrand. */
    .ot-detail-page .ot-img-copy--hero { bottom: 12px; }
    .ot-detail-page .ot-detail-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 372px;
        gap: 34px 44px;
        align-items: start;
        padding: 28px 0 60px;
        /* P62: Desktop hat das freistehend GERUNDETE Hero (22px) - keine Ueberlappung. */
        margin-top: 0;
        border-radius: 0;
    }
    .ot-detail-page .ot-detail-main { gap: 26px; }
    .ot-detail-page .ot-detail-sec h3 { font-size: 22px; }
    /* Galerie-Full-Bleed-Hack (margin 0 -20px) kompensiert das mobile
       Body-Padding — das Desktop-Grid hat horizontal keins mehr, sonst
       ragt der Streifen 20px in Wrap-Rand und Spalten-Gap (Review-Finding
       10.07. abends). */
    .ot-detail-page .ot-detail-gallery {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    /* Sidebar: sticky Card mit Pills + Stat-Grid + Aktionen */
    .ot-detail-page .ot-detail-side {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: calc(var(--ot-header-h, 69px) + 24px);
    }
    .ot-detail-side-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: var(--ot-surface);
        border: 1px solid var(--ot-line);
        border-radius: 18px;
        padding: 20px;
        box-shadow: var(--ot-shadow-card);
    }
    /* Stat-Kacheln in der Card: 2 Spalten wie im Prototyp (dd-statgrid).
       Ungerade Kachelanzahl (1-5 je Datenlage): letzte Kachel spannt beide
       Spalten, sonst bliebe eine graue Leerzelle (Container-Hintergrund =
       var(--ot-line), Review-Finding 10.07. abends). */
    .ot-detail-side-card .ot-detail-stats--side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .ot-detail-side-card .ot-detail-stats--side .ot-detail-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    /* Aktionen: Routenplaner primaer (Akzent), Rest als Ghost-Zeilen */
    .ot-detail-side-actions {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }
    .ot-side-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 48px;
        padding: 0 16px;
        border-radius: 13px;
        border: 1px solid var(--ot-line);
        background: var(--ot-surface-warm);
        color: var(--ot-ink);
        font-family: inherit;
        font-size: 14.5px;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.12s, border-color 0.12s;
    }
    .ot-side-btn:hover { background: var(--ot-surface-2); }
    .ot-side-btn svg:first-child { color: var(--ot-accent); flex-shrink: 0; }
    .ot-side-btn .chev { margin-left: auto; color: var(--ot-ink-3); }
    .ot-side-btn--primary {
        background: var(--ot-accent);
        border-color: var(--ot-accent);
        color: var(--ot-on-accent);
    }
    .ot-side-btn--primary:hover { background: var(--ot-accent-2); }
    .ot-side-btn--primary svg:first-child { color: var(--ot-on-accent); }
    /* Duplikate im Hauptstrang am Desktop ausblenden: Pills + generische
       Stat-Kacheln + GPX/Drucken-Buttons leben in der Sidebar-Card. */
    .ot-detail-page .ot-detail-main > .ot-detail-pills { display: none; }
    .ot-detail-page .ot-detail-main .ot-detail-stats--main { display: none; }
    .ot-detail-page .ot-detail-main .ot-detail-actions { display: none; }
}
/* "In Karte öffnen" auf der Route-Karte */
.ot-detail-map-open {
    position: absolute;
    right: 12px; bottom: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 14px; border-radius: 999px;
    background: var(--ot-surface); color: var(--ot-ink);
    box-shadow: var(--ot-shadow-pill);
    font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.ot-detail-map-open svg { color: var(--ot-accent); }
.ot-detail-map-open:hover { color: var(--ot-ink); text-decoration: none; }

/* ---- Detail: verknüpfte Inhalte (Weitere Touren / POIs) ---- */
/* Wetter (meteoexperts) — Karte nach Design-Mockup 11.07.: Orts-Chip, HEUTE mit
   Vormittag/Nachmittag als zwei Spalten, kompakte MORGEN-Zeile, Footer-Link. */
.ot-wx {
    border: 1px solid var(--ot-line-2); border-radius: var(--ot-r-card);
    background: var(--ot-surface); overflow: hidden;
}
.ot-wx-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; background: var(--ot-surface-2); border-bottom: 1px solid var(--ot-line);
}
.ot-wx-loc {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 800; color: var(--ot-ink);
}
.ot-wx-loc svg { color: var(--ot-accent); flex: 0 0 auto; }
.ot-wx-src { font-size: 11px; color: var(--ot-ink-3); }
.ot-wx-today { padding: 12px 14px 16px; }
.ot-wx-datehead { font-size: 13px; font-weight: 600; color: var(--ot-ink-2); }
.ot-wx-datehead strong { color: var(--ot-accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 6px; }
.ot-wx-halves { display: flex; margin-top: 12px; }
.ot-wx-half {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0 8px; text-align: center;
}
.ot-wx-half + .ot-wx-half { border-left: 1px solid var(--ot-line); }
.ot-wx-tod { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ot-ink-3); }
.ot-wx-ico svg { width: 44px; height: 44px; display: block; margin: 6px 0 2px; }
.ot-wx-cond { font-size: 14px; font-weight: 600; color: var(--ot-ink); }
.ot-wx-cond--empty { color: var(--ot-ink-3); margin-top: 14px; }
.ot-wx-temp { font-size: 30px; font-weight: 800; color: var(--ot-ink); line-height: 1.1; }
.ot-wx-temp span { font-size: 14px; font-weight: 700; vertical-align: super; margin-left: 1px; }
.ot-wx-meta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ot-ink-2);
    flex-wrap: wrap;
}
.ot-wx-meta svg { vertical-align: -1px; color: var(--ot-ink-3); }
/* MORGEN-Zeile entfernt (Kundenfeedback 21.07., Punkt 19): .ot-wx-tomorrow/.ot-wx-tmr-*
   waren toter Code, nachdem nur noch HEUTE (Vormittag/Nachmittag) angezeigt wird. */
.ot-wx-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; /* Touch-Target-Mindestgroesse (UI-Checkliste) */
    padding: 11px 14px; border-top: 1px solid var(--ot-line);
    font-size: 13px; font-weight: 800; color: var(--ot-accent); text-decoration: none;
}
.ot-wx-foot:hover { text-decoration: none; background: var(--ot-surface-warm); color: var(--ot-accent-2); }
.ot-wx-foot-label { display: inline-flex; align-items: center; gap: 7px; }
.ot-wx-foot-label svg { color: #e8a20a; flex: 0 0 auto; }

/* Highlights (KI): Kopfzeile ohne Kopf-Badge — KI-Herkunft steht nur noch in der
   Fußnote unten (Duplikat "KI generiert" entfernt, Kundenfeedback 2026-07-03). */
.ot-detail-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ot-detail-sec-head h3 { margin: 0; }

/* Highlights-Liste: nur der runde rote Haken ist ein eigenes "Badge" — der Text steht auf
   normalem (weißem) Untergrund, kein Hintergrundkasten pro Zeile (Prototyp detail2.png,
   Kundenfeedback 2026-07-03: vorher volle rosa Box je Eintrag). */
.ot-detail-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ot-detail-highlights li {
    position: relative; display: flex; align-items: center;
    padding: 2px 0 2px 30px;
    font-size: 15px; font-weight: 600; color: var(--ot-ink); line-height: 1.35;
}
/* Kundenfeedback 10.07. (Prototyp): Haken in zartrosa abgerundetem Quadrat,
   Haken selbst in Akzentrot (vorher: weisser Haken auf rotem Kreis). */
.ot-detail-highlights li::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 6px;
    background: #fbeaec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23B51621' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.ot-detail-highlights-note {
    display: flex; align-items: flex-start; gap: 6px;
    margin: 2px 0 0; font-size: 12.5px; font-style: italic; color: var(--ot-ink-3);
}
.ot-detail-highlights-note svg { flex-shrink: 0; margin-top: 1px; }

/* Start-/Endpunkt als eigene Highlight-Punkte (Pin-Icon statt Häkchen). */
.ot-detail-highlights li.ot-hl-point { font-weight: 700; }
.ot-detail-highlights li.ot-hl-point .ot-hl-lbl {
    display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ot-ink-3); margin-right: 6px;
}
.ot-detail-highlights li.ot-hl-start::before {
    background: #005995 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center/12px no-repeat;
}
.ot-detail-highlights li.ot-hl-end::before {
    background: #c0392b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Lifte & Anlagen (Skigebiet-Detail, Skigebiets-Paket): klickbare Zeilen mit Ampel-Badge,
   Lift-Typ + Kenndaten-Unterzeile (Resource::getLiftFacts().metaLabel) und Chevron. */
.ot-lift-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ot-lift { display: flex; align-items: stretch; background: var(--ot-surface); border: 1px solid var(--ot-line-2); border-radius: 10px; }
.ot-lift-link { display: flex; flex: 1; min-width: 0; min-height: 44px; align-items: center; gap: 10px;
    padding: 8px 12px; text-decoration: none; color: inherit; border-radius: 10px; }
.ot-lift-link:hover { background: var(--ot-surface-2); text-decoration: none; color: inherit; }
/* flex:1 auf der Namens-Spalte (statt justify-content:space-between auf der Zeile):
   Badge + Chevron werden dadurch IMMER an den rechten Rand gedrueckt — die Badges aller
   Zeilen stehen rechtsbuendig in EINER festen Spalte vor dem Chevron, statt je nach
   Namens-/Kenndaten-Breite an unterschiedlichen x-Positionen zu "flattern" (I-1). */
.ot-lift-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ot-lift-name { font-weight: 600; font-size: 14px; color: var(--ot-ink); }
.ot-lift-meta { font-size: 12px; color: var(--ot-ink-3); }
.ot-lift-chev { flex: none; color: var(--ot-ink-3); }
.ot-lift-badge { flex: none; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.ot-lift-badge.is-open { background: #dff3e6; color: #0a7a3d; }
.ot-lift-badge.is-closed { background: #fbe0e3; color: #b0182b; }
.ot-lift-badge.is-unknown { background: #eef0f2; color: #6b6b6b; }
.ot-lift-note { font-size: 12px; color: var(--ot-ink-3); margin: 0; }

/* Detail-Sheet-Ladezustand (I-3, Sofort-Feedback beim Pin-/Suggest-Klick): pulsierende
   Platzhalter-Bloecke im Stil des Detail-Panels, bis der fetch den echten Inhalt liefert.
   prefers-reduced-motion: Puls-Animation entfaellt (statischer Platzhalter). */
.ot-detail-skel { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ot-detail-skel-block { border-radius: 10px; background: var(--ot-surface-2, #eef0f2); animation: otSkelPulse 1.2s ease-in-out infinite; }
.ot-detail-skel-hero { height: 180px; }
.ot-detail-skel-title { height: 26px; width: 70%; }
.ot-detail-skel-line { height: 14px; width: 100%; }
.ot-detail-skel-line.short { width: 55%; }
@keyframes otSkelPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .ot-detail-skel-block { animation: none; } }
/* Fehlerzustand des Detail-Fetches: kurze Meldung + Sheet bleibt schliessbar (X/Grip).
   Der Schliessen-Button ist die einzige Recovery-Aktion → eigener Stil mit min. 44px
   Touch-Target (UI-Checkliste), statt den 14px-Textlink .ot-filter-reset zu recyceln. */
.ot-detail-error { padding: 24px 16px; text-align: center; color: var(--ot-ink-2, #444); font-size: 14px; }
.ot-detail-error-close { margin-top: 14px; min-height: 44px; min-width: 132px; padding: 10px 20px;
    font-size: 14px; font-weight: 600; color: var(--ot-ink); background: var(--ot-surface-2, #eef0f2);
    border: 1px solid var(--ot-line-2, #ddd); border-radius: 10px; cursor: pointer; }
.ot-detail-error-close:hover { background: var(--ot-line-2, #e4e6e8); }

/* Pisten-Aufschlüsselung (Skigebiet-Detail): farbcodierte Dots blau/rot/schwarz analog
   dem Ampel-Muster; „valley" = Talabfahrten (neutral umrandet). */
.ot-slope-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ot-slope-dot--blue { background: #1c6fd6; }
.ot-slope-dot--red { background: #d6231c; }
.ot-slope-dot--black { background: #1b1b1b; }
.ot-slope-dot--valley { background: #fff; border: 2px solid var(--ot-ink-3); }

/* Öffnungszeiten (POI-/Hütten-Detail) — Google-MyBusiness-artige Wochen-Tabelle
   (Kundenfeedback 21.07.2026, Pkt. 7): je Saison ein Block mit Zeitraum-Kopf und einer
   Tag/Zeit-Tabelle. Tage mit gleichen Zeiten sind bereits serverseitig gruppiert
   (OpeningHoursFormatter), Schließtage tragen die Klasse .is-closed. */
.ot-opening { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.ot-opening-season { padding: 10px 12px; background: var(--ot-surface); border: 1px solid var(--ot-line-2);
    border-radius: 10px; }
.ot-opening-range { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--ot-ink-3); margin-bottom: 6px; }
.ot-opening-week { width: 100%; border-collapse: collapse; font-size: 14px; }
.ot-opening-week tr + tr th, .ot-opening-week tr + tr td { border-top: 1px solid var(--ot-line-2); }
.ot-opening-day { text-align: left; font-weight: 700; color: var(--ot-ink); padding: 5px 12px 5px 0;
    white-space: nowrap; vertical-align: top; width: 1%; }
.ot-opening-time { text-align: right; font-weight: 600; color: var(--ot-ink); padding: 5px 0; }
.ot-opening-row.is-closed .ot-opening-day,
.ot-opening-row.is-closed .ot-opening-time { color: var(--ot-ink-3); font-weight: 600; }
.ot-opening-desc { margin-top: 4px; }

.ot-detail-links { display: flex; flex-direction: column; gap: 8px; }
.ot-detail-linkgroup { margin-top: 12px; }
.ot-detail-linkgroup:first-child { margin-top: 0; }
.ot-detail-linkgroup-h {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ot-ink-3); margin: 0 0 8px 2px;
}
.ot-detail-linkrow {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--ot-r-btn);
    border: 1px solid var(--ot-line); background: var(--ot-surface);
    text-decoration: none; color: var(--ot-ink); transition: background 0.12s;
}
.ot-detail-linkrow:hover { background: var(--ot-surface-2); color: var(--ot-ink); text-decoration: none; }
.ot-detail-linkrow-ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: var(--ot-surface-2); display: flex; align-items: center; justify-content: center;
    color: var(--ot-ink-2);
}
/* POI-Icon-Farben je Kategorie (Prototyp detail4.png: "Weitere Karteninhalte").
   Key kommt aus webx:poiIconKey (Classes/ViewHelpers/PoiIconKeyViewHelper.php). */
.ot-poi-ic--parkplatz, .ot-poi-ic--bus { background: #dfe9f7; color: #2f5fa8; }
.ot-poi-ic--gipfel { background: #ece3d2; color: #8a6a2f; }
.ot-poi-ic--tour { background: var(--ot-accent-soft); color: var(--ot-accent); }
/* Huetten-Ton als Variablen -> einzige Hex-Quelle; sowohl das POI-Icon als auch
   der Huetten-Card-Platzhalter referenzieren sie (keine Hex-Dopplung, F7). */
:root { --ot-huette-bg: #f1e4d8; --ot-huette-ink: #8a5a3f; }
.ot-poi-ic--huette { background: var(--ot-huette-bg); color: var(--ot-huette-ink); }
.ot-poi-ic--lift { background: var(--ot-surface-2); color: var(--ot-ink-2); }
.ot-detail-linkrow-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ot-detail-linkrow-txt .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ot-ink-3); }
.ot-detail-linkrow-txt .n { font-size: 15px; font-weight: 700; color: var(--ot-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-detail-linkrow-txt .s { font-size: 12.5px; color: var(--ot-ink-2); }
.ot-detail-linkrow-chev { flex-shrink: 0; color: var(--ot-ink-3); }

/* ---- P72 „Weitere Karteninhalte": Anschlusstour-Teaser + POI-Chips ----
   Zwei Darstellungen in einer Sektion (Referenz-Screenshot):
   Touren als Bild-Cards (auto-fill-Grid -> 1 Spalte im schmalen Sheet, 2-3 auf
   der Desktop-Detailseite, ohne Viewport-Media-Query), POIs als kompakte Chips.
   Container-responsiv (minmax) statt Breakpoints, damit Sheet UND Detail passen. */
.ot-detail-moretours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.ot-more-tour {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ot-line);
    border-radius: var(--ot-r-card);
    background: var(--ot-surface);
    overflow: hidden;
    text-decoration: none;
    color: var(--ot-ink);
    transition: box-shadow 0.14s, border-color 0.14s;
}
.ot-more-tour:hover {
    color: var(--ot-ink);
    text-decoration: none;
    border-color: var(--ot-line-2);
    box-shadow: 0 6px 18px rgba(24, 21, 16, 0.10);
}
/* Bild oben, ~16:10 (aspect-ratio); img fuellt die Flaeche formatfuellend. */
.ot-more-tour-img {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--ot-surface-2);
    overflow: hidden;
}
.ot-more-tour-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Platzhalter ohne Bild: heller Marken-Rot-Ton + zentriertes Routen-Icon (kein kaputtes img). */
.ot-more-tour-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ot-accent-soft);
    color: var(--ot-accent);
}
.ot-more-tour-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px 13px;
}
.ot-more-tour-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ot-ink-3);
}
.ot-more-tour-title {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ot-ink);
}
.ot-more-tour-meta {
    font-size: 12.5px;
    color: var(--ot-ink-2);
}

/* POI-Chips: kompakter als die Tour-Cards („um Platz zu sparen").
   Kundenpunkt P84 (22.07.): kleiner als grosse Chips und einfach ANEINANDERGEREIHT
   -> flex-wrap-Container, jeder Chip nur so breit wie sein Inhalt, natuerlicher
   Zeilenumbruch (mehrere pro Zeile). Kein max-width mehr, keine Spalten-Liste. */
.ot-detail-morechips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
/* Nur oberer Abstand, wenn zuvor Tour-Teaser standen. */
.ot-detail-moretours + .ot-detail-morechips { margin-top: 12px; }
/* Chip inhaltsbreit (width:auto), begrenzt auf Containerbreite -> lange Werte
   ellipsen im Untertitel statt die Zeile zu sprengen. Kompakteres Padding und
   ein kleineres Icon-Quadrat gegenueber der frueheren, vollbreiten Variante. */
.ot-more-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--ot-line);
    border-radius: 12px;
    background: var(--ot-surface);
    text-decoration: none;
    color: var(--ot-ink);
    transition: background 0.12s;
}
.ot-more-chip:hover { background: var(--ot-surface-2); color: var(--ot-ink); text-decoration: none; }
/* Icon in abgerundetem Quadrat (heller Hintergrund); Farbe via .ot-poi-ic--* (s.o.). */
.ot-more-chip-ic {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Neutraler Fallback-Ton NUR wenn keine Kategorie-Farbe greift: :where() hat
   Spezifitaet 0, damit die frueher definierten .ot-poi-ic--*-Farben (Z.~2267)
   nicht von dieser spaeteren Regel ueberschrieben werden (Review-Fund 22.07.). */
:where(.ot-more-chip-ic) {
    background: var(--ot-surface-2);
    color: var(--ot-ink-2);
}
/* min-width:0 laesst Titel/Untertitel ellipsen, wenn der Chip die max-width erreicht. */
.ot-more-chip-txt { min-width: 0; display: flex; flex-direction: column; }
.ot-more-chip-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ot-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ot-more-chip-sub {
    font-size: 12px;
    color: var(--ot-ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ot-more-sep { color: var(--ot-ink-3); }

/* ---- P83 „Einkehr & Hütten entlang der Tour": Foto-Teaser-Slider ----
   Horizontal swipe-/scrollbares Karussell aus Teaser-Cards MIT FOTO (Kundenpunkt
   P83, 22.07.), reines CSS scroll-snap ohne JS. 2 Cards sichtbar, weitere per
   Wischen/Scrollen. Card-Aufbau wie die P72-Anschlusstour-Teaser (.ot-more-tour):
   Bild oben mit aspect-ratio (gegen Layout-Spruenge), Titel fett, graue Meta-Zeile.
   Funktioniert unveraendert im Desktop-Detail (.ot-detail-page) UND im schmalen
   Karten-Sheet (#otMapsDetailPanel.ot-sheet) -> Kartenbreite auf 50%-Basis,
   dadurch ohne Viewport-Breakpoint automatisch schmaler im Sheet. */
.ot-hut-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Etwas Luft unter den Cards fuer die dezente Scrollbar. */
    padding-bottom: 6px;
    /* Duenne, dezente Scrollbar (Firefox); WebKit direkt darunter. */
    scrollbar-width: thin;
    scrollbar-color: var(--ot-line-2) transparent;
}
.ot-hut-carousel::-webkit-scrollbar { height: 6px; }
.ot-hut-carousel::-webkit-scrollbar-thumb { background: var(--ot-line-2); border-radius: 999px; }
.ot-hut-carousel::-webkit-scrollbar-track { background: transparent; }
/* Huetten-Cards nutzen komplett die .ot-more-tour-Optik (P72-Teaser: Rahmen, Bild
   16:10, Body/Eyebrow/Titel/Meta) - hier bleibt nur, was das Karussell-Item vom
   Grid-Teaser unterscheidet: feste ~50%-Breite (genau 2 nebeneinander, Rest
   swipebar), Snap-Ausrichtung und min-width:0 gegen das Flex-Zusammenstauchen.
   .ot-hut-card ist reiner Modifier auf .ot-more-tour (Markup: Show.html). */
.ot-more-tour.ot-hut-card {
    flex: 0 0 calc(50% - 6px);
    scroll-snap-align: start;
    min-width: 0;
}
/* Platzhalter im Huetten-Ton statt Marken-Rot der Tour-Cards; Farbe aus den
   Huetten-Variablen (s.o.), damit die Hexwerte nicht erneut kopiert werden (F7).
   Icon etwas groesser (30px) wie in der frueheren Huetten-Card. */
.ot-more-tour.ot-hut-card .ot-more-tour-ph {
    background: var(--ot-huette-bg);
    color: var(--ot-huette-ink);
}
.ot-more-tour.ot-hut-card .ot-more-tour-ph svg { width: 30px; height: 30px; }

/* ---- Detail: Sheet-Kopf (Text statt Hero-Bild) + Tools + dunkle Varianten ----
   Text-Block (Eyebrow/Titel/Ort) und Action-Buttons stehen als Flex-Row nebeneinander,
   oben ausgerichtet (align-items: flex-start), damit die Eyebrow-Zeile bündig mit der
   Button-Reihe abschließt (Prototyp: kartenansicht-ein-pin-geoeffnet.png). */
.ot-detail-header { display: none; padding: 14px 20px 2px; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ot-detail-header-text { min-width: 0; }
.ot-detail-header-tools { display: flex; gap: 8px; flex-shrink: 0; }
.ot-detail-header-tools .ot-detail-hicon { background: var(--ot-surface-2); color: var(--ot-ink); }
.ot-detail-eyebrow--dark { color: var(--ot-ink-3); }
.ot-detail-title--dark {
    color: var(--ot-ink); font-size: 22px; font-weight: 800; line-height: 1.15; margin: 0 0 5px;
    font-family: 'Brown', 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
}
.ot-detail-ort--dark { color: var(--ot-ink-2); }
.ot-detail-ort--dark svg { color: var(--ot-accent); }
/* Merken-Herz aktiv (Detail-Hero + Sheet-Kopf) */
.ot-detail-hicon.jsOtFav.on { background: var(--ot-accent); color: var(--ot-on-accent); }
.ot-detail-hicon.jsOtFav.on svg { fill: currentColor; }

/* ---- Referenz-Abgleich Liste (listenansicht-maps.png) ---- */
/* Header-Titel statt Brand-Icon */
/* Titel/Zaehler-Styles am 10.07. mit dem Panel-Kopf entfernt (Kundenfeedback). */

/* Suche: weißes Input (statt creme) */
.ot-maps-search { background: var(--ot-surface); }

/* Kategorie-Chip aktiv = schwarz (ink), wie Referenz */
.ot-maps-chip.active { background: var(--ot-ink); border-color: var(--ot-ink); color: var(--ot-surface); }

/* (Sortier-Dropdown: eigenes Menü, Styles weiter oben — kein natives <select> mehr) */

/* Kartenkopf: Ort links + Status rechts */
.ot-maps-card-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ot-maps-card-toprow .ot-maps-card-ort { margin: 0; }

/* Merken-Herz (Visual; Sichtbarkeit steuert display in Basis/Mobile) */
.ot-maps-card-fav {
    width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.92); color: var(--ot-ink);
    align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.ot-maps-card-fav.on { background: var(--ot-accent); color: var(--ot-on-accent); }
.ot-maps-card-fav.on svg { fill: currentColor; }

/* "Auf Karte"-Button (rote Outline-Pille) */
.ot-maps-card-mapbtn {
    display: none; margin-left: auto; align-items: center; gap: 6px;
    height: 34px; padding: 0 13px; border-radius: 999px;
    border: 1.5px solid var(--ot-accent); background: transparent; color: var(--ot-accent);
    font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.ot-maps-card-mapbtn svg { width: 14px; height: 14px; }
.ot-maps-card-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Platzhalter mit Osttirol-Logo (kein Bild) */
.ot-no-img--logo { background: var(--ot-surface-2); display: flex; align-items: center; justify-content: center; }
.ot-no-img--logo img { width: 58%; max-width: 170px; height: auto; opacity: 0.5; }

/* ---------- Responsive: Mobil (Prototyp "Johanna") ---------- */
@media (max-width: 767px) {
    .ot-maps-root:not(.ot-detail-page) {
        flex-direction: column;
        height: calc(100vh - var(--header-height, 0px));
        min-height: 560px;
        position: relative;
    }

    /* Karte + Liste liegen übereinander; Segment-Control schaltet um */
    .ot-maps-side {
        width: 100%;
        max-height: none;
        flex: 1;
        border-right: 0;
    }
    .ot-maps-map {
        position: absolute;
        inset: 0;
        z-index: 1;
        height: auto;
    }
    .ot-maps-side {
        position: relative;
        z-index: 2;
    }

    /* Ansicht "Touren": Liste sichtbar, Karte verdeckt */
    .ot-maps-root.is-view-list .ot-maps-map { visibility: hidden; }
    .ot-maps-root.is-view-list .ot-maps-side { display: flex; }

    /* Ansicht "Karte": Karte sichtbar. Der Sidebar-KOPF (Suche/Filter/Chips/aktive Pills)
       schwebt über der Karte (Prototyp-Topbar); die Karten-Liste ist ausgeblendet. */
    .ot-maps-root.is-view-map .ot-maps-map { visibility: visible; }
    .ot-maps-root.is-view-map .ot-maps-side {
        display: flex;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: auto;
        max-height: none;
        background: transparent;
        border-right: 0;
        z-index: 6;
        pointer-events: none;
    }
    .ot-maps-root.is-view-map .ot-maps-side > * { pointer-events: auto; }
    /* Autosuggest (P2): In der mobilen KARTENansicht ist die Sidebar nur so hoch wie die
       schwebende Suchzeile (bottom:auto) — overflow:hidden aus dem Desktop-Ruleset wuerde
       das absolut positionierte Dropdown unterhalb abschneiden. Die Sidebar ist hier ein
       transparentes Overlay ohne Scroll-Inhalt, overflow:visible ist gefahrlos. */
    .ot-maps-root.is-view-map .ot-maps-side { overflow: visible; }
    .ot-maps-root.is-view-map .ot-maps-side-scroll { display: none; }   /* Kartenliste aus */
    .ot-maps-root.is-view-map .ot-maps-side-head {
        background: transparent;
        border-bottom: 0;
        padding: 12px 12px 4px;
    }
    /* Suche + Filter als schwebende Pillen über der Karte */
    .ot-maps-root.is-view-map .ot-maps-search,
    .ot-maps-root.is-view-map .ot-maps-filterbtn {
        background: var(--ot-surface);
        box-shadow: var(--ot-shadow-pill);
        border-color: transparent;
    }
    /* Kein eigenes horizontales Padding — sonst addiert es sich zum Padding von
       .ot-maps-side-head (12px) und die Pillen/Chips stehen weiter rechts als die
       schwebende Suchleiste (dasselbe Problem wie im Desktop-Ruleset, s.o.). */
    .ot-maps-root.is-view-map .ot-maps-active-filters { border-bottom: 0; padding: 8px 0; }
    .ot-maps-root.is-view-map .ot-maps-chips { padding: 2px 0 4px; }
    /* Kundenfeedback 10.07. abends (Prototyp-Kartenansicht): Chips/aktive
       Filter-Pills ueber der Karte reinweiss mit schwarzer Schrift (statt
       Akzent-Rot), wie Suchfeld/Filter mit Schatten statt Rahmen. */
    .ot-maps-root.is-view-map .ot-maps-filter-pill {
        background: var(--ot-surface);
        border-color: transparent;
        color: var(--ot-ink);
        box-shadow: var(--ot-shadow-pill);
    }
    /* Kundenfeedback 22.07. (P51): Such-Pill auch auf der Kartenansicht rot
       (wie Listenansicht); die uebrigen Filter-Pills bleiben bewusst weiss
       (Kundenwunsch 10.07., s.o.). */
    .ot-maps-root.is-view-map .ot-maps-filter-pill[data-type="search"] {
        background: var(--ot-accent-soft);
        border-color: var(--ot-accent);
        color: var(--ot-accent);
    }
    .ot-maps-root.is-view-map .ot-maps-chip {
        background: var(--ot-surface);
        border-color: transparent;
        color: var(--ot-ink);
        box-shadow: var(--ot-shadow-pill);
    }
    .ot-maps-root.is-view-map .ot-maps-chip.active {
        background: var(--ot-ink);
        color: var(--ot-surface);
    }

    /* LISTENANSICHT: oben Segment (Karte/Touren) + Filter daneben (Topbar).
       KARTENANSICHT: kein Segment/Topbar — Suche + Filter oben (Suchzeile),
       Umschalten zurück über die schwarze "Listenansicht"-Box unten. */
    .ot-maps-root.is-view-list .ot-maps-seg { display: flex; }
    .ot-maps-root.is-view-map  .ot-maps-topbar { display: none; }
    /* Inline-Filter neben der Suche nur in der Kartenansicht */
    .ot-maps-root.is-view-map  .ot-filterbtn-inline { display: flex; }
    /* Untere Umschalt-Box nur in der Kartenansicht */
    .ot-maps-root.is-view-map  .ot-maps-viewtoggle { display: inline-flex; }

    /* Foto-Karten statt kompakter Zeilen */
    .ot-maps-cards { gap: 18px; padding: 6px 16px 90px; }
    /* "Mehr laden" direkt unter der letzten Card (Kundenfeedback 22.07.): folgt der
       Button, wandert die 90px-Freihaltezone (schwebender Ansicht-Umschalter) von der
       Card-Liste UNTER den Button. Auf der letzten Seite entfernt das JS den Button-
       Wrap -> :has greift nicht mehr und die Liste behaelt ihr eigenes Polster. */
    #otListContent:has(.ot-loadmore-wrap) .ot-maps-cards { padding-bottom: 6px; }
    /* ID-Selektor: muss den Inline-Style-Block aus List.html (padding: 8px 0 14px) schlagen. */
    #otListContent .ot-loadmore-wrap { padding-bottom: 90px; }
    .ot-maps-card {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: var(--ot-shadow-card);
    }
    .ot-maps-card-thumb {
        width: 100%;
        min-width: 0;
        /* Punkt 40 (21.07. abends, REVERSIBEL): Kunde wuenscht 3:2 statt der breiten
           Panorama-Hoehe (184px fix). Rueckbau = diese zwei Zeilen wieder auf
           height: 184px setzen. Breiten-Deckelung "to be discussed" - bewusst offen. */
        aspect-ratio: 3 / 2;
        height: auto;
        border-radius: 0;
    }
    .ot-maps-card-body { padding: 14px 16px 16px; gap: 4px; }
    .ot-maps-card-title { font-size: 19px; -webkit-line-clamp: 2; }
    .ot-maps-card-thumb .ot-glasspill { top: 12px; left: 12px; }
    /* Favoriten-Herz mobil einblenden */
    .ot-maps-card-fav { display: inline-flex; }
    /* Kompakter (Kundenfeedback 10.07.: "Auf Karte" brach teils um): kleinere
       Stat-Schrift/Abstaende + schmalere Button-Pille, alles bleibt einzeilig. */
    .ot-maps-card-foot {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--ot-line);
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    .ot-maps-card-foot .ot-maps-stat { font-size: 12.5px; font-weight: 700; color: var(--ot-ink); white-space: nowrap; }
    .ot-maps-card-foot .ot-maps-stats,
    .ot-maps-card-foot .ot-maps-card-stats { gap: 8px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
    /* Letzter Wert darf bei sehr schmalen Geraeten (320-360px) per Ellipsis enden
       statt mitten im Zeichen zu clippen (Review-Finding). */
    .ot-maps-card-foot .ot-maps-stat { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .ot-maps-card-mapbtn {
        display: inline-flex;   /* "Auf Karte" nur mobil */
        min-height: 30px; padding: 0 10px; gap: 4px; font-size: 12px; flex: 0 0 auto;
        /* min-height statt height: die pointer:coarse-Regel (44px Touch-Minimum)
           darf auf echten Geraeten sauber uebersteuern (Review-Finding). */
    }

    /* Filter als Top-Sheet (klappt von oben herunter, wie gewünscht).
       top = Header-Hoehe: bei top:0 verschwand der Sheet-Kopf (Titel + X zum
       Schliessen) hinter dem fixierten Site-Header (Kundenfeedback 10.07.). */
    .ot-filter-pop {
        position: fixed;
        top: var(--ot-header-h, 69px);
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - var(--ot-header-h, 69px) - 70px);
        border-radius: 0 0 var(--ot-r-sheet) var(--ot-r-sheet);
        box-shadow: var(--ot-shadow-sheet);
        /* Geschlossen VOLLSTAENDIG aus dem Viewport schieben: -100% verschiebt nur um die
           eigene Hoehe, das Sheet beginnt aber erst bei top = Header-Hoehe. Es ragte
           dadurch mit seinen untersten Pixeln in den Viewport (gemessen 08.08.: Box
           -185..85 statt -270..0). Anklickbar war es nicht - der fixierte Site-Header
           liegt darueber und faengt die Klicks ab; der eigentliche Defekt war, dass das
           geschlossene Sheet mit seinen 80 Bedienelementen im Tab- und Screenreader-Baum
           blieb (per Tab erreichbare Filter in einem zugeklappten Dialog).
           Deshalb zwei Riegel: die Header-Hoehe kommt in den Transform-Offset, und
           visibility: hidden nimmt das Sheet aus Hit-Testing und A11y-Baum - auch dann,
           wenn --ot-header-h einmal nicht zur echten Header-Hoehe passt.
           Die Transition schaltet visibility beim Schliessen erst NACH der Bewegung um,
           beim Oeffnen sofort - sonst wuerde das Sheet ohne Animation erscheinen. */
        transform: translateY(calc(-100% - var(--ot-header-h, 69px)));
        visibility: hidden;
        transition: transform 0.34s cubic-bezier(.22, .61, .36, 1), visibility 0s linear 0.34s;
        display: flex;
    }
    .ot-filter-pop.open {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.34s cubic-bezier(.22, .61, .36, 1), visibility 0s;
    }
    /* .ot-maps-side (z-index:2) bildet einen eigenen Stacking-Context und deckelt das
       Panel darin. Solange der Filter offen ist, den Kontext über den Backdrop (55) heben,
       sonst überlagert der Schleier die Filter und schluckt Klicks. */
    .ot-maps-side:has(.ot-filter-pop.open) { z-index: 60; }
    /* Greifer unten (statt oben), da das Sheet von oben kommt */
    .ot-filter-pop::after {
        content: "";
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: var(--ot-line-2);
    }
    .ot-filter-pop-foot { padding-bottom: 20px; }

    /* Backdrop hinter dem Sheet */
    .ot-maps-pop-backdrop {
        z-index: 55;
        background: rgba(16, 20, 14, 0.42);
    }

    /* POI-Detail als ziehbares Bottom-Sheet ("Lasche") */
    #otMapsDetailPanel.ot-sheet {
        position: fixed;
        left: 0; right: 0; bottom: 0; top: auto;
        width: 100%;
        height: 88vh;
        max-height: 88vh;
        border-radius: var(--ot-r-sheet) var(--ot-r-sheet) 0 0;
        box-shadow: var(--ot-shadow-sheet);
        z-index: 70;
        transform: translateY(var(--ot-sheet-ty, 62%));
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #otMapsDetailPanel.ot-sheet.ot-sheet-animate {
        transition: transform 0.42s cubic-bezier(.22, .61, .36, 1);
    }
    /* Ziehflaeche des Sheets (Kundenfeedback 29.07., P98: „Bereich zum Verschieben muss
       deutlich groesser werden"). Vorher waren es 19px (10+5+4) - unter der 44px-Empfehlung
       fuer Touch-Ziele und mit dem Daumen kaum zu treffen. Jetzt 44px hoch, und zusaetzlich
       ist der Sheet-Kopf (Titel/Ort) ziehbar, s. wireSheetDrag() in List.html. */
    .ot-sheet-grip {
        padding: 18px 0 16px;
        min-height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: grab;
        touch-action: none;
    }
    .ot-sheet-grip:active { cursor: grabbing; }
    .ot-sheet-grip span {
        width: 44px; height: 5px;
        border-radius: 999px;
        background: var(--ot-line-2);
    }
    /* Sheet-Kopf als verlaengerte Ziehflaeche: touch-action muss AUS, sonst scrollt/pant
       der Browser statt zu ziehen. Die Buttons rechts (Merken/Teilen/Schliessen) bleiben
       klickbar - der down-Handler ignoriert Drags, die auf einem Bedienelement starten. */
    #otMapsDetailPanel.ot-sheet .ot-detail-header { cursor: grab; touch-action: none; }
    #otMapsDetailPanel.ot-sheet .ot-detail-header:active { cursor: grabbing; }
    #otMapsDetailPanel.ot-sheet .ot-detail-header-tools { cursor: default; touch-action: auto; }
    /* Sheet (über der Karte): OHNE Headerbild — stattdessen Text-Kopf mit Tools.
       Weißer Hintergrund (in der Karten-Ansicht ist .ot-maps-side transparent). */
    #otMapsDetailPanel.ot-sheet { background: var(--ot-surface); }
    #otMapsDetailPanel.ot-sheet .ot-maps-detail,
    #otMapsDetailPanel.ot-sheet .ot-maps-detail-scroll { background: var(--ot-surface); }
    #otMapsDetailPanel.ot-sheet .ot-detail-hero { display: none; }
    #otMapsDetailPanel.ot-sheet .ot-detail-header { display: flex; }
    /* P62: ohne Hero-Bild gibt es nichts zu ueberlappen - Ueberlappung/Rundung zuruecksetzen,
       sonst wuerde der Sheet-Inhalt 18px unter die Sheet-Oberkante rutschen. */
    #otMapsDetailPanel.ot-sheet .ot-detail-body { margin-top: 0; border-radius: 0; padding-top: 16px; }

    /* Schwarze "Listenansicht"-Box unten (nur Kartenansicht; Sichtbarkeit via .is-view-map) */
    .ot-maps-viewtoggle {
        position: fixed;
        left: 50%;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 40;
        display: none;
        align-items: center;
        gap: 8px;
        height: 46px;
        padding: 0 20px;
        border: 0;
        border-radius: var(--ot-r-chip);
        background: var(--ot-ink);
        color: #fff;
        font-family: inherit;
        font-size: 14px;
        font-weight: 800;
        box-shadow: var(--ot-shadow-pill);
        cursor: pointer;
    }
    .ot-maps-viewtoggle svg { width: 18px; height: 18px; }
    /* Bei offenem POI-Sheet oder offenem Filter ausblenden (überdeckt sonst die Bedienelemente) */
    .ot-maps-root.ot-sheet-open .ot-maps-viewtoggle { display: none; }

    /* Chatbot (Chatbase) auf der mobilen Karten-Ansicht ausblenden — überdeckt sonst Controls/Sheet.
       tour-maps.css wird nur auf den Karten-Seiten geladen → Scope stimmt. */
    #chatbase-bubble-button,
    #chatbase-message-bubbles,
    #chatbase-bubble-window,
    iframe[id*="chatbase"] {
        display: none !important;
    }

    /* "Nur die Map": Mobil die ganze App im Vollbild, Site-Header/Footer weg.
       Gilt jetzt auch für die SEO-Detailseite (nur visuell/mobil ausgeblendet —
       das HTML inkl. Header/Footer bleibt für Crawler erhalten). */
    /* Nur im Fullscreen-Modus (non-embed) — im Embed bleiben Header/Footer mit den
       originalen Theme-Styles sichtbar (kein revert-Gegenschuss noetig, Review 09.07.). */
    body:has(.ot-maps-root:not(.ot-embed)) .top-navi,
    body:has(.ot-maps-root:not(.ot-embed)) .top-navi-inner,
    body:has(.ot-maps-root:not(.ot-embed)) .footer.container {
        display: none !important;
    }
    /* Beide Selektoren mit gleicher Spezifität wie die :not()-Basisregel oben → gewinnen (später im File) */
    .ot-maps-root:not(.ot-detail-page),
    .ot-maps-root.ot-detail-page {
        position: fixed;
        inset: 0;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        z-index: 900;
    }
    /* Detailseite mobil: Vollbild-Panel, innen scrollbar */
    .ot-maps-root.ot-detail-page {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---- Karten-Controls (rechte Rail, Prototyp-Optik) ----
   Kundenfeedback 10.07. abends: Icons etwas kleiner (42px statt 48px) und
   Anordnung wie im Prototyp-Screenshot — Layers oben abgesetzt, darunter
   Geolocate, dann +/− (Reihenfolge kommt aus tour-list-map.js addControl). */
.ot-maps-map .maplibregl-ctrl-top-right {
    top: auto;
    bottom: 24px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Kundenfeedback 21.07. abends (Punkt 16 nochmal): deutlich weniger Abstand
       zwischen Layer, Location und +/- (vorher gap 6px). */
    gap: 2px;
    /* Punkt 38 (21.07. abends): bei geringer Viewport-Hoehe ragt die bottom-verankerte
       Rail in die Zone von Suchleiste/Chips (.ot-maps-side, z-index 6) - das Overlay
       soll die Controls dann VERDECKEN (Kundenwunsch), nie umgekehrt. */
    z-index: 1;
    transition: bottom 0.35s cubic-bezier(.22, .61, .36, 1);
}
/* MapLibre-Default-Margins der Control-Gruppen nullen - der Abstand kommt allein
   aus dem gap der Rail (Punkt 16 nochmal, 21.07. abends). */
.ot-maps-map .maplibregl-ctrl-top-right .maplibregl-ctrl {
    margin: 0;
}
.ot-maps-map .maplibregl-ctrl-group {
    border-radius: 14px;
    box-shadow: var(--ot-shadow-pill);
    border: 1px solid var(--ot-line);
    background: var(--ot-surface);
    overflow: hidden;
}
/* Layers-Gruppe nicht mehr extra absetzen (Punkt 16 nochmal, 21.07. abends) */
.ot-maps-map .ot-ctrl-layers { margin-bottom: 0; }
.ot-maps-map .maplibregl-ctrl-group button {
    /* 44px statt der 42px des ersten Wurfs: Projektregel Touch-Targets
       min. 44x44 (Review-Finding 10.07. abends) — immer noch sichtbar
       kleiner als die alten 48px. */
    width: 44px;
    height: 44px;
    color: var(--ot-ink);
}
.ot-maps-map .maplibregl-ctrl-group button + button { border-top: 1px solid var(--ot-line); }
.ot-maps-map .ot-ctrl-layers button { display: flex; align-items: center; justify-content: center; }
/* Wenn ein POI-Sheet offen ist (mobil), Rail ueber das Sheet heben.
   P85 (Kundenfeedback 22.07. abends): NUR bei ausreichender Fensterhoehe -
   bei flachen Viewports (Landscape-Handy, kleines Fenster) schob die
   340px-Anhebung die Controls oben in die Such-/Kategorien-Zone. Unterhalb
   der Schwelle bleibt die Rail unten (bottom 24px) und wird vom Sheet
   verdeckt (z-index 1 der Rail vs. hoeherer Sheet-Stack) - Kundenwunsch. */
@media (min-height: 640px) {
    .ot-maps-root.ot-sheet-open .ot-maps-map .maplibregl-ctrl-top-right { bottom: 340px; }
}

/* ---- Kartenstil-Sheet (Layers) ---- */
.ot-layers-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0 auto;
    max-width: 480px;
    background: var(--ot-surface);
    border-radius: var(--ot-r-sheet) var(--ot-r-sheet) 0 0;
    box-shadow: var(--ot-shadow-sheet);
    z-index: 75;
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(.22, .61, .36, 1);
    padding-bottom: 22px;
}
.ot-layers-sheet.open { transform: translateY(0); }
.ot-layers-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 20px 14px;
}
.ot-layers-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ot-ink); }
.ot-styles-grid { display: flex; gap: 12px; padding: 0 20px; }
.ot-style-card { flex: 1; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.ot-style-card .thumb {
    display: block; height: 84px; border-radius: 14px;
    border: 2.5px solid transparent; box-shadow: inset 0 0 0 1px var(--ot-line);
}
.ot-style-card.active .thumb { border-color: var(--ot-accent); }
.ot-style-card .nm {
    display: block; text-align: center; font-size: 13.5px; font-weight: 700;
    margin-top: 7px; color: var(--ot-ink);
}
.ot-style-card.active .nm { color: var(--ot-accent); }
/* Echte Stil-Vorschaubilder (A5, Kundenzulieferung 10.07.) fuellen den Thumb-Rahmen */
.ot-style-card .thumb img {
    display: block; width: 100%; height: 100%;
    object-fit: cover; border-radius: 11px;
}

/* ---- Ebenen (B3): zuschaltbare Schutzzonen-Overlays im Karte-&-Ebenen-Sheet ---- */
/* Gleiche Schrift wie die Sheet-Ueberschrift "Karte & Ebenen" (Kundenfeedback 10.07.) —
   font-family/transform explizit, sonst greift das Site-Theme-Styling fuer h4 (Serif/Kapitaelchen). */
.ot-layers-subhead {
    margin: 18px 20px 10px; font-family: inherit; font-size: 16px; font-weight: 800;
    letter-spacing: normal; text-transform: none; color: var(--ot-ink);
}
/* flex-start: Karten nicht auf gleiche Hoehe strecken — die Thumbs aller drei Ebenen
   sitzen an der OBERKANTE buendig, auch wenn ein Name zweizeilig umbricht (Kundenfeedback 10.07.). */
.ot-overlays-grid { display: flex; gap: 12px; padding: 0 20px; align-items: flex-start; }
.ot-overlay-card { flex: 1; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; min-width: 0; }
.ot-overlay-card .thumb {
    display: flex; align-items: center; justify-content: center; height: 64px;
    border-radius: 14px; background: var(--ot-surface-2);
    border: 2.5px solid transparent; box-shadow: inset 0 0 0 1px var(--ot-line);
}
.ot-overlay-card .thumb img { width: 34px; height: 34px; opacity: 0.75; }
.ot-overlay-card.active .thumb { border-color: var(--ot-accent); background: #fff; }
.ot-overlay-card.active .thumb img { opacity: 1; }
.ot-overlay-card .nm {
    display: block; text-align: center; font-size: 12.5px; font-weight: 700;
    margin-top: 7px; color: var(--ot-ink-2); line-height: 1.25;
}
.ot-overlay-card.active .nm { color: var(--ot-accent); }

/* ---- 3D-Gelände-Toggle im Kartenstil-Sheet (Demo-Feature, ExtConf mapbox3dEnabled) ---- */
.ot-3d-row { padding: 14px 20px 0; }
.ot-3d-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: 0; padding: 10px 14px; min-height: 44px;
    cursor: pointer; font-family: inherit;
    border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ot-line);
    color: var(--ot-ink);
}
.ot-3d-toggle .nm { font-size: 13.5px; font-weight: 700; color: var(--ot-ink); }
.ot-3d-toggle .ot-3d-switch {
    flex: 0 0 auto; margin-left: auto; width: 40px; height: 22px; border-radius: 11px;
    background: var(--ot-line); position: relative; transition: background 0.2s;
}
.ot-3d-toggle .ot-3d-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}
/* DSGVO-Transparenzhinweis unter dem 3D-Toggle (WCAG-AA-Farbe --ot-ink-3) */
.ot-3d-note { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.35; color: var(--ot-ink-3); }
.ot-3d-toggle.on { box-shadow: inset 0 0 0 2px var(--ot-accent); }
.ot-3d-toggle.on .ot-3d-switch { background: var(--ot-accent); }
.ot-3d-toggle.on .ot-3d-switch::after { transform: translateX(18px); }
/* DSGVO-Hinweis zum Satellit-Stil: steht direkt unter dem Stil-Grid (das 20px seitlich
   gepolstert ist), daher eigene Außenabstände statt der .ot-3d-row-Innenabstände. */
.ot-sat-note { margin: 8px 20px 0; }

/* ---- 3D-Flug (C3): Button im Detail-Panel/-Sheet (nur Karten-Kontext, per JS injiziert) ---- */
.ot-flight-row { padding: 12px 20px 0; }
.ot-flight-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 44px;                 /* Touch-Target >= 44px */
    border: 0; border-radius: 12px; cursor: pointer;
    background: var(--ot-accent); color: #fff;
    font-family: inherit; font-size: 14px; font-weight: 700;
}
.ot-flight-btn:disabled { opacity: 0.55; cursor: default; }
.ot-flight-btn.on { background: var(--ot-ink); }   /* laufender Flug → „Flug beenden" */
/* DSGVO-Transparenzhinweis unter dem Flug-Button (vor der Aktivierung sichtbar) */
.ot-flight-note { margin: 6px 2px 0; font-size: 11.5px; line-height: 1.35; color: var(--ot-ink-3); }

/* ---- Detail: eigenes Höhenprofil (SVG, ersetzt contwise-altitude-profile) ---- */
.ot-detail-altitude-wrap { padding: 10px 12px 6px; }
.ot-altitude { width: 100%; }
.ot-altitude svg { display: block; width: 100%; height: 140px; }
/* Interaktiv: Chart-Container fängt Zeiger ab (Scrubbing), Touch-Drag ohne Scroll-Konflikt */
.ot-alt-chart { position: relative; cursor: ew-resize; touch-action: none; }
/* Achsenbeschriftung (Kundenfeedback 10.07.): HTML-Overlays statt SVG-Text — Text im
   horizontal gestreckten SVG (preserveAspectRatio=none) wuerde verzerrt. Y = Hoehe (m)
   links auf der Gridline, X = Distanz (km) am unteren Rand. */
.ot-alt-ylabel {
    position: absolute; left: 4px; transform: translateY(-115%);
    font-size: 9.5px; font-weight: 600; color: var(--ot-ink-3);
    background: rgba(255, 255, 255, 0.72); border-radius: 3px; padding: 0 3px;
    pointer-events: none; line-height: 1.4;
}
.ot-alt-xlabel {
    position: absolute; bottom: 3px; transform: translateX(-50%);
    font-size: 9.5px; font-weight: 600; color: var(--ot-ink-3);
    background: rgba(255, 255, 255, 0.72); border-radius: 3px; padding: 0 3px;
    pointer-events: none; line-height: 1.4;
}
.ot-alt-tip {
    position: absolute; top: 2px; transform: translateX(-50%);
    padding: 2px 7px; border-radius: 999px;
    background: var(--ot-ink); color: #fff;
    font-size: 11px; font-weight: 700; white-space: nowrap;
    opacity: 0; transition: opacity 0.12s; pointer-events: none;
}
/* Erst-/Letzt-X-Label an die Chartkante ziehen (Kundenpunkt 33, 21.07. abends):
   Basis-Label ist zentriert (translateX(-50%)) - an den Raendern wuerde es
   ueberstehen -> 0 linksbuendig, Ende rechtsbuendig. Die fruehere
   .ot-alt-scale-Zeile ("Tiefster/Hoechster") ist ersatzlos entfallen. */
.ot-alt-xlabel--first { transform: none; }
.ot-alt-xlabel--last  { transform: translateX(-100%); }

/* ---- Detail: Galerie als einreihiges Swipe-Band (Prototyp: "Galerie" in detail2.png) ----
   Statt Mehrspalten-Grid: eine Zeile, horizontal scrollbar mit Scroll-Snap. Touch swiped nativ;
   Maus/Desktop bekommt zusätzlich Drag-to-Scroll (siehe jsOtGalleryDrag in Show.html). */
.ot-detail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Kundenfeedback 11.07.: Scrollbalken komplett ausblenden — die
       Wisch-Affordanz kommt vom angeschnittenen Folgebild (max-width am
       Item, s.u.); Touch swiped nativ, Desktop hat Drag-to-Scroll. */
    scrollbar-width: none;
    padding-bottom: 2px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
    cursor: grab;
}
.ot-detail-gallery::-webkit-scrollbar { display: none; }
.ot-detail-gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
/* Kundenfeedback 10.07.: alle Bilder auf GLEICHER HOEHE, Breite folgt dem
   Seitenverhaeltnis. Items sind Buttons (Lightbox) — Button-Resets noetig.
   max-width 86%: sehr breite Querformate werden leicht beschnitten, damit das
   naechste Bild immer anschneidet — "man sieht, dass es zum Wischen geht"
   (Kundenfeedback 10.07. abends). */
.ot-detail-gallery .ot-gallery-item {
    display: block;
    flex: 0 0 auto;
    height: 220px;
    width: auto;
    max-width: 86%;
    padding: 0;
    border: 0;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ot-surface-2);
    position: relative;
    cursor: pointer;
    font-family: inherit;
}
.ot-detail-gallery .ot-gallery-item img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Drag darf kein natives Bild-Dragging auslösen */
}
@media (max-width: 767px) {
    .ot-detail-gallery .ot-gallery-item { height: 170px; }
}

/* Copyright-Angabe rechts unten IM Bild (Kundenfeedback 10.07.) — Galerie-Items,
   Hero und Lightbox teilen sich das Badge. */
/* P61 (Kundenfeedback 22.07.): Copyright dezent wie in der Referenz - KLEIN und WEISS
   direkt im Bild, ohne dunklen Kasten; Lesbarkeit ueber Text-Schatten statt Box. */
.ot-img-copy {
    position: absolute;
    right: 8px;
    bottom: 6px;
    z-index: 2;
    max-width: 75%;
    padding: 0;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
/* Hero: Badge muss ueber dem Verlaufs-Overlay (ot-detail-hero-grad) liegen.
   P81: bottom 30px, damit das Copyright ueber der P62-Ueberlappungskante
   (Body -18px + Rundung) im Bild bleibt; Desktop setzt es im Media-Query zurueck. */
.ot-img-copy--hero { z-index: 3; right: 10px; bottom: 30px; font-size: 10px; }
/* Listen-Card (Kundenfeedback 21.07., Punkt 14): kompakter im Karten-Thumbnail. */
.ot-img-copy--card { font-size: 8.5px; right: 6px; bottom: 5px; }

/* ---- Lightbox (tour-gallery.js): vergroessertes Bild + Beschreibung/Copyright ---- */
.ot-lightbox {
    position: fixed;
    inset: 0;
    /* Fallback bewusst hoch: der Site-Header (Fremd-Theme) liegt bei ~1000 und lag
       sonst ueber dem Backdrop (Playwright-Befund 10.07.). */
    z-index: var(--z-modal, 100000);
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 10, 8, 0.9);
    padding: 20px;
}
.ot-lightbox.open { display: flex; }
.ot-lightbox-noscroll, .ot-lightbox-noscroll body { overflow: hidden; }
.ot-lightbox-fig {
    margin: 0;
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ot-lightbox-imgwrap { position: relative; display: flex; }
.ot-lightbox-img {
    max-width: min(1200px, 94vw);
    max-height: 78vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    background: var(--ot-surface-2);
}
.ot-lightbox-caption {
    display: flex;
    align-items: baseline;
    gap: 14px;
    max-width: min(1200px, 94vw);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}
.ot-lightbox-count { color: rgba(255, 255, 255, 0.65); font-size: 12.5px; white-space: nowrap; }
.ot-lightbox-close,
.ot-lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;   /* Touch-Target-Minimum (UI-Checkliste) */
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.12s;
}
.ot-lightbox-close:hover, .ot-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.ot-lightbox-close { top: 14px; right: 14px; }
/* Issue 1 (04.08.2026): Beide Pfeile sind da (render() blendet sie ab 2 Bildern ein), der
   linke lag aber weiss-auf-weiss ueber hellen Bildbereichen (Schneefoto) und war dadurch
   unsichtbar - gemeldet als "es gibt nur einen Button". Deshalb eigener, dunkler
   Hintergrund plus Schlagschatten fuer die NAV-Pfeile (der Schliessen-Button liegt immer
   ueber dem abgedunkelten Backdrop und bleibt unveraendert). */
.ot-lightbox-nav {
    background: rgba(20, 18, 16, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ot-lightbox-nav:hover, .ot-lightbox-nav:focus-visible { background: rgba(20, 18, 16, 0.8); }
.ot-lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ot-lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
    .ot-lightbox { padding: 10px; }
    .ot-lightbox-img { max-height: 66vh; }
    .ot-lightbox-caption { flex-direction: column; gap: 4px; align-items: center; }
}

/* Reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
    /* .open braucht eine eigene Zeile: seit das Sheet dort eine eigene transition
       fuehrt (visibility-Umschaltung), ist die Spezifitaet hoeher als .ot-filter-pop
       allein - ohne diese Regel bliebe das Oeffnen animiert. */
    .ot-filter-pop,
    .ot-filter-pop.open { transition: none; }
    .ot-maps-card { transition: none; }
}

/* ── Wegsperren / Umleitungen (Closures-API) ──────────────────────────────── */
/* Prominente Warnbox in der Detailansicht. Copyright: Stefan Ennemoser, web-crossing GmbH */
.ot-closure-box {
    margin: 18px 0 8px;
    padding: 16px 18px;
    border: 1px solid var(--ot-accent);
    border-left: 4px solid var(--ot-accent);
    border-radius: 12px;
    background: var(--ot-accent-soft);
}
.ot-closure-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 15px;
    color: var(--ot-accent-2);
}
.ot-closure-ico { flex: 0 0 auto; color: var(--ot-accent); }
.ot-closure-item { margin-top: 12px; }
.ot-closure-item:first-of-type { margin-top: 14px; }
.ot-closure-name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ot-ink);
}
.ot-closure-dates {
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ot-ink-2);
}
.ot-closure-desc,
.ot-closure-diversion {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ot-ink-2);
}
.ot-closure-desc :last-child,
.ot-closure-diversion :last-child { margin-bottom: 0; }

/* Zwei-Box-Layout (Kundenpunkt 30, 21.07. abends): Wrapper stapelt rote Sperr-
   und gelbe Umleitungs-Box mit engem Abstand; Box-Eigenmargin uebernimmt der gap. */
.ot-closures { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 8px; }
.ot-closures .ot-closure-box { margin: 0; }
.ot-closures .ot-closure-src { margin: 4px 0 0; }

/* Gelbe Umleitungs-Box (Verkehrszeichen-Anmutung; bewusst eigene Farbwerte,
   kein Gelb-Token im Bestand). */
.ot-closure-box--diversion {
    border-color: #e2b100;
    border-left-color: #e2b100;
    background: #fff8e1;
}
.ot-closure-box--diversion .ot-closure-head { color: #8a6d00; }
.ot-closure-box--diversion .ot-closure-ico  { color: #d19b00; }

/* U-Flaggen-Marker am Mittelpunkt der Umleitungslinie (Kundenfeedback 22.07., P53).
   Aufbau: Element = Gesamtbox inkl. Mast (anchor bottom -> Mastfuss steht auf der Linie),
   inneres span = gelbe Fahne mit "U", ::before = Mast. Farben wie Umleitungslinie/-Box. */
.ot-div-flag {
    position: relative;
    width: 24px;
    height: 31px;
    cursor: default;
    /* P80 (Kundenfeedback 22.07.): die U-Flagge muss UEBER den POI-Markern
       (z.B. "P"-Parkplatz-Badges) liegen - beides sind MapLibre-DOM-Marker,
       ohne z-index (auto) gewinnt die spaeter eingefuegte Ebene (die POIs).
       z-index 1 statt 3: gleiche Ebene wie die Control-Rail
       (.maplibregl-ctrl-top-right, z-index 1) - die Rail liegt im DOM spaeter
       und gewinnt damit bei Ueberlappung (Zoom-/Layer-Buttons bleiben klickbar),
       die Flagge bleibt aber weiterhin ueber den P-Markern (z-index auto). */
    z-index: 1;
}
.ot-div-flag::before {
    content: '';
    position: absolute;
    left: 2px; top: 2px; bottom: 0;
    width: 2px;
    background: #8a6d00;
    border-radius: 1px;
}
.ot-div-flag span {
    position: absolute;
    left: 2px; top: 0;
    width: 21px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    background: #f2c200;
    border: 1px solid #b58900;
    border-radius: 2px 3px 3px 0;
    box-sizing: border-box;
    font: 800 11px/1 var(--ot-font, Arial, sans-serif);
    color: #231c00;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

/* POI-Marker auf der Detail-/Sheet-Karte (Kundenpunkt 31, 21.07. abends) */
.ot-poi-marker {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font: 700 12px/1 var(--ot-font, Arial, sans-serif);
    color: #fff; background: var(--ot-ink, #333);
    border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    box-sizing: border-box; cursor: default;
}
.ot-poi-marker--parking { background: #1d6fb8; }

/* Kategorie-Pin der Lage-Karte auf der POI-Detailseite (Ticket 9): dieselben offiziellen
   SVGs wie auf der Kartenseite. Hoehe 44 px = Originalmass der Pins (Tropfen 37x44),
   Breite automatisch, damit die Rauten-Variante nicht verzerrt. */
.ot-detail-map-pin {
    height: 44px; width: auto; display: block; cursor: default;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
}
.ot-closure-diversion { margin-top: 6px; }
.ot-closure-src {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--ot-ink-3, #8b8578);
}

/* ── „Gut zu wissen": Kondition&Technik / Beste Jahreszeit / Anreise / Sicherheit ─── */
/* Copyright: Stefan Ennemoser, web-crossing GmbH */
.ot-cs-grid { display: flex; flex-wrap: wrap; gap: 22px; }
.ot-cs-item { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.ot-cs-label { font-size: 13px; font-weight: 600; color: var(--ot-ink-2); }
.ot-cs-bar { display: inline-flex; gap: 5px; }
.ot-cs-seg { width: 26px; height: 8px; border-radius: 4px; background: var(--ot-surface-3); }
.ot-cs-seg.is-on { background: var(--ot-green, #008e48); }

.ot-season { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-season-pill {
    display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
    border-radius: 999px; background: var(--ot-surface-2); border: 1px solid var(--ot-line);
    font-size: 12.5px; font-weight: 600; color: var(--ot-ink-2);
}

.ot-info-block { margin-bottom: 12px; }
.ot-info-block:last-child { margin-bottom: 0; }
.ot-info-k { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ot-ink-3); margin-bottom: 3px; }
.ot-info-v { font-size: 14px; line-height: 1.55; color: var(--ot-ink-2); }
.ot-info-v :last-child { margin-bottom: 0; }

/* Sicherheitshinweis am Ende — dezent hervorgehoben (Warn-Ton, aber „normaler Content").
   Kundenfeedback 10.07.: Warndreieck in der Ueberschrift statt im Textblock, Text kleiner. */
.ot-detail-safety-head { display: flex; align-items: center; gap: 8px; }
.ot-detail-safety-head svg { flex: 0 0 auto; color: var(--ot-accent); }
.ot-detail-safety-sec .ot-detail-safety {
    padding: 12px 14px; border-radius: 12px;
    background: var(--ot-surface-warm); border: 1px solid var(--ot-line-2);
}
.ot-detail-safety-sec .ot-detail-safety-body .txt { font-size: 12.5px; line-height: 1.5; color: var(--ot-ink-2); }
.ot-detail-safety-sec .ot-detail-safety-body .txt :last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Filter-Ausbau (Phase 4) + A11y — Copyright: Stefan Ennemoser, web-crossing GmbH
   ══════════════════════════════════════════════════════════════════════════ */

/* Screenreader-only, aber FOKUSSIERBAR (ersetzt display:none an Filter-Checkboxen) */
.ot-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
/* Sichtbarer Fokusring auf dem Chip, wenn die sr-only-Checkbox Fokus hat */
.ot-filter-opt:focus-within,
.ot-maps-chip:focus-within,
.ot-filter-opt:has(.ot-sr-only:focus-visible) {
    outline: 3px solid var(--ot-diff-1);
    outline-offset: 2px;
}

/* Facetten-Zähler mit ausreichendem Kontrast (ersetzt inline opacity:0.55) */
.ot-filter-cnt { color: var(--ot-ink-2); font-weight: 500; margin-left: 2px; }
.ot-filter-opt.selected .ot-filter-cnt { color: inherit; opacity: 0.85; }

/* ── Dual-Range-Slider (tastaturbedienbar, native <input type=range>) ── */
.ot-range { padding: 2px 0; }
.ot-range-vals { font-size: 13px; font-weight: 600; color: var(--ot-ink-2); margin-bottom: 10px; }
.ot-range-track { position: relative; height: 28px; }
.ot-range-track::before {
    content: ''; position: absolute; left: 0; right: 0; top: 12px;
    height: 4px; border-radius: 2px; background: var(--ot-surface-3);
}
.ot-range-fill {
    position: absolute; top: 12px; height: 4px; border-radius: 2px;
    background: var(--ot-accent); left: 0; right: 0;
}
/* Bullets (Thumbs) saßen nicht mittig auf der Track-Linie: das site-weite Formular-CSS
   setzt auf alle <input> u.a. min-height:54px + border-bottom (für Textfelder gedacht).
   Da wir kein min-height/border/padding im Basis-Ruleset zurücksetzen, gewinnt diese
   Deklaration (keine Konkurrenz auf denselben Properties) und bläht die Slider-Box auf
   54px auf → der native Thumb rendert mittig in 54px statt in den hier vorgesehenen 28px,
   und die border-bottom-Linie schimmert zusätzlich durch. Alle Box-Model-Properties hier
   explizit zurücksetzen (Klassenselektor schlägt das site-weite Element-Selektor „input"
   ohnehin an Spezifität, aber die Properties fehlten bisher komplett). */
.ot-range-input {
    position: absolute; left: 0; top: 0; width: 100%; height: 28px; min-height: 0; max-height: none;
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
    background: none; pointer-events: none;
    -webkit-appearance: none; appearance: none;
}
.ot-range-input::-webkit-slider-runnable-track { background: none; border: none; height: 4px; }
.ot-range-input::-moz-range-track { background: none; border: none; height: 4px; }
.ot-range-input::-webkit-slider-thumb {
    pointer-events: auto; -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid var(--ot-accent);
    box-shadow: var(--ot-shadow-pill); cursor: pointer; margin-top: -9px;
}
.ot-range-input::-moz-range-thumb {
    pointer-events: auto; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid var(--ot-accent); cursor: pointer;
}
.ot-range-input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--ot-diff-1); outline-offset: 2px; }
.ot-range-input:focus-visible::-moz-range-thumb { outline: 3px solid var(--ot-diff-1); }

/* ── Saison-Monate als kompaktes Raster ── */
.ot-filter-opts--months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ot-filter-opt--month { justify-content: center; padding: 0 4px; }

/* Trennung kategoriespezifischer Bereich */
.ot-filter-catsec { display: contents; }

/* ── A11y: <h1> statt <span>, Card-Titel als echter Link ── */
.ot-maps-card-titlelink { color: inherit; text-decoration: none; }
.ot-maps-card-titlelink:hover { text-decoration: underline; }
.ot-maps-card-titlelink:focus-visible { outline: 3px solid var(--ot-diff-1); outline-offset: 2px; border-radius: 4px; }
/* Karte bleibt per JS klickbar, ohne verschachtelte Button-Semantik */
.ot-maps-card { cursor: pointer; }

/* ── A11y: Kontrast der Status-Pill-Texte (Warn/Begehbar) ── */
.ot-statuspill.is-open { color: #006b36; }
.ot-statuspill.is-warn { color: #9a5600; }

/* ── A11y: Touch-Targets ≥ 44px auf Touch-Geräten ── */
@media (pointer: coarse) {
    .ot-filter-opt, .ot-maps-chip { min-height: 44px; }
    .ot-filter-close, .ot-maps-card-fav, .ot-maps-card-mapbtn,
    .ot-maps-filterbtn, .jsOtSortToggle, .jsOtSortItem { min-width: 44px; min-height: 44px; }
    /* "Touren um mich": Button + Reset ebenfalls auf Touch-Mindestmass anheben. */
    .ot-maps-nearme { min-width: 44px; min-height: 44px; }
    .ot-maps-nearme-reset { min-width: 44px; min-height: 44px; }
    /* Touch-Targets ≥44px auch fuer Segment-Tabs und die Popover-Fussbuttons */
    .jsOtSegBtn, .ot-filter-apply { min-height: 44px; }
    .ot-filter-reset { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}

/* Sicherheitshinweis: tour-spezifischer Teil hervorheben, generischer Teil dezent */
.ot-detail-safety-sec .ot-safety-specific {
    font-weight: 600;
    color: var(--ot-ink);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--ot-line);
}
.ot-detail-safety-sec .txt p { margin: 0 0 8px; }
.ot-detail-safety-sec .ot-safety-emergency {
    font-size: 13px;
    color: var(--ot-ink);
    margin-top: 4px;
}

/* ══ Kletter-Gebiete: „Sektoren & Routen" (Feature climbing-structure) ══
   Referenz maps.osttirol.com (g3-klettern-gebiet.png / g3-klettern-routen.png):
   je Sektor ein Block mit Name, optionalem Topo-Bild und Routen-Tabelle.
   Copyright: Stefan Ennemoser, web-crossing GmbH */
.ot-climb-sector { margin: 0 0 18px; }
.ot-climb-sector:last-child { margin-bottom: 0; }
.ot-climb-sector-name {
    font-size: 15px; font-weight: 700; color: var(--ot-ink);
    margin: 0 0 8px; padding-top: 4px;
}
.ot-climb-topo { margin: 0 0 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--ot-line-2); }
.ot-climb-topo img { display: block; width: 100%; height: auto; }
/* Tabelle scrollt bei Überbreite im eigenen Container (kein Seiten-H-Scroll, UI-Checkliste) */
.ot-climb-table-wrap { overflow-x: auto; border: 1px solid var(--ot-line-2); border-radius: 10px; }
.ot-climb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ot-climb-table th, .ot-climb-table td {
    padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--ot-line-2);
}
.ot-climb-table thead th {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
    color: var(--ot-ink-2); background: var(--ot-surface-2); border-bottom: 1px solid var(--ot-line);
}
.ot-climb-table tbody tr:last-child td { border-bottom: 0; }
.ot-climb-table tbody tr:nth-child(even) td { background: var(--ot-surface); }
.ot-climb-table .num { width: 44px; color: var(--ot-ink-2); white-space: nowrap; }
.ot-climb-table .grade { width: 72px; font-weight: 600; white-space: nowrap; }
.ot-climb-table .len { width: 72px; white-space: nowrap; text-align: right; }

/* =====================================================================
   Embed-Modus v2 — Einbettung in die Osttirol-Website (Kundenfeedback
   09.07.2026, Mockups "Osttirol Maps Desktop/Mobile v2"):
   - Desktop: vollflächige Karte im Widget, Liste/Detail als schwebendes
     Panel links darüber (EIN interner Scrollbereich — kein Spalten-Split
     mit zwei Scrollzonen mehr).
   - Mobil: Widget im Seitenfluss (KEIN Fullscreen, Site-Header/-Footer
     bleiben sichtbar); Kartenansicht mit schwebender Suche und
     „Liste anzeigen"-Box wie gehabt, nur im Widget verankert.
   ===================================================================== */

@media (min-width: 768px) {
    .ot-maps-root.ot-embed {
        position: relative;
        height: min(85vh, 860px);
        min-height: 560px;
    }
    /* Karte füllt das komplette Widget (statt Flex-Restbreite neben der Sidebar) */
    .ot-maps-root.ot-embed .ot-maps-map {
        position: absolute;
        inset: 0;
    }
    /* Liste/Detail-Panel (beide tragen .ot-maps-side) schwebt über der Karte */
    .ot-maps-root.ot-embed .ot-maps-side {
        position: absolute;
        top: 16px;
        left: 16px;
        bottom: 16px;
        width: min(var(--ot-side-width), calc(100% - 32px));
        z-index: var(--z-base, 6);   /* ueber der Karte, unter Dropdown (--z-dropdown 60) */
        border: 1px solid var(--ot-line);
        border-radius: var(--ot-r-lg, 16px);
        box-shadow: 0 16px 44px rgba(24, 21, 16, 0.16);
    }
    /* MapLibre-Attribution links neben das Panel schieben (läge sonst dahinter) */
    .ot-maps-root.ot-embed .maplibregl-ctrl-bottom-left {
        left: calc(min(var(--ot-side-width), 100% - 32px) + 24px);
    }
}

@media (max-width: 767px) {
    .ot-maps-root.ot-embed:not(.ot-detail-page) {
        position: relative;
        inset: auto;
        z-index: auto;
        height: min(78vh, 720px);
        min-height: 480px;
    }
    /* KARTENANSICHT dockt an: Widget füllt den Viewport exakt unterhalb des kompakten
       Headers (Kundenfeedback 09.07. abends); setView('map') scrollt passend hin. */
    .ot-maps-root.ot-embed.is-view-map:not(.ot-detail-page) {
        height: calc(100dvh - var(--ot-header-h, 69px));
        min-height: 420px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    /* LISTENANSICHT = echter Seitenfluss (Mockup Mobile v2): Widget wächst mit dem
       Inhalt, gescrollt wird NUR die Seite. Ohne height:auto ragte der overflow-
       visible-Inhalt über das fixe Widget hinaus, ohne den Seiten-Scroll zu
       verlängern → Liste endete scheinbar (Kundenfeedback 09.07. abends). */
    .ot-maps-root.ot-embed.is-view-list:not(.ot-detail-page) {
        height: auto;
        min-height: 0;
    }
    .ot-maps-root.ot-embed.is-view-list .ot-maps-side { height: auto; }
    .ot-maps-root.ot-embed.is-view-list .ot-maps-side-scroll {
        overflow: visible;
        flex: none;
    }
    /* „Liste anzeigen"-Box im Widget verankern statt am Viewport-Boden */
    .ot-maps-root.ot-embed .ot-maps-viewtoggle {
        position: absolute;
        bottom: 18px;
    }
    /* POI-Bottom-Sheet im Embed am WIDGET verankern (Review 09.07.): viewport-fixed
       laege es ueber Site-Header/Seiteninhalt statt ueber der Karte, mit der
       interagiert wurde. Root ist position:relative + overflow:hidden → sauber geclippt. */
    .ot-maps-root.ot-embed #otMapsDetailPanel.ot-sheet {
        position: absolute;
        height: 100%;
        max-height: 100%;
    }
}

/* =====================================================================
   Kompakt-Header + mobiler Klapp-Kopf (Kundenpunkte 5–7, 09.07.2026)
   ===================================================================== */

/* Karten-/Detailseiten starten mit dem geschrumpften Site-Header (.top-navi.fixed,
   85 px — via CompactHeaderScript erzwungen). Das wrapAll-Padding der Site ist auf
   den HOHEN Header ausgelegt → auf diesen Seiten reduzieren. */
html.ot-compact-header .wrapAll { padding-top: 110px; }

/* Einklapp-Feature (Kundenpunkt 7, 09.07.) am 10.07. entfernt — der Titel/Zaehler-Kopf
   ist gestrichen, es gibt nichts mehr einzuklappen. */

@media (max-width: 767px) {
    html.ot-compact-header .wrapAll { padding-top: 80px; }

    /* „Karte|Touren"-Segment dockt beim Seiten-Scroll unter dem kompakten Header an.
       Dafür braucht die Sticky-Kette overflow:visible bis zur Seite — nur in der
       Listenansicht (Karte ist dort visibility:hidden, kein Sheet aktiv). */
    .ot-maps-root.ot-embed.is-view-list,
    .ot-maps-root.ot-embed.is-view-list .ot-maps-side { overflow: visible; }
    /* overflow:visible hebt das Radius-Clipping des Widgets auf → die Panels bekommen
       den Radius selbst, damit die Ecken nicht eckig ueber den Rahmen malen. */
    .ot-maps-root.ot-embed.is-view-list .ot-maps-side { border-radius: var(--ot-r-lg, 16px); }
    .ot-maps-root.ot-embed.is-view-list .ot-maps-topbar {
        position: sticky;
        /* Exakt buendig unter dem kompakten Site-Header: Hoehe kommt zur Laufzeit aus
           CompactHeaderScript (--ot-header-h, mobil ~69px); 1px Ueberlappung gegen
           Subpixel-Schlitze, durch die sonst Content durchscheint. */
        top: calc(var(--ot-header-h, 69px) - 1px);
        z-index: var(--z-sticky, 30);
        background: var(--ot-surface-warm);
    }
}

/* ---------- Karten-Leerzustand (Kundenfeedback 21.07., Punkt 10) ----------
   Overlay ueber der Karte, wenn Suche/Filter 0 Treffer liefern (Toggle in
   tour-list-map.js renderData; Markup #otMapEmpty in List.html). */
.ot-maps-map-empty {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    z-index: 5; /* ueber den MapLibre-Canvas, unter Panel/Sheets */
    max-width: min(420px, calc(100% - 32px));
    padding: 20px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    pointer-events: none; /* Karte darunter bleibt bedienbar */
}
.ot-maps-map-empty .h {
    font-size: 16px;
    font-weight: 700;
    color: var(--ot-ink-2);
}
.ot-maps-map-empty .s {
    margin-top: 4px;
    font-size: 14px;
    color: var(--ot-ink-3);
}

/* ---- Video: Klick-zum-Laden (P92, Kundenfeedback 29.07.) ----
   Vor dem Klick nur eigenes Vorschaubild + Play-Kreis, danach ersetzt das JS den Button
   durch das Iframe (s. tour-gallery.js). 16:9 ueber aspect-ratio, damit beim Austausch
   nichts springt (kein Layout-Shift).
   Copyright: Stefan Ennemoser, web-crossing GmbH */
.ot-video { margin: 0; }
.ot-video-start {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--ot-r-card, 14px);
    overflow: hidden;
    background: var(--ot-surface-3);
    cursor: pointer;
}
.ot-video-poster,
.ot-video-frame { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ot-video-poster--empty { background: linear-gradient(160deg, var(--ot-surface-3), var(--ot-line-2)); }
.ot-video-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--ot-r-card, 14px);
}
/* Play-Kreis: Marken-Rot, damit er sich vom Bild abhebt; leichte Vergroesserung beim Hover. */
.ot-video-play {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px; height: 66px;
    border-radius: 999px;
    background: var(--ot-accent);
    color: var(--ot-on-accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    transition: transform .14s ease;
}
.ot-video-start:hover .ot-video-play { transform: translate(-50%, -50%) scale(1.06); }
.ot-video-start:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 3px; }
.ot-video-note {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ot-ink-3);
}
