/* ==========================================================================
   campwiigo – Komponenten-Stile (global)
   Design-Tokens, Basis, Buttons und Hilfsklassen: siehe theme.css
   Komponenten-spezifisches Layout liegt, wo möglich, in den *.razor.css-Dateien.
   Breakpoints: 576 / 768 / 992 / 1200 (Bootstrap)
   ========================================================================== */

/* ---------- Basis ---------- */
h1:focus {
    outline: none;
}

.content {
    min-height: 0;
}

.cursor-link {
    cursor: pointer;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 6000;
    width: min(40rem, calc(100vw - 2rem));
    padding: 0.85rem 3rem 0.85rem 1.1rem;
    color: var(--crb-text);
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-left: 4px solid var(--crb-danger);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-lg);
}

    #blazor-error-ui .dismiss {
        position: absolute;
        right: 0.6rem;
        top: 0.45rem;
        border: 0;
        background: transparent;
        font-size: 1.4rem;
        line-height: 1;
        color: var(--crb-text-muted);
        cursor: pointer;
    }

.blazor-error-boundary {
    padding: 1rem 1.25rem;
    color: var(--crb-text);
    background: var(--crb-danger-50);
    border: 1px solid #F3BDBF;
    border-radius: var(--crb-radius-md);
}

    .blazor-error-boundary::after {
        content: "Ein Fehler ist aufgetreten.";
    }

/* Nach-oben-Button der Startseite */
.index-fab.cw-fab {
    background: var(--crb-primary);
    border-color: var(--crb-primary);
    box-shadow: var(--crb-shadow-md);
}

/* ---------- Flaggen ---------- */
.countryflag {
    height: 2.5rem;
    padding-top: 0.2rem;
    padding-right: 1rem;
    margin: 0;
}

    .countryflag.small {
        height: 1.2rem;
        width: 1.2rem;
        padding: 0;
        border: 1px solid var(--crb-border-strong);
        border-radius: var(--crb-radius-xs);
        object-fit: cover;
    }

a .countryflag {
    height: 1rem;
    padding-top: 0.2rem;
    padding-right: 0.5rem;
    margin: 0;
}

/* ---------- Karte (Reiseplaner) ---------- */
.map {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}

.mapTopContainer {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 4rem;
    z-index: 400;
    display: flex;
    flex-wrap: wrap-reverse;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

    .mapTopContainer > * {
        pointer-events: auto;
    }

.mapTopContainerButton {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    min-width: 3rem;
    padding: 0 1rem;
    color: var(--crb-primary);
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-pill);
    box-shadow: var(--crb-shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color var(--crb-transition), color var(--crb-transition), box-shadow var(--crb-transition);
}

    .mapTopContainerButton:hover {
        background-color: #fff;
        box-shadow: var(--crb-shadow-lg);
    }

    .mapTopContainerButton.is-active {
        color: #fff;
        background: var(--crb-primary);
        border-color: var(--crb-primary);
    }

.mapTopContainer .d-flex {
    gap: 0.5rem;
}

.mapTextBox {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1 1 18rem;
    min-width: min(18rem, 100%);
    max-width: 40rem;
    height: 3.25rem;
    padding: 0 0.3rem 0 0.75rem;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-pill);
    box-shadow: var(--crb-shadow-md);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

    .mapTextBox .btn-icon {
        width: 2.6rem;
        height: 2.6rem;
    }

.mapTextBoxSearchIcon {
    display: grid;
    place-items: center;
    width: 2rem;
    color: var(--crb-text-muted);
}

.mapTextBoxInput {
    flex: 1;
    min-width: 0;
}

    .mapTextBoxInput .cw-input, .mapTextBoxInput .cw-combo {
        border: 0 !important;
        background: transparent;
        box-shadow: none !important;
    }

@media (max-width: 575.98px) {
    .mapTopContainer {
        left: 0.5rem;
        right: 3.25rem;
    }

    .mapTopContainerLabel {
        display: none;
    }

    .mapTopContainerButton {
        padding: 0;
        justify-content: center;
    }
}

.placelistplacecomponent {
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    padding: 1rem;
}

.journeyAssistantIcon {
    height: 24px;
    width: 24px;
    margin-inline: 0.75rem;
}

.mapSearchImage {
    height: 28px;
    width: 28px;
    border-radius: var(--crb-radius-sm);
}

.journeyWizardContainer {
    min-height: 650px;
    height: 100%;
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
}

.journeyTimelineContainer {
    width: 100%;
    height: calc(100% - 80px);
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--crb-surface);
}

.journeyDialogAssistantGroup {
    padding: 1rem 0 0 0.75rem;
    margin: 0.25rem 0 1rem;
}

.journeyDialogAssistantItem {
    width: 20rem;
    padding-inline: 0.75rem;
}

.journeyDialogAssistantPageItem {
    padding-inline: 0.75rem;
}

/* ---------- Bilder, Karussell ---------- */
.editImage {
    display: block;
    width: 286px;
    height: 180px;
    margin: auto;
    font-size: var(--crb-fs-sm);
    pointer-events: none;
}

.carouselImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-carousel-section .carousel-sample {
    max-width: 100%;
    height: clamp(240px, 52vw, 520px);
    margin: 0;
    background-color: var(--crb-surface-sunken);
    border-radius: var(--crb-radius-xl);
    overflow: hidden;
    box-shadow: var(--crb-shadow-md);
}

.default-carousel .cw-carousel-slide .img-container {
    height: 100%;
    margin: 0;
    text-align: center;
}

    .default-carousel .cw-carousel-slide .img-container > div,
    .default-carousel .cw-carousel-slide .img-container > div > img {
        width: 100%;
        height: 100%;
    }

/* Bildunterschrift als Verlauf am unteren Rand */
.default-carousel .cw-carousel-slide .img-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 3rem 1.25rem 2.5rem;
    color: #fff;
    font-size: var(--crb-fs-base);
    text-align: left;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 38, 0.82) 100%);
}

    .default-carousel .cw-carousel-slide .img-caption a,
    .default-carousel .cw-carousel-slide .img-caption small {
        color: rgba(255, 255, 255, 0.85);
    }

.image_icon {
    width: 40px;
    height: 40px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--crb-radius-sm);
}

.no-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.25rem 0.5rem;
    font-size: var(--crb-fs-sm);
    color: var(--crb-text);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-sm);
}

.Image {
    width: 100%;
}

/* ---------- Bewertungen ---------- */
.ratingcontainer {
    margin-top: var(--crb-space-7);
}

.ratingdetailcontainer {
    margin-top: var(--crb-space-5);
    padding: var(--crb-space-4);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-sm);
}

.ratingicon {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin: 5px 5px 0 10px;
}

.ratingiconsmall {
    width: 20px;
    height: 20px;
    object-fit: cover;
    margin: 5px 1px 0 0;
}

.icon-container {
    margin-left: 3px;
    width: 30px;
}

.POIRating .cw-rating {
    font-size: var(--crb-fs-sm);
}

/* ---------- Eigenschaften als Chips ---------- */
.propertypill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    margin: 0;
    font-size: var(--crb-fs-sm);
    font-weight: 600;
    color: var(--crb-text);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border-strong);
    border-radius: var(--crb-radius-pill);
    line-height: 1.3;
}

    .propertypill.is-yes {
        color: #0F5A3C;
        background: var(--crb-success-50);
        border-color: #B5DFCB;
    }

    .propertypill.no {
        color: var(--crb-text-subtle);
        background: transparent;
        border-style: dashed;
        text-decoration: line-through;
    }

/* ---------- Wetter ---------- */
.weathercontainer {
    min-width: 65px;
    padding-top: 1rem;
    margin-bottom: 2rem;
    background-color: var(--crb-info-50);
    border: 1px solid #BCD0FB;
    border-radius: var(--crb-radius-md);
}

.weathercontainer-weathertext {
    font-size: var(--crb-fs-xs);
}

.weathercontainer-image {
    width: 40px;
    margin-block: 5px;
}

.weathercontainer-values {
    padding: 3px 0 0 8px;
}

.weatherchart {
    height: 22rem;
}

.weatherchart-image {
    width: 50px;
}

/* ---------- Campingplatz-Ergebniskarte ---------- */
.campGroundContainer {
    margin-bottom: var(--crb-space-4);
    padding: var(--crb-space-4) var(--crb-space-4) var(--crb-space-3);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-sm);
    transition: box-shadow var(--crb-transition), border-color var(--crb-transition);
}

    .campGroundContainer:hover {
        border-color: var(--crb-primary-100);
        box-shadow: var(--crb-shadow-md);
    }

    .campGroundContainer.is-compact {
        padding: var(--crb-space-3);
        box-shadow: none;
    }

.cg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cg-location {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--crb-fs-sm);
    font-weight: 600;
    color: var(--crb-text-muted);
}

    .cg-location i {
        color: var(--crb-accent-strong);
    }

.cg-location-sep {
    color: var(--crb-text-subtle);
}

.cg-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-left: auto;
}

.campGroundContainer .Header {
    margin: 0 0 0.25rem;
    font-size: var(--crb-fs-xl);
    color: var(--crb-text);
}

    .campGroundContainer .Header a {
        color: inherit;
        text-decoration: none;
    }

        .campGroundContainer .Header a:hover {
            color: var(--crb-violet-strong);
        }

/* Anbieter-Tabs kompakt */
.cg-tabs .cw-tab {
    padding-inline: 0.75rem;
    font-size: var(--crb-fs-sm);
}

.cg-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--crb-radius-md);
    aspect-ratio: 16 / 10;
    background: var(--crb-surface-alt);
}

    .cg-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 500ms var(--crb-ease);
    }

    .cg-image:hover img {
        transform: scale(1.04);
    }

