/* =========================================
   zHaus – Global Styles, Mobile First
   ========================================= */

:root {
    --zh-primary: #8A7ED9;     /* moderne Akzentfarbe */
    --zh-bg: #f1f3f4;          /* dezentes Grau */
    --zh-radius-lg: 18px;
    --zh-radius-md: 12px;
    --zh-shadow-soft: 0 4px 18px rgba(0, 0, 0, 0.12);
    --zh-text-muted: #5f6368;
}



/* Color Theme Swatches in Hex
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-1-hex { color: #8A7ED9; }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-2-hex { color: #9B95BF; }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-3-hex { color: #C1C9D9; }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-4-hex { color: #F26E22; }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-5-hex { color: #A67051; }
 */
/* Color Theme Swatches in RGBA 
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-1-rgba { color: rgba(137, 125, 216, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-2-rgba { color: rgba(154, 149, 191, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-3-rgba { color: rgba(192, 200, 216, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-4-rgba { color: rgba(242, 110, 33, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-5-rgba { color: rgba(165, 112, 81, 1); }
*/
/* Color Theme Swatches in HSLA 
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-1-hsla { color: hsla(247, 54, 67, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-2-hsla { color: hsla(247, 24, 66, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-3-hsla { color: hsla(219, 23, 80, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-4-hsla { color: hsla(22, 89, 54, 1); }
.Zentum-Health-Platform-Website-UI/UX-and-Product-Design-5-hsla { color: hsla(22, 34, 48, 1); }
*/


*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Standard-Seiten (nicht Map) */

body:not(.body-map) {
    background-color: var(--zh-bg);
}

.navbar {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.main-container {
    width: 100%;
}

/* Links allgemein */

a {
    color: var(--zh-primary);
    text-decoration: none;
}

a:hover {
    color: #e13a6a;
    text-decoration: underline;
}

/* =========================================
   MAP-SEITE: Vollbild + UI
   ========================================= */

.body-map {
    background-color: #e5e5e5;
}

.body-map .map-main-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.map-page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    
    background-image: url("../images/bg_petzen.jpg");
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment:fixed;

}


/* Karte füllt den Hintergrund */
#map {
    position: absolute;
    inset: 0;
}

/* =========================================
   MAP: Menü-Button & Offcanvas
   ========================================= */

.map-menu-toggle {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1001;
}

.btn-map-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #424242;
    font-size: 1.1rem;
}

.btn-map-circle:active {
    transform: translateY(1px);
}

/* Offcanvas Menü */

.offcanvas-map {
    width: 260px;
    background: #ffffff;
}

.offcanvas-map .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.offcanvas-map-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--zh-primary);
}

.offcanvas-map a {
    text-decoration: none;
    color: #333;
}

.offcanvas-map a:hover {
    color: var(--zh-primary);
}

/* =========================================
   MAP: Top-UI (Suche + Filter)
   ========================================= */

.map-top-ui {
    position: absolute;
    top: 12px;
    left: 64px;       /* Platz für Menübutton links */
    right: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* wichtig: keine pointer-events:none mehr,
       damit Chips sauber scrollen können */
}

@media (max-width: 768px) {
    .map-top-ui {
        left: 12px;
        right: 12px;
    }
}

/* Suchleiste */

.map-search-wrapper {
    position: relative;
    max-width: 640px;
    width: 100%;
}

.map-search-bar {
    width: 100%;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: var(--zh-shadow-soft);
    padding: 4px 4px 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-search-bar .search-icon {
    color: var(--zh-text-muted);
}

.map-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
}

.map-search-input::placeholder {
    color: #b0b0b0;
}

.map-search-btn {
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    background: var(--zh-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Suchvorschläge (Autocomplete) */

.map-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    z-index: 1020;
    display: none;
}

.map-search-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    cursor: pointer;
}

.map-search-suggestion:hover {
    background: #f1f3f4;
}

.map-search-suggestion-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.map-search-suggestion-text {
    display: flex;
    flex-direction: column;
}

.map-search-suggestion-title {
    font-weight: 600;
    color: #333;
}

.map-search-suggestion-sub {
    font-size: 0.75rem;
    color: #777;
}

/* Typ-Farben */
.map-search-suggestion--event .map-search-suggestion-icon {
    background: rgba(255, 75, 125, 0.12);
    color: #c93360;
}

.map-search-suggestion--offer .map-search-suggestion-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #008f6d;
}

.map-search-suggestion--obituary .map-search-suggestion-icon {
    background: rgba(69, 90, 100, 0.14);
    color: #37474f;
}

.map-search-suggestion--city .map-search-suggestion-icon {
    background: rgba(26, 115, 232, 0.12);
    color: #1a73e8;
}

/* =========================================
   MAP: Kategorie- & Datums-Chips
   ========================================= */

.map-category-chips,
.map-date-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-left: 4px;
    padding: 2px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x; /* wichtig fürs horizontale Scrollen auf Mobile */
}

.map-category-chips::-webkit-scrollbar,
.map-date-chips::-webkit-scrollbar {
    display: none;
}

.map-category-chip,
.map-date-chip {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.18rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #444;
    cursor: pointer;
}

.map-category-chip i,
.map-date-chip i {
    font-size: 0.85rem;
}

.map-category-chip.active,
.map-date-chip.active {
    border-color: var(--zh-primary);
    background: var(--zh-primary);
    color: #ffffff;
}

/* =========================================
   MAP: Modus-Buttons (Standard / Liste)
   ========================================= */

.map-mode-buttons {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-mode-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
}

.map-mode-btn.is-active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    opacity: 0.98;
}

/* Mobile: Mode-Buttons nach unten rechts,
   damit sie die Top-UI nicht überdecken */
@media (max-width: 768px) {
    .map-mode-buttons {
        top: auto;
        bottom: 16px;
        right: 16px;
        flex-direction: row;
    }
}

/* =========================================
   MAP: Bottom Controls (Zoom + Locate)
   ========================================= */

