/* Status-Seite: Haver-Meldungen (Filter, Liste, Detail, Karte). Ergänzt legacy-status-layout.css. */

#ona-status-page #haver-feed { display: block; }
#ona-status-page #haver-feed[hidden],
#ona-status-page #legacy-feeds[hidden],
#ona-status-page .haver-bar[hidden],
#ona-status-page .haver-panel[hidden],
#ona-status-page .haver-active[hidden],
#ona-status-page .haver-group[hidden],
#ona-status-page .haver-meta a[hidden],
#ona-status-page .haver-filterbutton b[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Suche, Filterknopf, Auswahl mit Schaltflächen                        */
/* ------------------------------------------------------------------ */
#ona-status-page .haver-bar {
    position: sticky;
    z-index: 6;
    top: 0;
    padding: .6rem .75rem .5rem;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    background: rgba(241, 245, 249, .97);
}
.dark #ona-status-page .haver-bar { background: rgba(8, 10, 12, .97); border-bottom-color: rgba(148, 163, 184, .16); }

#ona-status-page .haver-searchrow { display: flex; gap: .4rem; }
#ona-status-page .haver-searchrow input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .45rem .65rem;
    border: 1px solid rgba(148, 163, 184, .4);
    border-radius: .6rem;
    background: rgba(255, 255, 255, .9);
    color: inherit;
    font-size: .78rem;
}
.dark #ona-status-page .haver-searchrow input { background: rgba(2, 6, 23, .6); border-color: rgba(148, 163, 184, .28); }

#ona-status-page .haver-filterbutton {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(148, 163, 184, .4);
    border-radius: .6rem;
    background: transparent;
    color: inherit;
    font-size: .75rem;
    font-weight: 800;
    cursor: pointer;
}
#ona-status-page .haver-filterbutton[aria-expanded="true"] { border-color: var(--brand-primary, #00a300); box-shadow: inset 0 0 0 1px var(--brand-primary, #00a300); }
#ona-status-page .haver-filterbutton b {
    min-width: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--brand-primary, #00a300);
    color: #fff;
    font-size: .65rem;
    line-height: 1.15rem;
    text-align: center;
}

#ona-status-page .haver-panel {
    max-height: min(24rem, 52vh);
    margin-top: .55rem;
    padding-right: .2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
#ona-status-page .haver-group { margin-bottom: .7rem; }
#ona-status-page .haver-group h4 { margin: 0 0 .3rem; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
#ona-status-page .haver-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
#ona-status-page .haver-pills--scroll { max-height: 7.2rem; overflow-y: auto; padding: .1rem; }
#ona-status-page .haver-pills__none { font-size: .72rem; opacity: .6; }
#ona-status-page .haver-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
#ona-status-page .haver-pill small { font-size: .62rem; font-weight: 700; opacity: .6; }
#ona-status-page .haver-pill:hover { background: rgba(148, 163, 184, .16); }
#ona-status-page .haver-pill[aria-pressed="true"] {
    border-color: var(--brand-primary, #00a300);
    background: var(--brand-primary, #00a300);
    color: #fff;
}
#ona-status-page .haver-pill--line[aria-pressed="true"] { border-color: var(--hv-line, #475569); background: var(--hv-line, #475569); }
#ona-status-page .haver-pill--line:not([aria-pressed="true"]) { border-left: .35rem solid var(--hv-line, #475569); }
#ona-status-page .haver-panel__foot { display: flex; justify-content: flex-end; padding-bottom: .2rem; }
#ona-status-page .haver-reset {
    padding: .3rem .7rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    opacity: .8;
}
#ona-status-page .haver-active { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
#ona-status-page .haver-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border: 1px solid var(--brand-primary, #00a300);
    border-radius: 999px;
    background: rgba(0, 163, 0, .14);
    color: inherit;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
}
#ona-status-page .haver-chip i { font-size: .6rem; opacity: .7; }
#ona-status-page .haver-meta { display: flex; justify-content: flex-end; }
#ona-status-page .haver-meta a { margin-top: .45rem; color: var(--brand-primary, #00a300); font-size: .7rem; font-weight: 800; text-decoration: none; }

