/*
 * Future RobotiX - UI Component Classes (B2B Corporate Style)
 */

/* Clean Corporate Card Component */
.glass-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transform: translate3d(0, 0, 0);
}

.glass-card-dark {
    background: var(--color-slate-900);
    border: 1px solid var(--color-slate-800);
    color: #ffffff;
}

/* Floating Navigation Button Component (Square/Minimalist) */
.nav-pill-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-slate-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-pill-btn:hover {
    color: var(--color-slate-900);
    background: var(--color-slate-50);
    border-color: var(--color-slate-200);
}

.nav-pill-btn.active {
    background: var(--color-slate-900);
    color: #ffffff;
    font-weight: 700;
    border-color: var(--color-slate-900);
}

/* Primary Action Button (Partner eintragen) */
.btn-fab {
    background-color: var(--palette-shadow-grey);
    color: #ffffff;
    border: 1.5px solid var(--palette-shadow-grey);
    border-radius: 27px;
    height: 54px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-roboto);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(32, 34, 50, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    transform: translate3d(0, 0, 0);
}

.btn-fab:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.06);
}

/* Search Box Component */
.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-slate-200);
    background: #ffffff;
}

.search-input-group input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--color-slate-800);
}

.search-input-group input::placeholder {
    color: var(--color-slate-400);
}

/* Role Badge Component */
.badge-role {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-300);
}

/* Feather Icons Base Styling */
svg.feather {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

/* Center floating navigation */
.floating-top-nav {
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    z-index: 1000;
}

/* Morphing Search Container (Collapsed: 54x54 Circle #202232, Expanded: 385x54 Pill #ffffff with #202232 border) */
.search-morph-box {
    position: absolute;
    height: 54px;
    width: 54px;
    background-color: var(--palette-shadow-grey);
    border: 1.5px solid var(--palette-shadow-grey);
    border-radius: 27px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(32, 34, 50, 0.18);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
    cursor: pointer;
    z-index: 1000;
    transform: translate3d(0, 0, 0);
    transform-origin: left center;
}

.search-morph-box.open {
    width: 385px;
    background-color: #ffffff;
    border-color: var(--palette-shadow-grey);
    border-radius: 27px;
    cursor: default;
}

.search-morph-box:not(.open):hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.06);
}

.search-morph-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--palette-cool-steel);
    transition: color 0.3s ease, transform 0.2s ease;
}

.search-morph-box.open .search-morph-icon {
    color: var(--palette-shadow-grey);
}

.search-morph-input {
    flex: 1;
    min-width: 0;
    width: 0;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--palette-shadow-grey);
    font-size: 15px;
    font-family: var(--font-roboto);
    opacity: 0;
    padding-right: 24px;
    transition: opacity 0.25s ease 0.1s;
    pointer-events: none;
}

.search-morph-box.open .search-morph-input {
    opacity: 1;
    width: 100%;
    pointer-events: auto;
}

.search-morph-input::placeholder {
    color: var(--palette-cool-steel);
    opacity: 1;
}

.search-morph-submit {
    background: none;
    border: none;
    padding: 0 20px;
    height: 100%;
    color: var(--color-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s, color 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
}

.search-morph-submit:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.search-morph-submit.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Layout Split (20vw Sidebar / 80vw Map Wrapper) */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
    background-color: var(--palette-shadow-grey);
}

.sidebar {
    width: 20vw;
    min-width: 280px;
    height: 100%;
    background-color: #ffffff;
    border-right: 1.5px solid var(--color-slate-200);
    display: flex;
    flex-direction: column;
    z-index: 1010;
    flex-shrink: 0;
    transition: margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-brand {
    padding: 1.15rem 1rem;
    border-bottom: 1px solid var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
}

.brand-logo-img {
    width: auto;
    max-width: 145px;
    height: 38px;
    max-height: 38px;
    display: block;
    object-fit: contain;
    flex-shrink: 1;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.75rem;
    color: var(--palette-cool-steel);
    font-weight: 500;
}

.sidebar-version {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    background-color: rgba(32, 34, 50, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.sidebar-nav {
    padding: 1.25rem 0.875rem 0.5rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1 1 auto;
}

.sidebar-nav-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-roboto);
    color: var(--palette-cool-steel);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-nav-btn:hover {
    color: var(--palette-shadow-grey);
    background-color: var(--color-slate-50);
}

.sidebar-nav-btn.active {
    background-color: var(--color-nav-active-bg);
    color: var(--color-nav-active-text);
    border-left: 4px solid var(--palette-shadow-grey);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sidebar Funding Info styling */
.sidebar-funding {
    padding: 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--color-slate-100);
}

.sidebar-footer-logo {
    max-width: 240px;
    height: auto;
    display: block;
    margin-left: 0;
    margin-right: auto;
}

.sidebar-footer-text {
    font-size: 0.65rem;
    line-height: 1.4;
    color: var(--palette-cool-steel);
    text-align: justify;
    margin: 0;
}

/* Sidebar Footer (Legal Links at bottom & App Version) */
.sidebar-footer {
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--color-slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background-color: #ffffff;
    margin-top: auto; /* Push legal links footer to the absolute bottom of sidebar */
    flex-shrink: 0;
}

.sidebar-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sidebar-footer-separator {
    color: var(--color-slate-400);
    font-size: 0.75rem;
    user-select: none;
}

.sidebar-footer-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-version-badge {
    font-family: var(--font-roboto), sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-slate-400);
    letter-spacing: 0.3px;
    user-select: none;
}

.sidebar-footer-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.sidebar-footer-link:hover {
    color: var(--color-primary-dark);
}

.sidebar-footer-link svg {
    margin-bottom: -1px;
}

.map-wrapper {
    width: calc(100vw - max(20vw, 280px));
    height: 100%;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#map {
    width: 100vw !important;
    height: 100%;
}

/* Sidebar Toggle Trigger Button floating on map */
.btn-toggle-sidebar {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    z-index: 1020;
    width: 54px;
    height: 54px;
    background-color: var(--palette-shadow-grey);
    color: #ffffff;
    border: 1.5px solid var(--palette-shadow-grey);
    border-radius: 27px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(32, 34, 50, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate3d(0, 0, 0);
}

.btn-toggle-sidebar .icon-toggle-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-toggle-sidebar svg {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s ease-in-out !important;
}

/* Collapsed: show burger, hide close */
.sidebar-collapsed .btn-toggle-sidebar .icon-menu {
    opacity: 1;
}

.sidebar-collapsed .btn-toggle-sidebar .icon-close {
    opacity: 0;
    pointer-events: none;
}

/* Expanded: rotate wrapper, hide burger, show close */
#app-layout:not(.sidebar-collapsed) .btn-toggle-sidebar .icon-toggle-wrapper {
    transform: rotate(180deg);
}

#app-layout:not(.sidebar-collapsed) .btn-toggle-sidebar .icon-menu {
    opacity: 0;
    pointer-events: none;
}