.campGroundContainer .RatingContainer {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    font-weight: 800;
    font-size: var(--crb-fs-sm);
    color: var(--crb-primary);
    background: var(--crb-sun);
    border-radius: var(--crb-radius-pill);
    box-shadow: var(--crb-shadow-sm);
}

.cg-highlights {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.3rem;
    font-size: var(--crb-fs-sm);
}

    .cg-highlights li {
        display: flex;
        gap: 0.5rem;
    }

        .cg-highlights li i {
            margin-top: 0.25rem;
            color: var(--crb-success);
            font-size: 0.8rem;
        }

.cg-matches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

    .cg-matches .propertypill:not(.no) {
        color: #0F5A3C;
        background: var(--crb-success-50);
        border-color: #B5DFCB;
    }

.campGroundContainer .campGroundText {
    color: var(--crb-text-muted);
    font-size: var(--crb-fs-sm);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campGroundContainer .ButtonBar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.search-results-toolbar {
    margin-bottom: var(--crb-space-2);
}

/* ---------- Campingplatz-Detailseite ---------- */
.cg-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--crb-space-4);
    margin-bottom: var(--crb-space-5);
}

.cg-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cg-detail-noimage {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 18rem;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.35);
    background: var(--crb-primary-gradient);
    border-radius: var(--crb-radius-xl);
}

.campgrounddetailmap {
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--crb-radius-xl);
    box-shadow: var(--crb-shadow-md);
}

.cg-detail-actions {
    margin-bottom: var(--crb-space-6);
}

.cg-detail-section {
    margin-top: var(--crb-space-7);
}

    .cg-detail-section > h2 {
        font-size: var(--crb-fs-2xl);
        margin-bottom: var(--crb-space-4);
    }

.cg-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: var(--crb-space-3);
}

.cg-rating-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--crb-space-4);
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-xs);
    cursor: help;
}

.cg-rating-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

    .cg-rating-label i {
        color: var(--crb-violet-strong);
    }

.cg-category {
    height: 100%;
    padding: var(--crb-space-5);
}

.cg-category-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--crb-fs-lg);
    margin-bottom: var(--crb-space-3);
}

.cg-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

    .cg-category-list > li {
        display: flex;
        gap: 0.6rem;
    }

        .cg-category-list > li > i {
            width: 1.1rem;
            margin-top: 0.25rem;
            text-align: center;
            color: var(--crb-text-subtle);
        }

.cg-category-pois {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
    font-size: var(--crb-fs-sm);
    color: var(--crb-text-muted);
}

/* ---------- Unwetterwarnungen (MeteoAlarm) ---------- */
.MeteoAlarm-Minor {
    background-color: var(--crb-info);
    color: #fff;
}

.MeteoAlarm-Moderate {
    background-color: var(--crb-warning);
    color: var(--crb-text);
}

.MeteoAlarm-Severe {
    background-color: var(--crb-accent-strong);
    color: #fff;
}

.MeteoAlarm-Extreme {
    background-color: var(--crb-danger);
    color: #fff;
}

/* ---------- Inhalte (CMS, Blogs) ---------- */
.content-list.crb-card {
    padding: var(--crb-space-5);
}

.content-list-title {
    margin-bottom: var(--crb-space-4);
}

.content-document {
    margin-bottom: var(--crb-space-6);
    padding-bottom: var(--crb-space-6);
    border-bottom: 1px solid var(--crb-border);
}

    .content-document:last-of-type {
        border: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.content-document-title {
    margin-bottom: var(--crb-space-3);
}

.content-document-date {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--crb-text-subtle);
    font-weight: 600;
}

.content-document-import {
    float: right;
}

/* Blog-Ansicht: Beiträge als Karten */
.content-list.is-blog .content-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: var(--crb-space-4);
}

.content-document.is-blog {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: var(--crb-space-5);
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-sm);
    transition: transform var(--crb-transition), box-shadow var(--crb-transition);
}

    .content-document.is-blog:hover {
        transform: translateY(-3px);
        box-shadow: var(--crb-shadow-md);
    }

    .content-document.is-blog .row > [class*="col-"] {
        width: 100%;
    }

    .content-document.is-blog .contentDocumentImage {
        width: 100%;
        max-width: none;
        height: 11rem;
        object-fit: cover;
        border-radius: var(--crb-radius-md);
        margin-bottom: var(--crb-space-3);
    }

.content-container-image {
    width: 100%;
    min-width: 180px;
    max-width: 350px;
    margin-right: 1rem;
    object-fit: cover;
    object-position: top left;
    border-radius: var(--crb-radius-md);
}

.contentDocumentImage {
    width: 100%;
    min-width: 180px;
    max-width: 350px;
    border: none;
    border-radius: var(--crb-radius-md);
    pointer-events: none;
}

.content-checklist td {
    padding: 0.35rem 0;
    vertical-align: top;
}

.content-checklist-marker {
    padding-right: 0.75rem !important;
    color: var(--crb-violet-strong);
}

/* ---------- Kartenmarker ---------- */
.mapMarker {
    flex: 1;
    padding: 3px 6px;
    font-size: var(--crb-fs-sm);
    white-space: nowrap;
    background-color: var(--crb-surface);
    border: 2px solid var(--crb-violet-strong);
    border-radius: 0 var(--crb-radius-md) var(--crb-radius-md) var(--crb-radius-md);
    box-shadow: var(--crb-shadow-md);
}

    .mapMarker::before {
        content: "";
        position: absolute;
        left: 0;
        top: -18px;
        transform: translate(-2px, 0);
        border-right: 18px solid transparent;
        border-bottom: 18px solid var(--crb-violet-strong);
    }

    .mapMarker .icon {
        width: 20px;
        height: 20px;
        padding: 4px;
        font-size: 12px;
        color: #fff;
        background-color: var(--crb-violet-strong);
        border-radius: 50%;
    }

    .mapMarker .rating,
    .mapMarker .propertiesmatch {
        position: relative;
        width: 30px;
        height: 30px;
        margin-left: 10px;
        padding: 4px;
        font-size: 14px;
        line-height: 15px;
        text-align: center;
        color: var(--crb-primary);
        background-color: var(--crb-sun);
        border-radius: 50%;
    }

        .mapMarker .rating::after,
        .mapMarker .propertiesmatch::after {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            top: -10px;
            left: -8px;
            font-size: 12px;
            color: var(--crb-accent-strong);
        }

        .mapMarker .rating::after {
            content: "\f005";
        }

        .mapMarker .propertiesmatch::after {
            content: "\f007";
        }

/* ---------- Seitenpanels auf der Karte (OffCanvas) ---------- */
.offcanvas {
    visibility: visible;
    position: absolute;
    z-index: 990;
    left: 0.75rem;
    top: 5.5rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-width: 30rem;
    padding-bottom: 1rem;
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-xl);
    box-shadow: var(--crb-shadow-lg);
}

.offcanvas-header {
    padding-bottom: 0.5rem;
    background-color: var(--crb-surface);
    border-bottom: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-xl) var(--crb-radius-xl) 0 0;
}

.offcanvas-title {
    font-family: var(--crb-font-heading);
    font-weight: 700;
}

.offcanvas-body {
    padding-top: 0.5rem;
}

.offcanvas-start {
    transform: translateX(calc(-100% - 20px));
}

.offcanvas-btn {
    top: calc(50% - 60px);
    left: min(calc(100vw - 41px), 30.75rem);
    width: 30px;
    height: 120px;
    margin: 0;
    padding: 0;
    color: var(--crb-primary);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: 0 var(--crb-radius-md) var(--crb-radius-md) 0;
    box-shadow: var(--crb-shadow-md);
}

.offcanvas .startjourneysearchcontainer [class*="col-lg-"] {
    width: 100%;
}

.offcanvas .startjourneysearchcontainer {
    margin: auto;
    padding-bottom: 1rem;
    background-color: var(--crb-surface);
    border: none;
    box-shadow: none;
}

.offcanvas .canvascontent {
    height: calc(100% - 80px);
}

.campGroundMapView {
    padding: 5px;
}

    .campGroundMapView:first-child {
        background-color: var(--crb-success-50);
        border-radius: var(--crb-radius-md);
    }

.wizzardContent {
    height: 370px;
    margin-top: 1rem;
    overflow: auto;
}

.wizzardButtons {
    display: flex;
}

.buttonDestination {
    margin-right: 5px;
}

/* ---------- Tabs: Inhalte erben die Schrift ---------- */
.cw-tab-panel {
    background: inherit;
    color: inherit;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
}

.cw-accordion-header {
    white-space: pre-wrap;
}

.cw-tree {
    overflow: auto;
}

/* ---------- Dashboard: Bausteine ---------- */
.dashboard-item {
    margin-bottom: var(--crb-space-6);
    padding: 0;
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-sm);
    overflow: hidden;
}

    .dashboard-item .cw-accordion-item.is-open > .cw-accordion-header {
        background-color: var(--crb-surface);
    }

    .dashboard-item .cw-accordion-header {
        white-space: unset;
    }

    .dashboard-item .cw-accordion-item:last-child {
        margin-bottom: 0;
    }

    .dashboard-item .cw-accordion {
        margin-bottom: 1rem;
    }

    .dashboard-item .title {
        padding: 1rem 1.25rem;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-2xl);
        font-weight: 700;
        color: var(--crb-text);
        background-color: var(--crb-surface);
        border-bottom: 1px solid var(--crb-border);
    }

    .dashboard-item .description {
        padding: 0.75rem 1.25rem;
        font-size: var(--crb-fs-sm);
        color: var(--crb-text-muted);
    }

    .dashboard-item .content {
        overflow: auto;
    }

        .dashboard-item .content .map {
            height: 20rem;
        }

        .dashboard-item .content .toolbarcontainer {
            font-size: var(--crb-fs-2xl);
            color: var(--crb-text);
            background-color: var(--crb-surface-alt);
            border-bottom: 1px solid var(--crb-border);
        }