.map-bottom-controls {
    position: absolute;
    right: 16px;
    bottom: 72px; /* etwas über den Mode-Buttons / Panel */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-map-rect {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    box-shadow: var(--zh-shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1rem;
}

.btn-map-rect:active {
    transform: translateY(1px);
}

/* Locate-Button – Icon dreht sich beim Standort-Suchen */

@keyframes zh-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-map-rect.is-locating i {
    animation: zh-spin 0.9s linear infinite;
}

/* =========================================
   MAP: Loading-Overlay
   ========================================= */

.map-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    pointer-events: none;
}

.map-loading-overlay .map-loading-badge {
    pointer-events: auto;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    font-size: 0.85rem;
    color: #333;
}

/* =========================================
   MAP: Event-Liste – Panel (Card-Stack)
   ========================================= */

.map-event-panel {
    position: absolute;
    left: 8px;
    right: 72px;     /* Platz für Mode-Buttons / Controls rechts */
    bottom: 64px;    /* Abstand zu Bottom-Buttons */
    z-index: 800;

    height: 40vh;
    max-height: 80vh;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    padding: 0 10px 8px;

    transition: height 0.22s ease-out, transform 0.18s ease-out;
}

.map-event-panel--hidden {
    display: none !important;
}

/* Header oben */

.map-event-panel-header {
    padding: 6px 4px 6px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.map-event-panel-header small {
    color: var(--zh-text-muted);
    font-size: 0.75rem;
}

/* Drag-Handle */

.map-event-panel-grip {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
    margin: 3px auto 6px;
}

/* Scrollbarer Bereich */

.map-event-panel-body {
    margin-top: 2px;
    padding: 4px 0 0;
    overflow-y: auto;
}

/* Dragging-Status – Transition ausschalten für „snappiges“ Draggen */
.map-event-panel--dragging {
    transition: none !important;
}

/* Panel-Inhalt als Card-Stack */

.map-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.75rem;
}

/* einzelne Event-Card */

.map-event-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.map-event-card:hover {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.7);
}

.map-event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 0.15rem;
}

.map-event-card-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
}

.map-event-card-title i {
    font-size: 0.9rem;
}

.map-event-card-date {
    font-size: .78rem;
    color: #6b7280;
    white-space: nowrap;
}

.map-event-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 0.1rem;
}

.map-event-card-location {
    font-size: .78rem;
    color: #4b5563;
}

.map-event-card-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.map-event-card-distance {
    font-size: .78rem;
    color: #6b7280;
}

/* "Details"-Button im Chip-Stil */

.map-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #111827;
}

.map-chip-outline {
    background: #ffffff;
    border-color: #d1d5db;
}

.map-chip:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* aktive Card (aus JS) */

.map-row-active {
    border-color: rgba(59, 130, 246, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 6px 16px rgba(15,23,42,0.22);
}

/* Desktop: klassisches Seitenpanel rechts */

@media (min-width: 992px) {
    .map-event-panel {
        left: auto;
        right: 16px;
        top: 90px;
        bottom: 16px;

        width: 380px;
        height: auto;
        max-height: none;
        padding: 8px 10px;
    }
}

/* =========================================
   MAP: Overlay für Event-Details (event.php)
   ========================================= */

.map-event-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.map-event-overlay.is-visible {
    display: block;
}

.map-event-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.map-event-overlay-dialog {
    position: absolute;
    inset: 5vh 5vw;
    background: #f5f7fb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-event-overlay-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
}

.map-event-overlay-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.map-event-overlay-close:hover {
    background: #f2f2f2;
    border-color: #000;
}

.map-event-overlay-close svg,
.map-event-overlay-close i {
    color: #000 !important;
    font-size: 18px;
}

@media (max-width: 768px) {
    .map-event-overlay-dialog {
        inset: 0;
        border-radius: 0;
    }
}

body.map-event-overlay-open {
    overflow: hidden;
}

/* =========================================
   MAP: User-Standort-Marker (Google-Style)
   ========================================= */

.zh-user-marker {
    position: relative;
    width: 18px;
    height: 18px;
    background: #1a73e8;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.7);
}

.zh-user-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: rgba(26, 115, 232, 0.4);
    border-radius: 50%;
    animation: zh-pulse 1.6s infinite ease-out;
}

@keyframes zh-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.3);
        opacity: 0;
    }
}

/* =========================================
   MAP: Marker & Cluster
   ========================================= */

.map-marker {
    position: relative;
    width: 32px;
    height: 32px;

    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #d3d3d3;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-marker-inner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--zh-marker-color, var(--zh-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #ffffff;
}

.map-marker i {
    font-size: 15px;
    color: #ffffff !important;
    --fa-primary-color: #ffffff;
    --fa-secondary-color: rgba(255,255,255,0.85);
    --fa-secondary-opacity: 1;
}

.map-marker--active {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.30);
}

@keyframes zh-bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(0); }
    80%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.map-marker--bounce {
    animation: zh-bounce 0.7s ease-out;
}

/* Cluster-Marker */

.map-marker--cluster {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.1);
}

/* =========================================
   MAP: Popups
   ========================================= */

.maplibregl-popup {
    z-index: 1200;
}

.maplibregl-popup-content {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.maplibregl-popup-tip {
    display: none;
}

.map-popup {
    min-width: 220px;
    max-width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    padding: 10px 12px 10px;
    font-size: 0.85rem;
}

.map-popup-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.map-popup-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #f1f3f4;
    color: #555;
}

.map-popup-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.map-popup-meta {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 3px;
}

.map-popup-date {
    font-size: 0.78rem;
    color: #444;
    margin-bottom: 6px;
}

.map-popup-footer {
    display: flex;
    justify-content: flex-end;
}

.map-popup-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--zh-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.map-popup-link:hover {
    text-decoration: underline;
}

/* =========================================
   MAP-SEITE: Vollbild
   ========================================= */

.body-map {
    background-color: #e5e5e5;
}

