:root {
    /* Colors */
    --color-primary-bg: #003869; /* BTC-Blau */
    --color-secondary-bg: #ffffff;
    --color-action-bg: #ffffff;
    --color-map-bg: #f5f5f5; /* BTC-Grau */
    --color-primary: #ffffff;
    --color-secondary: #333;
    --color-action: #5aa6e7; /* BTC-hellblau */
    --color-accent-gold: #edc72f; /* BTC-Gold (Akzent) */

    /* States */
    --color-available: rgba(0, 255, 0, 0.6);
    --color-unavailable: rgba(255, 0, 0, 0.6);
    --color-soon-unavailable: rgba(242, 189, 22, 0.6);
    --color-unknown: rgba(0, 110, 155, 0.85);

    /* Shadow */
    --shadow-popup: 0 10px 30px rgba(0, 0, 0, .3);
    --shadow-box: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-drop: -11px 3px 15px #00000080;

    /* Sizing */
    --header-height: 82px;
    --avatar-size: 55px;
    --avatar-size-mobile: 40px;
    --spacing-s: 6px;
    --spacing-m: 12px;
    --spacing-l: 16px;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--color-map-bg);
    color: var(--color-primary);
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* body als Containing Block für die absolut positionierten Elemente
       (Sidebar, Legende, …) UND overflow: hidden, damit die eingeklappte,
       nach rechts geschobene Sidebar wirklich abgeschnitten wird und man
       (v. a. mobil) nicht dorthin scrollen kann. */
    position: relative;
    overflow: hidden;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.header {
    height: var(--header-height);
    background: var(--color-primary-bg);
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1001; /* über den Zoom-Knöpfen (fixed, z-index 1000), damit die Dropdowns darüber liegen */
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 24px;
}

.header-logo {
    max-height: calc(var(--avatar-size) - 20px);
    width: auto;
}


/* Zentraler Bereich */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center; /* → zwingt Titel in die absolute Mitte */
    position: relative;
}

.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
    color: var(--color-primary);
}

/* Marke links: Logo | Titel */
.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.header-divider {
    flex: 0 0 auto;
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.45);
}

.header-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-width: 0;
}

/* Begrüßung nur im Portrait-Header (siehe Portrait-Media-Query). */
.header-greeting {
    display: none;
}

.plan-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--color-primary);
    width: 170px;
    border: none;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    padding: 4px 30px 4px 30px;
    transition: opacity 0.2s ease;
}

.plan-select:hover {
    opacity: 0.85;
}

.plan-select:focus {
    outline: none;
}

.plan-select option {
    color: var(--color-secondary);
    background: var(--color-primary);
}

/* --------------------------------------------------
   GEBÄUDE-DROPDOWN (custom, nach Stadt gruppiert)
-------------------------------------------------- */
.loc-select {
    position: relative;
    display: inline-block;
}

.loc-select__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-primary);
    font-size: 16px;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.loc-select__trigger:hover {
    background: rgba(255, 255, 255, 0.26);
}

.loc-select__trigger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 189, 22, 0.35);
}

.loc-select__pin {
    flex: 0 0 auto;
}

.loc-select__label {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc-select__chevron {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.loc-select.is-open .loc-select__chevron {
    transform: rotate(180deg);
}

.loc-select__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 300px;
    max-width: calc(100vw - 24px);
    max-height: min(80vh, 480px);
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--color-secondary-bg);
    color: var(--color-secondary);
    border-radius: 12px;
    border-top: 4px solid var(--color-accent-gold);
    box-shadow: var(--shadow-popup);
    text-align: left;
}

/* Standort-Dropdown zweispaltig; Gruppen bleiben als Block zusammen.
   Das Mehrspalten-Layout liegt auf dem inneren Container (.loc-select__groups),
   damit das Panel selbst vertikal scrollen kann (Spalten auf dem Panel würden
   bei Höhenbegrenzung seitlich statt vertikal überlaufen). */
.loc-select--building .loc-select__panel {
    min-width: 560px;
}

.loc-select--building .loc-select__groups {
    column-count: 2;
    column-gap: 28px;
    column-rule: 1px solid #eef1f5;
}

/* Nur eine Auswahl: kein Chevron, nicht anklickbar */
.loc-select--static .loc-select__chevron {
    display: none;
}

.loc-select--static .loc-select__trigger {
    cursor: default;
    background: transparent;
    border-color: transparent;
}

.loc-select--static .loc-select__trigger:hover {
    background: transparent;
}

.loc-select__group-block {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.loc-select__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 620px) {
    .loc-select--building .loc-select__panel {
        min-width: 280px;
    }

    .loc-select--building .loc-select__groups {
        column-count: 1;
        column-rule: none;
    }
}

.loc-select__group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa5b1;
}

.loc-select__group::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e3e8ee;
}

.loc-select__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary-bg);
    cursor: pointer;
    transition: background 0.15s ease;
}

.loc-select__option:hover {
    background: #f2f6fb;
}

.loc-select__option.is-active {
    background: #eaf3fc;
    font-weight: 700;
}

.loc-select__dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-action);
    box-sizing: border-box;
}

.loc-select__option.is-active .loc-select__dot {
    border-color: var(--color-accent-gold);
    background: var(--color-accent-gold);
}

.loc-select__name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc-select__tag {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa5b1;
}

.loc-select__check {
    flex: 0 0 auto;
    color: var(--color-primary-bg);
}

/* Etagen-Panel schmaler (keine Straßennamen, kürzere Labels) */
.loc-select--floor .loc-select__panel {
    min-width: 180px;
}

/* Icons für native <select> (nur Editor, index nutzt .loc-select) */
select#buildingSelect {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.2'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: 20px 20px, 18px 18px;
}

select#floorSelect {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14'/%3E%3Cpath d='M9 21v-8h6v8'/%3E%3Cpath d='M9 9h.01'/%3E%3Cpath d='M15 9h.01'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right center;
    background-size: 20px 20px, 18px 18px;
}