.NearByCategories {
    padding: 0.5rem;
    text-align: center;
}

.NearByCategoriesSlider {
    max-width: 200px;
    margin-inline: auto;
}

.NearByDropDown {
    padding: 0.5rem;
}

    .NearByDropDown .Title {
        font-size: var(--crb-fs-xl);
    }

    .NearByDropDown .DateRange {
        font-size: var(--crb-fs-sm);
    }

.NearByPOIComponent {
    margin: 0 1rem 1rem;
}

    .NearByPOIComponent .img-small {
        width: 100%;
        max-height: 10rem;
        object-fit: contain;
    }

    .NearByPOIComponent .title {
        padding: 0;
        font-size: var(--crb-fs-lg);
        background-color: transparent;
        border: none;
    }

    .NearByPOIComponent .annotation {
        font-size: var(--crb-fs-xs);
        color: var(--crb-text-muted);
    }

    .NearByPOIComponent .truncate {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

.dashboard_weathercontainer {
    margin: 1rem;
    padding: 0.5rem;
}

    .dashboard_weathercontainer .title {
        margin: 0;
        padding: 0;
        font-size: var(--crb-fs-xl);
        background-color: unset;
        border: none;
    }

    .dashboard_weathercontainer .description {
        margin: 0 0 0 2rem;
        padding: 0;
        font-size: var(--crb-fs-lg);
    }

    .dashboard_weathercontainer img {
        width: 4rem;
        margin: 0.5rem auto 0;
        padding: 0.2rem;
    }

    .dashboard_weathercontainer div p {
        margin: 0;
    }

.dashboard_weathercontainer_daily {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem;
}

    .dashboard_weathercontainer_daily i {
        margin-right: 1rem;
    }

.dashboard_weatherdetails {
    flex: 1 1 0;
    min-width: 13rem;
    max-width: 15rem;
    padding: 0.75rem;
    color: var(--crb-text-on-dark);
    background: var(--crb-primary-gradient);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-md);
}

    .dashboard_weatherdetails .valuetext {
        margin-left: 0.5rem;
        font-size: var(--crb-fs-lg);
    }

    .dashboard_weatherdetails .title {
        color: #fff;
        font-weight: 600;
        font-size: var(--crb-fs-lg);
    }

    .dashboard_weatherdetails .imagecontainer {
        width: 100%;
        margin: auto;
        padding: 0.5rem;
        text-align: center;
    }

    .dashboard_weatherdetails .description {
        width: 100%;
        margin: 0 0 1rem;
        text-align: center;
        font-size: var(--crb-fs-lg);
    }

    .dashboard_weatherdetails .avgtemp {
        width: 100%;
        text-align: center;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-2xl);
        font-weight: 700;
    }

    .dashboard_weatherdetails .values {
        width: 100%;
        margin-top: 1rem;
    }

.dashboardmapcontainer {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 500px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--crb-radius-lg);
}

.dashboardlistcontainer {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 1rem;
}

    .dashboardlistcontainer .cw-accordion-title {
        width: 100%;
    }

    .dashboardlistcontainer .cw-accordion-item {
        margin-bottom: 2rem;
    }

/* Filterknöpfe (offen / erledigt / ...) */
.dashboardlistcontainer_headerbutton {
    width: 100%;
    padding: 0.6rem 0.5rem;
    font-weight: 700;
    font-size: var(--crb-fs-base);
    text-align: center;
    color: #fff;
    border: 2px solid transparent;
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-xs);
    opacity: 0.85;
    transition: opacity var(--crb-transition), box-shadow var(--crb-transition), transform var(--crb-transition);
}

    .dashboardlistcontainer_headerbutton:hover {
        opacity: 1;
    }

    .dashboardlistcontainer_headerbutton.bg-warning {
        color: var(--crb-text);
    }

.dashboardlistcontainer .selected {
    opacity: 1;
    border-color: var(--crb-primary);
    box-shadow: var(--crb-shadow-md);
    transform: translateY(-1px);
}

.dashboardlistcontainer .buttonbar {
    display: flex;
}

    .dashboardlistcontainer .buttonbar .button {
        flex: 1 1 auto;
        margin: 0.5rem;
    }

.dashboardlistcontainer_singleheight .d-flex {
    border-bottom: 1px solid var(--crb-border);
}

.dashboardlistcontainer table {
    width: 100%;
    margin-bottom: 1rem;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 2px;
    overflow-wrap: break-word;
}

    .dashboardlistcontainer table tr {
        font-size: var(--crb-fs-base);
    }

        .dashboardlistcontainer table tr:nth-child(odd) {
            background-color: var(--crb-surface-alt);
        }

        .dashboardlistcontainer table tr:nth-child(even) {
            background-color: var(--crb-surface);
        }

        .dashboardlistcontainer table tr td {
            padding: 0.4rem;
        }

            .dashboardlistcontainer table tr td:first-child {
                border-radius: var(--crb-radius-xs) 0 0 var(--crb-radius-xs);
            }

            .dashboardlistcontainer table tr td:last-child {
                width: 1px;
                white-space: nowrap;
                border-radius: 0 var(--crb-radius-xs) var(--crb-radius-xs) 0;
            }

        .dashboardlistcontainer table tr th {
            padding: 0.25rem 0.4rem;
            font-size: var(--crb-fs-sm);
            font-weight: 700;
            color: var(--crb-text-muted);
            background-color: var(--crb-surface);
            border-bottom: 1px solid var(--crb-border-strong);
        }

        .dashboardlistcontainer table tr td a {
            color: unset;
            text-decoration: unset;
        }

        .dashboardlistcontainer table tr td small {
            font-size: var(--crb-fs-xs);
            overflow-wrap: break-word;
            white-space: break-spaces;
        }

/* ---------- Checklisten / Packlisten ---------- */
.checklistcard {
    padding: 0;
    border: 1px solid var(--crb-border);
}

    .checklistcard .cw-ddb > .btn {
        font-size: var(--crb-fs-lg);
        color: var(--crb-text);
        background-color: transparent;
        border: none;
    }

        .checklistcard .cw-ddb > .btn:hover {
            color: var(--crb-primary);
            background-color: var(--crb-primary-50);
        }

    .checklistcard .title {
        margin-bottom: 0.5rem;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-xl);
        font-weight: 700;
        color: var(--crb-text);
        background-color: transparent;
        border: none;
    }

    .checklistcard .content {
        margin-top: 1rem;
        padding-inline: 0.5rem;
    }

        .checklistcard .content .checklistitem {
            margin: 0.75rem;
            background: var(--crb-surface);
            border: 1px solid var(--crb-border);
            border-radius: var(--crb-radius-md);
            transition: border-color var(--crb-transition), box-shadow var(--crb-transition);
        }

            .checklistcard .content .checklistitem:hover {
                border-color: var(--crb-primary-100);
                box-shadow: var(--crb-shadow-sm);
            }

            .checklistcard .content .checklistitem .checkinglistitemexpanded {
                background-color: var(--crb-bg);
            }

            .checklistcard .content .checklistitem .icon {
                padding-inline: 1rem;
                font-size: 1.75rem;
                color: var(--crb-violet-strong);
            }

            .checklistcard .content .checklistitem .title {
                margin: 0;
                padding: 0;
                font-size: var(--crb-fs-lg);
            }

            .checklistcard .content .checklistitem .description {
                margin: 0;
                padding: 0;
                font-size: var(--crb-fs-sm);
                color: var(--crb-text-muted);
            }

            .checklistcard .content .checklistitem .button {
                padding: 0.5rem;
            }

            .checklistcard .content .checklistitem .image {
                width: 3rem;
                height: 3rem;
                margin-right: 1rem;
            }

            .checklistcard .content .checklistitem .information {
                margin: 0.5rem 0.5rem 0 0;
                padding: 0.25rem 0.5rem;
                font-size: var(--crb-fs-sm);
                text-align: left;
                color: var(--crb-text-muted);
                border-top: 1px solid var(--crb-border);
            }

    .checklistcard .description {
        padding: 0;
        font-size: var(--crb-fs-base);
        color: var(--crb-text-muted);
    }

    .checklistcard .info {
        margin: 0.2rem 0.5rem 0.2rem 0.2rem;
        font-size: var(--crb-fs-sm);
        color: var(--crb-text-muted);
    }

    .checklistcard .progressbar {
        text-align: center;
    }

        .checklistcard .progressbar .text {
            padding: 0.4rem 1rem;
            font-size: var(--crb-fs-base);
            font-weight: 700;
            white-space: nowrap;
            border-radius: var(--crb-radius-pill);
            box-shadow: var(--crb-shadow-sm);
        }

    .checklistcard .buttons,
    .checklistcard .buttons button {
        display: flex;
    }

.checklistbadge {
    position: absolute;
    top: -1.1rem;
    right: -0.2rem;
    z-index: 100;
    font-size: 1.75rem;
}

.checklistbutton {
    position: relative;
    padding: 0;
    border-radius: var(--crb-radius-md);
    cursor: pointer;
    transition: box-shadow var(--crb-transition), transform var(--crb-transition);
}

    .checklistbutton:hover {
        box-shadow: var(--crb-shadow-sm);
    }

    .checklistbutton:active {
        background-color: var(--crb-surface-alt);
        box-shadow: none;
    }