#ona-status-page .haver-empty { padding: 1.25rem 1rem; font-size: .8rem; opacity: .7; text-align: center; }
#ona-status-page .haver-fallback-note {
    margin: 0;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, .35);
    background: rgba(245, 158, 11, .1);
    color: #b45309;
    font-size: .75rem;
}
.dark #ona-status-page .haver-fallback-note { color: #fbbf24; }

/* ------------------------------------------------------------------ */
/* Meldungskarten und Detail                                            */
/* ------------------------------------------------------------------ */
#ona-status-page .haver-card { justify-content: flex-start; cursor: pointer; }
#ona-status-page .haver-card__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    background: rgb(var(--status-kind-rgb, 100 116 139) / .18);
    color: rgb(var(--status-kind-rgb, 100 116 139));
    font-size: .9rem;
}
#ona-status-page .haver-card__icon--detail { --status-kind-rgb: 100 116 139; width: 2.4rem; height: 2.4rem; font-size: 1.05rem; }
#ona-status-page .haver-card__icon--detail[data-status-kind="roadwork"] { --status-kind-rgb: 249 115 22; }
#ona-status-page .haver-card__icon--detail[data-status-kind="emergency"] { --status-kind-rgb: 239 68 68; }
#ona-status-page .haver-card__icon--detail[data-status-kind="warning"] { --status-kind-rgb: 234 179 8; }
#ona-status-page .haver-card__icon--detail[data-status-kind="weather"] { --status-kind-rgb: 14 165 233; }
#ona-status-page .haver-card__main { display: flex; flex-direction: column; gap: .3rem; min-width: 0; flex: 1; }
#ona-status-page .haver-card__title { font-size: .88rem; font-weight: 700; line-height: 1.3; }
#ona-status-page .haver-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .75rem;
    line-height: 1.35;
    opacity: .75;
}
#ona-status-page .haver-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .68rem; opacity: .8; }
#ona-status-page .haver-card__meta em { font-style: normal; font-weight: 700; }
#ona-status-page .haver-card__state { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
#ona-status-page .haver-card__lines { display: flex; flex-wrap: wrap; gap: .25rem; }

#ona-status-page .haver-line {
    display: inline-block;
    min-width: 1.9rem;
    padding: .08rem .4rem;
    border-radius: .3rem;
    background: var(--hv-line, #475569);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
}
#ona-status-page .haver-line--more { --hv-line: #64748b; }

#ona-status-page .haver-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .6rem 1rem;
    margin: 0 0 1rem;
    padding: .75rem .85rem;
    border-radius: .6rem;
    background: rgba(148, 163, 184, .12);
    font-size: .78rem;
}
#ona-status-page .haver-facts dt { margin: 0; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
#ona-status-page .haver-facts dd { margin: .1rem 0 0; }
#ona-status-page .haver-subhead { margin: 1.1rem 0 .4rem; font-size: .8rem; font-weight: 800; }
#ona-status-page .haver-stops { margin: 0; padding-left: 1.1rem; font-size: .8rem; line-height: 1.5; list-style: disc; }
#ona-status-page .haver-stop__to { opacity: .7; font-size: .75rem; }

/* ------------------------------------------------------------------ */
/* Karte: Anzeige oben links, schwebende Knöpfe, Hilfe, Symbole         */
/* ------------------------------------------------------------------ */
#ona-status-page .legacy-status-map-source {
    display: flex;
    max-width: calc(100% - 4.6rem);
    flex-wrap: wrap;
    align-items: center;
    gap: .2rem .6rem;
    font-size: .68rem;
}
#ona-status-page .hv-map-stat { font-weight: 900; }
#ona-status-page .hv-map-stat--warn { color: #b45309; }
#ona-status-page .hv-map-stat--ok { color: #15803d; }
.dark #ona-status-page .hv-map-stat--warn { color: #fbbf24; }
.dark #ona-status-page .hv-map-stat--ok { color: #86efac; }
#ona-status-page .hv-map-text { opacity: .75; font-weight: 700; }

