@font-face {
    font-family: "Basier Circle";
    src: url("../assets/basier-circle-webfont/Basier-Circle-regular-webfont/basiercircle-regular-webfont.woff2")
        format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Basier Circle";
    src: url("../assets/basier-circle-webfont/Basier-Circle-medium-webfont/basiercircle-medium-webfont.woff2")
        format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Basier Circle";
    src: url("../assets/basier-circle-webfont/Basier-Circle-semibold-webfont/basiercircle-semibold-webfont.woff2")
        format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Basier Circle";
    src: url("../assets/basier-circle-webfont/Basier-Circle-bold-webfont/basiercircle-bold-webfont.woff2")
        format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Einfacher Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
font-family: "Basier Circle", Arial, sans-serif;    background: #d8e3c0;
}

/* Gesamte Anwendung */

.map-app {
    --map-side-spacing: clamp(1.25rem, 3vw, 2rem);
    position: relative;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    overflow: hidden;
}

/* Horizontal und vertikal verschiebbarer Bereich */

.map-viewport {
    position: absolute;
    inset: 0;

    overflow: auto;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.map-viewport::-webkit-scrollbar {
    display: none;
}

/* Die Karte füllt die Fläche. Das Seitenverhältnis kommt aus der SVG. */

.map-stage {
    --map-aspect-ratio: 2.0521;
    --map-zoom: 1;

    width: max(100%, calc(100vh * var(--map-aspect-ratio)));
    width: max(100%, calc(100dvh * var(--map-aspect-ratio)));
    min-height: 100%;

    transform: scale(var(--map-zoom));
    transform-origin: top left;
}

.map-stage.is-zooming {
    will-change: transform;
}

/* Proportional skalieren, ohne freie Ränder innerhalb der SVG. */

.map-stage svg {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
}

/* Header über der Karte */

.map-header {
    position: absolute;
    z-index: 10;

    top: calc(1rem + env(safe-area-inset-top));
    left: calc(var(--map-side-spacing) + env(safe-area-inset-left));
    right: calc(var(--map-side-spacing) + env(safe-area-inset-right));

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;

    pointer-events: none;
}

.map-logo {
    display: block;
    width: 15rem;
    max-width: 40vw;
    height: auto;
}

/* Temporärer Umschalter für Sommer- und Winterkarte */

.map-season-switch {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;

    align-items: center;
    gap: 0.55rem;

    border: 1px solid rgb(16 47 58 / 14%);
    border-radius: 999px;

    color: #17313d;
    background: rgb(255 253 248 / 92%);
    box-shadow: 0 0.4rem 1.2rem rgb(4 28 39 / 14%);
    backdrop-filter: blur(8px);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    pointer-events: auto;

    transition:
        box-shadow 160ms ease,
        transform 160ms ease;
}

.map-season-switch__track {
    position: relative;

    width: 2.25rem;
    height: 1.25rem;

    flex: 0 0 auto;

    border-radius: 999px;
    background: #a8c9d1;

    transition: background-color 180ms ease;
}

.map-season-switch__thumb {
    position: absolute;
    top: 0.17rem;
    left: 0.17rem;

    width: 0.91rem;
    height: 0.91rem;

    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.1rem 0.3rem rgb(4 28 39 / 24%);

    transition: transform 180ms ease;
}

.map-season-switch[data-current-season="winter"]
    .map-season-switch__track {
    background: #315964;
}

.map-season-switch[data-current-season="winter"]
    .map-season-switch__thumb {
    transform: translateX(1rem);
}

.map-season-switch__label--summer {
    color: #102f3a;
}

.map-season-switch__label--winter {
    color: #5a747c;
}

.map-season-switch[data-current-season="winter"]
    .map-season-switch__label--summer {
    color: #5a747c;
}

.map-season-switch[data-current-season="winter"]
    .map-season-switch__label--winter {
    color: #102f3a;
}

.map-season-switch:hover {
    box-shadow: 0 0.55rem 1.4rem rgb(4 28 39 / 18%);
    transform: translateY(-1px);
}

.map-season-switch:focus-visible {
    outline: 0.2rem solid #17313d;
    outline-offset: 0.18rem;
}

.map-season-switch:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 40rem) {
    .map-season-switch {
        padding-inline: 0.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-season-switch,
    .map-season-switch__track,
    .map-season-switch__thumb {
        transition: none;
    }
}

.map-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.map-weather {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;

    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    border: 1px solid rgb(49 89 100 / 14%);
    border-radius: 999px;

    color: #315964;
    background: rgb(255 253 248 / 92%);
    box-shadow: 0 0.4rem 1.2rem rgb(4 28 39 / 14%);
    backdrop-filter: blur(8px);

    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.map-weather strong {
    font-weight: 800;
}

.map-weather__content,
.map-weather__winter {
    display: flex;
}

.map-weather__content {
    align-items: center;
    gap: 0.45rem;
}

.map-weather__winter {
    max-width: 14rem;
    padding-left: 0.45rem;

    flex-direction: column;
    gap: 0.18rem;

    border-left: 1px solid rgb(49 89 100 / 20%);

    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    white-space: normal;
}

.map-weather__winter [data-map-avalanche-summary] {
    color: #9d5618;
}

.map-weather__winter[data-alert="high"]
    [data-map-avalanche-summary] {
    color: #b42318;
}

.map-weather__winter[hidden] {
    display: none !important;
}

.map-weather__icon {
    width: 1rem;
    height: 1rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-weather[hidden] {
    display: none !important;
}

/* Unterer Bereich */

.map-footer {
    position: absolute;
    z-index: 10;

    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: calc(var(--map-side-spacing) + env(safe-area-inset-left));
    right: calc(var(--map-side-spacing) + env(safe-area-inset-right));

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;

    pointer-events: none;
}

.map-footer .map-actions,
.map-guide {
    pointer-events: auto;
}

.map-bird {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Kompakter Ticket-Link unten rechts */

.map-cta {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.55rem 0.9rem;

    align-items: center;
    justify-content: center;
    gap: 0.45rem;

    border: 1px solid rgb(239 51 64 / 24%);
    border-radius: 999px;

    color: #d92734;
    background: rgb(255 253 248 / 92%);
    box-shadow: 0 0.4rem 1.2rem rgb(4 28 39 / 14%);
    backdrop-filter: blur(8px);

    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    pointer-events: auto;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.map-cta__icon {
    width: 1.05rem;
    height: 1.05rem;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-cta:hover {
    color: white;
    background: #ef3340;
    border-color: #ef3340;
    box-shadow: 0 0.55rem 1.4rem rgb(4 28 39 / 18%);

    transform: translateY(-1px);
}

.map-cta:active {
    transform: translateY(0) scale(0.97);
}

.map-cta:focus-visible {
    outline: 0.2rem solid #17313d;
    outline-offset: 0.18rem;
}

@media (prefers-reduced-motion: reduce) {
    .map-cta {
        transition: none;
    }
}

/* Interaktive SVG-Hotspots */

/* Interaktive SVG-Hotspots */

#HOTSPOTS>[id^="hotspot-"] {
    outline: none;
    cursor: pointer;

    transition:
        filter 160ms ease,
        transform 160ms ease;
}

#HOTSPOTS [id^="oeffnungsstatus"][data-live-status="open"] circle {
    fill: #1f9d55;
}

#HOTSPOTS [id^="oeffnungsstatus"][data-live-status="closed"] circle {
    fill: #e33f4c;
}

#HOTSPOTS [data-opening-status-symbol] {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.15px;
    pointer-events: none;
}

/* Unschoene Browser-Standardkontur entfernen */

#HOTSPOTS>[id^="hotspot-"]:focus {
    outline: none;
}

/* Dezente Markierung nur bei Tastaturbedienung */

#HOTSPOTS>[id^="hotspot-"]:focus-visible {
    outline: none;

    filter:
        drop-shadow(0 0 3px rgb(255 255 255 / 90%)) drop-shadow(0 0 7px rgb(239 51 64 / 80%));
}