.checklistseperator {
    margin-top: 1rem;
    padding: 0.5rem;
    font-weight: 700;
    color: var(--crb-text);
    border-bottom: 1px solid var(--crb-border);
    cursor: pointer;
}

.packinglistcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-sm);
}

    .packinglistcard .title {
        min-height: 3rem;
        margin-bottom: 0.5rem;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-xl);
        font-weight: 700;
        color: var(--crb-text);
        background-color: transparent;
        border: none;
    }

    .packinglistcard .description {
        min-height: 1.5rem;
        height: 2rem;
        margin-top: 0.5rem;
        padding: 0;
        font-size: var(--crb-fs-base);
        color: var(--crb-text-muted);
    }

    .packinglistcard .info {
        margin: 0.2rem 0 0 0.2rem;
        font-size: var(--crb-fs-sm);
        color: var(--crb-text-muted);
    }

    .packinglistcard .progressbar {
        margin-block: auto;
        text-align: center;
    }

        .packinglistcard .progressbar .text {
            font-size: var(--crb-fs-base);
            font-weight: 700;
            color: #fff;
            fill: #fff;
        }

    .packinglistcard .buttons,
    .packinglistcard .buttons button {
        display: flex;
    }

    .packinglistcard .checklistbutton {
        flex-grow: 1;
    }

.usereditpackinglistimage {
    max-width: 70px;
    max-height: 70px;
    padding: 0.25rem;
    object-fit: contain;
}

.usereditinventoryimage {
    max-width: 100px;
    max-height: 100px;
    padding: 0.25rem;
    object-fit: contain;
}

.travelerscomponent {
    min-width: min(350px, 85vw);
}

.travelerscomponenttext {
    font-size: var(--crb-fs-lg);
}

.packinglistpackdialog {
    border-top: 1px solid var(--crb-border);
}

    .packinglistpackdialog .checklistcard,
    .packinglistpackdialog .card {
        border: none;
    }

    .packinglistpackdialog .img-fluid {
        height: 8rem;
        padding: 1rem;
    }

    .packinglistpackdialog .card-body {
        margin: 0 0 0 2rem;
        padding: 0;
    }

    .packinglistpackdialog .card-title {
        margin: 0;
        font-size: var(--crb-fs-xl);
    }

.ImportPackingListContainer .cw-listview-item.is-selected {
    background-color: unset;
    color: unset;
}

.ImportPackingListContainer .cw-listview-item {
    margin-bottom: 10px;
    border: 1px solid var(--crb-border-strong);
    border-radius: var(--crb-radius-md);
}

.ImportPackingListContainer .cw-listview {
    border: none;
}

.ImportPackingListContainer .image {
    width: 25%;
    max-width: 150px;
    max-height: 150px;
    margin-right: 1rem;
}

.profilechecklist {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-sm);
    cursor: pointer;
    transition: box-shadow var(--crb-transition), border-color var(--crb-transition);
}

    .profilechecklist:hover {
        border-color: var(--crb-primary-100);
        box-shadow: var(--crb-shadow-md);
    }

    .profilechecklist .icon {
        padding: 0.25rem 0.25rem 0.25rem 0.5rem;
        font-size: 1.75rem;
        color: var(--crb-violet-strong);
    }

    .profilechecklist .button {
        padding: 0.25rem 0.25rem 0.25rem 0.5rem;
    }

    .profilechecklist .text-container {
        border-bottom: 1px solid var(--crb-border);
    }

    .profilechecklist .properties {
        display: flex;
        font-size: var(--crb-fs-sm);
    }

    .profilechecklist .name {
        padding: 0.25rem;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-xl);
        font-weight: 700;
    }

    .profilechecklist .description {
        padding: 0.25rem;
        color: var(--crb-text-muted);
    }

/* ---------- Reise-Suche (Startseite, Panels) ---------- */
.startjourneysearchcontainer {
    margin: auto;
    padding: 0.25rem 1rem 1.25rem;
    color: var(--crb-text);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-md);
}

    .startjourneysearchcontainer .autocol {
        margin-block: auto;
        padding-top: 3px;
    }

    .startjourneysearchcontainer .title {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.4rem;
        font-size: var(--crb-fs-xs);
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--crb-text-muted);
        text-align: start;
    }

        .startjourneysearchcontainer .title i {
            color: var(--crb-accent-strong);
        }

    .startjourneysearchcontainer .btn {
        min-height: 2.75rem;
    }

    .startjourneysearchcontainer .cw-input, .startjourneysearchcontainer .cw-combo {
        min-height: 2.75rem;
    }

.startjourneysearch-button {
    white-space: nowrap;
}

/* ---------- Externe Anbieter ---------- */
.ExternalLogoSmall {
    width: 24px;
    height: 24px;
}

.ExternalLogoMedium {
    width: 30px;
    height: 30px;
}

.ExternalLogoLinkButton {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* ---------- Dashboard: Übersicht & KPI-Karten ---------- */
.dashboard-details {
    padding-bottom: var(--crb-space-6);
}

.dashboard-details-item {
    height: 100%;
}

.dashboard-details-item-content {
    height: 100%;
    background-color: transparent;
}

    .dashboard-details-item-content > .p-4 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
        gap: var(--crb-space-3);
        padding: 0 !important;
    }

        .dashboard-details-item-content > .p-4 > div {
            display: contents;
        }

.kpicontainer {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    cursor: pointer;
}

.kpicomponent {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 0;
    min-width: min(14rem, 100%);
    margin: 0 0 var(--crb-space-3);
    padding: var(--crb-space-4) var(--crb-space-4) var(--crb-space-4);
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-sm);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--crb-transition), box-shadow var(--crb-transition), border-color var(--crb-transition);
}

    /* Farbige Kante nach Schweregrad */
    .kpicomponent::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: var(--crb-sunset-strong);
    }

    .kpicomponent:hover,
    .kpicomponent:focus-visible {
        transform: translateY(-3px);
        border-color: var(--crb-primary-100);
        box-shadow: var(--crb-shadow-md);
    }

    /* Karten mit Dialog (Reise starten/abschließen, Teilen …) sind keine Klick-Kacheln: kein Anheben.
       Ein transform beim Hover macht die Karte zum Bezugsrahmen des fixierten Popovers –
       der Dialog springt dann bei jeder Mausbewegung hin und her (Flackern). */
    .kpicomponent:has(.popover-host) {
        cursor: default;
    }

        .kpicomponent:has(.popover-host):hover,
        .kpicomponent:has(.popover-host):focus-visible {
            transform: none;
        }

/* Allgemein: solange ein Popover offen ist, darf kein Vorfahre per Hover transformiert werden */
:where(.kpicomponent, .checklistbutton, .dashboardlistcontainer_headerbutton, .content-document, .crb-tile, .crb-choice):has(.popover-panel) {
    transform: none !important;
}

    .kpicomponent.info::before { background: var(--crb-info); }
    .kpicomponent.success::before { background: var(--crb-success); }
    .kpicomponent.warning::before { background: var(--crb-warning); }
    .kpicomponent.error::before { background: var(--crb-danger); }

    .kpicomponent.is-loading {
        cursor: default;
    }

    .kpicomponent .titlecontainer {
        gap: 0.65rem;
        padding: 0;
        margin: 0;
    }

    .kpicomponent .icon {
        display: grid;
        place-items: center;
        flex-shrink: 0;
        width: 2.5rem;
        height: 2.5rem;
        margin: 0;
        border-radius: var(--crb-radius-sm);
        font-size: 1.05rem;
        color: var(--crb-violet-strong);
        background: #F4EFFF;
    }

    .kpicomponent.info .icon { color: var(--crb-info); background: var(--crb-info-50); }
    .kpicomponent.success .icon { color: var(--crb-success); background: var(--crb-success-50); }
    .kpicomponent.warning .icon { color: var(--crb-warning-text); background: var(--crb-warning-50); }
    .kpicomponent.error .icon { color: var(--crb-danger); background: var(--crb-danger-50); }

    .kpicomponent .title {
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-lg);
        font-weight: 700;
        color: var(--crb-text);
        background: transparent;
        border: 0;
    }

    .kpicomponent .kpi-arrow {
        font-size: 0.8rem;
        color: var(--crb-text-subtle);
        transition: transform var(--crb-transition), color var(--crb-transition);
    }

    .kpicomponent:hover .kpi-arrow {
        transform: translateX(3px);
        color: var(--crb-accent-strong);
    }

    .kpicomponent .header {
        font-size: var(--crb-fs-sm);
        color: var(--crb-text-muted);
    }

    .kpicomponent .kpi {
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-3xl);
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: var(--crb-text);
    }

    .kpicomponent .kpiicon {
        margin: auto 0.5rem auto 0;
        font-size: var(--crb-fs-xl);
        color: var(--crb-text-subtle);
    }

    .kpicomponent .text {
        font-size: var(--crb-fs-base);
        color: var(--crb-text-muted);
    }

    .kpicomponent .additionaldata {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.2rem 0.6rem;
        font-size: var(--crb-fs-sm);
        font-weight: 600;
        color: var(--crb-text-muted);
        background: var(--crb-surface-alt);
        border-radius: var(--crb-radius-pill);
    }

.dashboard-destination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--crb-border);
}

    .dashboard-destination:last-child {
        border-bottom: 0;
    }

.dashboard-destination-date {
    min-width: 8.5rem;
    font-weight: 700;
    color: var(--crb-violet-strong);
}

.dashboard-destination-name {
    font-weight: 600;
}

a.dashboard-country-chip {
    text-decoration: none;
    margin: 0.15rem;
}

    a.dashboard-country-chip:hover {
        color: #fff;
        background: var(--crb-primary);
    }