#app-layout:not(.sidebar-collapsed) .btn-toggle-sidebar .icon-close {
    opacity: 1;
}

.btn-toggle-sidebar:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.06);
}

/* Sidebar Collapsed Modifier Classes */
.sidebar-collapsed .sidebar {
    margin-left: calc(-1 * max(20vw, 280px));
    opacity: 0;
    pointer-events: none;
}

.sidebar-collapsed .map-wrapper {
    width: 100vw;
}

/* Specific icon size and color overrides to guarantee screendesign layout styling */
.search-morph-icon svg.feather {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 2.2 !important;
    margin-left: -2px !important;
}

.btn-fab svg.feather {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.2 !important;
}

.btn-toggle-sidebar svg.feather {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.2 !important;
}

.sidebar-brand svg.feather {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.2 !important;
}

.sidebar-nav-btn svg.feather {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2.2 !important;
}

/* Make search magnifying glass color white when collapsed and Shadow Grey when open */
.search-morph-box:not(.open) .search-morph-icon {
    color: #ffffff !important;
}

.search-morph-box.open .search-morph-icon {
    color: var(--palette-shadow-grey) !important;
}

/* Elastic Bounce-In Animation for Leaflet Map Markers (Originating from Pin Tip Anchor Point) */
@keyframes markerBounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        opacity: 1;
        transform: scale(1.18);
    }
    80% {
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.marker-bounce-in {
    transform-origin: 50% 100% !important;
    animation: markerBounceIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

/* Custom Interactive Leaflet DivIcon Marker System */
.custom-leaflet-marker-div {
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    pointer-events: none !important;
}

.custom-map-marker {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    user-select: none;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Marker Pin Shape */
.custom-marker-pin {
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--marker-partner-bg, #202232);
    border: 2px solid var(--marker-partner-border, #949EAC);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    pointer-events: auto !important;
    cursor: pointer;
}

.custom-map-marker:hover .custom-marker-pin,
.custom-map-marker.active .custom-marker-pin {
    transform: rotate(-45deg) scale(1.15);
    border-color: var(--marker-partner-hover-border, #C7FFED);
    box-shadow: 0 6px 14px rgba(32, 34, 50, 0.45), 0 0 12px var(--marker-partner-glow, rgba(199, 255, 237, 0.45));
    z-index: 1000;
}

/* Category-specific Marker Pin Colors */
.custom-map-marker.is-partner .custom-marker-pin {
    background: var(--marker-partner-bg, #202232);
    border-color: var(--marker-partner-border, #949EAC);
}
.custom-map-marker.is-partner:hover .custom-marker-pin,
.custom-map-marker.is-partner.active .custom-marker-pin {
    border-color: var(--marker-partner-hover-border, #C7FFED);
    box-shadow: 0 6px 14px rgba(32, 34, 50, 0.45), 0 0 12px var(--marker-partner-glow, rgba(199, 255, 237, 0.45));
}

.custom-map-marker.is-assoziativ .custom-marker-pin {
    background: var(--marker-assoziativ-bg, #00A37A);
    border-color: var(--marker-assoziativ-border, #5eead4);
}
.custom-map-marker.is-assoziativ:hover .custom-marker-pin,
.custom-map-marker.is-assoziativ.active .custom-marker-pin {
    border-color: var(--marker-assoziativ-hover-border, #99f6e4);
    box-shadow: 0 6px 14px rgba(0, 163, 122, 0.45), 0 0 12px var(--marker-assoziativ-glow, rgba(94, 234, 212, 0.5));
}

.custom-map-marker.is-event .custom-marker-pin {
    background: var(--marker-event-bg, #0284c7);
    border-color: var(--marker-event-border, #bae6fd);
}
.custom-map-marker.is-event:hover .custom-marker-pin,
.custom-map-marker.is-event.active .custom-marker-pin {
    border-color: var(--marker-event-hover-border, #38bdf8);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.45), 0 0 12px var(--marker-event-glow, rgba(56, 189, 248, 0.5));
}

.custom-map-marker.is-interessent .custom-marker-pin {
    background: var(--marker-interessent-bg, #e67e22);
    border-color: var(--marker-interessent-border, #fde68a);
}
.custom-map-marker.is-interessent:hover .custom-marker-pin,
.custom-map-marker.is-interessent.active .custom-marker-pin {
    border-color: var(--marker-interessent-hover-border, #fef3c7);
    box-shadow: 0 6px 14px rgba(230, 126, 34, 0.45), 0 0 12px var(--marker-interessent-glow, rgba(253, 230, 138, 0.5));
}

.custom-map-marker.is-gallery .custom-marker-pin {
    background: var(--marker-gallery-bg, #0f172a);
    border-color: var(--marker-gallery-border, #C7FFED);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 8px var(--marker-gallery-glow, rgba(199, 255, 237, 0.35));
}
.custom-map-marker.is-gallery:hover .custom-marker-pin,
.custom-map-marker.is-gallery.active .custom-marker-pin {
    border-color: var(--marker-gallery-hover-border, #ffffff);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), 0 0 12px var(--marker-gallery-glow, rgba(199, 255, 237, 0.45));
}

/* Inner Circle containing Logo / Initials / Icon */
.custom-marker-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transform: rotate(45deg);
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.leaflet-container .custom-marker-inner img,
.custom-marker-inner img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 2.5px !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

.leaflet-container .custom-marker-inner img.is-square,
.custom-marker-inner img.is-square {
    padding: 0 !important;
    object-fit: cover !important;
}

.leaflet-container .custom-marker-inner img.is-rectangular,
.custom-marker-inner img.is-rectangular {
    padding: 2.5px !important;
    object-fit: contain !important;
}

.custom-marker-inner .marker-initials {
    font-family: var(--font-lato), sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #202232;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
}

.custom-marker-inner .marker-event-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--marker-event-bg, #0284c7);
}

.custom-marker-inner .marker-event-icon svg {
    width: 17px;
    height: 17px;
}

.custom-map-marker.is-gallery .marker-initials {
    color: #0088CC;
    font-weight: 900;
}

/* Floating Label Badge */
.custom-marker-label {
    margin-top: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--font-lato), sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
    white-space: nowrap;
    max-width: none;
    text-align: center;
    pointer-events: auto;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-marker-label span {
    display: inline-block;
    white-space: nowrap;
}

.custom-map-marker:hover .custom-marker-label,
.custom-map-marker.active .custom-marker-label {
    background: #202232;
    color: #ffffff;
    border-color: #202232;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.custom-map-marker.is-gallery .custom-marker-label {
    border-color: #C7FFED;
    color: #0f172a;
    font-weight: 800;
}

.custom-map-marker.is-event .custom-marker-label {
    border-color: #bae6fd;
}

.custom-map-marker.is-event:hover .custom-marker-label,
.custom-map-marker.is-event.active .custom-marker-label {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Circular Cluster Bubble Marker (for overlapping locations) */
.custom-map-marker.is-cluster-bubble {
    width: 200px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-origin: 50% 50% !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cluster-bubble-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 3px solid var(--color-cyan-glow, #38bdf8);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.45), 0 0 14px rgba(56, 189, 248, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.custom-map-marker.is-cluster-bubble:hover .cluster-bubble-circle {
    transform: scale(1.15);
    border-color: #C7FFED;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.6), 0 0 20px rgba(199, 255, 237, 0.6);
}

/* Active cluster bubble state when spiderfy is open */
.custom-map-marker.is-cluster-bubble.is-active .cluster-bubble-circle {
    transform: scale(1.1);
    border-color: #C7FFED;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.6), 0 0 22px rgba(56, 189, 248, 0.7);
}

.cluster-bubble-circle .cluster-bubble-count {
    font-family: var(--font-lato, sans-serif);
    font-weight: 900;
    font-size: 17px;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.custom-map-marker.is-cluster-bubble.bubble-hidden {
    opacity: 0 !important;
    transform: scale(0.3) !important;
    pointer-events: none !important;
}

/* Spiderfy State Classes for Individual Markers */
.custom-map-marker.spiderfy-item {
    animation: none !important;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.32s ease !important;
}

.custom-map-marker.spiderfy-collapsed {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(0px, 0px) scale(0.2) !important;
    z-index: 1000 !important;
}

.custom-map-marker.spiderfy-expanded {
    opacity: 1 !important;
    pointer-events: none !important;
    transform: translate(var(--spiderfy-x, 0px), var(--spiderfy-y, 0px)) scale(1) !important;
    z-index: 2000 !important;
}

.custom-map-marker.spiderfy-expanded:hover {
    z-index: 2500 !important;
}

.custom-map-marker.spiderfy-expanded .custom-marker-pin,
.custom-map-marker.spiderfy-expanded .custom-marker-label {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Spiderfy connecting lines (underneath markers in leaflet-overlay-pane) */
path.spiderfy-line {
    stroke: var(--palette-shadow-grey, #202232) !important;
    stroke-width: 2.2 !important;
    stroke-dasharray: 4 3 !important;
    stroke-linecap: round !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    animation: spiderfyLineFadeIn 0.35s ease forwards;
}

@keyframes spiderfyLineFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.5;
    }
}

/* Flicker-free initial state helper */
.no-transition,
.no-transition * {
    transition: none !important;
}

/* Subtle tune of CartoDB Voyager tiles: reduce warm yellow tint, slightly more vivid saturation */
.leaflet-tile {
    filter: saturate(1.22) contrast(1.05) hue-rotate(-20deg) !important;
}

/* Standard Corporate B2B Buttons */
.btn {
    font-family: var(--font-roboto);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    /* 2px */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-slate-300);
    background: #ffffff;
    color: var(--color-slate-700);
    transition: all 0.15s ease;
    text-decoration: none;
    outline: none;
}

.btn:hover {
    border-color: var(--color-slate-400);
    color: var(--color-slate-900);
    background: var(--color-slate-50);
    transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--color-accent) !important;
    /* Stormy Teal #00685E */
    border-color: var(--color-accent) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: var(--palette-pine-teal) !important;
    /* Pine Teal #004E46 */
    border-color: var(--palette-pine-teal) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-danger) !important;
    border-color: var(--color-danger) !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    background: #ffffff !important;
    border: 1px solid var(--color-slate-300) !important;
    color: #dc2626 !important;
}

.btn-outline-danger:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    height: 32px;
}

.btn-sm svg,
.btn-sm i {
    width: 14px;
    height: 14px;
}

.btn-icon {
    padding: 6px 9px;
    min-width: 32px;
    height: 32px;
}

.btn-icon svg,
.btn-icon i {
    width: 15px;
    height: 15px;
}

.btn-accent {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: #ffffff !important;
}

.btn-accent:hover {
    background: var(--palette-pine-teal) !important;
    border-color: var(--palette-pine-teal) !important;
    color: #ffffff !important;
}

/* Compact confirmation and alert dialogs rendered via Modal.confirm() / Modal.alert() */
.modal.modal-confirm,
.modal.modal-alert {
    max-width: 440px;
    width: 90%;
}

/* Read-only label/value pairs for detail-view modals */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-5);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-slate-400);
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.92rem;
    color: var(--color-slate-800);
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

.detail-value a {
    color: var(--color-accent);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Universal Modal Overlay – WFG style (opacity fade + scale animation) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Modal card */
.modal {
    background: #ffffff;
    border-radius: 0.3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-slate-200);
    width: 90%;
    max-width: 650px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    transform: scale(0.92);
    transition: transform 0.2s ease;
    position: relative;
}

.overlay.open .modal {
    transform: scale(1);
}

/* Make <form> inside modal a proper flex child for correct scroll layout */
.modal>form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Modal header */
.modal-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: 14px;
    position: relative;
    flex-shrink: 0;
}

.modal-hd h3 {
    font-family: var(--font-lato);
    font-size: 17.5px;
    font-weight: 800;
    color: var(--palette-shadow-grey);
    margin: 0;
    line-height: 1.35;
    padding-right: 40px;
    flex-grow: 1;
}

/* Circular close button with red hover */
.modal-close-btn {
    position: absolute !important;
    top: -10px;
    right: 0;
    background: var(--color-slate-100) !important;
    border: 1px solid var(--color-slate-200) !important;
    font-size: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    color: var(--color-slate-500) !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-sizing: border-box !important;
}

.modal-close-btn:hover {
    color: #ffffff !important;
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    transform: scale(1.08);
}

/* Modal body – scrollable content area */
.modal-bd {
    font-size: 14.5px;
    color: var(--color-slate-800);
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    /* compensate padding removed from card for scrollbar alignment */
    margin: 0 -4px;
    padding: 0 4px;
}

/* Multi-step wizard (e.g. event registration modal) — step count is dynamic
   (one step per added person), so progress is shown as a bar + text label
   rather than fixed dots */
.wizard-progress {
    margin-bottom: var(--space-6);
}

.wizard-progress-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.wizard-progress-track {
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--color-slate-100);
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width 0.25s ease;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* Header row for a wizard step's form-section, with an action (e.g. remove) on the right */
.form-section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-section-title-row .form-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Modal footer */
.modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-slate-200);
    flex-shrink: 0;
}

/* Premium B2B Form styling */
.form-section {
    margin-bottom: var(--space-6);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-family: var(--font-lato);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--palette-shadow-grey);
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Feather icon sizing inside form section titles */
.form-section-title svg {
    width: 14px;
    height: 14px;
    stroke: var(--palette-shadow-grey);
    flex-shrink: 0;
}

/* Feather icon sizing inside modal heading */
.modal-hd h3 svg,
.modal-title-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--palette-shadow-grey);
    vertical-align: middle;
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* Feather icon sizing inside buttons */
.btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-slate-800);
}

.form-label span.required {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea,
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    background-color: var(--color-slate-50);
    font-family: inherit;
    font-size: 14px;
    color: var(--color-slate-900);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    background-color: #ffffff;
}

.form-textarea,
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Custom Checkbox & Radio layout as Card Containers */
.form-checkbox-group,
.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 2-Column Grid for Radio buttons, responsive to 1 column on mobile */
.form-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .form-radio-group {
        grid-template-columns: 1fr;
    }
}

.form-check-label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.form-check-label:hover {
    border-color: var(--color-slate-300);
    background-color: var(--color-slate-50);
}

/* Checked States */
.form-check-label:has(input[type="checkbox"]:checked) {
    border-color: var(--color-slate-300);
}

.form-check-label:has(input[type="radio"]:checked) {
    border-color: var(--color-accent);
    background-color: rgba(0, 104, 94, 0.04);
}

/* Hide native checkbox/radio inputs */
.form-check-label input[type="checkbox"],
.form-check-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom indicator element prefix using pseudo-element */
.form-check-label::before {
    content: "";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid var(--color-slate-300);
    background-color: var(--color-slate-100);
    transition: all 0.15s ease;
    margin-top: 1px;
}

/* Checkbox indicator: rounded rectangle */
.form-check-label:has(input[type="checkbox"])::before {
    border-radius: 4px;
}

/* Radio indicator: circular */
.form-check-label:has(input[type="radio"])::before {
    border-radius: 50%;
}

/* Checked styling for Checkbox indicator */
.form-check-label:has(input[type="checkbox"]:checked)::before {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

/* Checked styling for Radio indicator */
.form-check-label:has(input[type="radio"]:checked)::before {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}

.form-check-label span,
.form-check-label div {
    font-family: var(--font-roboto);
    font-size: 0.88rem;
    color: var(--color-slate-800);
    line-height: 1.4;
}

.form-check-label .label-text {
    font-weight: 600;
    color: var(--color-slate-900);
    display: block;
}

.form-check-label .description {
    display: block;
    font-size: 0.78rem;
    color: var(--color-slate-500);
    margin-top: 2px;
    line-height: 1.4;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Validation error styling */
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--color-danger) !important;
}

.form-group.has-error .form-label {
    color: var(--color-danger);
}

.error-message {
    font-size: 0.78rem;
    color: var(--color-danger);
    margin-top: 2px;
}

/* Premium Toast Notification System */
.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 420px;
    width: 90%;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    padding: 1.125rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    pointer-events: auto;
    animation: toast-in 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background-color: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
}

.toast-error .toast-icon {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--color-danger);
}

.toast-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 3px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: var(--font-lato);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-family: var(--font-roboto);
    font-size: 0.82rem;
    color: var(--color-slate-600);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-slate-400);
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -0.375rem;
    margin-right: -0.375rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
    background-color: var(--color-slate-100);
    color: var(--color-slate-600);
}

/* Spinner for loading states */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   ADMIN & DASHBOARD STYLES
   ============================================================ */

.login-page-container {
    background-color: var(--color-slate-50);
}

.login-card {
    background: #ffffff;
    transition: var(--transition);
}

.admin-dashboard-container {
    /* Flex children with margin:auto only center when width is definite —
       without this, an empty tab pane shrink-fits and the whole page narrows */
    width: 100%;
    background-color: var(--color-slate-50);
}

/* Tab controls */
.tab-btn {
    border-bottom: 3px solid transparent;
    user-select: none;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Admin Table styling */
.admin-table th {
    font-weight: 700;
    color: var(--color-primary);
}

.admin-table tr:hover {
    background-color: var(--color-slate-50);
}

/* Action button badges */
.action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn svg {
    width: 1rem;
    height: 1rem;
}

.action-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Status Pill Badges */
.status-pill {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: capitalize;
}

.status-pill.status-aktiv {
    background-color: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(0, 104, 94, 0.15);
}

.status-pill.status-info {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.status-pill.status-approved {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pill.status-declined {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-pill.status-pending {
    background-color: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-pill.status-active {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pill.status-inactive {
    background-color: var(--color-slate-100);
    color: var(--color-slate-500);
    border: 1px solid var(--color-slate-200);
}

/* ============================================================
   ADMIN SHELL — full-bleed light background wrapper with
   proper vertical scrolling enabled
   ============================================================ */
html:has(.admin-shell),
body:has(.admin-shell) {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

.admin-shell {
    min-height: 100vh;
    width: 100%;
    background-color: var(--color-slate-50);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   ADMIN HEADER — 3-zone layout (brand / nav / actions),
   no sidebar, plain corporate style, no pill-shaped nav links
   ============================================================ */
.admin-header {
    width: 100%;
    background-color: transparent;
    flex-shrink: 0;
}

.admin-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-sizing: border-box;
}

/* Brand zone (left) */
.admin-header-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
    user-select: none;
}

.admin-header-brand .brand-icon-box {
    width: 42px;
    height: 42px;
    background-color: var(--palette-shadow-grey);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-header-brand .brand-icon-box svg {
    width: 21px;
    height: 21px;
    stroke: var(--palette-icy-aqua);
    stroke-width: 2.4;
}

.admin-header-brand .brand-copy {
    line-height: 1.25;
}

.admin-header-brand .brand-title {
    font-family: var(--font-lato);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--palette-shadow-grey);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-header-brand .brand-subtitle {
    font-size: 0.78rem;
    color: var(--palette-cool-steel);
    font-weight: 500;
}

/* Nav + actions grouped together on the right (brand stays left) */
.admin-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-family: var(--font-roboto);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-slate-500);
    border-bottom: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition: var(--transition);
}

.admin-nav-link svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.3;
}

.admin-nav-link:hover {
    color: var(--palette-shadow-grey);
}

.admin-nav-link.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    font-weight: 700;
}

.admin-nav-link.disabled {
    color: var(--color-slate-300);
    cursor: default;
    pointer-events: none;
}

/* Actions zone (right): search + user menu trigger */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.admin-header-search {
    /* Hidden for now (unused) — markup/position/design stay in place, ready to re-enable later */
    display: none;
    max-width: 210px;
    padding: 0.625rem 1rem;
}

.admin-header-search input {
    font-size: 0.85rem;
}

.admin-header-search input:disabled {
    cursor: default;
    opacity: 0.7;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--palette-shadow-grey);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-lato);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* User menu: avatar trigger + dropdown panel (username/role, settings, logout) */
.admin-user-menu {
    position: relative;
}

.admin-user-trigger {
    background: none;
    border: 1px solid transparent;
    padding: 3px;
    border-radius: 50%;
    line-height: 0;
    cursor: pointer;
    display: inline-flex;
    user-select: none;
    transition: var(--transition);
}

.admin-user-trigger:hover,
.admin-user-trigger.open {
    background-color: var(--color-slate-100);
}

.admin-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1000;
}

.admin-user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-user-dropdown-header {
    padding: 8px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--color-slate-100);
}

.admin-user-dropdown-header .user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.admin-user-dropdown-header .user-role {
    display: block;
    font-size: 0.65rem;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.admin-user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-roboto);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-slate-600);
    text-decoration: none;
    user-select: none;
    transition: var(--transition);
}

.admin-user-dropdown-link svg {
    width: 15px;
    height: 15px;
}

.admin-user-dropdown-link:hover,
.admin-user-dropdown-link.active {
    background-color: var(--color-slate-50);
    color: var(--palette-shadow-grey);
}

.admin-user-dropdown-link.danger:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--color-danger);
}

@media (max-width: 860px) {
    .admin-header-search {
        display: none;
    }
}

@media (max-width: 640px) {
    .admin-header-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .admin-header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .admin-nav {
        width: 100%;
        justify-content: flex-start;
        border-top: 1px solid var(--color-slate-100);
        padding-top: 8px;
    }
}

/* Modal form controls helper */
.modal-container form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-primary);
}