.hv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#ona-status-page .hv-fab {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .5rem;
    border: 0;
    background: none;
    box-shadow: none;
}
#ona-status-page .hv-fab .legacy-map-size-switch { position: relative; display: block; padding: 0; border: 0; background: transparent; }
#ona-status-page .hv-fab__button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, .2);
    border-radius: .45rem;
    background: #fff;
    color: #1f2937;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: none;
}
#ona-status-page .hv-fab__button:hover { background: #f3f4f6; }
#ona-status-page .hv-fab .legacy-map-size-panel { top: 0; right: calc(100% + .5rem); left: auto; }
#ona-status-page .legacy-map-size-panel {
    position: absolute;
    z-index: 1300;
    display: flex;
    min-width: 12.5rem;
    flex-direction: column;
    gap: .15rem;
    padding: .3rem;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .35);
}
.dark #ona-status-page .legacy-map-size-panel { background: #0b1018; border-color: rgba(148, 163, 184, .25); }
#ona-status-page .legacy-map-size-panel[hidden] { display: none; }
#ona-status-page .legacy-map-size-panel button { display: flex; width: 100%; justify-content: flex-start; gap: .6rem; padding: .55rem .7rem; font-size: .72rem; text-align: left; border-radius: .55rem; }
#ona-status-page .legacy-map-size-panel .m { display: none; }

#ona-status-page .hv-help {
    position: absolute;
    z-index: 1250;
    top: .65rem;
    right: 3.4rem;
    width: min(21rem, calc(100% - 4.2rem));
    max-height: calc(100% - 1.3rem);
    padding: .9rem 1rem;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, .4);
    border-radius: .9rem;
    background: rgba(255, 255, 255, .98);
    color: #1f2937;
    font-size: .74rem;
    line-height: 1.45;
    box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .35);
}
.dark #ona-status-page .hv-help { background: rgba(11, 16, 24, .98); color: #e5e7eb; }
#ona-status-page .hv-help[hidden] { display: none; }
#ona-status-page .hv-help h3 { margin: 0 0 .4rem; font-size: .78rem; font-weight: 900; }
#ona-status-page .hv-help h3:not(:first-of-type) { margin-top: .8rem; }
#ona-status-page .hv-help ul { margin: 0; padding-left: 1rem; list-style: disc; }
#ona-status-page .hv-help li { margin-bottom: .3rem; }
#ona-status-page .hv-help .hv-legend { padding-left: 0; list-style: none; }
#ona-status-page .hv-help .hv-legend li { display: flex; align-items: center; gap: .55rem; }
#ona-status-page .hv-help__close { position: absolute; top: .45rem; right: .5rem; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .6; }
#ona-status-page .hv-legend__pin { width: 22px; height: 22px; font-size: 11px; border-width: 2px; flex: none; }
#ona-status-page .hv-legend__route { display: inline-block; width: 22px; height: 5px; flex: none; border-radius: 3px; background: #475569; }