/* ---------- Notizen (Haftnotizen) ---------- */
.notescontainer {
    column-count: 1;
    column-gap: 18px;
}

@media (min-width: 768px) {
    .notescontainer {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .notescontainer {
        column-count: 3;
    }
}

.quote-container {
    position: relative;
    margin: 1rem;
    padding-top: 40px;
    transform: rotate(2deg);
    break-inside: avoid;
}

    .quote-container:nth-child(2n) { transform: rotate(-2deg); }
    .quote-container:nth-child(3n) { transform: rotate(1deg); }
    .quote-container:nth-child(4n) { transform: rotate(3deg); }
    .quote-container:nth-child(5n) { transform: rotate(-1deg); }
    .quote-container:nth-child(6n) { transform: rotate(-4deg); }

    .quote-container .note {
        position: relative;
        min-width: 250px;
        min-height: 150px;
        margin: 0 auto;
        padding: 20px;
        color: var(--crb-text);
        border-radius: 4px 4px 18px 4px;
        box-shadow: var(--crb-shadow-lg);
    }

        .quote-container .note .title {
            display: block;
            padding: 0;
            font-family: var(--crb-font-heading);
            font-size: var(--crb-fs-lg);
            font-weight: 700;
            text-align: left;
            color: var(--crb-text);
            background-color: transparent;
            border: none;
        }

        .quote-container .note .text {
            font-size: var(--crb-fs-base);
        }

        .quote-container .note .buttons {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0.5rem;
            cursor: pointer;
        }

            .quote-container .note .buttons .btn {
                margin: 0;
                padding: 5px;
            }

        .quote-container .note .tag {
            position: absolute;
            top: -1rem;
            left: 1rem;
            display: block;
            padding-inline: 10px;
            font-size: var(--crb-fs-sm);
            text-align: left;
            background-color: inherit;
            border-radius: 5px 5px 0 0;
        }

        .quote-container .note .d-flex {
            background-color: transparent;
            border: none;
        }

        .quote-container .note .footer {
            font-size: var(--crb-fs-sm);
            background-color: transparent;
            border: none;
        }

        .quote-container .note .img-fluid {
            position: unset;
            margin-block: 0.4rem;
        }

    .quote-container .pin {
        position: absolute;
        left: 50%;
        top: -16px;
        z-index: 1;
        display: block;
        width: 2px;
        height: 32px;
        background-color: var(--crb-border-strong);
    }

        .quote-container .pin::after {
            content: "";
            position: absolute;
            top: -10px;
            left: -5px;
            width: 12px;
            height: 12px;
            background-color: var(--crb-pink);
            background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), rgba(0, 0, 0, 0.25));
            border-radius: 50%;
            box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 20px 18px 3px rgba(0, 0, 0, 0.12);
        }

/* ---------- Dropdown (⋮-Menüs, Profilmenü) ---------- */
.dropdown {
    position: relative;
    display: inline-block;
}

    .dropdown button {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        height: 2.75rem;
        margin: 0;
        padding: 0 0.75rem;
        font-weight: 700;
        color: var(--crb-text);
        background-color: transparent;
        border: none;
        border-radius: var(--crb-radius-sm);
        transition: background-color var(--crb-transition), color var(--crb-transition);
    }

        .dropdown button:hover {
            color: var(--crb-primary);
            background-color: var(--crb-primary-50);
        }

    .dropdown .dropdowncontent {
        position: absolute;
        top: calc(100% + 0.25rem);
        right: 0;
        z-index: 9000;
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 13rem;
        padding: 0.4rem;
        overflow: auto;
        overscroll-behavior: contain;
        font-weight: 400;
        line-height: 1.4;
        text-align: start;
        background-color: var(--crb-surface);
        border: 1px solid var(--crb-border);
        border-radius: var(--crb-radius-md);
        box-shadow: var(--crb-shadow-lg);
        cursor: default;
        animation: crb-dropdown-in 140ms var(--crb-ease);
    }

        .dropdown .dropdowncontent.d-none {
            display: none !important;
        }

        .dropdown .dropdowncontent .separator {
            height: 1px;
            margin: 0.25rem;
            background-color: var(--crb-border);
        }

        .dropdown .dropdowncontent > a.btn {
            text-align: start;
            justify-content: flex-start;
        }

        .dropdown .dropdowncontent .dropdown-entry {
            display: flex;
            align-items: center;
            min-height: 2.6rem;
            padding: 0.45rem 0.75rem;
            font-weight: 600;
            color: var(--crb-text);
            text-decoration: none;
            white-space: nowrap;
            border-radius: var(--crb-radius-sm);
            cursor: pointer;
        }

            .dropdown .dropdowncontent .dropdown-entry:hover {
                color: var(--crb-primary);
                background-color: var(--crb-primary-50);
            }

            .dropdown .dropdowncontent .dropdown-entry.text-danger:hover {
                color: var(--crb-danger) !important;
                background-color: var(--crb-danger-50);
            }

            .dropdown .dropdowncontent .dropdown-entry i,
            .dropdown .dropdowncontent .dropdown-entry .fas {
                width: 1.25rem;
                color: var(--crb-text-subtle);
            }

    .dropdown .dropdowncontentleft {
        right: 100%;
        top: 0.25rem;
        display: flex;
        flex-direction: row;
        gap: 0.25rem;
        padding: 0.25rem 0.25rem 0.25rem 1rem;
        background-color: var(--crb-surface);
        border: 1px solid var(--crb-border);
        border-radius: var(--crb-radius-sm);
        box-shadow: var(--crb-shadow-md);
    }

        .dropdown .dropdowncontentleft a {
            font-size: var(--crb-fs-lg);
        }

@keyframes crb-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Geteilte Reise ---------- */
.sharedjourneycontainer {
    padding-bottom: 3rem;
    background-color: var(--crb-surface-alt);
}

    .sharedjourneycontainer .title,
    .sharedjourneycontainer .countries,
    .sharedjourneycontainer .locations {
        margin-block: 1rem;
        padding: 1rem 1.25rem;
        background-color: var(--crb-surface);
        border: 1px solid var(--crb-border);
        border-radius: var(--crb-radius-lg);
        box-shadow: var(--crb-shadow-sm);
    }

    .sharedjourneycontainer .countries {
        color: var(--crb-text);
    }

        .sharedjourneycontainer .countries .countryflag {
            height: 1.2rem;
            padding: 0.2rem 0.5rem 0 0;
            margin: 0;
        }

    .sharedjourneycontainer .locations {
        margin-inline: 0.3rem;
    }

    .sharedjourneycontainer .journeyimage {
        width: 100%;
        object-fit: cover;
        border-radius: var(--crb-radius-lg);
    }

    .sharedjourneycontainer .maplocation {
        padding: 0.5rem 0.75rem;
        background-color: var(--crb-surface);
        border: 1px solid var(--crb-border);
        border-radius: var(--crb-radius-md);
    }

    .sharedjourneycontainer .locationdistance {
        width: 100%;
        padding: 0.1rem;
        text-align: center;
    }

        .sharedjourneycontainer .locationdistance .distance {
            position: relative;
            width: 25%;
            min-width: 9rem;
            height: 1.8rem;
            margin: 1rem auto;
            padding: 0.25rem;
            font-size: var(--crb-fs-sm);
            font-weight: 700;
            text-align: center;
            color: var(--crb-violet-strong);
            background-color: #F4EFFF;
            border-radius: var(--crb-radius-pill);
        }

            .sharedjourneycontainer .locationdistance .distance::before,
            .sharedjourneycontainer .locationdistance .distance::after {
                content: "";
                position: absolute;
                left: 50%;
                width: 2px;
                height: 0.8rem;
                background: var(--crb-border-strong);
                transform: translateX(-50%);
            }

            .sharedjourneycontainer .locationdistance .distance::before {
                top: -1rem;
            }

            .sharedjourneycontainer .locationdistance .distance::after {
                bottom: -1rem;
            }

    .sharedjourneycontainer .maplocation .locationnumber {
        display: grid;
        place-items: center;
        width: 1.8rem;
        height: 1.8rem;
        font-size: var(--crb-fs-sm);
        font-weight: 800;
        color: #fff;
        background: var(--crb-sunset-strong);
        border-radius: 50%;
    }

    .sharedjourneycontainer .maplocation .locationname {
        margin-left: 1rem;
        font-size: var(--crb-fs-lg);
        font-weight: 600;
        background-color: transparent;
    }

    .sharedjourneycontainer .maplocation .locationdays {
        margin-left: 1rem;
        color: var(--crb-text-muted);
        background-color: transparent;
    }

/* ---------- Reisetagebuch ---------- */
.journeydiary {
    padding: 1rem;
    color: var(--crb-text);
    background-color: var(--crb-surface-alt);
    border-radius: var(--crb-radius-lg);
}

    .journeydiary .title {
        margin: 0;
        background-color: transparent;
        border: 0;
    }