/* Admin & Frontend Tab Pane System */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sidebar Content Panel Layout */
.tab-panel {
    background-color: var(--color-slate-50);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
}

/* Custom premium scrollbars for panels */
.tab-panel::-webkit-scrollbar {
    width: 8px;
}

.tab-panel::-webkit-scrollbar-track {
    background: transparent;
}

.tab-panel::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 4px;
}

.tab-panel::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

.panel-header {
    background-color: transparent;
    border-bottom: none;
    padding: 4rem 2rem;
    text-align: left;
    flex-shrink: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.panel-badge svg,
.panel-badge i {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.panel-title {
    font-family: var(--font-lato);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.panel-subtitle {
    font-size: 0.95rem;
    color: var(--color-slate-500);
    margin-bottom: var(--space-5);
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.panel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-top: var(--space-4);
    width: 100%;
}

.panel-search {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.panel-search input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    color: var(--color-slate-800);
    background-color: var(--color-slate-50);
    transition: var(--transition);
}

.panel-search input:focus {
    border-color: var(--color-accent);
    background-color: #ffffff;
    outline: none;
}

.panel-search .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-slate-400);
    pointer-events: none;
}

.panel-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-slate-600);
    background-color: var(--color-slate-100);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: var(--color-primary);
    background-color: var(--color-slate-200);
}

