/*
Theme Name: Neve Child
Template: neve
Version: 1.0.0
*/
/* --- 1. Z-INDEX FIX: Menü & Karte --- */
.main-navigation ul ul { z-index: 9999 !important; }
.leaflet-container { z-index: 1 !important; }

/* --- 1.5 MENÜ KOMPAKT-MODUS --- */
/* Wir sprechen das .wrap-Element an, das in jedem Menüpunkt sitzt */
.primary-menu-ul .menu-item .wrap {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Wir setzen die Schriftgröße und Zeilenhöhe der Links im Menü etwas zurück, um Platz zu sparen */
.primary-menu-ul .menu-item a {
    line-height: 1.2 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* --- 2. TYPOGRAFIE & BUTTONS --- */
.main-navigation .menu-item a,
.wp-block-button__link, 
.button, 
button {
    text-transform: none !important;
}

/* --- 3. BLOG / LISTEN-OPTIK (Einspaltig) --- */
.nv-index-blog .col,
.nv-index-blog .nv-column-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    margin-bottom: 30px !important;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}
.nv-post-thumbnail-wrap {
    float: left;
    margin-right: 20px;
    width: 30% !important;
}

/* --- 4. LEAFLET MARKER --- */
.leaflet-marker-icon {
    width: 15px !important; 
    height: auto !important;
    margin-left: -7.5px !important;
    margin-top: -24px !important;
}

/* --- 5. KALENDER (Simcal) --- */
/* Grid-Ansicht */
.simcal-calendar-grid {
    width: 100% !important;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
}
.simcal-calendar-grid th { background-color: #f4f4f4; text-align: center; }
.simcal-calendar-grid td {
    padding: 2px !important;
    vertical-align: top;
    height: 80px;
    overflow: hidden;
}

/* Listen-Ansicht: Korrektur der Zeilenabstände */
.simcal-event-details p,
.simcal-event-description {
    line-height: 1.4 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
}
.simcal-event-details p:empty { display: none !important; }

/* --- 6. RESPONSIVE OPTIMIERUNGEN --- */
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
}
@media (min-width: 992px) {
    .mobile-only { display: none !important; }
}

@media (max-width: 768px) {
    /* Kalender Grid Handy */
    .simcal-calendar-grid .simcal-event-dot { display: none !important; }
    .simcal-calendar-grid td { height: 60px !important; }
    
    /* Kalender Liste Handy */
    .simcal-event-title {
        display: block !important;
        font-size: 16px !important;
        font-weight: bold;
        margin-bottom: 2px !important;
    }
}
/* --- MOBILER KALENDER-FIX: BR eliminieren & Margin steuern --- */
@media (max-width: 768px) {
    /* 1. Zeilenumbruch unsichtbar machen */
    .simcal-event-details br {
        display: none !important;
    }

    /* 2. Titel und Adresse zu Block-Elementen machen */
    .simcal-event-details .simcal-event-title,
    .simcal-event-details .simcal-event-address {
        display: block !important;
    }

    /* 3. Abstand steuern: Titel bekommt unten Luft, Adresse oben */
    .simcal-event-details .simcal-event-title {
        margin-bottom: 8px !important; /* Hier kannst du den Abstand zwischen Titel und Ort einstellen */
    }
    
    .simcal-event-details .simcal-event-address {
        margin-top: 0 !important;
    }
}

/* --- MOBILER MENÜ-ABSTAND: Nur für Smartphones --- */
@media (max-width: 767px) {
    .primary-menu-ul .menu-item .wrap {
        padding-top: 15px !important;    /* Mehr Luft nach oben */
        padding-bottom: 15px !important; /* Mehr Luft nach unten */
    }

    .primary-menu-ul .menu-item a {
        line-height: 1.4 !important;    /* Mehr Raum zwischen den Zeilen */
    }
}
/* Zwingender Z-Index für das Menü */
.main-navigation ul ul { 
    z-index: 9999999 !important; 
}

/* Karte explizit nach hinten zwingen */
.leaflet-container { 
    z-index: 0 !important; 
}