.journeydiarycontainer {
    margin-top: 1rem;
    padding: 0 0 0.5rem;
    background-color: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-md);
    overflow: hidden;
}

    .journeydiarycontainer .title {
        margin-top: 0;
        padding: 0.75rem 1.5rem;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-2xl);
        font-weight: 700;
        background: var(--crb-sunset-soft);
    }

    .journeydiarycontainer .entries {
        margin-top: 0;
        padding: 0.75rem;
        background-color: var(--crb-surface);
    }

    .journeydiarycontainer .entrycontainer {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

        .journeydiarycontainer .entrycontainer .row {
            margin-top: 0;
        }

        .journeydiarycontainer .entrycontainer .entriestitle {
            margin-bottom: 0.5rem;
            font-family: var(--crb-font-heading);
            font-size: var(--crb-fs-xl);
            font-weight: 700;
            border-bottom: 1px solid var(--crb-border);
        }

            .journeydiarycontainer .entrycontainer .entriestitle .buttons {
                font-size: var(--crb-fs-sm);
            }

        .journeydiarycontainer .entrycontainer .sectionheader {
            min-width: 5rem;
            margin-bottom: 0.1rem;
            padding: 0.2rem 0.2rem 0.2rem 0.5rem;
            font-size: var(--crb-fs-lg);
            font-weight: 600;
            color: var(--crb-violet-strong);
        }

        .journeydiarycontainer .entrycontainer .sidebar .images {
            width: 100%;
            min-width: 100%;
            margin-bottom: 1rem;
        }

        .journeydiarycontainer .entrycontainer .sidebar .location {
            width: 100%;
            min-width: 100%;
            height: 200px;
            margin-bottom: 1rem;
            overflow: hidden;
            border-radius: var(--crb-radius-md);
        }

        .journeydiarycontainer .entrycontainer .text,
        .journeydiarycontainer .entrycontainer .usertext {
            flex-grow: 1;
            padding-left: 0.75rem;
        }

/* Dialog: neuer Tagebucheintrag */
.journey-diary-dialog .locationcontainer {
    padding: 0.5rem;
    background-color: var(--crb-bg);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
}

.journey-diary-dialog .images {
    position: relative;
    width: calc(100% / 3);
    padding: 1px;
}

    .journey-diary-dialog .images .btn {
        position: absolute;
        top: 5px;
        left: 5px;
    }

    .journey-diary-dialog .images img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center;
        border-radius: var(--crb-radius-xs);
    }

.journey-diary-dialog .cw-uploader-files {
    display: none;
}

/* ---------- Bildergalerie & Diashow ---------- */
.imagegallery .images {
    display: flex;
    width: 100%;
    padding: 0.1rem;
    cursor: pointer;
}

.imagegallery .mainimage {
    width: 75%;
    min-width: 75%;
    padding: 0.1rem;
}

.imagegallery .nextimages {
    width: 25%;
    min-width: 25%;
}

.imagegallery .images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: var(--crb-radius-sm);
}

.imagegallery .nextimages .image {
    position: relative;
    height: calc((100% / 3) - 2px);
    margin: 1px;
}

    .imagegallery .nextimages .image .overlay {
        position: absolute;
        inset: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: var(--crb-font-heading);
        font-size: var(--crb-fs-xl);
        font-weight: 700;
        color: #fff;
        text-align: center;
        background-color: rgba(14, 19, 38, 0.6);
        border-radius: var(--crb-radius-sm);
    }

.slideshow {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(14, 19, 38, 0.96);
}

    .slideshow .header {
        width: 100%;
        text-align: right;
        background-color: transparent;
    }

        .slideshow .header .btn {
            position: unset;
            color: #fff;
            background-color: transparent;
            border: none;
        }

    .slideshow .slide {
        display: flex;
        width: 100%;
        height: calc(100% - 100px - 4rem);
    }

    .slideshow .thumbnailscontainer {
        display: grid;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: calc(100px + 2rem);
        overflow-x: auto;
        overflow-y: hidden;
        text-align: center;
        background-color: transparent;
    }

    .slideshow .thumbnails {
        display: flex;
        width: 100%;
        height: calc(100px + 2rem);
        overflow-x: auto;
        overflow-y: hidden;
        background-color: transparent;
    }

        .slideshow .thumbnails .thumb {
            width: 100px;
            min-width: 100px;
            margin: 0.1rem;
            opacity: 0.65;
        }

        .slideshow .thumbnails .selectedthumb {
            width: 100px;
            min-width: 100px;
            height: 100px;
            margin: 0.1rem;
            border: 3px solid var(--crb-accent);
            border-radius: var(--crb-radius-sm);
        }

        .slideshow .thumbnails img {
            aspect-ratio: 1 / 1;
            border-radius: var(--crb-radius-sm);
        }

    .slideshow .slide .slidebutton {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80px;
        height: 100%;
        text-align: center;
        background-color: transparent;
    }

        .slideshow .slide .slidebutton .btn {
            position: unset;
            font-size: var(--crb-fs-xl);
            color: #fff;
            background-color: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

    .slideshow .slide .selectedimage {
        display: flex;
        flex-grow: 1;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: transparent;
    }

        .slideshow .slide .selectedimage img {
            position: unset;
            max-width: calc(100% - 10px);
            max-height: calc(100% - 10px);
            margin: 5px;
            aspect-ratio: unset;
            border-radius: var(--crb-radius-sm);
        }

/* ---------- Popover / Bottom-Sheet ---------- */
.popover-host {
    position: relative;
    display: inline-block;
}

.popover-host-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(14, 19, 38, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.popover-panel {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: min(520px, calc(100vw - 16px));
    max-height: 70vh;
    padding: 0.25rem;
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    box-shadow: var(--crb-shadow-lg);
}

    .popover-panel.is-wide {
        width: min(780px, calc(100vw - 16px));
        max-height: 85vh;
    }

.popover-panel-full {
    position: fixed;
    top: 20px;
    left: max(calc(50% - 512px), 8px);
    right: max(calc(50% - 512px), 8px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    height: calc(100% - 40px);
    overflow: hidden;
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-xl);
    box-shadow: var(--crb-shadow-lg);
}

.popover-header {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background-color: var(--crb-surface);
    border-bottom: 1px solid var(--crb-border);
}

.popover-body {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0.75rem;
    overflow: auto;
}

/* Mobil: Popover füllt die Bildschirmbreite (left/maxWidth setzt positionDropdown() inline, daher !important);
   Pack-/Checklisten-Buttons im Wizard stehen untereinander */
@media (max-width: 575.98px) {
    .popover-panel {
        left: 8px !important;
        right: 8px;
        width: auto;
        max-width: none !important;
    }
}

.popover-description {
    font-size: var(--crb-fs-sm);
    color: var(--crb-text-muted);
}

.popover-annotation {
    margin-top: 0.25rem;
    font-size: var(--crb-fs-xs);
    border-top: 1px solid var(--crb-border);
}

.popover-body .map {
    position: relative;
}

    .popover-body .map .announcement {
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: 20px;
        z-index: 500;
    }

.icon-btn {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
    color: var(--crb-text-muted);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

    .icon-btn:hover {
        color: var(--crb-text);
        background: var(--crb-surface-alt);
    }

/* ---------- Suche (Assistent, Filter) ---------- */
.searchassistant,
.searchcomponent {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.searchassistanttop {
    flex: 0 0 auto;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.searchassistantdetails,
.searchcomponentdetails {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.searchcomponentdetails {
    display: flex;
    flex-direction: column;
}

.searchcomponenttextsearch {
    flex: 0 0 auto;
    padding-inline: 0.7rem 1rem;
}

.searchcomponenttop {
    display: flex;
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    box-shadow: var(--crb-shadow-sm);
}

.searchButton {
    margin-top: 4px;
    color: #fff;
    background-image: var(--crb-sunset-strong);
    border: none;
}

    .searchButton:hover, .searchButton:focus {
        color: #fff;
        background-image: var(--crb-sunset-strong-hover);
    }

.clearsearchButton,
.clearsearchButton:focus,
.clearsearchButton:hover {
    margin-left: -40px;
    color: var(--crb-text-muted);
    background-color: transparent;
    border: none;
}

/* Auswahlknöpfe im Assistenten (aktiv / teilweise / nicht gewählt) */
.btn.checked,
.btn.partialchecked {
    color: var(--crb-primary);
    background-color: #F4EFFF;
    border: 1.5px solid var(--crb-violet-strong);
}

.btn.partialchecked {
    border-style: dashed;
}

.btn.unchecked {
    color: var(--crb-text);
    background-color: var(--crb-surface);
    border: 1.5px solid var(--crb-border-strong);
}

.filtercontainer {
    padding: 10px;
    background-color: var(--crb-surface-alt);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
        margin-inline: 0;
        padding-inline: 0.75rem;
    }
}

/* ---------- Fahrzeug-Dialog (VehicleEditDialog) ---------- */
.cw-dialog.vh-dialog {
    max-width: calc(100vw - 1rem);
}

    .cw-dialog.vh-dialog .cw-dialog-body {
        padding-top: 0.75rem;
    }

/* ==========================================================================
   Formular-Dialoge (Inventar, Packliste, Packlisten-Eintrag) – feste Labels,
   Abschnitte, Inline-Listen statt Grids
   ========================================================================== */
.fd {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.fd-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

    .fd > .fd-section + .fd-section,
    .fd-col > .fd-section + .fd-section {
        padding-top: 1.1rem;
        border-top: 1px solid var(--crb-border);
    }

.fd-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
}

.fd-col {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
}

.fd-col-side {
    position: sticky;
    top: 0;
}

.fd-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--crb-font-heading);
    font-size: var(--crb-fs-base);
    font-weight: 800;
    color: var(--crb-text);
}

    .fd-title > i {
        width: 1.1rem;
        color: var(--crb-accent-strong);
    }

.fd-count {
    min-width: 1.5rem;
    padding: 0 0.4rem;
    font-size: var(--crb-fs-xs);
    line-height: 1.35rem;
    text-align: center;
    color: #fff;
    background: var(--crb-violet-strong);
    border-radius: var(--crb-radius-pill);
}

.fd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
    align-items: end;
    gap: 0.75rem 1rem;
}

.fd-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

    .fd-field > label {
        font-size: var(--crb-fs-sm);
        font-weight: 700;
        line-height: 1.3;
        color: var(--crb-text);
        white-space: normal;
        overflow-wrap: anywhere;
    }

.fd-short {
    max-width: 16rem;
}

.fd-req {
    color: var(--crb-danger);
}

.fd-help {
    margin: 0;
    font-size: var(--crb-fs-xs);
    line-height: 1.45;
    color: var(--crb-text-muted);
}

.fd-note {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-size: var(--crb-fs-sm);
    color: var(--crb-text);
    background: var(--crb-surface-alt);
    border-radius: var(--crb-radius-sm);
}

    .fd-note i {
        margin-top: 0.2rem;
        color: var(--crb-violet-strong);
    }

.fd-warn {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: var(--crb-fs-sm);
    color: var(--crb-warning-text);
    background: var(--crb-warning-50);
    border-radius: var(--crb-radius-sm);
}

    .fd-warn i {
        margin-top: 0.2rem;
    }

.fd-unit {
    display: flex;
}

    .fd-unit .form-control {
        min-width: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .fd-unit > span {
        display: grid;
        place-items: center;
        min-width: 2.75rem;
        padding: 0 0.6rem;
        font-size: var(--crb-fs-sm);
        font-weight: 700;
        color: var(--crb-text-muted);
        background: var(--crb-surface-alt);
        border: 1px solid var(--crb-border-strong);
        border-left: 0;
        border-radius: 0 var(--crb-radius-sm) var(--crb-radius-sm) 0;
    }

.fd-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding-left: 0;
    font-weight: 600;
    color: var(--crb-text);
    cursor: pointer;
}

    .fd-switch .form-check-input {
        flex-shrink: 0;
        width: 2.4rem;
        height: 1.3rem;
        margin: 0;
        border-radius: 1rem;
    }

    .fd-switch .form-check-input:disabled + span {
        color: var(--crb-text-subtle);
    }

/* Kriterien als Kacheln */
.fd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
    gap: 0.5rem;
}

.fd-tile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.65rem 0.8rem;
    font-weight: 600;
    color: var(--crb-text);
    background: var(--crb-surface-alt);
    border: 1px solid transparent;
    border-radius: var(--crb-radius-md);
    cursor: pointer;
    transition: background-color var(--crb-transition), border-color var(--crb-transition);
}

    .fd-tile .form-check-input {
        flex-shrink: 0;
        margin: 0;
        border-color: var(--crb-border-strong);
    }

    .fd-tile > i {
        width: 1.1rem;
        color: var(--crb-text-subtle);
    }

    .fd-tile.is-checked {
        color: var(--crb-violet-strong);
        background: #F1EBFF;
        border-color: var(--crb-violet);
    }

        .fd-tile.is-checked > i {
            color: var(--crb-violet-strong);
        }