.filter-pill.active {
    color: #ffffff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.panel-body {
    flex-grow: 1;
    overflow-y: visible;
    padding: 0rem 2rem 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid & Cards (Hersteller) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    width: 100%;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-300);
}

.card-header {
    padding: var(--space-5) var(--space-5) 0;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.card-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-brand-icon svg {
    width: 22px;
    height: 22px;
}

.card-brand-logo {
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
}

.card-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* "Person entfernen" trash button, placed in the step's form-section-title-row */
.reg-person-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-slate-200);
    background-color: #ffffff;
    color: var(--color-slate-500);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition), transform 0.15s ease;
}

.reg-person-remove svg {
    width: 15px;
    height: 15px;
}

.reg-person-remove:hover {
    color: #ffffff;
    background-color: #ef4444;
    border-color: #ef4444;
    transform: scale(1.08);
}

/* Modern curated gradient brand backgrounds */
.card-brand-icon.orange {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #ea580c;
}

.card-brand-icon.blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
}

.card-brand-icon.yellow {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    color: #ca8a04;
}

.card-brand-icon.red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.card-brand-icon.darkblue {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #16a34a;
}

.card-brand-icon.cyan {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0891b2;
}

.card-brand-icon.black {
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    color: #0f172a;
}

.card-brand-icon.darkgreen {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0d9488;
}