.header {
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.install-btn__icon {
    flex: 0 0 auto;
}

/* Label liegt absolut links neben dem Icon, beansprucht keinen Layout-Platz
   (damit der Header-Titel beim Hover nicht verrutscht) und slidet beim Hover ein. */
.install-btn__label {
    position: absolute;
    right: 100%;
    top: 50%;
    max-width: 0;
    margin-right: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(-50%) translateX(8px);
    transition: max-width 0.3s ease, margin-right 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
}

.install-btn:hover,
.install-btn:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.install-btn:hover .install-btn__label,
.install-btn:focus-visible .install-btn__label {
    max-width: 160px;
    margin-right: 4px;
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.install-btn[hidden] {
    display: none;
}

#userAvatar {
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.user-menu {
    position: absolute;
    top: calc(var(--avatar-size) + 15px);
    right: 45px;
    display: none;
    z-index: 1000;
}

.user-menu.is-open {
    display: block;
}

.user-menu__content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 180px;
}

.user-menu__name {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.user-menu__item {
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    color: var(--color-secondary);
    text-align: center;
}

.user-menu__item:hover {
    background: #e0e0e0;
}

.user-menu__logout {
    width: 100%;
    padding: 6px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
}

.user-menu__logout:hover {
    background: #e0e0e0;
}

#userAvatar:empty {
    display: none;
}

/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 480px) or (max-height: 480px) {
    .header {
        height: 50px;
        column-gap: 12px;
        padding: 0 12px;
    }

    .inline-progress {
        top: 50px !important;
    }

    .sidebar {
        height: calc(100vh - 50px) !important;
        top: 50px !important;
        overflow-y: scroll
    }

    .header .logo {
        max-height: var(--avatar-size-mobile);
    }

    #userAvatar {
        width: 34px;
        height: 34px;
    }

    /* Titel "Raumbuchungstool" + Trenner auf Mobil ausblenden (nur die Auswahl bleibt). */
    .header-title,
    .header-divider {
        display: none;
    }

}

/* --------------------------------------------------
   NAV BUTTON
-------------------------------------------------- */

.nav-button {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 22px;
    cursor: pointer;
}

.nav-up {
    right: 20px;
    top: 8px;
}

.nav-down {
    right: 20px;
    bottom: 8px;
}

/* --------------------------------------------------
   MAP VIEWPORT
-------------------------------------------------- */

.content {
    height: calc(100vh - var(--header-height));
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version */
}

.viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.zoom-container {
    position: relative;
    transform-origin: 0 0;
    will-change: transform;
}

.image-container img {
    display: block;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(var(--shadow-drop));
    image-rendering: pixelated;
}

.dot,
.room {
    position: absolute;
    cursor: pointer;
}

.dot-legend {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.dot-legend.unknown:after, .dot-legend.available:after, .dot-legend.unavailable:after, .dot-legend.soon-unavailable:after {
    width: 15px !important;
    height: 15px !important;
    font-size: 0.7em !important;
}

.room-legend {
    width: 15px;
    height: 15px;
    margin: 0 5px;
}

.room-legend.available {
    background-color: #9df550;
}

.room-legend.unavailable {
    background-color: #ff938f;
}

.room-legend.soon-unavailable {
    background-color: #ffd250;
}

.room-legend.unknown {
    background-color: #a1eaff;
}

.dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.dot.available {
    filter: drop-shadow(0px 0px 4px #000);
    background: var(--color-available);
}

.dot.unavailable, .dot-legend.unavailable {
    background: var(--color-unavailable);
}

.dot.soon-unavailable, .dot-legend.soon-unavailable {
    background: var(--color-soon-unavailable);
}

.room.available {
    filter: hue-rotate(277deg);
    backdrop-filter: saturate(8.5);
}

.room.unavailable {
    filter: hue-rotate(181deg);
    backdrop-filter: saturate(28.5);
}

.room.soon-unavailable {
    filter: hue-rotate(230deg);
    backdrop-filter: saturate(8.5);
}

.dot.unknown, .dot-legend.unknown {
    background: var(--color-unknown);
}

.dot.unknown:after, .dot-legend.unknown:after {
    content: "!";
    display: grid;
    place-items: center;
    line-height: 1.7em;
    aspect-ratio: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-unknown);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    font-weight: bold;
    font-size: larger;
}

.dot.available:after, .dot-legend.available:after {
    content: "✔";
    display: grid;
    place-items: center;
    line-height: 1.7em;
    aspect-ratio: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-available);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    font-weight: bold;
    font-size: larger;
}

.dot.soon-unavailable:after, .dot-legend.soon-unavailable:after {
    content: "~";
    display: grid;
    place-items: center;
    line-height: 1.7em;
    aspect-ratio: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-soon-unavailable);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    font-weight: bold;
    font-size: larger;
}

.dot.unavailable:after, .dot-legend.unavailable:after {
    content: "✕";
    display: grid;
    place-items: center;
    line-height: 1.7em;
    aspect-ratio: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-unavailable);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    font-weight: bold;
    font-size: larger;
}

.room.unknown {
    backdrop-filter: saturate(3.5);
}

/* ---------- POOL-RESSOURCEN: MARKER ---------- */
/* Marker liegen wie .dot im #container, teilen also den Bildkoordinatenraum und
   skalieren mit Pan/Zoom mit. Das Popup dagegen hängt an <body> (siehe .res-popup). */
.res-marker {
    position: absolute;
    /* Groesse kommt aus "iconScale" in der data.json (resources.js setzt die Variablen). */
    width: var(--res-marker-size, 44px);
    height: var(--res-marker-size, 44px);
    padding: 0;
    border: none;
    background: none;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.res-marker__icon {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

/* Aggregatstatus: grün = mindestens ein Postfach im gewählten Zeitraum frei.
   Im grünen Punkt steht die ANZAHL der freien Ressourcen. */
.res-marker__badge {
    position: absolute;
    top: -1px;
    right: -1px;
    display: grid;
    place-items: center;
    width: var(--res-badge-size, 20px);
    height: var(--res-badge-size, 20px);
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    font-size: calc(var(--res-badge-size, 20px) * 0.6);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

/* Deckende Varianten der Zustandsfarben: das Badge sitzt auf dem Icon, eine
   transluzente Fläche wie bei .dot wäre hier nicht ablesbar. */
.res-marker__badge.available {
    background: #2fbf4f;
}

.res-marker__badge.unavailable {
    background: #e5484d;
}

.res-marker__badge.unknown,
.res-marker__badge.loading-error {
    background: #006e9b;
}

.res-marker__badge.loading {
    background: rgba(90, 100, 115, 0.9);
}

.res-marker__badge.loading::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    box-sizing: border-box;
    animation: dotLoadSpin 0.6s linear infinite;
}

/* Offener Zustand – bewusst als Ring statt Icon-Tausch nach _bright. */
.res-marker.is-open {
    outline: 3px solid var(--color-action);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ---------- POOL-RESSOURCEN: POPUP ---------- */
/* position: fixed und in <body> verankert, damit der Text NICHT mit der Karte
   skaliert; die Ausrichtung am Marker übernimmt resources.js. */
.res-popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500; /* über dem Sheet (1000) und Header (1001) */
    width: 340px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: var(--shadow-popup);
    color: var(--color-secondary);
}

.res-popup[hidden] {
    display: none;
}

.res-popup__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid #ededed;
}

.res-popup__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary-bg);
}