/* Auswahl mit Beschreibung */
.fd-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

    .fd-options .crb-choice {
        width: 100%;
        align-items: center;
    }

.fd-option-text {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.fd-option-name {
    font-weight: 700;
}

.fd-option-desc {
    font-size: var(--crb-fs-xs);
    font-weight: 400;
    color: var(--crb-text-muted);
}

/* Art des Eintrags */
.fd-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
    gap: 0.75rem;
}

.fd-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    text-align: start;
    color: var(--crb-text);
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-lg);
    transition: border-color var(--crb-transition), box-shadow var(--crb-transition), transform var(--crb-transition);
}

    .fd-type:hover {
        border-color: var(--crb-violet);
        box-shadow: var(--crb-shadow-md);
        transform: translateY(-2px);
    }

    .fd-type:focus-visible {
        outline: none;
        box-shadow: var(--crb-focus-ring);
    }

.fd-type-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
    color: #fff;
    background: var(--crb-sunset-strong);
    border-radius: var(--crb-radius-md);
}

.fd-type-name {
    font-family: var(--crb-font-heading);
    font-size: var(--crb-fs-lg);
    font-weight: 800;
}

.fd-type-desc {
    font-size: var(--crb-fs-sm);
    color: var(--crb-text-muted);
}

.fd-type-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.4rem 0.25rem 0.8rem;
    font-size: var(--crb-fs-sm);
    font-weight: 700;
    color: var(--crb-violet-strong);
    background: #F1EBFF;
    border-radius: var(--crb-radius-pill);
}

.fd-badge-change {
    padding: 0.1rem 0.6rem;
    font-size: var(--crb-fs-xs);
    font-weight: 700;
    color: var(--crb-primary);
    background: #fff;
    border: 0;
    border-radius: var(--crb-radius-pill);
}

/* Inventar auswählen */
.fd-pick-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.fd-pick-cat {
    flex: 1 1 14rem;
    max-width: 20rem;
}

.fd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    font-weight: 700;
    color: var(--crb-primary);
    background: transparent;
    border: 0;
    border-radius: var(--crb-radius-pill);
}

    .fd-back:hover {
        background: var(--crb-primary-50);
    }

.fd-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
    gap: 0.75rem;
}

/* Inline-Listen (Links, Checklisten-Inhalt) */
.fd-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fd-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.4rem 0.45rem 0.75rem;
    background: var(--crb-surface-alt);
    border-radius: var(--crb-radius-sm);
}

.fd-list-icon {
    color: var(--crb-text-subtle);
}

.fd-list-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.fd-list-name {
    font-weight: 700;
    color: var(--crb-text);
}

.fd-list-sub {
    overflow: hidden;
    font-size: var(--crb-fs-xs);
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--crb-text-muted);
}

.fd-icon-btn {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--crb-text-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
}

    .fd-icon-btn.is-danger:hover {
        color: var(--crb-danger);
        background: var(--crb-danger-50);
    }

.fd-add-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px dashed var(--crb-border-strong);
    border-radius: var(--crb-radius-md);
}

.fd-image {
    padding: 0.5rem;
    background: var(--crb-surface-alt);
    border-radius: var(--crb-radius-md);
}

.fd-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .fd-columns {
        grid-template-columns: 1fr;
    }

    .fd-col-side {
        position: static;
    }



    .fd-short {
        max-width: none;
    }
}

.fd-add-row > .fd-field {
    flex: 1 1 10rem;
}

.fd-add-row > .btn {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Offenes Popover: Vorfahren dürfen es nicht einfangen (backdrop-filter/transform = Bezugsrahmen
   für position:fixed) oder abschneiden/unterlagern (overflow + isolation im Hero) */
.crb-glass:has(.popover-panel),
.crb-glass-dark:has(.popover-panel) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.crb-reveal:has(.popover-panel) {
    transform: none !important;
}

.crb-hero:has(.popover-panel) {
    z-index: 900; /* über dem Kopfmenü (800) */
    overflow: visible;
}

/* ==========================================================================
   Umkreissuche (Popover in der Suche)
   ========================================================================== */
.rs-panel {
    display: flex;
    flex-direction: column;
    gap: var(--crb-space-4);
    padding: 0.25rem;
}

.rs-toggle {
    display: flex;
    align-items: center;
    gap: var(--crb-space-3);
    padding: var(--crb-space-3) var(--crb-space-4);
    background: var(--crb-surface-alt);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    cursor: pointer;
    transition: background-color var(--crb-transition), border-color var(--crb-transition);
}

    .rs-toggle.is-on {
        background: var(--crb-success-50);
        border-color: var(--crb-success);
    }

.rs-toggle-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--crb-primary);
    background: var(--crb-surface);
    border-radius: 50%;
    box-shadow: var(--crb-shadow-xs);
}

.rs-toggle.is-on .rs-toggle-icon {
    color: #fff;
    background: var(--crb-success);
}

.rs-toggle-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

    .rs-toggle-text small {
        color: var(--crb-text-muted);
        font-size: var(--crb-fs-sm);
    }

/* Schalter (gemeinsam für Umkreissuche und Packlisten-Auswahl) */
.rs-switch,
.pl-pick-switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 1.55rem;
    margin: 0;
    background: var(--crb-border-strong);
    border-radius: var(--crb-radius-pill);
    cursor: pointer;
    transition: background-color var(--crb-transition);
}

    .rs-switch::after,
    .pl-pick-switch::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: calc(1.55rem - 6px);
        height: calc(1.55rem - 6px);
        background: #fff;
        border-radius: 50%;
        box-shadow: var(--crb-shadow-xs);
        transition: transform var(--crb-transition);
    }

    .rs-switch:checked,
    .pl-pick-switch:checked {
        background: var(--crb-success);
    }

        .rs-switch:checked::after,
        .pl-pick-switch:checked::after {
            transform: translateX(1.2rem);
        }

    .rs-switch:focus-visible,
    .pl-pick-switch:focus-visible {
        outline: 3px solid var(--crb-primary-200);
        outline-offset: 2px;
    }

.rs-section {
    display: flex;
    flex-direction: column;
    gap: var(--crb-space-2);
}

.rs-label {
    margin: 0;
    font-size: var(--crb-fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--crb-text-muted);
}

.rs-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: var(--crb-space-2);
}

.rs-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--crb-text);
    background: var(--crb-surface);
    border: 1.5px solid var(--crb-border-strong);
    border-radius: var(--crb-radius-sm);
    transition: background-color var(--crb-transition), border-color var(--crb-transition), color var(--crb-transition);
}

    .rs-choice:hover {
        background: var(--crb-primary-50);
    }

    .rs-choice.is-active {
        color: #fff;
        background: var(--crb-primary);
        border-color: var(--crb-primary);
    }

.rs-location {
    margin-top: var(--crb-space-1);
}