.card-title {
    font-family: var(--font-lato);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-body {
    padding: var(--space-4) var(--space-5) var(--space-5);
    flex-grow: 1;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--color-slate-600);
    line-height: 1.5;
    margin-bottom: var(--space-4);
}

.card-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-bullets li {
    font-size: 0.82rem;
    color: var(--color-slate-700);
    margin-bottom: var(--space-2);
    position: relative;
    padding-left: 1.125rem;
}

.card-bullets li::before {
    content: "•";
    color: var(--color-accent);
    font-weight: bold;
    position: absolute;
    left: 0.25rem;
    top: -1px;
    font-size: 1.1rem;
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-slate-100);
    background-color: var(--color-slate-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
}

.status-local {
    background-color: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
}

.status-nrw {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.status-germany {
    background-color: rgba(71, 85, 105, 0.08);
    color: var(--color-slate-600);
}

.status-future {
    background-color: rgba(234, 88, 12, 0.08);
    color: #ea580c;
}

.card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--color-primary-dark);
}

.card-footer-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-slate-200);
    background-color: #ffffff;
    color: var(--color-slate-500);
    cursor: pointer;
    transition: var(--transition), transform 0.15s ease;
    flex-shrink: 0;
}

.card-map-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.08);
}

.card-map-btn svg {
    width: 15px;
    height: 15px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 100%;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-slate-300);
}