@media (prefers-reduced-motion: reduce) {
    #HOTSPOTS>[id^="hotspot-"] {
        transition: none;
    }
}

/* Standort-Popup */

.location-popup {
    width: min(30rem, 100%);
    max-height: min(90dvh, 46rem);
    margin: auto auto 0;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 1.75rem 1.75rem 0 0;

    color: #17313d;
    background: #fffdf8;

    box-shadow:
        0 -0.5rem 2rem rgb(4 28 39 / 12%),
        0 1.5rem 4rem rgb(4 28 39 / 28%);
}

.location-popup::backdrop {
    background: rgb(7 28 35 / 56%);
    backdrop-filter: blur(5px);
}

.location-popup[open] {
    animation: popup-show 220ms ease-out;
}

.location-popup__card {
    max-height: inherit;
    overflow: hidden;

    border-radius: inherit;
    background: #fffdf8;
}

.location-popup__header {
    display: grid;
    gap: 0.35rem;
}

.location-popup__eyebrow {
    margin: 0;

    color: #55808b;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.location-popup__title {
    margin: 0;

    color: #102f3a;

    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.location-popup__close {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    right: 0.8rem;

    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;

    place-items: center;

    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 50%;

    color: #102f3a;
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 0.4rem 1.2rem rgb(4 28 39 / 18%);
    backdrop-filter: blur(8px);

    font-size: 1.55rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.location-popup__close:hover {
    background: white;
    transform: scale(1.05);
}

.location-popup__close:focus-visible,
.location-popup__action:focus-visible {
    outline: 0.2rem solid #17313d;
    outline-offset: 0.15rem;
}

/* Bildbereich */

.location-popup__media {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #c9dde1;
}

.location-popup__image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.location-popup__media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 3rem;

    background: linear-gradient(to top, rgb(16 47 58 / 20%), transparent);

    content: "";
    pointer-events: none;
}

.location-popup__image-placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #527481;
    background:
        linear-gradient(135deg,
            #c6e0e9,
            #aecfdb);

    font-size: 0.8rem;
    font-weight: 700;
}

/* Inhalt */

.location-popup__body {
    display: grid;
    gap: 1.05rem;

    padding: 1.35rem 1.35rem calc(1.35rem + env(safe-area-inset-bottom));
}

.location-popup__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;

    padding: 0.72rem 0.78rem;

    border: 1px solid rgb(16 47 58 / 8%);
    border-radius: 1rem;
    background: #f3f7f5;
}