/* Haltestellen-Symbole auf der Karte */
.ona-map-pin { border: 0; background: none; }
.hv-pin__h {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font: 800 15px/1 system-ui, sans-serif;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .5);
}
.hv-pin__h--closed { background: #dc2626; }
.hv-pin__h--closed::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px #dc2626;
    transform: translate(-50%, -50%) rotate(-45deg);
}
.hv-pin__h--moved { background: #f59e0b; }
.hv-pin__h--replacement { background: #16a34a; box-shadow: 0 0 0 3px #fbbf24, 0 2px 7px rgba(0, 0, 0, .5); }
.hv-pin__h--notice { border-radius: .55rem; background: #2563eb; font-size: 13px; }

/* Sprechblase: Linienschilder und Abfahrten */
.ona-map-popup__lines { display: flex; flex-wrap: wrap; gap: .25rem; margin: .45rem 0 .2rem; }
.ona-map-popup__line {
    display: inline-block;
    padding: .05rem .4rem;
    border-radius: .3rem;
    background: #475569;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}
.ona-map-popup__extra { margin-top: .45rem; }
.ona-map-popup__sub { margin: 0 0 .25rem; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.ona-map-popup__muted { margin: 0; font-size: .72rem; opacity: .65; }
.ona-map-popup__deps { margin: 0; padding: 0; list-style: none; font-size: .74rem; line-height: 1.5; }
.ona-map-popup__deps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; }
.ona-map-popup__deps em { font-style: normal; opacity: .7; }

/* ------------------------------------------------------------------ */
/* Höhe: Liste und Karte füllen den Bildschirm bis zur unteren Leiste  */
/* ------------------------------------------------------------------ */
@media (min-width: 768px) {
    #ona-status-page { display: flex; flex: 1 1 auto; flex-direction: column; }
    #ona-status-page > div { flex: 1 1 auto; min-height: 0; }
    #ona-status-page [data-legacy-status-explorer] { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
    #ona-status-page .legacy-status-explorer {
        flex: 1 1 0;
        height: auto;
        min-height: min(40rem, 72vh);
        grid-template-rows: minmax(0, 1fr);
    }
}

/* ------------------------------------------------------------------ */
/* Überlappend: Karte füllt alles, Meldungen als Fenster darüber       */
/* ------------------------------------------------------------------ */
#ona-status-page .legacy-overlay-handle { display: none; }
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-map-panel { grid-area: 1 / 1; }
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-master {
    z-index: 1100;
    display: flex;
    flex-direction: column;
    grid-area: 1 / 1;
    align-self: end;
    justify-self: end;
    width: min(30rem, calc(100% - 1.5rem));
    height: min(40rem, calc(100% - 1.5rem));
    margin: .75rem;
    border: 1px solid rgba(148, 163, 184, .4);
    border-radius: .95rem;
    box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .45);
}
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-overlay-handle {
    display: flex;
    flex: none;
    width: 100%;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    background: transparent;
    color: inherit;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
.legacy-overlay-handle__bar { width: 2rem; height: .25rem; border-radius: 999px; background: rgba(148, 163, 184, .6); }
.legacy-overlay-handle__label { flex: 1; text-align: left; }
.legacy-overlay-handle__chev { transition: transform .2s ease; }
#ona-status-page .legacy-status-explorer[data-overlay-collapsed="true"] .legacy-overlay-handle__chev { transform: rotate(180deg); }
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-list,
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-detail-host {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
}
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"][data-overlay-collapsed="true"] .legacy-status-master { height: auto; }
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"][data-overlay-collapsed="true"] .legacy-status-list,
#ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"][data-overlay-collapsed="true"] .legacy-status-detail-host { display: none; }
.dark #ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-master { background: #0b0d10; }

@media (max-width: 767px) {
    #ona-status-page .haver-filterbutton span { display: none; }
    #ona-status-page .legacy-map-size-panel .d { display: none; }
    #ona-status-page .legacy-map-size-panel .m { display: inline; }
    #ona-status-page .legacy-map-size-panel [data-status-map-size="compact"],
    #ona-status-page .legacy-map-size-panel [data-status-map-size="wide"] { display: none; }
    #ona-status-page .hv-help { right: .65rem; top: 3.4rem; width: calc(100% - 1.3rem); max-height: calc(100% - 4rem); }

    #ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] {
        position: relative;
        display: block;
        height: calc(100dvh - 9rem);
        min-height: 26rem;
        overflow: hidden;
    }
    #ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-map-panel {
        position: absolute;
        inset: 0;
        height: 100%;
        min-height: 0;
    }
    #ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-master {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: 58%;
        margin: 0;
        overflow: hidden;
        border-width: 1px 0 0;
        border-radius: 1rem 1rem 0 0;
    }
    #ona-status-page .legacy-status-explorer[data-status-map-size-state="overlay"] .legacy-status-list {
        display: block;
        overflow-y: auto;
    }
}