.event-date {
    width: 90px;
    background: linear-gradient(135deg, var(--palette-shadow-grey), #2c2f44);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-lato);
    border-right: 1px solid var(--color-slate-200);
}

.event-day {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
}

.event-month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--palette-icy-aqua);
    margin-top: 2px;
}

.event-details {
    padding: var(--space-5) var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.event-meta {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    font-size: 0.82rem;
    color: var(--color-slate-500);
    flex-wrap: wrap;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.event-meta svg {
    width: 14px;
    height: 14px;
}

.event-title {
    font-family: var(--font-lato);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0;
}

.event-desc {
    font-size: 0.88rem;
    color: var(--color-slate-600);
    line-height: 1.5;
    margin: 0 0 var(--space-2) 0;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.event-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
}

.badge-workshop {
    background-color: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
}

.badge-infotag {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.badge-webinar {
    background-color: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.badge-netzwerk {
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--color-slate-800);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--palette-pine-teal);
    border-color: var(--palette-pine-teal);
    color: #ffffff;
    transform: translateY(-1px);
    opacity: .5;
}

@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        padding: var(--space-3) 0;
        flex-direction: row;
        gap: 0.5rem;
        border-right: none;
        border-bottom: 1px solid var(--color-slate-200);
    }

    .event-day {
        font-size: 1.5rem;
    }

    .event-month {
        margin-top: 0;
    }
}

/* Elegant App-like Map Filter Controls */
.map-filters {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1020;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.filter-pill-group {
    display: inline-flex;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(32, 34, 50, 0.15);
    border: 1px solid var(--color-slate-100);
    gap: 4px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--color-slate-600);
    font-family: var(--font-lato);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-pill svg {
    width: 14px;
    height: 14px;
    stroke-dashoffset: 0;
    stroke-width: 2.2px;
}

.filter-pill:hover {
    color: var(--color-accent);
    background-color: rgba(0, 104, 94, 0.04);
}

.filter-pill.active {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 104, 94, 0.2);
}

/* Floating Mobile Filter Trigger Button (App-like circular button) */
.btn-mobile-filter {
    display: none;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1020;
    width: 46px;
    height: 46px;
    background-color: var(--palette-shadow-grey);
    color: #ffffff;
    border: 1.5px solid var(--palette-shadow-grey);
    border-radius: 23px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(32, 34, 50, 0.18);
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate3d(0, 0, 0);
}

.btn-mobile-filter:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
}

.btn-mobile-filter svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* Mobile Map Filter Modal Card */
.modal-filter-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(32, 34, 50, 0.25);
    border: 1px solid var(--color-slate-100);
}

.mobile-filter-modal-body {
    padding: 1.25rem;
}

.mobile-filter-intro-text {
    font-size: 13px;
    color: var(--color-slate-500);
    margin: 0 0 1rem 0;
    line-height: 1.45;
}

.mobile-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--color-slate-200);
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-lato);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-700);
    text-align: left;
    transition: all 0.2s ease-in-out;
}

.mobile-filter-option:hover {
    border-color: var(--color-accent);
    background: rgba(0, 104, 94, 0.03);
}

.mobile-filter-option .filter-opt-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--color-slate-100);
    color: var(--color-slate-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.mobile-filter-option .filter-opt-icon svg {
    width: 16px;
    height: 16px;
}

.mobile-filter-option .filter-opt-label {
    flex-grow: 1;
}

.mobile-filter-option .filter-opt-check {
    opacity: 0;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-in-out;
}

.mobile-filter-option .filter-opt-check svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.8px;
}