.rs-radius-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.rs-radius-value {
    font-family: var(--crb-font-heading);
    font-size: var(--crb-fs-2xl);
    font-weight: 800;
    color: var(--crb-primary);
}

    .rs-radius-value small {
        font-size: var(--crb-fs-base);
        font-weight: 600;
        color: var(--crb-text-muted);
    }

.rs-range {
    width: 100%;
    height: 2rem;
    accent-color: var(--crb-success);
    cursor: pointer;
}

.rs-presets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--crb-space-2);
}

.rs-preset {
    flex: 1 1 auto;
    padding: 0.35rem 0.75rem;
    font-size: var(--crb-fs-sm);
    font-weight: 600;
    color: var(--crb-primary);
    background: var(--crb-surface);
    border: 1px solid var(--crb-border-strong);
    border-radius: var(--crb-radius-pill);
    transition: background-color var(--crb-transition), border-color var(--crb-transition);
}

    .rs-preset:hover {
        background: var(--crb-primary-50);
    }

    .rs-preset.is-active {
        color: #fff;
        background: var(--crb-primary);
        border-color: var(--crb-primary);
    }

/* ==========================================================================
   Packliste hinzufügen – Auswahl der Einträge
   ========================================================================== */
.pl-pick-dialog .cw-dialog-body {
    padding-top: 0;
}

.pl-pick-intro {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--crb-space-2) var(--crb-space-4);
    padding: var(--crb-space-3) 0;
    background: var(--crb-surface);
    border-bottom: 1px solid var(--crb-border);
}

.pl-pick-intro-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .pl-pick-intro-text span {
        color: var(--crb-text-muted);
        font-size: var(--crb-fs-sm);
    }

.pl-pick-tools {
    display: flex;
    align-items: center;
    gap: var(--crb-space-2);
}

.pl-pick-count {
    margin-right: var(--crb-space-1);
    color: var(--crb-text-muted);
    font-size: var(--crb-fs-sm);
    white-space: nowrap;
}

.pl-pick-list {
    display: flex;
    flex-direction: column;
    gap: var(--crb-space-2);
    padding-top: var(--crb-space-3);
}

.pl-pick-item {
    display: flex;
    align-items: center;
    gap: var(--crb-space-3);
    padding: var(--crb-space-3);
    margin: 0;
    background: var(--crb-surface);
    border: 1.5px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    cursor: pointer;
    transition: background-color var(--crb-transition), border-color var(--crb-transition), box-shadow var(--crb-transition);
}

    .pl-pick-item:hover {
        border-color: var(--crb-border-strong);
        box-shadow: var(--crb-shadow-xs);
    }

    .pl-pick-item.is-selected {
        background: var(--crb-success-50);
        border-color: var(--crb-success);
    }

.pl-pick-image {
    flex: 0 0 auto;
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: var(--crb-radius-xs);
}

.pl-pick-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pl-pick-title {
    font-weight: 700;
    overflow-wrap: anywhere;
}

    .pl-pick-title i {
        margin-right: 0.35rem;
        color: var(--crb-text-muted);
    }

.pl-pick-desc {
    color: var(--crb-text-muted);
    font-size: var(--crb-fs-sm);
    overflow-wrap: anywhere;
}

.pl-pick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.pl-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.55rem;
    font-size: var(--crb-fs-xs);
    font-weight: 600;
    color: var(--crb-text-muted);
    background: var(--crb-surface-alt);
    border-radius: var(--crb-radius-pill);
}

.pl-option-list {
    display: flex;
    flex-direction: column;
    gap: var(--crb-space-3);
    padding-top: var(--crb-space-4);
}

.pl-option {
    padding: var(--crb-space-4);
    background: var(--crb-surface-alt);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
}

    .pl-option h4 {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: var(--crb-space-2);
        font-size: var(--crb-fs-lg);
    }

    .pl-option p {
        margin: 0 0 var(--crb-space-2);
        color: var(--crb-text-muted);
        font-size: var(--crb-fs-sm);
    }

@media (max-width: 575.98px) {
    .pl-pick-image {
        width: 3rem;
        height: 3rem;
    }

    .pl-pick-tools {
        width: 100%;
    }

    .pl-pick-count {
        margin-right: auto;
    }
}

/* ==========================================================================
   Wizard: Aktionen für Pack-/Checklisten als Karten + Angebotslisten im Popover
   ========================================================================== */
.wizard-list-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    gap: var(--crb-space-3);
}

    .wizard-list-actions > .p-2 {
        min-width: 0;
        padding: 0 !important;
    }

    .wizard-list-actions .popover-host {
        display: block;
        width: 100%;
    }

.pl-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    width: 100%;
    min-height: 4rem;
    padding: 0.75rem 1rem;
    text-align: start;
    font-weight: 800;
    color: var(--crb-text);
    background: var(--crb-surface);
    border: 1.5px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    box-shadow: var(--crb-shadow-xs);
    transition: transform var(--crb-transition), box-shadow var(--crb-transition), border-color var(--crb-transition), background-color var(--crb-transition);
}

    .pl-action:hover {
        border-color: var(--crb-primary-200);
        box-shadow: var(--crb-shadow-md);
        transform: translateY(-1px);
    }

    .pl-action:focus-visible {
        outline: none;
        box-shadow: var(--crb-focus-ring);
    }

    /* Symbol als farbiger Kreis (PopoverComponent setzt pe-2 auf das Symbol) */
    .pl-action > i {
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0 !important;
        font-size: 1.05rem;
        color: var(--crb-primary);
        background: var(--crb-primary-50);
        border-radius: 50%;
        transition: background-color var(--crb-transition), color var(--crb-transition);
    }

    .pl-action:hover > i {
        color: #fff;
        background: var(--crb-primary);
    }

    .pl-action .popover-description {
        flex: 0 0 100%;
        margin-left: calc(2.5rem + 0.75rem);
        font-size: var(--crb-fs-sm);
        font-weight: 500;
        line-height: 1.25;
    }

    .pl-action.is-create {
        color: var(--crb-primary);
        background: var(--crb-primary-50);
        border-style: dashed;
        border-color: var(--crb-primary-200);
    }

        .pl-action.is-create:hover {
            background: var(--crb-surface);
        }

/* Popover mit Angeboten */
.pl-offer-panel {
    width: min(560px, calc(100vw - 16px));
}

.pl-offer-intro {
    margin: 0 0 var(--crb-space-3);
    color: var(--crb-text-muted);
    font-size: var(--crb-fs-sm);
}

.pl-offer-list {
    display: flex;
    flex-direction: column;
    gap: var(--crb-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pl-offer {
    display: flex;
    align-items: center;
    gap: var(--crb-space-3);
    padding: 0.6rem 0.7rem;
    background: var(--crb-surface);
    border: 1px solid var(--crb-border);
    border-radius: var(--crb-radius-md);
    transition: border-color var(--crb-transition), box-shadow var(--crb-transition);
}

    .pl-offer:hover {
        border-color: var(--crb-primary-100);
        box-shadow: var(--crb-shadow-sm);
    }

.pl-offer-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--crb-primary);
    background: var(--crb-primary-50);
    border-radius: var(--crb-radius-sm);
}

.pl-offer-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.pl-offer-name {
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pl-offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pl-offer-add {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--crb-success);
    border: 0;
    border-radius: var(--crb-radius-pill);
    transition: background-color var(--crb-transition);
}

    .pl-offer-add:hover {
        background: var(--crb-success-hover);
    }

    .pl-offer-add:focus-visible {
        outline: none;
        box-shadow: var(--crb-focus-ring);
    }

.pl-offer-icon-btn {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--crb-text-muted);
    background: var(--crb-surface-alt);
    border: 0;
    border-radius: 50%;
}

    .pl-offer-icon-btn:hover {
        color: var(--crb-accent-strong);
        background: var(--crb-accent-50);
    }

.pl-offer-empty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: var(--crb-space-4);
    color: var(--crb-text-muted);
    background: var(--crb-surface-alt);
    border-radius: var(--crb-radius-md);
}

    .pl-offer-empty i {
        font-size: 1.4rem;
        color: var(--crb-text-subtle);
    }

@media (max-width: 575.98px) {
    /* Auf dem Handy nur das Plus-Symbol, der Text würde die Zeile sprengen */
    .pl-offer-add span {
        display: none;
    }

    .pl-offer-add {
        width: 2.5rem;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
/* ==========================================================================
   Button "Stopp hinzufügen" (AddStopAction) – auffällige Hauptaktion
   ========================================================================== */
.add-stop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.4rem 1.4rem 0.4rem 0.45rem;
    font-family: var(--crb-font-heading);
    font-size: var(--crb-fs-base);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    background: var(--crb-sunset-strong);
    border: 0;
    border-radius: var(--crb-radius-pill);
    box-shadow: var(--crb-glow-cta);
    transition: transform var(--crb-transition), box-shadow var(--crb-transition), filter var(--crb-transition);
}

    .add-stop-btn:hover:not(:disabled) {
        color: #fff;
        filter: brightness(1.06);
        box-shadow: var(--crb-glow-cta), var(--crb-shadow-md);
        transform: translateY(-2px);
    }

    .add-stop-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .add-stop-btn:focus-visible {
        outline: none;
        box-shadow: var(--crb-focus-ring);
    }

    .add-stop-btn:disabled {
        opacity: 0.65;
    }

.add-stop-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    transition: transform var(--crb-transition);
}

.add-stop-btn:hover:not(:disabled) .add-stop-icon {
    transform: rotate(90deg);
}

.add-stop-btn.is-block {
    display: flex;
    width: 100%;
}

@media (max-width: 575.98px) {
    /* Auf dem Handy volle Breite: leicht zu treffen */
    .add-stop-btn {
        display: flex;
        width: 100%;
    }
}