.res-popup__subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.res-popup__close {
    margin-left: auto;
    padding: 0 4px;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}

.res-popup__close:hover {
    color: var(--color-secondary);
}

.res-popup__state {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    font-size: 13px;
    color: #6b7280;
}

.res-popup__spinner {
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 56, 105, 0.2);
    border-top-color: var(--color-primary-bg);
    border-radius: 50%;
    box-sizing: border-box;
    animation: dotLoadSpin 0.6s linear infinite;
}

.res-popup__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.res-popup__row:last-child {
    border-bottom: none;
}

.res-popup__row-main {
    min-width: 0;
    flex: 1;
}

.res-popup__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary-bg);
}

.res-popup__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.res-popup__meta-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.res-popup__meta-dot.available {
    background: #2fbf4f;
}

.res-popup__meta-dot.unavailable {
    background: #9ca3af;
}

.res-popup__desc {
    font-size: 12px;
    color: #6b7280;
    overflow-wrap: anywhere;
}

.res-popup__avail {
    margin-top: 3px;
    font-size: 12px;
}

.res-popup__avail.is-free {
    color: #1a7f37;
}

.res-popup__avail.is-busy {
    color: #6b7280;
}

.res-popup__actions {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

/* Sekundär-Knopf: gleiche Breite wie "Buchen", aber als Outline-Variante. */
.res-popup__show {
    padding: 6px 14px;
    border: 1px solid var(--color-primary-bg);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-bg);
    background: #fff;
    cursor: pointer;
}

.res-popup__show:hover {
    background: #eef4fa;
}

.res-popup__show:active {
    transform: scale(0.97);
}

/* Eigene :disabled-Regel nötig: die bestehende ist unter .availability-selector
   gescoped und greift im Popup nicht. */
.res-popup__book {
    padding: 7px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    cursor: pointer;
}

.res-popup__book:hover:not(:disabled) {
    background: #00477f;
}

.res-popup__book:active:not(:disabled) {
    transform: scale(0.97);
}

.res-popup__book:disabled {
    color: #9ca3af;
    background: #e5e7eb;
    cursor: not-allowed;
}

/* Desktop (Maus, breites Fenster): mehr Platz, da jede Zeile zwei Knöpfe trägt.
   Steht bewusst NACH der Basisbreite – ein Media-Query erhöht die Spezifität nicht. */
@media (pointer: fine) and (min-width: 900px) {
    .res-popup {
        width: 460px;
    }
}

.current-ressource {
    height: 10000px;
}

.ressource-banner {
    height: 185px;
    background-size: cover;
    background-position: center;
    border: none;
}

/* Pool-Ressourcen liefern ihr Icon als Bild – einpassen statt beschneiden. */
.ressource-banner.is-contain {
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-color: var(--color-map-bg);
}

.ressource-content {
    padding: 16px 18px;
    color: var(--color-secondary);
}

.ressource-content h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.ressource-description {
    font-size: 14px;
    margin-bottom: 14px;
    padding: 10px 0;
    color: var(--color-secondary);
    max-width: 350px;
}

.person-booking-ressource {
    font-size: 14px;
    color: var(--color-secondary);
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.ressource-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.ressource-row:last-child {
    border-bottom: none;
}


.sidebar {
    display: flex;
    min-width: 405px;
    background: var(--color-primary);
    position: absolute;
    height: calc(100vh - var(--header-height));
    right: 0;
    top: var(--header-height);
    filter: drop-shadow(2px 4px 6px black);
    flex-direction: column;
    flex-wrap: nowrap;
    transition: transform 0.28s ease;
    border-left: 3px solid #fff;
}

/* Eingeklappt: Sidebar komplett nach rechts aus dem Bild schieben. */
.sidebar.collapsed {
    transform: translateX(100%);
}

/* Beim ersten Laden Übergänge unterdrücken, damit der Startzustand (z. B. mobil
   eingeklappt) nicht sichtbar hineinanimiert. Wird nach dem ersten Frame entfernt. */
.no-anim .sidebar,
.no-anim .sidebar-toggle,
.no-anim .sidebar-toggle svg,
.no-anim .zoom-controls {
    transition: none !important;
}

/* Auf Mobilgeräten keine Zoom-Knöpfe (Zoom per Pinch-Geste). */
@media (max-width: 768px), (max-height: 480px) {
    .zoom-controls {
        display: none !important;
    }
}

/* Ein-/Ausklapp-Knopf: eigenständiges Element (kein Kind der Sidebar, damit er
   nicht vom Overflow der Sidebar abgeschnitten wird). Sitzt an der linken Kante
   der Sidebar; eingeklappt wandert er an den rechten Bildschirmrand. */
/* Bottom-Sheet-Griff nur im Portrait (siehe Portrait-Media-Query). */
.sheet-handle {
    display: none;
}

.sidebar-toggle {
    position: absolute;
    right: 405px;
    top: calc(var(--header-height) + 14px);
    width: 30px;
    height: 64px;
    padding: 0;
    border: none;
    background: #fff;
    color: var(--color-primary-bg);
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Schatten nur nach links (negativer Spread), damit er nicht über die
       rechts anschließende Sidebar läuft. */
    box-shadow: -3px 1px 4px -2px rgba(0, 0, 0, 0.4);
    z-index: 5;
    transition: right 0.28s ease;
}

/* Eingeklappt: Knopf an den rechten Rand. */
.sidebar-toggle.collapsed {
    right: 0;
}

.sidebar-toggle svg {
    transition: transform 0.28s ease;
}

/* Im eingeklappten Zustand zeigt der Pfeil nach links (= aufklappen). */
.sidebar-toggle.collapsed svg {
    transform: rotate(180deg);
}

/* Mobil: Knopf weiter oben und dezenter (kleiner, halbtransparent, weicher Schatten). */
@media (max-width: 480px), (max-height: 480px) {
    .sidebar-toggle {
        top: calc(var(--header-height) + 4px);
        width: 24px;
        height: 44px;
        box-shadow: -2px 1px 3px -1px rgba(0, 0, 0, 0.25);
    }
}

.legend {
    position: absolute;
    color: var(--color-primary-bg);
    display: flex;
    flex-direction: column;
    bottom: 40px;
    left: 15px;
    width: 250px;
}

.legend > div {
    display: flex;
    padding: 3px 0;
    font-size: 0.8em;
}

.legend > div > span {
    padding-left: 20px;
}

.availability-bar-container {
    margin: 16px 0;
    width: 100%;
}

/* Mehrtages-Zeitraum: kompakte einzeilige Leiste pro Tag */
.availability-days {
    margin: 14px 0;
    max-height: 34vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 8px;
    border-radius: 8px;
    background: #f6f7f9;
}

.avail-day {
    display: flex;
    align-items: center;
    gap: 9px;
}

.avail-day__label {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-secondary);
    white-space: nowrap;
}

