body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #000;
    z-index: 9999;
}

.split-container {
    display: flex;
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    gap: 10px;
}

.map-container {
    flex: 2;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

.search-panel {
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    font-size: 14px;
}

.search-panel input, .search-panel select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-panel button {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    background: #d38600;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-panel button:hover {
    background: #b37400;
}

.date-filter {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    align-items: center;
    gap: 4px 6px;
    margin: 5px 0;
}

.date-filter label {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
}

.date-filter input {
    margin: 0;
}

.icon-buttons {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.icon-button {
    flex: 1;
    padding: 6px 8px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.icon-button-small {
    font-size: 10px;
    padding: 4px 6px;
}

.icon-button.active {
    background: #d38600;
    color: #000;
    border: 2px solid #7a4d00;
    font-weight: bold;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3), 0 0 0 2px rgba(211,134,0,0.35);
    transform: translateY(1px);
}

.digital-marker {
    font-size: 24px;
    text-align: center;
    line-height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 2px solid #d38600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.education-marker {
    font-size: 24px;
    text-align: center;
    line-height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 2px solid #2e8b57;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.custom-cluster-icon {
    background: transparent !important;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.filter-tag {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.filter-tag.active {
    background: #d38600;
    color: black;
}

.cluster-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 12px;
    max-width: 250px;
}

.map-gesture-hint {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    max-width: calc(100% - 24px);
    pointer-events: none;
}

.list-panel {
    flex: 1;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
    font-size: 13px;
}

.event-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.event-item:last-child {
    border-bottom: none;
}

.event-item-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.event-item-meta {
    font-size: 12px;
    color: #555;
}

.mobile-tab-bar {
    display: none;
}

.show-on-map-btn {
    display: none;
}

.show-list-btn {
    display: none;
}

.search-nav-buttons {
    display: none;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    body {
        display: block;
        background: white;
        overflow: hidden;
    }

    .split-container {
        display: block;
        width: 100%;
        height: 100vh;
        max-width: none;
        position: relative;
    }

    .map-container {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
        z-index: 1;
    }

    .list-panel {
        position: fixed;
        bottom: 54px; left: 0; right: 0;
        width: 100%;
        max-width: none;
        height: calc(100vh - 54px);
        max-height: calc(100vh - 54px);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .list-panel.panel-visible {
        transform: translateY(0);
    }

    .list-panel-scroll {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding: 12px 10px 20px 10px;
    }

    .search-panel {
        flex-shrink: 0;
        box-sizing: border-box;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
    }

    .search-panel h3 {
        text-align: center;
    }

    .date-filter {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .date-filter label {
        margin-top: 4px;
    }

    .icon-buttons,
    .icon-buttons-small {
        flex-direction: column;
    }

    .icon-button-small {
        font-size: 12px;
        padding: 8px;
    }

    .tab-section-hidden {
        display: none !important;
    }

    .show-on-map-btn {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        background: #d38600;
        color: #000;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
    }

    .show-list-btn {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 8px;
        background: #d38600;
        color: #000;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
    }

    .show-list-btn:active {
        background: #b37400;
    }

    .search-nav-buttons {
        display: flex;
        gap: 10px;
        margin-top: 14px;
    }

    .search-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 14px 8px;
        background: #d38600;
        color: #000;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .search-nav-btn svg {
        width: 26px;
        height: 26px;
        stroke: #000;
    }

    .search-nav-btn:active {
        background: #b37400;
    }

    .show-on-map-btn:active {
        background: #b37400;
    }

    .mobile-tab-bar {
        display: flex;
        align-items: stretch;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 54px;
        background: white;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        z-index: 200;
    }

    .tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: none;
        background: none;
        cursor: pointer;
        color: #999;
        font-size: 10px;
        padding: 6px 0;
        -webkit-tap-highlight-color: transparent;
    }

    .tab-btn svg {
        width: 20px;
        height: 20px;
    }

    .tab-btn.active {
        color: #d38600;
    }

    .tab-btn:active {
        opacity: 0.7;
    }

    .leaflet-popup-content-wrapper {
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box;
    }

    .leaflet-popup-content {
        max-width: 100% !important;
        word-break: break-word;
        margin: 10px 12px !important;
    }

    .cluster-info {
        display: none;
    }

    .map-gesture-hint {
        display: none;
    }
}