.body-map .map-main-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.map-page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Karte füllt den Hintergrund */

#map {
    position: absolute;
    inset: 0;
}

/* =========================================
   MAP: Menü-Button & Offcanvas
   ========================================= */

.map-menu-toggle {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1001;
}

.btn-map-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #424242;
    font-size: 1.1rem;
}

.btn-map-circle:active {
    transform: translateY(1px);
}

/* Offcanvas Menü */

.offcanvas-map {
    width: 260px;
    background: #ffffff;
}

.offcanvas-map .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.offcanvas-map-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--zh-primary);
}

.offcanvas-map a {
    text-decoration: none;
    color: #333;
}

.offcanvas-map a:hover {
    color: var(--zh-primary);
}

/* =========================================
   MAP: Top-UI (Suche + Filter)
   ========================================= */

.map-top-ui {
    position: absolute;
    top: 12px;
    left: 64px;      /* Platz für Menübutton links */
    right: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none; /* Map bleibt scroll-/dragbar */
}

/* Inhalt wieder klickbar machen */
.map-top-ui > * {
    pointer-events: auto;
}

/* Suchleiste */

.map-search-wrapper {
    position: relative;
    max-width: 640px;
}

.map-search-bar {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: var(--zh-shadow-soft);
    padding: 4px 4px 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-search-bar .search-icon {
    color: var(--zh-text-muted);
}

.map-search-input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
}

.map-search-input::placeholder {
    color: #b0b0b0;
}

.map-search-btn {
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    background: var(--zh-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Suchvorschläge (Autocomplete) */

.map-search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    z-index: 1020;
    display: none;
}

.map-search-suggestion {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    cursor: pointer;
}

.map-search-suggestion:hover {
    background: #f1f3f4;
}

.map-search-suggestion-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.map-search-suggestion-text {
    display: flex;
    flex-direction: column;
}

.map-search-suggestion-title {
    font-weight: 600;
    color: #333;
}

.map-search-suggestion-sub {
    font-size: 0.75rem;
    color: #777;
}

/* Typ-Farben */
.map-search-suggestion--event .map-search-suggestion-icon {
    background: rgba(255, 75, 125, 0.12);
    color: #c93360;
}

.map-search-suggestion--offer .map-search-suggestion-icon {
    background: rgba(0, 184, 148, 0.12);
    color: #008f6d;
}

.map-search-suggestion--obituary .map-search-suggestion-icon {
    background: rgba(69, 90, 100, 0.14);
    color: #37474f;
}

.map-search-suggestion--city .map-search-suggestion-icon {
    background: rgba(26, 115, 232, 0.12);
    color: #1a73e8;
}

/* =========================================
   MAP: Kategorie- & Datums-Chips
   ========================================= */

.map-category-chips,
.map-date-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-left: 4px;
    padding: 2px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.map-category-chips::-webkit-scrollbar,
.map-date-chips::-webkit-scrollbar {
    display: none;
}

.map-category-chip,
.map-date-chip {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.18rem 0.7rem;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #444;
    cursor: pointer;
}

.map-category-chip i,
.map-date-chip i {
    font-size: 0.85rem;
}

.map-category-chip.active,
.map-date-chip.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

/* =========================================
   MAP: Modus-Buttons (Standard / Liste)
   ========================================= */

.map-mode-buttons {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-mode-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
}

.map-mode-btn.is-active {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* Mobile: Mode-Buttons nach unten rechts schieben,
   damit sie nicht mit der Top-UI kollidieren */
@media (max-width: 768px) {
    .map-mode-buttons {
        top: auto;
        bottom: 16px;
        right: 16px;
        flex-direction: row;
    }
}

/* =========================================
   MAP: Bottom Controls (Zoom + Locate)
   ========================================= */

.map-bottom-controls {
    position: absolute;
    right: 16px;
    bottom: 72px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-map-rect {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    box-shadow: var(--zh-shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1rem;
}

.btn-map-rect:active {
    transform: translateY(1px);
}

/* Locate-Button – Icon dreht sich beim Standort-Suchen */

@keyframes zh-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-map-rect.is-locating i {
    animation: zh-spin 0.9s linear infinite;
}

/* =========================================
   MAP: Loading-Overlay
   ========================================= */

.map-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    pointer-events: none;
}

.map-loading-overlay .map-loading-badge {
    pointer-events: auto;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    font-size: 0.85rem;
    color: #333;
}

/* =========================================
   MAP: Event-Liste – Panel (Card-Stack)
   ========================================= */

.map-event-panel {
    position: absolute;
    left: 8px;
    right: 72px;     /* Platz für Mode-Buttons / Controls rechts */
    bottom: 64px;    /* Abstand zu Bottom-Buttons */
    z-index: 800;

    height: 40vh;
    max-height: 80vh;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    padding: 0 10px 8px;

    transition: height 0.22s ease-out, transform 0.18s ease-out;
}

.map-event-panel--hidden {
    display: none !important;
}

/* Header oben */

.map-event-panel-header {
    padding: 6px 4px 6px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.map-event-panel-header small {
    color: var(--zh-text-muted);
    font-size: 0.75rem;
}

/* Drag-Handle */

.map-event-panel-grip {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
    margin: 3px auto 6px;
}

/* Scrollbarer Bereich */

.map-event-panel-body {
    margin-top: 2px;
    padding: 4px 0 0;
    overflow-y: auto;
}

/* Dragging-Status – Transition ausschalten für „snappiges“ Draggen */
.map-event-panel--dragging {
    transition: none !important;
}

/* Panel-Inhalt als Card-Stack */

.map-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem 0.75rem;
}

/* einzelne Event-Card */

.map-event-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.map-event-card:hover {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.7);
}

.map-event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 0.15rem;
}

.map-event-card-title {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
}

.map-event-card-title i {
    font-size: 0.9rem;
}

.map-event-card-date {
    font-size: .78rem;
    color: #6b7280;
    white-space: nowrap;
}

.map-event-card-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 0.1rem;
}