.mobile-filter-option.active {
    background: rgba(0, 104, 94, 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.mobile-filter-option.active .filter-opt-icon {
    background: var(--color-accent);
    color: #ffffff;
}

.mobile-filter-option.active .filter-opt-check {
    opacity: 1;
}

/* Responsive map-filters and btn-mobile-filter */
@media (max-width: 768px) {
    .map-filters {
        display: none !important;
    }

    .btn-mobile-filter:not(.hidden) {
        display: flex !important;
    }

    #app-layout:not(.sidebar-collapsed) .btn-mobile-filter {
        transform: translate3d(-280px, 0, 0) !important;
    }
}

/* Responsive Sidebar behaviour: always open on desktop (>768px), slide-out drawer on mobile (<=768px) */
@media (min-width: 769px) {
    .btn-mobile-filter {
        display: none !important;
    }

    .map-filters:not(.hidden) {
        display: block !important;
    }

    /* Hide toggle button completely on desktop */
    .btn-toggle-sidebar {
        display: none !important;
    }
    
    /* Force sidebar to be always open and visible side-by-side with map wrapper */
    #app-layout.sidebar-collapsed .sidebar,
    .sidebar {
        margin-left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 20vw !important;
        min-width: 280px !important;
    }
    
    #app-layout.sidebar-collapsed .map-wrapper,
    .map-wrapper {
        width: calc(100vw - max(20vw, 280px)) !important;
    }
}

@media (max-width: 768px) {
    /* Show sidebar as push-drawer side-by-side */
    .sidebar {
        width: 280px !important;
        min-width: 280px !important;
        height: 100%;
        z-index: 1010;
        box-shadow: 4px 0 15px rgba(32, 34, 50, 0.15);
        transition: margin-left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease;
    }
    
    /* Collapsed state on mobile: push it out of screen by using negative margin-left */
    .sidebar-collapsed .sidebar {
        margin-left: -280px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Expanded state on mobile: reset margin to 0 */
    #app-layout:not(.sidebar-collapsed) .sidebar {
        margin-left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Map wrapper always takes 100vw on mobile, and is pushed side-by-side */
    .map-wrapper,
    .sidebar-collapsed .map-wrapper {
        width: 100vw !important;
        flex-shrink: 0 !important;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Shift the FAB left by 280px when sidebar is open to keep it visible on mobile screen */
    #app-layout:not(.sidebar-collapsed) .btn-fab {
        transform: translate3d(-280px, 0, 0) !important;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
    
    .sidebar-collapsed .btn-fab {
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    /* Toggle button on mobile: stays visible and fixed when sidebar is open */
    .btn-toggle-sidebar {
        width: 46px;
        height: 46px;
        border-radius: 23px;
        top: 0.85rem;
        left: 0.85rem;
    }

    #app-layout:not(.sidebar-collapsed) .btn-toggle-sidebar {
        position: fixed !important;
        top: 0.85rem !important;
        left: calc(280px + 10px) !important;
        z-index: 1100 !important;
    }

    /* Generous top & bottom padding on mobile so floating toggle button never overlaps panel badge or title */
    .panel-header {
        padding: 6.5rem 1.25rem 1.5rem 1.25rem !important;
    }

    .tab-panel {
        padding-bottom: 6rem !important;
    }

    /* Partner & Manufacturer Cards: compact flag badges and responsive logo protection on mobile */
    .partner-card {
        overflow: hidden !important;
    }

    .partner-card-header {
        align-items: center !important;
        gap: 8px !important;
    }

    .partner-card-header > div:first-child {
        min-width: 0 !important;
        flex-shrink: 1 !important;
        flex-wrap: nowrap !important;
    }

    .partner-card-header .flag-badge {
        padding: 3px 6px !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }

    .partner-card-header .flag-badge span {
        display: none !important;
    }

    .partner-card-header img {
        max-height: 26px !important;
        max-width: 72px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }
}

@media (max-width: 640px) {
    /* Compact Floating Action Button on mobile (+ icon only) */
    .btn-fab {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        padding: 0 !important;
        border-radius: 24px !important;
        justify-content: center !important;
        gap: 0 !important;
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        right: 1.25rem !important;
    }

    .btn-fab span {
        display: none !important;
    }

    .btn-fab svg {
        margin: 0 !important;
        width: 22px !important;
        height: 22px !important;
    }

    /* Search bar adapts cleanly on mobile without overlapping the + button */
    .search-morph-box {
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        left: 1.25rem !important;
        height: 48px !important;
        width: 48px !important;
        border-radius: 24px !important;
    }

    .search-morph-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .search-morph-box.open {
        width: calc(100vw - 84px) !important;
        max-width: calc(100vw - 84px) !important;
        height: 48px !important;
        border-radius: 24px !important;
    }

    .search-morph-input {
        font-size: 13.5px !important;
        padding-right: 10px !important;
    }

    .search-morph-submit {
        padding: 0 12px !important;
    }
}

/* ============================================================
   Phase 2 Components (Language Switcher, Flags, News, Products)
   ============================================================ */

/* Language Dropdown in Sidebar / Header */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(32, 34, 50, 0.06);
    border: 1px solid rgba(32, 34, 50, 0.12);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--palette-shadow-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.lang-dropdown-btn:hover,
.lang-dropdown-wrapper.open .lang-dropdown-btn {
    background: rgba(32, 34, 50, 0.12);
    border-color: rgba(32, 34, 50, 0.25);
}

.lang-dropdown-btn .chevron-icon {
    width: 13px;
    height: 13px;
    stroke: var(--palette-shadow-grey);
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.open .lang-dropdown-btn .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 6px;
    min-width: 140px;
    z-index: 2000;
    display: none;
    flex-direction: column;
    gap: 3px;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
    display: flex;
    animation: dropdownFade 0.15s ease-out;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-slate-700);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-dropdown-item:hover {
    background: var(--color-slate-100);
    color: var(--palette-shadow-grey);
}

.lang-dropdown-item.active {
    background: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
    font-weight: 700;
}

/* Country Flag Badges */
.flag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(0, 104, 94, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(0, 104, 94, 0.2);
    text-transform: none;
}

.flag-badge.de {
    background: rgba(255, 204, 0, 0.1);
    color: #854d0e;
    border-color: rgba(255, 204, 0, 0.35);
}

.flag-badge.nl {
    background: rgba(30, 64, 175, 0.08);
    color: #1d4ed8;
    border-color: rgba(30, 64, 175, 0.25);
}

.svg-flag {
    vertical-align: middle;
    flex-shrink: 0;
}

/* Partner List Card Customizations */
.partner-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.partner-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.partner-card-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.partner-card-type.partner {
    background: rgba(0, 104, 94, 0.12);
    color: var(--color-accent);
}

.partner-card-type.assoziativ {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

.partner-card-type.interessent {
    background: rgba(230, 126, 34, 0.12);
    color: #d97706;
}

.partner-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--palette-shadow-grey);
    margin: 0 0 4px;
    line-height: 1.3;
}

.partner-card-org {
    font-size: 12.5px;
    color: var(--color-slate-500);
    font-weight: 500;
}

.partner-card-body {
    flex-grow: 1;
    margin-bottom: 16px;
}

.partner-card-desc {
    font-size: 13px;
    color: var(--color-slate-600);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.partner-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    color: var(--color-slate-600);
    margin-bottom: 12px;
}

.partner-card-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.partner-card-meta-item i {
    width: 14px;
    height: 14px;
    stroke: var(--color-slate-400);
    flex-shrink: 0;
}

.partner-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--color-slate-100);
    gap: 8px;
}