.location-popup__status,
.location-popup__hours {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    min-height: 2rem;
    padding: 0.42rem 0.72rem;

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 700;
}

.location-popup__status {
    color: #17613d;
    background: #e0f3e8;
}

.location-popup__status::before,
.location-popup__hours::before {
    width: 0.48rem;
    height: 0.48rem;

    flex: 0 0 auto;

    border-radius: 50%;
    background: currentColor;

    content: "";
}

.location-popup__status[data-status="closed"],
.location-popup__hours[data-status="closed"] {
    color: #a92d35;
    background: #fde6e7;
}

.location-popup__status[data-status="preparing"],
.location-popup__status[data-status="conditional"],
.location-popup__hours[data-status="preparing"],
.location-popup__hours[data-status="conditional"] {
    color: #8a5a08;
    background: #fff0cc;
}

.location-popup__status[data-status="partial"] {
    color: #8a5a08;
    background: #fff0cc;
}

.location-popup__hours {
    color: #315964;
    background: #e7eeec;
}

.location-popup__hours[data-status="open"] {
    color: #17613d;
    background: #e0f3e8;
}

.location-popup__hours[data-status="upcoming"] {
    color: #315964;
    background: #e4eff1;
}

.location-popup__text {
    margin: 0;

    color: #3e5961;

    font-size: 0.95rem;
    line-height: 1.58;
}

.location-popup__action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
    min-height: 3.35rem;
    padding: 0.65rem 0.72rem 0.65rem 1.2rem;

    border: 0;
    border-radius: 999px;

    color: white;
    background: #ef3340;

    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;

    cursor: pointer;

    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.location-popup__action-icon {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;

    place-items: center;

    border-radius: 50%;
    color: #ef3340;
    background: white;

    font-size: 1.05rem;
}

.location-popup__action:hover {
    background: #d92734;
    transform: translateY(-1px);
}