/* Status-Punkt: frei (grün) / belegt (rot) im gewählten Zeitfenster */
.avail-day__label::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c2c7cf;
}

.avail-day.is-free .avail-day__label::before {
    background: #4caf50;
}

.avail-day.is-busy .avail-day__label::before {
    background: #e53935;
}

/* schlanker Balken nur in der Tages-Auflistung (Einzeltag-Bar bleibt unverändert) */
.avail-day .availability-bar {
    flex: 1 1 auto;
    width: auto;
    height: 12px;
    border-radius: 3px;
}

.avail-day .availability-segment {
    height: 12px;
    margin-top: 0;
}

/* Einmalige Zeit-Legende unter den Tagesbalken, an der Balkenbreite ausgerichtet */
.avail-tooltip {
    position: fixed;
    z-index: 200;
    background: rgba(38, 40, 46, 0.9);
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.13s;
}

.avail-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.avail-day--legend {
    margin-top: 1px;
}

.avail-day__spacer {
    flex: 0 0 80px;
}

.avail-day--legend .availability-times {
    flex: 1 1 auto;
    margin-top: 0;
}

.availability-bar {
    display: flex;
    width: 100%;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.availability-segment {
    height: 16px;
    margin-top: 5px
}

.avail-free {
    background: #4caf50; /* grün */
}

.avail-busy {
    background: #e53935; /* rot */
}

.availability-times {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.7;
}

.now-indicator {
    position: absolute;
    width: 2px;
    height: 180%;
    background: var(--color-secondary);
    top: -40%;
    z-index: 85;
    pointer-events: none;
}


.spinner[hidden] {
    display: none;
}

.error {
    color: #b3261e;
    margin-top: 6px;
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* --------------------------------------------------
   BUCHUNG: DATUM / KLICK-RANGE-KALENDER / MELDUNG
-------------------------------------------------- */

.book-bar-section {
    margin-top: 20px;
}

.book-section-title {
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-primary-bg);
}

.book-date-wrap {
    position: relative;
    margin-bottom: 8px;
}

/* Datum + zusammengefasstes Uhrzeit-Feld in EINER Zeile. */
.book-fields-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 8px 0 10px;
}

.book-fields-row .book-date-wrap {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-width: 0;
}

.book-time-wrap {
    position: relative;
    flex: 0 0 auto;
}

/* Kombiniertes Feld: zeigt "08:00 – 16:30", öffnet den 15-Min-Picker. */
.book-time {
    display: block;
    box-sizing: border-box;
    text-align: left;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-time:hover {
    border-color: var(--color-secondary);
    background: var(--color-action-bg);
}

.book-time:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
    background: var(--color-action-bg);
}

/* Popover mit Von/Bis-Auswahl (15-Min-Takt). position:fixed + JS-Positionierung,
   damit es nicht vom overflow der Sidebar abgeschnitten wird (wie der Kalender). */
.book-time-popover {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    padding: 14px 18px;
}

.book-time-popover[hidden] {
    display: none;
}

/* Ein Stepper (Von bzw. Bis): Label, große Uhrzeit, darunter −/+ */
.time-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.time-step__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9aa5b1;
}

.time-step__value {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary-bg);
    font-variant-numeric: tabular-nums;
}

/* Stunden-/Minuten-Auswahl sieht aus wie die große Uhrzeit, öffnet aber bei
   Klick das native Dropdown. */
.time-step__sel {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    min-width: 2.2em; /* Platz für zwei Ziffern (sonst abgeschnitten) */
}

.time-step__sel:hover {
    background: #eef3f8;
}

.time-step__sel:focus {
    outline: none;
    background: #eef3f8;
}

/* Mobil (Touch): kleinere Schrift – die native Auswahlliste folgt der
   Schriftgröße des Selects und wäre bei 22px zu groß; zudem etwas mehr Breite. */
@media (pointer: coarse) {
    .time-step__value {
        font-size: 17px;
    }

    .time-step__sel {
        min-width: 2.6em;
        padding: 4px 6px;
    }
}

.time-step__btns {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.time-step__btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fafafa;
    color: var(--color-primary-bg);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.time-step__btn:hover {
    background: var(--color-action-bg);
    border-color: var(--color-secondary);
}

.time-step__arrow {
    color: #9aa5b1;
    font-size: 18px;
}

.book-date {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    color: var(--color-secondary);
    font-size: 14px;
    font-family: "Segoe UI", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.book-date:hover {
    border-color: var(--color-secondary);
    background: var(--color-action-bg);
}

.book-date:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
    background: var(--color-action-bg);
}

/* position:fixed (statt absolute) + Positionierung per JS (positionPopover()
   in bookingCalendar.js, in Viewport-Koordinaten) – sonst wird das Popover vom
   scrollenden/überlaufenden Sidebar-Container (.sidebar, .current-ressource)
   abgeschnitten, da position:absolute innerhalb eines overflow-Vorfahren
   trotzdem dessen Clipping unterliegt. top/left hier sind nur ein Fallback,
   bevor JS die tatsächliche Position setzt. */
.book-cal-popover {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1500; /* über dem Sheet (1000) und Header (1001) */
    width: 280px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    padding: 10px;
    color: var(--color-secondary);
    user-select: none;
}

.book-cal-popover[hidden] {
    display: none;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cal-title {
    font-size: 14px;
    font-weight: 700;
}

.cal-nav-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 2px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-primary-bg);
}

.cal-nav-btn:hover {
    background: #eef3f8;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-weekhead {
    margin-bottom: 4px;
}

.cal-wd {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    padding: 2px 0;
}

.cal-wd.weekend {
    color: #c08a8a;
}