.btn-fly-to-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(0, 104, 94, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-fly-to-map:hover {
    background: var(--color-accent);
    color: #ffffff;
}

/* News Components */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    border-color: var(--color-accent);
}

.news-card-img-wrap {
    width: 100%;
    height: 180px;
    background: var(--palette-shadow-grey);
    position: relative;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #202232 0%, #00685E 100%);
    color: rgba(255, 255, 255, 0.7);
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--palette-shadow-grey);
    margin: 0 0 10px;
    line-height: 1.35;
}

.news-card-summary {
    font-size: 13.5px;
    color: var(--color-slate-600);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-author {
    font-size: 12px;
    color: var(--color-slate-400);
    border-top: 1px solid var(--color-slate-100);
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Products in Manufacturer Modal / Cards */
.products-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--palette-shadow-grey);
    margin: 24px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-item-card {
    background: #f8fafc;
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.product-item-card:hover {
    background: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-item-img-wrap {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-md);
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--palette-shadow-grey);
    margin: 0 0 4px;
}

.product-item-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.product-item-desc {
    font-size: 12.5px;
    color: var(--color-slate-600);
    line-height: 1.45;
    margin-bottom: 10px;
}

/* Manufacturer Facts (Zahlen, Daten, Fakten) */
.facts-box {
    background: rgba(0, 104, 94, 0.04);
    border: 1px solid rgba(0, 104, 94, 0.15);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.facts-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.fact-item {
    font-size: 12.5px;
}

.fact-item-label {
    color: var(--color-slate-500);
    font-size: 11.5px;
}

.fact-item-val {
    font-weight: 700;
    color: var(--palette-shadow-grey);
}

/* ============================================================ */
/* ============================================================ */
/* SIDEBAR INFO BUTTON & PULSE ANIMATION                        */
/* ============================================================ */
.sidebar-info-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-slate-400);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-info-btn:hover {
    background: rgba(0, 104, 94, 0.08);
    border-color: rgba(0, 104, 94, 0.25);
    color: var(--color-accent);
    opacity: 1;
    transform: translateY(-1px);
}

@keyframes infoIconPulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 104, 94, 0.6);
        border-color: var(--color-accent);
        color: var(--color-accent);
        opacity: 1;
        transform: scale(1);
    }
    40% {
        box-shadow: 0 0 0 8px rgba(0, 104, 94, 0);
        border-color: var(--color-accent);
        color: var(--color-accent);
        opacity: 1;
        transform: scale(1.15);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 104, 94, 0);
        border-color: var(--color-accent);
        color: var(--color-accent);
        opacity: 1;
        transform: scale(1.06);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 94, 0);
        transform: scale(1);
    }
}

.sidebar-info-btn.pulse-highlight {
    animation: infoIconPulseGlow 1.2s ease-in-out 2;
}

/* ============================================================ */
/* WELCOME MODAL STYLES                                         */
/* ============================================================ */
.modal-welcome-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 104, 94, 0.2);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 163, 122, 0.15);
    overflow: hidden;
}

.welcome-modal-body {
    padding: 24px;
    color: var(--color-slate-700);
    font-size: 14.5px;
    line-height: 1.65;
}

.welcome-lead {
    font-size: 15px;
    line-height: 1.65;
    color: var(--palette-shadow-grey);
    margin-bottom: 20px;
    font-weight: 450;
}

.welcome-participation-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.welcome-participation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.welcome-part-title {
    font-weight: 800;
    font-family: var(--font-lato);
    font-size: 15px;
    color: var(--color-primary);
}

.welcome-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-types-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--color-slate-600);
}

.welcome-types-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: var(--color-accent);
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}

.welcome-types-list .type-name {
    font-weight: 800;
    color: var(--color-primary);
}

.welcome-platform-info {
    font-size: 14px;
    color: var(--color-slate-600);
    margin-bottom: 18px;
    line-height: 1.6;
}

.welcome-goal-box {
    background: rgba(0, 104, 94, 0.05);
    border: 1px solid rgba(0, 104, 94, 0.18);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-primary);
    line-height: 1.5;
}

.welcome-goal-box strong {
    color: var(--color-accent);
    font-weight: 800;
}

.welcome-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid var(--color-slate-100);
}