.map-event-card-location {
    font-size: .78rem;
    color: #4b5563;
}

.map-event-card-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.map-event-card-distance {
    font-size: .78rem;
    color: #6b7280;
}

/* "Details"-Button im Chip-Stil */

.map-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: .78rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #111827;
}

.map-chip-outline {
    background: #ffffff;
    border-color: #d1d5db;
}

.map-chip:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* aktive Card (aus JS) */

.map-row-active {
    border-color: rgba(59, 130, 246, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6), 0 6px 16px rgba(15,23,42,0.22);
}

/* Desktop: klassisches Seitenpanel rechts */

@media (min-width: 992px) {
    .map-event-panel {
        left: auto;
        right: 16px;
        top: 90px;
        bottom: 16px;

        width: 380px;
        height: auto;
        max-height: none;
        padding: 8px 10px;
    }
}

/* =========================================
   MAP: Overlay für Event-Details (event.php)
   ========================================= */

.map-event-overlay {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.map-event-overlay.is-visible {
    display: block;
}

.map-event-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.map-event-overlay-dialog {
    position: absolute;
    inset: 5vh 5vw;
    background: #f5f7fb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-event-overlay-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
}

.map-event-overlay-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

.map-event-overlay-close:hover {
    background: #f2f2f2;
    border-color: #000;
}

.map-event-overlay-close svg,
.map-event-overlay-close i {
    color: #000 !important;
    font-size: 18px;
}

@media (max-width: 768px) {
    .map-event-overlay-dialog {
        inset: 0;
        border-radius: 0;
    }
}

body.map-event-overlay-open {
    overflow: hidden;
}

/* =========================================
   MAP: User-Standort-Marker (Google-Style)
   ========================================= */

.zh-user-marker {
    position: relative;
    width: 18px;
    height: 18px;
    background: #1a73e8;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.7);
}

.zh-user-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: rgba(26, 115, 232, 0.4);
    border-radius: 50%;
    animation: zh-pulse 1.6s infinite ease-out;
}

@keyframes zh-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.3);
        opacity: 0;
    }
}

/* =========================================
   MAP: Marker & Cluster
   ========================================= */

.map-marker {
    position: relative;
    width: 32px;
    height: 32px;

    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #d3d3d3;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.map-marker-inner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--zh-marker-color, var(--zh-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #ffffff;
}

.map-marker i {
    font-size: 15px;
    color: #ffffff !important;
    --fa-primary-color: #ffffff;
    --fa-secondary-color: rgba(255,255,255,0.85);
    --fa-secondary-opacity: 1;
}

.map-marker--active {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.30);
}

@keyframes zh-bounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(0); }
    80%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.map-marker--bounce {
    animation: zh-bounce 0.7s ease-out;
}

/* Cluster-Marker */

.map-marker--cluster {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.1);
}

/* =========================================
   MAP: Popups
   ========================================= */

.maplibregl-popup {
    z-index: 1200;
}

.maplibregl-popup-content {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.maplibregl-popup-tip {
    display: none;
}

.map-popup {
    min-width: 220px;
    max-width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    padding: 10px 12px 10px;
    font-size: 0.85rem;
}

.map-popup-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.map-popup-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    background: #f1f3f4;
    color: #555;
}

.map-popup-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.map-popup-meta {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 3px;
}

.map-popup-date {
    font-size: 0.78rem;
    color: #444;
    margin-bottom: 6px;
}

.map-popup-footer {
    display: flex;
    justify-content: flex-end;
}

.map-popup-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--zh-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.map-popup-link:hover {
    text-decoration: underline;
}


/* ===========================
   zHaus Landing / Home
   =========================== */

.zh-hero-page {
    position: relative;
    min-height: 100vh;
    color: #fff;
    font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    overflow: hidden;

    /* Footer ans Seitenende */
    display: flex;
    flex-direction: column;
}

/* Animierter Gradient-Hintergrund */
.zh-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/petzen.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
}

    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 100%;
    }
}


/* leichter Overlay für mehr Lesbarkeit */
.zh-hero-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,26,0.35), rgba(28,0,40,0.25));
    z-index: 1;
}

/* Inhaltsebene */
.zh-hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    flex: 1 0 auto;
    position: relative;
    z-index: 2;
}

/* Topbar */

.zh-hero-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.zh-hero-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.zh-hero-toplinks {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.zh-pill-link {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.10);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.zh-pill-link--accent {
    background: #fff;
    color: #f06292;
    border-color: transparent;
}

.zh-pill-link:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
}

/* Layout Grid */

.zh-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2.25rem;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .zh-hero-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Eyebrow & Title */

.zh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;   /* Black glow */
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(0, 0, 0, 0.5),
        0 6px 22px rgba(0, 0, 0, 0.8);
}

.zh-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.25);
}

.zh-hero-title {
    font-weight: 600;
    letter-spacing: -0.03em;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 0.9rem;

    /* Black glow */
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(0, 0, 0, 0.5),
        0 6px 22px rgba(0, 0, 0, 0.8);
}

.zh-hero-title-highlight {
    color: #ffeae7;   /* Black glow */
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(0, 0, 0, 0.5),
        0 6px 22px rgba(0, 0, 0, 0.8);
}

.zh-hero-subtitle {
    font-size: 1rem;
    max-width: 36rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1.3rem;   /* Black glow */
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(0, 0, 0, 0.5),
        0 6px 22px rgba(0, 0, 0, 0.8);
}

.nowrap { white-space: nowrap; }

/* Meta / Social proof */

.zh-hero-meta {
    margin-bottom: 1.5rem;
}