.cal-day {
    text-align: center;
    font-size: 13px;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.cal-day:hover:not(.disabled):not(.blank):not(.limit-exceeded):not(.in-range):not(.range-start):not(.range-end):not(.single) {
    background: #eef3f8;
}

.cal-day.blank {
    cursor: default;
}

.cal-day.weekend {
    color: #c08a8a;
}

/* Tage aus Vor-/Folgemonat bewusst OHNE eigene Farbe: sie sehen wie die Tage
   des aktuellen Monats aus. Wochenenden dort bleiben durch .cal-day.weekend
   weiterhin leicht rot. (.other-month bleibt als Klasse für die Logik erhalten.) */

.cal-day.disabled {
    color: #cdcdcd;
    cursor: not-allowed;
}

.cal-day.limit-exceeded {
    color: #cdcdcd;
    cursor: not-allowed;
}

.cal-day.in-range {
    background: #dbeafe;
    border-radius: 0;
}

.cal-day.range-start,
.cal-day.range-end,
.cal-day.single {
    background: var(--color-primary-bg);
    color: #fff;
    font-weight: 700;
}

.cal-day.range-start {
    border-radius: 6px 0 0 6px;
}

.cal-day.range-end {
    border-radius: 0 6px 6px 0;
}

.cal-day.single {
    border-radius: 6px;
}

.cal-note {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Wochentag-Auswahl im Buchungszeitraum-Popup */
.cal-weekdays {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.cal-weekdays__title {
    font-size: 11px;
    font-weight: 500;
    color: #9aa6b2;
    margin-bottom: 7px;
}

.cal-weekdays .weekday-selector {
    margin-bottom: 0;
}

/* --------------------------------------------------
   WOCHENTAG-AUSWAHL – „Editorial Underline"
-------------------------------------------------- */
.weekday-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.weekday {
    flex: 1 1 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.weekday input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday span {
    position: relative;
    display: inline-block;
    padding: 4px 2px 7px;
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #93a1ae;
    transition: color 0.18s ease;
}

/* Unterstrich-Indikator: wächst aus der Mitte */
.weekday span::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #163a5c;
    transition: width 0.2s ease, background 0.18s ease;
}

/* Wochenende: Grundton etwas heller */
.weekday.weekend span {
    color: #aab4bf;
}

/* Hover (nicht ausgewählt): Text dunkler, zarte hellblaue Linie */
.weekday:hover input:not(:checked) + span {
    color: #283642;
}

.weekday:hover input:not(:checked) + span::after {
    width: 24px;
    background: #cadcef;
}

/* Ausgewählt: Navy-Text (Stärke bleibt 500) + kurzer Navy-Balken */
.weekday input:checked + span {
    color: #163a5c;
}

.weekday input:checked + span::after {
    width: 24px;
    background: #163a5c;
}

/* Wochenende ausgewählt: Rot statt Navy */
.weekday.weekend input:checked + span {
    color: #d05f6b;
}

.weekday.weekend input:checked + span::after {
    background: #d05f6b;
}

/* Tastatur-Fokus: dezent wie Hover */
.weekday input:focus-visible:not(:checked) + span {
    color: #283642;
}

.weekday input:focus-visible:not(:checked) + span::after {
    width: 24px;
    background: #cadcef;
}


/* --------------------------------------------------
   BADGES
-------------------------------------------------- */

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.badge.green {
    background: #d4f7d4;
    color: #1c7c1c;
}

.badge.red {
    background: #fbdcdc;
    color: #a10000;
}

.badge.gray {
    background: #eee;
    color: #555;
}

.badge.yellow {
    background: #fff3cd;
    color: #856404;
}

/* --------------------------------------------------
   SELECTORS (Floor / Availability)
-------------------------------------------------- */

.floor-selector,
.availability-selector {
    position: relative;
    background: var(--color-primary);
    color: var(--color-primary-bg);
    font-family: "Segoe UI", sans-serif;
    padding: 15px 0 15px 20px
}

.floor-selector {
    min-width: 290px;
}

.floor-bar {
    display: flex;
}

.floor-btn.active {
    color: var(--color-primary-bg);
    background: #ffd628;
    font-weight: 700;
}

.floor-btn {
    border-radius: 0;
    border-right: 1px solid gray !important;
}

.floor-btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.floor-btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-right: 0 !important;
}

/* Inputs */
input[type="date"],
input[type="time"] {
    color: var(--color-secondary);
    padding: 6px 10px;
    width: 120px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
    transition: all 0.2s ease;
}

.availability-selector input:hover {
    border-color: var(--color-secondary);
    background: var(--color-action-bg);
}

.availability-selector input:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.25);
    background: var(--color-action-bg);
}