#ona-status-page .hv-copylink {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-right: auto;
    margin-left: .8rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: .65rem;
    background: transparent;
    color: inherit;
    font-size: .67rem;
    font-weight: 800;
    cursor: pointer;
}
#ona-status-page .haver-empty--note { border-bottom: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .1); color: #b45309; }

#ona-status-page .haver-line--link { text-decoration: none; cursor: pointer; }
#ona-status-page .haver-line--link:hover { filter: brightness(1.12); }
#ona-status-page .haver-stop__link { color: inherit; text-decoration: underline; text-decoration-color: rgba(148, 163, 184, .7); text-underline-offset: 2px; }
#ona-status-page .haver-stop__link:hover { text-decoration-color: currentColor; }

/* Linien-Schilder im Meldungsdetail: weiße Schrift (nicht Linkfarbe) */
#ona-status-page .ona-detail-prose a.haver-line--link, #ona-status-page a.haver-line--link, #ona-status-page a.haver-line--link:visited { color: #fff !important; text-decoration: none !important; }

/* Benachrichtigungen */
.haver-notify { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.haver-notifybtn { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--brand-primary, #00a300); border-radius: .75rem; background: transparent; color: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.haver-notifybtn[aria-pressed="true"] { background: rgba(0, 163, 0, .15); }
.haver-notifylist { display: flex; flex-direction: column; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.haver-notifylist li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .6rem; border-radius: .6rem; background: rgba(148, 163, 184, .12); font-size: .75rem; }
.haver-notifylist button { border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
.haver-notifyhint { margin: 0; font-size: .68rem; opacity: .6; }
.haver-notifytest { display: inline; margin-left: .3rem; padding: 0; border: 0; background: transparent; color: var(--brand-primary, #00a300); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Vorankündigungen und Ablösungen */
.haver-card--scheduled { opacity: .78; border-style: dashed; }
.haver-card--scheduled .haver-card__state { color: #0ea5e9; font-weight: 800; }
.haver-card__relations { display: flex; flex-direction: column; gap: .25rem; margin-top: .35rem; }
.haver-card__relation { display: inline-block; padding: .3rem .55rem; border-radius: .5rem; background: rgba(14, 165, 233, .12); color: inherit; font-size: .72rem; font-weight: 600; line-height: 1.35; cursor: pointer; text-align: left; }
.haver-card__relation:hover { background: rgba(14, 165, 233, .22); }
.hv-pin--scheduled { opacity: .55; filter: saturate(.6); outline: 2px dashed currentColor; outline-offset: 2px; border-radius: 50%; }
.haver-relations { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.haver-relation { display: block; width: 100%; border: 0; text-align: left; font-family: inherit; }
.haver-relation small { opacity: .7; }

/* Steigwechsel und tatsächlicher Ersatz */
.hv-pin__h--platform { background: #7c3aed; color: #fff; box-shadow: 0 0 0 3px #ddd6fe, 0 2px 7px rgba(0, 0, 0, .5); }
.haver-stop__effective { display: block; margin-top: .15rem; font-size: .72rem; opacity: .85; }

/* Pfeile vom Original- zum Ersatzhalt, Vorlesen, Legende */
.hv-pin--arrow { display: flex; align-items: center; justify-content: center; background: transparent !important; border: 0 !important; pointer-events: none; }
.hv-arrowhead { display: inline-block; font-size: 1.15rem; line-height: 1; text-shadow: 0 0 3px #fff, 0 0 3px #fff; transform-origin: 50% 50%; }
.hv-arrowhead i { transform: rotate(-45deg); display: inline-block; }
.hv-legend__arrow { display: inline-block; width: 1.4rem; height: 0; border-top: 3px dashed #f59e0b; vertical-align: middle; }
.hv-legend__pin--faded { opacity: .55; outline: 2px dashed currentColor; outline-offset: 2px; }
.haver-listen { margin-bottom: .9rem; padding: .6rem .8rem; border-radius: .7rem; background: rgba(148, 163, 184, .12); }
.haver-listen__label { margin: 0 0 .35rem; font-size: .74rem; font-weight: 800; opacity: .8; }
.haver-listen audio { width: 100%; }
.haver-listen__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--brand-primary, #00a300); border-radius: .75rem; background: transparent; color: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }

/* Vorlesen und Teilen */
.haver-tools { display: flex; gap: .5rem; margin-bottom: .8rem; }
.haver-iconbtn { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid rgba(148, 163, 184, .45); border-radius: 50%; background: transparent; color: inherit; font-size: 1rem; cursor: pointer; }
.haver-iconbtn:hover, .haver-iconbtn[aria-pressed="true"] { border-color: var(--brand-primary, #00a300); background: rgba(0, 163, 0, .14); }
.haver-notifybtn--plain { border-color: rgba(148, 163, 184, .5); }
.haver-notify { flex-direction: row; flex-wrap: wrap; align-items: center; }
.haver-notify > :not(.haver-notifybtn) { flex: 1 1 100%; }
.hv-sharedlg { width: min(40rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid rgba(148, 163, 184, .4); border-radius: 1rem; background: #111827; color: #f3f4f6; padding: 1.1rem 1.25rem; }
.hv-sharedlg::backdrop { background: rgba(0, 0, 0, .6); }
.hv-sharedlg h2 { margin: 0 0 .6rem; font-size: 1.2rem; }
.hv-sharedlg__x { position: absolute; top: .5rem; right: .7rem; margin: 0; }
.hv-sharedlg__x button { border: 0; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.hv-sharedlg__lead { margin: 0 0 .7rem; opacity: .75; font-size: .85rem; }
.hv-sharedlg__prev { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.hv-sharedlg__prev img { max-width: 42%; height: auto; border-radius: .6rem; background: #1f2937; }
.hv-sharedlg__prev p { margin: .3rem 0 0; font-size: .8rem; opacity: .75; }
.hv-sharedlg__copy { display: flex; gap: .5rem; margin-bottom: .8rem; }
.hv-sharedlg__copy input { flex: 1; min-width: 0; padding: .5rem .7rem; border: 1px solid rgba(148, 163, 184, .45); border-radius: .6rem; background: transparent; color: inherit; font-size: .8rem; }
.hv-sharedlg button, .hv-sharedlg__grid a { padding: .55rem .8rem; border: 1px solid rgba(148, 163, 184, .45); border-radius: .6rem; background: transparent; color: inherit; font-size: .8rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.hv-sharedlg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.hv-sharedlg__grid--list { grid-template-columns: 1fr; }
.hv-sharedlg__grid a { display: flex; align-items: center; gap: .5rem; }
.hv-sharedlg__grid a span { width: .7rem; height: .7rem; border-radius: 50%; background: var(--k, #6b7280); }
.hv-sharedlg__soon { display: flex; flex-direction: column; padding: .6rem .8rem; border: 1px dashed rgba(148, 163, 184, .45); border-radius: .6rem; opacity: .75; font-size: .85rem; }
.hv-sharedlg__soon small { opacity: .7; }

.hv-sharedlg__msg { grid-column: 1 / -1; margin: .2rem 0 0; font-size: .8rem; opacity: .85; }
.hv-sharedlg__grid--list button { display: flex; align-items: center; gap: .5rem; }