@keyframes popup-show {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Grössere Displays */

@media (min-width: 40rem) {
    .location-popup {
        width: min(29rem, calc(100% - 2rem));
        margin: auto;
        border-radius: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-popup[open] {
        animation: none;
    }

    .location-popup__close,
    .location-popup__action {
        transition: none;
    }
}

.location-popup__image[hidden],
.location-popup__image-placeholder[hidden],
.location-popup__meta[hidden],
.location-popup__status[hidden],
.location-popup__hours[hidden] {
    display: none !important;
}

@media (max-width: 40rem) {
    .map-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.4rem;
    }

    .map-weather {
        padding-inline: 0.7rem;
    }

    .map-weather__winter {
        max-width: 11.5rem;
    }
}

.map-viewport {
    cursor: grab;
}

.map-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Hilfe-Vogel und Sprechblase */

.map-guide {
    position: relative;

    width: 8rem;
    height: 8rem;
}

@media (max-width: 40rem) {
    .map-guide {
        width: 7rem;
        height: 7rem;
    }
}

.map-guide__bird-button {
    position: relative;

    width: 100%;
    height: 100%;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    isolation: isolate;

    transform-origin: 50% 85%;

    transition: transform 180ms ease;
}

/* Dezenter Hintergrund zur Abgrenzung von der Karte */

.map-guide__bird-button::before {
    position: absolute;
    z-index: 0;

    inset: 0.8rem 0.4rem 0.4rem;

    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 48% 52% 46% 54%;

    background:
        radial-gradient(circle at 45% 38%,
            rgb(255 255 255 / 92%),
            rgb(255 253 248 / 70%));

    box-shadow:
        0 0.6rem 1.6rem rgb(4 28 39 / 16%),
        inset 0 0 1.2rem rgb(255 255 255 / 36%);

    backdrop-filter: blur(5px);

    content: "";
    pointer-events: none;

    transform: rotate(-3deg);
}

.map-guide__bird-button:hover {
    transform: translateY(-0.15rem) rotate(-1deg);
}

.map-guide__bird-button.is-inviting {
    animation: map-guide-invite 1100ms ease-in-out;
}

.map-guide__bird-button.is-inviting::before {
    animation: map-guide-halo 1100ms ease-out;
}

@keyframes map-guide-invite {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    18% {
        transform: translateY(-0.12rem) rotate(-4deg);
    }

    36% {
        transform: translateY(-0.2rem) rotate(4deg);
    }

    54% {
        transform: translateY(-0.35rem) rotate(-2deg);
    }

    72% {
        transform: translateY(-0.12rem) rotate(2deg);
    }

    88% {
        transform: translateY(0) rotate(-1deg);
    }
}

@keyframes map-guide-halo {
    0%,
    100% {
        box-shadow:
            0 0.6rem 1.6rem rgb(4 28 39 / 16%),
            inset 0 0 1.2rem rgb(255 255 255 / 36%);
    }

    45% {
        box-shadow:
            0 0.7rem 2rem rgb(239 51 64 / 22%),
            0 0 0 0.35rem rgb(255 255 255 / 24%),
            inset 0 0 1.2rem rgb(255 255 255 / 50%);
    }
}

.map-guide__bird-button:focus-visible,
.map-guide__close:focus-visible,
.map-guide__action:focus-visible {
    outline: 0.2rem solid #102f3a;
    outline-offset: 0.2rem;
}

.map-guide__bubble {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 0.5rem);
    left: 0;

    width: min(18rem, calc(100vw - 2rem));
    padding: 1.15rem 2.8rem 1.15rem 1.15rem;

    border: 1px solid rgb(16 47 58 / 10%);
    border-radius: 1.25rem 1.25rem 1.25rem 0.35rem;

    color: #102f3a;
    background: #fffdf8;
    box-shadow: 0 1rem 2.5rem rgb(4 28 39 / 24%);

    opacity: 0;
    transform: translateY(0.65rem) scale(0.96);
    transform-origin: bottom left;

    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.map-guide__bubble::after {
    position: absolute;
    bottom: -0.65rem;
    left: 1.5rem;

    width: 1.3rem;
    height: 1.3rem;

    background: #fffdf8;
    clip-path: polygon(0 0, 100% 0, 0 100%);

    content: "";
}

.map-guide__bubble.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.map-guide__bubble[hidden] {
    display: none !important;
}

.map-guide__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;

    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;

    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #315964;
    background: #edf4f3;

    font-size: 1.25rem;
    line-height: 1;

    cursor: pointer;
}

.map-guide__eyebrow {
    margin: 0 0 0.35rem;

    color: #ef3340;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-guide__text {
    margin: 0;

    color: #315964;

    font-size: 0.9rem;
    line-height: 1.48;
}