/* Buttons */
button,
.floor-selector button {
    color: var(--color-secondary);
    padding: 6px 12px;
    border: none;
    border-radius: 0;
    background: #f1f1f1;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.availability-selector button {
    color: var(--color-primary-bg);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #ffd628;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.floor-selector button:hover,
.availability-selector button:hover {
    background: #e1e1e1;
}

.floor-selector button:active,
.availability-selector button:active {
    transform: scale(0.97);
}

.floor-selector button:disabled,
.availability-selector button:disabled {
    color: #979797;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

/* Buchungszeitraum: gleicher horizontaler Abstand wie .ressource-content */
.availability-selector {
    padding: 16px 18px;
}

/* Datums-Button, Uhrzeit-Feld, Kalender-Pfeile und Buchen-Button nicht gelb
   einfärben (überschreibt die allgemeine gelbe .availability-selector button). */
.availability-selector .book-date,
.availability-selector .book-time {
    background: #fafafa;
    color: var(--color-secondary);
    font-weight: 400;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
}

.availability-selector .book-date:hover,
.availability-selector .book-time:hover {
    background: var(--color-action-bg);
}

.availability-selector .cal-nav-btn {
    background: transparent;
    color: var(--color-primary-bg);
}

.availability-selector .cal-nav-btn:hover {
    background: #eef3f8;
}

.availability-selector .btn-primary {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

.availability-selector .btn-primary:hover {
    background: #002a4f;
}

/* Kopfzeile "Buchungszeitraum": Titel links, Heute/Morgen rechts auf gleicher
   Höhe (alle Ansichten). */
.availability-selector .book-period-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.availability-selector .book-period-title {
    font-weight: bold;
}

.availability-selector .book-period-quick {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex: none;
}

/* Heute/Morgen als klickbare Chips (statt gelber Buttons): neutral, aktiv =
   navy gefüllt/weiße Schrift. */
.availability-selector .book-period-quick button {
    padding: 6px 14px;
    border: none;
    border-radius: 999px;
    background: #eef1f5;
    color: var(--color-primary-bg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.availability-selector .book-period-quick button:hover {
    background: #e2e7ee;
}

.availability-selector .book-period-quick button.is-active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.availability-selector .book-period-quick button.is-active:hover {
    background: #002a4f;
}

/* Buchen-Button-Zeile: rechtsbündig (wie zuvor); im Portrait vollbreit. */
.availability-selector .book-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}


/* --------------------------------------------------
   LOADING STATES & INLINE PROGRESS
-------------------------------------------------- */

/* Dot loading state: visible spinner */
.dot.loading, .dot.loading-error {
    background: rgba(90, 100, 115, 0.7) !important;
    filter: none !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3) !important;
}

.dot.loading::after {
    content: "" !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    aspect-ratio: auto !important;
    line-height: 0 !important;
    border: 2.5px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    animation: dotLoadSpin 0.6s linear infinite !important;
}

.room.loading-error {
    backdrop-filter: brightness(0.5);
}

.room.loading {
    backdrop-filter: saturate(0);
}

@keyframes dotLoadSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Inline progress bar (below header) */
.inline-progress {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 500;
    pointer-events: none;
    transition: opacity 0.4s;
}

.inline-progress__track {
    width: 100%;
    height: 7px;
}

.inline-progress__fill {
    height: 100%;
    width: 0;
    background: #ffd628;
    border-radius: 0 2px 2px 0;
    transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
}

.inline-progress__label {
    display: inline-block;
    margin: 6px 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    color: #5a6a7a;
    background: white;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
}


/* --- Einfaches Modal/Popup --- */
.modal {
    position: fixed;
    inset: 0;
    display: none; /* per JS auf block */
    align-items: center;
    justify-content: center;
    z-index: 1100; /* über Header (1001) und Zoom-Knöpfen (1000) */
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(1px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 32px));
    background: #ffffff;
    color: #111827;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    padding: 18px 18px 12px 18px;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.modal__title {
    font: 700 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
}

.modal__close {
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.modal__close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal__content {
    font: 400 14px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #374151;
}

.modal__content p {
    margin: 0 0 10px 0;
}

.modal__content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.modal__footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.app-version {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.copilot-tile {
    margin: 16px 0 18px 0;
    padding: 16px;
    border-radius: 12px;
    color: #2e2e2e;
    background: white;
    box-shadow: 0 0 11px rgba(0, 0, 0, 0.18);
    border: 1px solid #cccccc;
}

.copilot-tile__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.copilot-tile__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #b05cff 0%, #7c4dff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.copilot-tile__text {
    min-width: 0;
}

.copilot-tile__eyebrow {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 2px;
}

.copilot-tile__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.copilot-tile__subtitle {
    font-size: 12px;
    line-height: 1.35;
    color: rgb(0 0 0 / 88%);
}

.copilot-tile__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #5b5ce2;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease;
}

.copilot-tile__button:hover {
    background: #4a4bd1;
    transform: translateY(-1px);
    text-decoration: none;
}

.copilot-tile__button:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .copilot-tile {
        padding: 14px;
    }

    .copilot-tile__title {
        font-size: 15px;
    }

    .copilot-tile__subtitle {
        font-size: 11px;
    }

    .copilot-tile__button {
        width: 100%;
    }
}

/* --------------------------------------------------
   MOBIL (inkl. Querformat): "App installieren" ausblenden und den
   Hilfe-&-Infos-Dialog um ca. 1/3 verkleinern, damit alles auf eine Seite passt.
-------------------------------------------------- */
@media (max-width: 480px), (max-height: 480px) {
    /* Installations-Button auf Mobilgeräten nicht anzeigen. */
    .install-btn {
        display: none !important;
    }

    /* Dialog kompakter: weniger Innenabstand, Höhe begrenzen. */
    .modal__dialog {
        padding: 12px 12px 8px 12px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .modal__header {
        margin-bottom: 5px;
    }

    .modal__title {
        font-size: 12px;
    }

    /* Schrift ~1/3 kleiner (14 → ~9.5px) inkl. Absätzen. */
    .modal__content {
        font-size: 9.5px;
        line-height: 1.5;
    }

    .modal__content p {
        margin: 0 0 6px 0;
    }

    .modal__content code {
        font-size: 9px;
    }

    .app-version {
        font-size: 8px;
    }

    /* Copilot-Kachel ebenfalls ~1/3 kleiner und kompakter. */
    .copilot-tile {
        margin: 10px 0 12px 0;
        padding: 10px;
    }

    .copilot-tile__top {
        gap: 8px;
    }

    .copilot-tile__icon {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        font-size: 12px;
        border-radius: 6px;
    }

    .copilot-tile__eyebrow {
        font-size: 8px;
    }

    .copilot-tile__title {
        font-size: 11px;
    }

    .copilot-tile__subtitle {
        font-size: 8px;
    }

    .copilot-tile__button {
        margin-top: 8px;
        padding: 6px 10px;
        font-size: 9.5px;
    }
}

/* --------------------------------------------------
   BILD-LIGHTBOX (Ressourcenbild groß)
   Standardmäßig versteckt; wird per JS nur im Portrait geöffnet.
-------------------------------------------------- */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 20, 40, 0.86);
    cursor: zoom-out;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------
   LEGENDE als kompakte Pill – auf Touch-Geräten (Mobil) in BEIDEN
   Orientierungen (Portrait UND Querformat). Desktop (pointer: fine)
   behält die klassische Legende unten links.
-------------------------------------------------- */
@media (pointer: coarse) {
    /* Kompakte Pill oben links auf der Karte (Legende liegt im .viewport,
       der position:relative ist). Klein und einzeilig. */
    .legend {
        position: absolute;
        top: 8px;
        left: 8px;
        bottom: auto;
        width: auto;
        z-index: 90;
        flex-direction: row;
        align-items: center;
        gap: 11px;
        padding: 5px 11px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 999px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        color: var(--color-secondary);
    }

    .legend > div {
        padding: 0;
        align-items: center;
        gap: 5px;
        font-size: 10px;
        font-weight: 600;
    }

    .legend > div > span {
        padding-left: 0;
    }

    /* Nur ein kleiner Farbpunkt je Eintrag (Raum-Swatch + Symbol-Badge weg). */
    .legend .room-legend {
        display: none;
    }

    .legend .dot-legend {
        width: 9px;
        height: 9px;
        box-shadow: none;
    }

    .legend .dot-legend::after {
        display: none !important;
    }

    .legend .dot-legend.available {
        background: var(--color-available);
    }

    .legend .dot-legend.unavailable {
        background: var(--color-unavailable);
    }

    .legend .dot-legend.unknown {
        background: var(--color-unknown);
    }

    /* "Hilfe & Infos" auf Mobil nicht unten anzeigen – dort steckt es im
       Benutzermenü. Auf dem Desktop bleibt der Button unten bei der Legende.
       Regel kommt aus toast.js (nach style.css injiziert) → !important. */
    .bottom-bar {
        display: none !important;
    }

    /* ---- Ressourcen-Karte (Titel + Bild-Design) – Portrait UND Querformat ---- */

    /* Hebt die feste height: 10000px auf, damit der Container mitscrollt. */
    .current-ressource {
        height: auto;
        position: relative;
        padding: 0 16px;
    }

    /* Vorschaubild (58×58) statt Vollbreiten-Banner; Name/Beschreibung fließen
       rechts daneben, Verfügbarkeit & Chips darunter (clear:left). */
    .ressource-banner {
        float: left;
        width: 58px;
        height: 58px;
        margin: 2px 12px 8px 0;
        border-radius: 12px;
        border: 1px solid #e4e9ef;
        background-color: #f1f4f7;
        cursor: zoom-in; /* antippen → Bild groß (Lightbox) */
    }

    .ressource-content {
        padding: 0;
    }

    .ressource-content h3 {
        margin: 2px 0 3px;
        font-size: 16.5px;
    }

    .ressource-description {
        margin: 0;
        padding: 0;
        font-size: 12px;
        color: #64748b;
        max-width: none;
    }

    #resourceAvailBar,
    .availability-days {
        clear: left;
    }

    /* Statuszeilen als Chip-Reihe (ohne Label-Präfixe): Status · Buchung · Typ.
       Status- und Buchung-Chip tragen die Badge-Farbe (grün/gelb/rot/grau),
       der Typ-Chip ist eine neutrale graue Pille. */
    .ressource-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        clear: left;
        margin-top: 12px;
    }

    /* Disabled (Default-Ansicht, opacity 0.5): "Unbekannt"/"Nicht buchbar"
       nicht anzeigen. */
    .ressource-chips.is-disabled {
        display: none;
    }

    .ressource-chips .ressource-row {
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        background: transparent;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
    }

    /* Sämtliche Label-Präfixe ("TYP", "BUCHUNG", "Status") entfallen. */
    .ressource-chips .ressource-row > span:first-child {
        display: none;
    }

    /* Reihenfolge: Status → Buchung → Typ. */
    .ressource-chips .ressource-row:nth-child(1) { order: 3; } /* Typ  */
    .ressource-chips .ressource-row:nth-child(2) { order: 2; } /* Buchung */
    .ressource-chips .ressource-row:nth-child(3) { order: 1; } /* Status */

    /* Typ-Chip komplett entfernen (nur Status + Buchung zeigen). */
    .ressource-chips .ressource-row:nth-child(1) {
        display: none;
    }

    /* Buchung- und Status-Chip: das Badge füllt die Pille, Farbe = Badge-Klasse
       (Buchbar=grün, Buchbar (beschränkt)=gelb, Nicht buchbar=rot, …). */
    .ressource-chips .ressource-row:nth-child(2) .badge,
    .ressource-chips .ressource-row:nth-child(3) .badge {
        padding: 7px 12px;
        border-radius: 999px;
        font-size: 12px;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* --------------------------------------------------
   QUERFORMAT (mobil / Touch): feste Sidebar-Breite.
   Die Sidebar ist hier position:absolute ohne feste width; mit der neuen
   Ressourcen-Karte (Beschreibung max-width:none) würde sie sich sonst per
   shrink-to-fit auf die ungebrochene Textzeile aufblähen.
-------------------------------------------------- */
@media (orientation: landscape) and (pointer: coarse) {
    /* Schmaler als auf dem Desktop: im Querformat ist die Fläche knapp und die
       Karte soll möglichst viel davon behalten. Die min-width der Basisregel
       (405px) muss dazu aufgehoben werden, sonst gewinnt sie gegen width. */
    .sidebar {
        width: 340px;
        min-width: 0;
        padding-top: 10px; /* mehr Platz oberhalb der Ressourcen-Karte */
    }

    /* Einklapp-Knopf an die neue Sidebar-Kante (Basisregel: 405px). */
    .sidebar-toggle {
        right: 340px;
    }

    /* Buchungszeitraum nicht fixiert: rutscht an den unteren Rand, wenn in der
       Sidebar noch Platz ist. Ist viel zu sehen (Inhalt überläuft), löst sich
       der Auto-Abstand auf und man scrollt zum Buchungszeitraum hinunter. */
    .availability-selector {
        margin-top: auto;
    }
}

/* --------------------------------------------------
   PORTRAIT (mobil / Touch – kein Desktop)

   Erkennung: (orientation: portrait) and (pointer: coarse)
   - pointer: coarse = primäres Eingabegerät ist Touch (Smartphone/Tablet).
   - Ein schmales/hohes Desktop-Fenster meldet pointer: fine → greift NICHT.

   Layout: vertikal scrollende Seite – Kopf (mit Titel) → Karte → horizontale
   Legende → Sidebar (von unten, im Fluss, nicht einklappbar).
   Steht am Dateiende, damit es die breitenbasierten Mobile-Queries überschreibt.
-------------------------------------------------- */
@media (orientation: portrait) and (pointer: coarse) {
    /* Kein Seiten-Scroll: Karte füllt die Fläche, das Bottom-Sheet liegt fix
       darüber und scrollt bei Bedarf intern.
       overscroll-behavior: none verhindert zusätzlich das Mitziehen/„Gummiband"
       der GANZEN Seite, wenn im Sheet (z. B. auf dem Ressourcen-Titel) vertikal
       gewischt wird und dort gerade nichts zu scrollen ist – dann landet die
       Geste sonst auf der Seite. */
    html,
    body {
        height: 100vh;
        overflow: hidden;
        overscroll-behavior: none;
    }

    /* Ressourcen-Popup auf schmalen Displays einpassen. */
    .res-popup {
        width: min(340px, calc(100vw - 24px));
        max-height: 60vh;
    }

    /* Kopf als Hero (Version 2a):
         Zeile 1: Logo | Begrüßung "Moin, <Vorname>" (mittig) | Foto/Avatar
         Zeile 2: Auswahlboxen (Gebäude + Etage), volle Breite
       Hintergrund = Etagen-Foto (ressource.png, per JS als --floor-hero gesetzt)
       mit Blau-Verlauf als Filter-Overlay. Das Bild selbst bleibt unverändert;
       der Blaufilter entsteht rein durch den vorgelagerten linear-gradient.
       .header-center/.title werden per display:contents aufgelöst, damit
       Begrüßung und Auswahl-Reihe direkt im Header-Grid liegen. */
    .header {
        height: auto;
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 14px 16px;
        column-gap: 8px;
        row-gap: 10px;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        background-image:
            linear-gradient(180deg,
                rgba(0, 42, 79, 0.5) 0%,
                rgba(0, 42, 79, 0.78) 55%,
                rgba(0, 42, 79, 0.97) 100%),
            var(--floor-hero, none);
        background-size: cover;
        background-position: center 35%;
        background-repeat: no-repeat;
    }

    .header-brand,
    .header-center,
    .title {
        display: contents;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        max-height: 24px;
    }

    /* Titel + Trenner im Portrait durch die Begrüßung ersetzt. */
    .header-title,
    .header-divider {
        display: none;
    }

    /* In derselben Zeile wie Logo und Avatar, mittig zwischen beiden. */
    .header-greeting {
        display: block;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        text-align: center;
        color: var(--color-primary);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }

    .plan-selector-row {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: stretch;
        gap: 8px;
        position: relative; /* Bezug für die Dropdown-Panels */
    }

    /* Auswahlboxen im Portrait über die volle Breite strecken (Chip-Design
       selbst liegt jetzt global auf .loc-select__trigger). */
    .plan-selector-row .loc-select {
        flex: 1 1 0;
        min-width: 0;
    }

    .plan-selector-row .loc-select__trigger {
        width: 100%;
    }

    /* Dropdown-Panels an der (mittigen) Auswahl-Reihe ausrichten statt am
       einzelnen Trigger – sonst zentriert sich das breite Panel auf einem
       linken Trigger und wird links abgeschnitten. */
    .loc-select {
        position: static;
    }

    /* Karte füllt den Raum unter dem Header (Pan/Pinch-Zoom bleibt aktiv);
       das Bottom-Sheet liegt fix darüber. position:relative = Bezug für den
       überlagerten Ladebalken. */
    .content {
        height: auto;
        flex: 1 1 auto;
        min-height: 0;
        order: 1;
        position: relative;
    }

    /* Ladebalken überlagert die Oberkante der Karte, statt sie nach unten zu
       verschieben. Der Status-Text sitzt rechts (die Legende liegt links).
       top:0 !important hebt das top:50px !important der Breiten-Mobile-Query auf. */
    .inline-progress {
        position: absolute;
        top: 0 !important;
        left: 0;
        right: 0;
        text-align: right;
    }

    /* Status-Pille nach rechts und unter die Legendenzeile, damit sie die
       (links liegende) Legende auch bei langem Text nicht überdeckt. */
    .inline-progress__label {
        margin: 24px 12px 0 0;
    }

    /* Sidebar als echtes Bottom-Sheet: fix am unteren Rand, liegt über der
       Karte, runde obere Ecken. Zwei Zustände über max-height animiert:
       ausgeklappt (Inhalt bis max. 82vh, scrollt intern) ↔ Peek. */
    .sidebar {
        position: fixed !important;
        left: 0;
        right: 0 !important;
        bottom: 0;
        top: auto !important;
        width: 100%;
        min-width: 0;
        height: auto !important;
        max-height: 82vh;
        transform: none !important; /* hebt einen evtl. .collapsed-Zustand auf */
        z-index: 1000; /* über der Karte, unter den Header-Dropdowns (1001) */
        border-left: none;
        border-top: none;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 28px rgba(0, 20, 40, 0.22);
        filter: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* Wischen im Sheet ist ausschließlich dessen eigenes vertikales Scrollen –
           nicht ein Pan/Zoom der Seite. */
        touch-action: pan-y;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        /* transform NICHT mit animieren: Transitions stehen in der Kaskade ÜBER
           !important, ein transform-Übergang würde also das `transform: none
           !important` oben überstimmen und nach dem Ziehen als Rest-Versatz
           „hängen bleiben". Das Live-Ziehen braucht ohnehin keinen Übergang. */
        transition: max-height 0.32s ease;
    }

    /* Während des Ziehens folgt das Sheet dem Finger (translateY per JS) –
       ohne Übergang, sonst würde es der Geste nachlaufen. Gilt auch für die
       synchrone Peek-Messung beim Drag-Start. */
    .sidebar.sheet-dragging {
        transition: none !important;
    }

    /* .sidebar ist (Basis-CSS) ein Flex-Container. Ohne flex-shrink:0 werden
       hoher Inhalt und Flex-Kinder vom Browser bei erreichtem max-height
       proportional GESTAUCHT statt (wie hier gewollt: overflow-y:auto) intern
       zu scrollen – flex-basis-Verteilung erfolgt schon vor dem Overflow. */
    .sidebar > * {
        flex-shrink: 0;
    }

    /* Peek-Zustand: nur Griff, Vorschaubild, Titel und Beschreibung.
       Verfügbarkeitsleiste, Chips und Buchung sind ausgeblendet. Die ganze
       Sheet-Fläche ist antippbar (JS) → Zeiger-Cursor. */
    .sidebar.sheet-collapsed {
        max-height: 50vh;
        overflow: hidden;
        cursor: pointer;
    }

    .sidebar.sheet-collapsed #resourceAvailBar,
    .sidebar.sheet-collapsed .availability-days,
    .sidebar.sheet-collapsed .ressource-chips,
    .sidebar.sheet-collapsed .availability-selector {
        display: none;
    }

    /* Griff zum Auf-/Zuklappen (Peek ↔ Voll) – bleibt beim Scrollen oben. */
    .sheet-handle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 25px;
        padding: 0;
        border: none;
        background: var(--color-primary);
        cursor: pointer;
        position: sticky;
        top: 0;
        z-index: 1;
        /* vertikales Ziehen am Griff löst die Drag-Geste (JS) aus, statt vom
           Sheet-Scroll abgefangen zu werden. */
        touch-action: none;
    }

    .sheet-handle__grip {
        width: 44px;
        height: 5px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 99px;
        background: #d5dbe2;
    }

    /* Im zugeklappten Zustand ein größeres Tap-/Zieh-Ziel. */
    .sidebar.sheet-collapsed .current-ressource {
        height: 85px;
    }

    /* Buchungszeitraum: großzügiger Abstand unten (Safe-Area über das Sheet). */
    .availability-selector {
        padding-bottom: 20px;
    }

    /* "Zeitraum buchen" vollbreit und gold als primäre Aktion. */
    .availability-selector .btn-primary {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 4px;
        padding: 13px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 700;
        color: #00294e;
        background: var(--color-accent-gold);
    }

    .availability-selector .btn-primary:hover {
        background: #e3bc1e;
    }

    /* Kein Einklapp-Button, keine Zoom-Knöpfe im Portrait. */
    .sidebar-toggle {
        display: none;
    }

    .zoom-controls {
        display: none !important;
    }
}