.zh-avatar-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.zh-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.9);
    background: linear-gradient(135deg,#ffd180,#ff8a80);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}
.zh-avatar--2 { background: linear-gradient(135deg,#b388ff,#7c4dff); }
.zh-avatar--3 { background: linear-gradient(135deg,#80d8ff,#40c4ff); }

.zh-chip {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.zh-small-note {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* CTAs */

.zh-btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.9rem; /* größer */
    font-size: 1rem;        /* besser lesbar */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.zh-btn-primary {
    background-color: #F2C94C;
    color: #2B2B2B;
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.zh-btn-primary:hover {
    transform: translateY(-2px);
    background-color: #E6B93C;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-decoration: none;
    color: #1F2A24;
}

.zh-btn-primary:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.zh-btn-ghost {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.zh-btn-ghost:hover {
    background: rgba(255,255,255,0.10);
    text-decoration: none;
}

.zh-btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* Info Pills */

.zh-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.zh-info-pill {
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    padding: 0.4rem 0.9rem;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.zh-pill-label {
    font-weight: 600;
    opacity: 0.95;
}
.zh-pill-text {
    opacity: 0.85;
}

/* Hero-Visual Card */

.zh-hero-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.zh-hero-card {
    width: 100%;
    max-width: 420px;
    border-radius: 40px;
    padding: 1.4rem 1.4rem 1.1rem;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 60%),
                rgba(255,255,255,0.22);
    box-shadow:
        0 40px 70px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.35);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    color: #1b1620;
}

.zh-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.zh-pill {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.zh-pill-soft {
    background: rgba(255,255,255,0.9);
    color: #8e24aa;
}

.zh-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ff5252;
}

.zh-hero-time {
    font-size: 0.78rem;
    opacity: 0.7;
}

/* Mini Cards */

.zh-mini-card {
    border-radius: 24px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}

.zh-mini-card--primary {
    background: linear-gradient(135deg,#f48fb1,#ffcc80);
    color: #311b24;
}
.zh-mini-card--secondary {
    background: linear-gradient(135deg,#b39ddb,#90caf9);
    color: #1b1226;
}

.zh-mini-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.zh-mini-title {
    font-weight: 600;
    margin-top: 0.1rem;
    margin-bottom: 0.15rem;
}

.zh-mini-meta {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Mini Map Teaser */

.zh-mini-map-teaser {
    margin-top: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    border: 1px dashed rgba(255,255,255,0.6);
}

.zh-mini-map-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    color: #5e35b1;
}

/* Waitlist */

.zh-hero-card-footer {
    margin-top: 0.8rem;
}

.zh-waitlist-pill {
    border-radius: 24px;
    background: rgba(25,5,37,0.85);
    color: #fce4ec;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
}

.zh-waitlist-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    opacity: 0.95;
}
.zh-waitlist-text {
    opacity: 0.9;
}

/* Sektion: How it works */

.zh-section {
    margin-top: 3rem;
}

.zh-section-inner {
    border-radius: 30px;
    padding: 1.8rem 1.4rem;
    background: rgba(10,5,20,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.22);
}

@media (min-width: 768px) {
    .zh-section-inner {
        padding: 2.1rem 2.2rem;
    }
}

.zh-section-title {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.zh-section-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 36rem;
    margin-bottom: 1.4rem;
}

.zh-step-card {
    border-radius: 22px;
    padding: 0.85rem 0.9rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.9rem;
    height: 100%;
}

.zh-step-number {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    color: #f06292;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

/* =========================================
   Footer
   ========================================= */

.zh-footer {
    font-size: 0.8rem;
    opacity: 0.9;
    padding: 20px 0;
    margin-top: auto;
    color: #fff;
    position: relative;
    z-index: 2; /* über Overlay/Hintergrund */
}

.zh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.zh-footer-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.zh-footer-dot {
    opacity: 0.6;
}

.zh-footer-links a {
    color: #fff;
    opacity: 0.85;
    margin-left: 0.75rem;
    text-decoration: none;
}

.zh-footer-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* =========================================
   Cookie Banner
   ========================================= */

.zh-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1.3rem;
    display: flex;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
}

.zh-cookie-inner {
    pointer-events: auto;
    max-width: 720px;
    width: calc(100% - 2.5rem);
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    background: rgba(14, 7, 24, 0.92);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
}

.zh-cookie-text {
    flex: 1 1 220px;
    font-size: 0.8rem;
    color: #f3e5f5;
}
.zh-cookie-link {
    color: #ffebee;
    text-decoration: underline;
}

.zh-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.zh-cookie-hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Modal Styling leicht angleichen */

.zh-modal-content {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 60%),
                rgba(19,12,32,0.98);
    color: #fff;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* =========================================
   Sticky Layout: Body + Wrapper
   ========================================= */

.zh-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.zh-page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* Top-UI Container */
.map-top-ui {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none; /* damit Map darunter noch scrollbar ist */
}

/* Inhalt wieder klickbar machen */
.map-top-ui > * {
    pointer-events: auto;
}

/* erste Zeile: Suche + Mode-Buttons */
.map-top-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* auf Mobile: Mode-Buttons unter die Suche */
@media (max-width: 768px) {
    .map-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Suche soll im Zweifel mehr Platz bekommen */
.map-search-wrapper {
    flex: 1 1 auto;
}

/* Mode-Buttons rechts, nicht überdecken */
.map-mode-buttons {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 0.35rem;
}

.map-mode-btn {
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

/* Chip-Reihen */
.map-chip-row {
    position: relative;
    overflow: hidden;
}

/* horizontales Scrollen nur in dieser Leiste */
.map-chip-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.2rem 0.1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.map-chip-scroll::-webkit-scrollbar {
    display: none;
}

/* Fades am rechten Rand */
.map-chip-fade {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
}
.map-chip-fade--right {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(248,250,252,0.95));
}

/* Chips leicht kompakter machen */
.map-category-chip,
.map-date-chip {
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.18rem 0.7rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.map-category-chip i,
.map-date-chip i {
    font-size: 0.85rem;
}

.map-category-chip.active,
.map-date-chip.active {
    border-color: var(--zh-primary);
    background: var(--zh-primary);
    color: #ffffff;
}

/* Menü-Button etwas kompakter und ganz oben links */
.map-menu-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
}

/* Top-UI: Standard */
.map-top-ui {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none;
}

/* Inhalt der Top-UI wieder klickbar */
.map-top-ui > * {
    pointer-events: auto;
}

/* Auf schmalen Screens: Platz für den Menu-Button lassen */
@media (max-width: 768px) {
    .map-top-ui {
        padding-left: 52px;  /* ca. Breite des Buttons + Abstand */
    }
}

/* Auf größeren Screens wieder bündig */
@media (min-width: 769px) {
    .map-top-ui {
        padding-left: 52px;
    }
}

/* Attribution immer im Compact-Modus, nur per Button sichtbar */
.maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner {
    display: none;
}

/* MapLibre setzt bei geöffnetem Zustand die Klasse "maplibregl-compact-show" */
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner {
    display: inline;
}


/* =========================================
   zHaus – Hero Contrast Improvements
   ========================================= */

/* Dark overlay over hero background */
.zh-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Ensure hero content is above overlay */
.zh-hero-bg > * {
    position: relative;
    z-index: 2;
}

/* Stronger text contrast */
.zh-hero-bg h1,
.zh-hero-bg h2,
.zh-hero-bg h3,
.zh-hero-bg p {
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.65),
        0 0 1px rgba(0, 0, 0, 0.8);
}


/* =========================================
   Local Extensions (admin/event/legal)
   ========================================= */

/* ==== migrated from public/kontakt.php (inline styles) ==== */

/* -- block -- */

        body.zh-static-page {
            font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 60%), var(--zh-bg, #f1f3f4);
            min-height: 100vh;
            margin: 0;
        }
        body.zh-static-page { height: auto !important; overflow: auto !important; }
        body.zh-static-page .map-page { position: static !important; height: auto !important; min-height: 100vh; overflow: visible !important; }

        .legal-shell{ display:flex; align-items:flex-start; justify-content:center; padding:80px 12px 32px; }
        @media (min-width: 992px){ .legal-shell{ align-items:center; padding:96px 16px 40px; } }

        .legal-card{ width:100%; max-width: 920px; }
        .legal-card-inner{
            border-radius: 28px;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 65%), rgba(255,255,255,0.94);
            box-shadow: 0 18px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.6);
            padding: 20px 18px 18px;
        }
        @media (min-width: 768px){ .legal-card-inner{ padding:26px 28px 24px; } }

        .legal-pill{
            display:inline-flex; align-items:center; gap:.45rem;
            border-radius:999px; padding:.25rem .85rem;
            font-size:.8rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
            background: rgba(138,126,217,0.12);
            border: 1px solid rgba(138,126,217,0.5);
            color:#4b3f9b;
        }
        .legal-pill-dot{ width:8px; height:8px; border-radius:999px; background: var(--zh-primary, #8A7ED9); }
        .legal-title{ font-size:1.35rem; font-weight:600; letter-spacing:-0.02em; margin:0; }
        @media (min-width: 768px){ .legal-title{ font-size:1.55rem; } }
        .legal-muted{ color: var(--zh-text-muted, #5f6368); font-size:.95rem; }
        .legal-divider{ border:0; border-top:1px dashed rgba(0,0,0,0.10); margin:1.1rem 0 .9rem; }

        .btn-soft{ border-radius:999px; padding:.55rem 1.05rem; font-weight:600; }
        .form-control, .form-select { border-radius: 14px; }
        .btn-event-primary{
            border-radius: 999px;
            padding: 0.55rem 1.7rem;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            background-color: var(--zh-primary, #8A7ED9);
            color: #fff;
            box-shadow: 0 10px 24px rgba(0,0,0,0.20);
        }
        .btn-event-primary:hover{ color:#fff; filter:brightness(1.05); box-shadow:0 14px 32px rgba(0,0,0,0.28); }

        .contact-box{
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.06);
            background: rgba(248,249,250,0.92);
            padding: .9rem 1rem;
        }
        .mini-muted{ font-size:.85rem; color: var(--zh-text-muted, #5f6368); }
    

/* ==== migrated from public/event.php (inline styles) ==== */

/* -- block -- */

        body.zh-event-detail-page {
            font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: white;
        }

        .event-detail-page {
           
            margin: 20px auto 40px;
        }

        .event-detail-hero {
            border-radius: 18px;
            overflow: hidden;
        }

        .event-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            background: #e9f0ff;
            color: #1a3a8a;
            font-size: .75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .04em;
        }

        .event-pill-category {
            display: inline-flex;
            align-items: center;
            padding: 0.2rem 0.6rem;
            border-radius: 999px;
            border: 1px solid var(--zh-category-color, #ff4b7d);
            color: var(--zh-category-color, #ff4b7d);
            font-size: .78rem;
            font-weight: 600;
            margin-left: .5rem;
            background: #ffffff;
        }

        .event-pill-category i {
            margin-right: .35rem;
        }

        .event-meta-label {
            font-size: .8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .06em;
            color: #6c757d;
        }

        .event-meta-value {
            font-size: .95rem;
        }

        .event-image {
            width: 100%;
            max-height: 260px;
            object-fit: cover;
            border-radius: 12px;
        }

        #event-map {
            width: 100%;
            height: 260px;
            border-radius: 12px;
            overflow: hidden;
        }

        .more-events-list .badge-date {
            font-size: .78rem;
            background: #eef2ff;
            color: #343a40;
        }

        .more-events-list .list-group-item {
            border-left: 4px solid transparent;
        }

        .more-events-list .list-group-item:hover {
            border-left-color: #0d6efd;
            background: #f8fafc;
        }

        /* Marker-Styles wie in map.php (Grundstruktur) */
        .map-marker {
            position: relative;
            width: 30px;
            height: 30px;
            transform: translateY(-4px);
        }
        .map-marker-inner {
            width: 30px;
            height: 30px;
            border-radius: 50% 50% 50% 0;
            background: var(--zh-marker-color, #ff4b7d);
            display: flex;
            align-items: center;
            justify-content: center;
            transform: rotate(-45deg);
            box-shadow: 0 4px 8px rgba(0,0,0,0.25);
        }
        .map-marker-inner i {
            transform: rotate(45deg);
            font-size: 14px;
        }
        .map-marker-icon-white {
            color: #fff;
        }
    

/* ==== migrated from public/404.php (inline styles) ==== */

/* -- block -- */

        body.zh-404-body{
            margin:0;
            background: radial-gradient(circle at 20% 0%, rgba(138,126,217,.2), rgba(241,243,244,0) 45%), #f1f3f4;
            font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
        }
        .zh-404-wrap{
            min-height: calc(100vh - 40px);
            display:grid;
            place-items:center;
            padding:20px 14px;
        }
        .zh-404-box{
            text-align:center;
            background:#fff;
            padding:34px 26px;
            border-radius:18px;
            border:1px solid #e7eaf0;
            box-shadow:0 14px 32px rgba(17,24,39,.1);
            max-width:560px;
            width:100%;
        }
        .zh-404-kicker{
            font-size:12px;
            letter-spacing:.08em;
            text-transform:uppercase;
            color:#6b7280;
            margin:0 0 8px;
            font-weight:700;
        }
        .zh-404-title{
            margin:0 0 10px;
            font-size:28px;
            line-height:1.2;
            font-weight:700;
            color:#111827;
        }
        .zh-404-subtitle{
            margin:0 auto 20px;
            max-width:470px;
            font-size:16px;
            line-height:1.55;
            color:#4b5563;
        }
        .zh-404-actions{
            display:flex;
            justify-content:center;
            gap:10px;
            flex-wrap:wrap;
        }
        .zh-404-link{
            display:inline-block;
            padding:11px 16px;
            border-radius:12px;
            background:#8A7ED9;
            color:#fff;
            text-decoration:none;
            font-weight:600;
            border:1px solid #8A7ED9;
            transition:transform .1s ease, box-shadow .15s ease, background-color .15s ease;
            box-shadow:0 8px 18px rgba(138,126,217,.3);
        }
        .zh-404-link:hover{
            color:#fff;
            text-decoration:none;
            transform:translateY(-1px);
            box-shadow:0 12px 24px rgba(138,126,217,.35);
        }
        .zh-404-link-outline{
            background:#fff;
            color:#5b4fc0;
            border-color:#d7d6ef;
            box-shadow:none;
        }
        .zh-404-link-outline:hover{
            color:#4d42ac;
            background:#f6f4ff;
            box-shadow:none;
        }
    

/* ==== migrated from public/admin/events_list.php (inline styles) ==== */

/* -- block -- */

    .inline-cell-muted{color:#6c757d;font-size:.85rem}
    .inline-input{min-width:180px}
    .inline-input-sm{min-width:140px}
    .admin-bulk-action-select{min-width:220px}
    .admin-col-checkbox{width:30px}
    .admin-col-category{min-width:260px}
    .admin-col-location{min-width:420px}
    .admin-coord-input{width:120px}
    .coord-link{cursor:pointer;text-decoration:none}
    .coord-link:hover{text-decoration:underline}
    #inlineMap{height:360px;width:100%;border-radius:12px;overflow:hidden}
    .zh-mini-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .45rem;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff}


/* ==== migrated from public/datenschutz.php (inline styles) ==== */

/* -- block -- */

        body.zh-static-page {
            font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 60%), var(--zh-bg, #f1f3f4);
            min-height: 100vh;
            margin: 0;
        }
        body.zh-static-page { height: auto !important; overflow: auto !important; }
        body.zh-static-page .map-page { position: static !important; height: auto !important; min-height: 100vh; overflow: visible !important; }

        .legal-shell{ min-height:100vh; display:flex; align-items:flex-start; justify-content:center; padding:80px 12px 32px; }
        @media (min-width: 992px){ .legal-shell{ align-items:center; padding:96px 16px 40px; } }

        .legal-card{ width:100%; max-width: 920px; }
        .legal-card-inner{
            border-radius: 28px;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 65%), rgba(255,255,255,0.94);
            box-shadow: 0 18px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.6);
            padding: 20px 18px 18px;
        }
        @media (min-width: 768px){ .legal-card-inner{ padding:26px 28px 24px; } }

        .legal-pill{
            display:inline-flex; align-items:center; gap:.45rem;
            border-radius:999px; padding:.25rem .85rem;
            font-size:.8rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
            background: rgba(138,126,217,0.12);
            border: 1px solid rgba(138,126,217,0.5);
            color:#4b3f9b;
        }
        .legal-pill-dot{ width:8px; height:8px; border-radius:999px; background: var(--zh-primary, #8A7ED9); }
        .legal-title{ font-size:1.35rem; font-weight:600; letter-spacing:-0.02em; margin:0; }
        @media (min-width: 768px){ .legal-title{ font-size:1.55rem; } }
        .legal-muted{ color: var(--zh-text-muted, #5f6368); font-size:.95rem; }
        .legal-divider{ border:0; border-top:1px dashed rgba(0,0,0,0.10); margin:1.1rem 0 .9rem; }

        .legal-content h2{ font-size:1.05rem; font-weight:700; margin-top:1.2rem; margin-bottom:.35rem; }
        .legal-content p, .legal-content li{ color:#2b2b2b; font-size:.95rem; line-height:1.55; }

        .btn-soft{ border-radius:999px; padding:.55rem 1.05rem; font-weight:600; }
        .callout{
            border-radius: 16px;
            border: 1px solid rgba(0,0,0,0.06);
            background: rgba(248,249,250,0.92);
            padding: .9rem 1rem;
        }
    

/* ==== migrated from public/event_new.php (inline styles) ==== */

/* -- block -- */

        body.zh-static-page {
            font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
            background: radial-gradient(circle at top left, rgba(255,255,255,0.8), transparent 60%),
                        var(--zh-bg, #f1f3f4);
            min-height: 100vh;
            margin: 0;
        }

        .event-page-shell {
            
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 80px 12px 32px; /* oben Platz, weil Menü-Button */
        }

        @media (min-width: 992px) {
            .event-page-shell {
                align-items: center;
                padding: 96px 16px 40px;
            }
        }

        .event-form-card {
            width: 100%;
            max-width: 880px;
        }

        .event-form-card-inner {
            border-radius: 28px;
            background:
                radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 65%),
                rgba(255,255,255,0.94);
            box-shadow:
                0 18px 40px rgba(0,0,0,0.25),
                0 0 0 1px rgba(255,255,255,0.6);
            padding: 20px 18px 18px;
        }

        @media (min-width: 768px) {
            .event-form-card-inner {
                padding: 24px 26px 22px;
            }
        }

        .event-page-header {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
        }

        .event-pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            border-radius: 999px;
            padding: .25rem .85rem;
            font-size: .8rem;
            font-weight: 600;
            letter-spacing: .04em;
            text-transform: uppercase;
            background: rgba(138,126,217,0.12);
            border: 1px solid rgba(138,126,217,0.5);
            color: #4b3f9b;
        }

        .event-pill-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--zh-primary, #8A7ED9);
        }

        .event-title {
            font-size: 1.3rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            margin: 0;
        }

        @media (min-width: 768px) {
            .event-title {
                font-size: 1.5rem;
            }
        }

        .event-subtitle {
            font-size: 0.9rem;
            color: var(--zh-text-muted, #5f6368);
            margin-top: .25rem;
        }

        .event-section-label {
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.16em;
            color: var(--zh-text-muted, #5f6368);
            margin-bottom: .2rem;
        }

        .event-section-title {
            font-size: 0.98rem;
            font-weight: 600;
            margin-bottom: .35rem;
            display: flex;
            align-items: center;
            gap: .35rem;
        }

        .event-section-header {
            margin-top: 1.2rem;
            margin-bottom: .5rem;
        }

        .event-divider {
            border: 0;
            border-top: 1px dashed rgba(0,0,0,0.08);
            margin: 1.1rem 0 .9rem;
        }

        .form-help {
            font-size: .78rem;
            color: #777;
        }

        .event-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-top: .25rem;
        }

        .event-chip {
            border-radius: 999px;
            border: 1px solid rgba(0,0,0,0.06);
            padding: 0.15rem .6rem;
            font-size: 0.74rem;
            background: rgba(0,0,0,0.02);
            color: #555;
        }

        .recurrence-box {
            border-radius: 14px;
            border: 1px solid rgba(0,0,0,0.06);
            padding: 0.75rem 0.75rem 0.6rem;
            background: rgba(248,249,250,0.95);
            margin-bottom: 0.75rem;
        }

        .recurrence-weekdays label {
            margin-right: 0.5rem;
            margin-bottom: 0.25rem;
        }

        .event-alert-success {
            border-radius: 16px;
        }

        .event-meta-text {
            font-size: 0.78rem;
            color: var(--zh-text-muted, #5f6368);
        }

        /* Map in Schritt 3 */
        .map-location-wrapper {
            margin-top: 0.75rem;
        }

        #map-location {
            width: 100%;
            height: 260px;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 26px rgba(0,0,0,0.28);
        }

        .location-list-wrapper {
            border-radius: 14px;
            border: 1px solid rgba(0,0,0,0.06);
            background: rgba(248,249,250,0.9);
            padding: 0.5rem 0.6rem;
            max-height: 260px;
            overflow: auto;
        }

        .location-list-wrapper h3 {
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
        }

        .location-list-wrapper small {
            font-size: 0.75rem;
        }

        .small-location-table .table {
            font-size: 0.78rem;
        }

        .btn-event-primary {
            border-radius: 999px;
            padding: 0.55rem 1.7rem;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            background-color: var(--zh-primary, #8A7ED9);
            color: #fff;
            box-shadow: 0 10px 24px rgba(0,0,0,0.20);
        }

        .btn-event-primary:hover {
            color: #8A7ED9;
            filter: brightness(1.05);
            box-shadow: 0 14px 32px rgba(0,0,0,0.28);
        }

        #geocode-status {
            font-size: 0.78rem;
            margin-top: 0.25rem;
        }
        
        
         /* --- Override für Event-Formular-Seite --- */
    body.zh-static-page {
        height: auto !important;
        overflow: auto !important;
    }

    body.zh-static-page .map-page {
        position: static !important;
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
        
       
      

    }
        
        .event-pill-red 
        {
        gap: .45rem;
        border-radius: 999px;
        padding: .25rem .85rem;
        font-size: .8rem;
        font-weight: 600;
        letter-spacing: .04em;
        background-color: lightcoral;
        border: 1px solid #A63F3F;
        color: white;

        }
        
        .map-menu-toggle {
            position: fixed;
        }
        
    

/* ==== migrated from public/_inc/cookie_banner.php (inline styles) ==== */

/* -- block -- */

#zh-cookie-banner{
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 99999;
  border-radius: 18px;
  padding: 14px 14px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px){
  #zh-cookie-banner{ left: 18px; right: auto; max-width: 680px; bottom: 18px; }
}
#zh-cookie-banner .zh-cookie-title{ font-weight: 700; letter-spacing:-0.01em; margin:0 0 4px; }
#zh-cookie-banner .zh-cookie-text{ margin:0; color: var(--zh-text-muted, #5f6368); font-size: .95rem; line-height: 1.45; }
#zh-cookie-banner .zh-cookie-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }
#zh-cookie-banner .btn{ border-radius: 999px; font-weight: 600; padding: .5rem 1.05rem; }

/* Utility classes migrated from inline attributes */
.zh-hero-title--offset {
    padding-top: 4rem;
}

.btn-pill {
    border-radius: 999px;
}

.zh-w-35 {
    width: 35%;
}

.zh-w-1 {
    width: 1%;
    white-space: nowrap;
}
    