.map-guide__action {
    min-height: 2.5rem;
    margin-top: 0.9rem;
    padding: 0.55rem 0.9rem;

    border: 0;
    border-radius: 999px;

    color: #fff;
    background: #ef3340;

    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;

    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .map-guide__bubble,
    .map-guide__bird-button {
        transition: none;
    }

    .map-guide__bird-button.is-inviting,
    .map-guide__bird-button.is-inviting::before {
        animation: none;
    }
}

/* Zusatzinformationen in den Standort-Popups */

.location-popup__card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.location-popup__body {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.location-popup__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.location-popup__fact {
    display: flex;
    min-width: 0;
    padding: 0.7rem 0.45rem;

    flex-direction: column;
    align-items: center;
    gap: 0.45rem;

    border: 1px solid rgb(16 47 58 / 8%);
    border-radius: 0.9rem;

    color: #315964;
    background: #f1f6f4;

    text-align: center;
}

.location-popup__fact-icon {
    display: grid;
    width: 2rem;
    height: 2rem;

    place-items: center;

    border-radius: 50%;

    color: #fff;
    background: #315964;

    font-size: 0.72rem;
    font-weight: 800;
}

.location-popup__fact-label {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
}

.location-popup__action {
    text-decoration: none;
}

.location-popup__facts[hidden],
.location-popup__action[hidden] {
    display: none !important;
}

/* Bilder-Slider im Standort-Popup */

.location-popup__close {
    z-index: 4;
}

.location-popup__slider-button {
    position: absolute;
    z-index: 3;
    top: 50%;

    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;

    place-items: center;

    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;

    color: #102f3a;
    background: rgb(255 255 255 / 82%);
    box-shadow: 0 0.35rem 1rem rgb(4 28 39 / 20%);
    backdrop-filter: blur(8px);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.location-popup__slider-button:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.location-popup__slider-button:focus-visible,
.location-popup__slider-dot:focus-visible {
    outline: 0.2rem solid #fff;
    outline-offset: 0.15rem;
}

.location-popup__slider-button--previous {
    left: 0.8rem;
}

.location-popup__slider-button--next {
    right: 0.8rem;
}

.location-popup__slider-dots {
    position: absolute;
    z-index: 3;
    bottom: 0.75rem;
    left: 50%;

    display: flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0.4rem 0.55rem;

    border-radius: 999px;

    background: rgb(7 28 35 / 42%);
    backdrop-filter: blur(6px);

    transform: translateX(-50%);
}

.location-popup__slider-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgb(255 255 255 / 65%);

    cursor: pointer;

    transition:
        width 180ms ease,
        background-color 180ms ease;
}

.location-popup__slider-dot.is-active {
    width: 1.4rem;
    background: #fff;
}

.location-popup__slider-button[hidden],
.location-popup__slider-dots[hidden] {
    display: none !important;
}

/* 360-Grad-Ansicht im Standort-Popup */

.location-popup__panorama {
    position: absolute;
    z-index: 2;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #17313d;
}

.location-popup__panorama-button {
    position: absolute;
    z-index: 5;

    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;

    align-items: center;
    gap: 0.5rem;

    border: 1px solid rgb(255 255 255 / 76%);
    border-radius: 999px;

    color: #102f3a;
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 0.4rem 1.2rem rgb(4 28 39 / 24%);
    backdrop-filter: blur(8px);

    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;

    cursor: pointer;
}

.location-popup__panorama-button--start {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.location-popup__panorama-button--back {
    top: 0.8rem;
    left: 0.8rem;
}

.location-popup__panorama-hint {
    position: absolute;
    z-index: 5;
    bottom: 1rem;
    left: 50%;

    display: inline-flex;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;

    align-items: center;
    gap: 0.45rem;

    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 999px;

    color: #fff;
    background: rgb(7 28 35 / 72%);
    box-shadow: 0 0.35rem 1rem rgb(4 28 39 / 20%);
    backdrop-filter: blur(8px);

    font-size: 0.8rem;
    font-weight: 800;

    pointer-events: none;
    transform: translateX(-50%);

    animation: panorama-hint-show 220ms ease-out;
}

@keyframes panorama-hint-show {
    from {
        opacity: 0;
        transform: translate(-50%, 0.35rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.location-popup__panorama-button:hover {
    background: #fff;
}

.location-popup__panorama-button:focus-visible {
    outline: 0.2rem solid #fff;
    outline-offset: 0.15rem;
}

.location-popup__panorama[hidden],
.location-popup__panorama-hint[hidden],
.location-popup__panorama-button[hidden] {
    display: none !important;
}

.location-popup__panorama .pnlm-panorama-info {
    display: none !important;
}

.location-popup__panorama .pnlm-controls-container {
    top: auto;
    right: 0.8rem;
    bottom: 0.8rem;
    left: auto;
}

.location-popup__panorama .pnlm-controls {
    margin-top: 0.4rem;
}

.location-popup__media.is-panorama-active::after,
.location-popup__media.is-panorama-active .location-popup__image,
.location-popup__media.is-panorama-active .location-popup__image-placeholder,
.location-popup__media.is-panorama-active .location-popup__slider-button,
.location-popup__media.is-panorama-active .location-popup__slider-dots {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {

    .location-popup__slider-button,
    .location-popup__slider-dot,
    .location-popup__panorama-hint {
        animation: none;
        transition: none;
    }
}

/* Wolken-Animation */

#wolken-animation,
.cloud-animation-cloud {
    pointer-events: none;
}

.cloud-animation-cloud {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    #wolken-animation {
        display: none !important;
    }
}

/* Schnee-Animation */

#Schnee-animation,
.snow-animation-generated,
.snow-animation-layer {
    pointer-events: none;
}

.snow-animation-layer {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    #Schnee-animation,
    .snow-animation-generated {
        display: none !important;
    }
}

/* Sesselbahn-Animation */

#motionpath-bergfahrt,
#motionpath-bergfahrt_,
#motionpath-talfahrt,
#motionpath-talfahrt-2 {
    opacity: 0;
    pointer-events: none;
}

#sessel-bergfahrt,
#sessel-talfahrt,
.chairlift-moving-chairs,
.chairlift-moving-chair {
    pointer-events: none;
}

/* Skilift-Animation */

#skidoppellift-tubelfaerrich > [id^="motionpath-"],
#skilift-roestenschwend > [id^="motionpath-"] {
    opacity: 0;
    pointer-events: none;
}

[id^="buegel-bergfahrt"],
[id^="buegel-talfahrt"],
.skilift-moving-items,
.skilift-moving-item {
    pointer-events: none;
}

/* Beleuchtung beim Nachtskifahren */

#Nachtskifahren > [id="Licht"],
#Nachtskifahren > [id^="Licht-"] {
    opacity: 0;
    pointer-events: none;
}

#Nachtskifahren[data-night-skiing-active="true"]
    > .night-skiing-light {
    opacity: 1;
    animation: night-skiing-light-flicker
        var(--night-light-duration, 4s)
        var(--night-light-delay, 0s)
        infinite;
}

@keyframes night-skiing-light-flicker {
    0%,
    14%,
    20%,
    53%,
    59%,
    82%,
    87%,
    100% {
        opacity: 1;
    }

    16% {
        opacity: 0.62;
    }

    18% {
        opacity: 0.84;
    }

    55% {
        opacity: 0.72;
    }

    57% {
        opacity: 0.9;
    }

    84% {
        opacity: 0.78;
    }
}

@media (prefers-reduced-motion: reduce) {
    #Nachtskifahren[data-night-skiing-active="true"]
        > .night-skiing-light {
        animation: none;
    }
}

/* Dezenter goldener Schein für den Schatzpfad */

/* Goldene Hervorhebung des Schatzpfads */

#schatzpfad {
    fill: none;
    stroke: #d5a62b;
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-linejoin: round;

    /* Strich bleibt auch auf Mobile gut sichtbar */
    vector-effect: non-scaling-stroke;

    filter:
        drop-shadow(0 0 1.5px rgb(255 244 181 / 95%))
        drop-shadow(0 0 5px rgb(211 157 24 / 65%));
}

@media (max-width: 40rem) {
    #schatzpfad {
        stroke-width: 4px;

        filter:
            drop-shadow(0 0 2px rgb(255 246 190 / 100%))
            drop-shadow(0 0 6px rgb(211 157 24 / 75%));
    }
}
