body {
    margin: 0;
    display: flex;
    font-family: Arial;
    height: 100vh;
}

* {
    box-sizing: border-box;
}

h2 {
    padding: 0;
    margin: 0;
}

#sidebar {
    width:320px;
    background:#1e3a8a;
    color:white;
    padding:20px;
    padding-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
    height: 100%;
    background: #f0f4f8;
}

button {
    background:#2563eb;
    color:white;
    border:none;
    padding:8px 12px;
    margin:5px 0;
    border-radius:6px;
    cursor:pointer;
}

button:hover { background:#1d4ed8; }

select, input {
    width:100%;
    margin-bottom:10px;
    padding:6px;
    border-radius:6px;
    border:none;
}

#ergebnis-text {
    margin-top: 8px;
    margin-bottom: 8px;
}

#schuleListe {
    height: 100%;
    overflow-y: scroll;
    padding-right: 15px;
    margin-right: -15px;
}

.schule-item {
    background:rgba(255,255,255,0.15);
    padding: 8px;
    margin-bottom:8px;
    border-radius:6px;
    cursor:pointer;

}


.aggregations-label {
    background:#1e3a8a;
    color:white;
    border:none;
    padding:5px 10px;
    border-radius:8px;
}


.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
	margin-bottom: 10px;
}

.filter-grid input {
    display: none;
}

.filter-grid label {
    display: inline-block;
    cursor: pointer;
}

.filter-grid label span {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    font-size: 13px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.filter-grid label span:hover {
    background: #d1d5db;
}

.filter-grid input:checked + span {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

.filter-title {
    padding-bottom: 5px;
}

.reset-btn {
    width: 100%;
    margin-top: 8px;
    background: #374151;
}

.reset-btn:hover {
    background: #4b5563;
}

.thema-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin: 10px 0 15px 0;
}

.thema-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 14px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: fadeIn 0.2s ease-out;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.thema-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 15px 0;
}

.chip {
    padding: 6px 12px;
    border-radius: 20px;
    background: #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    user-select: none;
}

.chip:hover {
    background: #d1d5db;
}

.chip.active {
    background: #2563eb;
    color: white;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.modal-buttons button {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.save-btn {
    background: #2563eb;
    color: white;
}

.cancel-btn {
    background: #e5e7eb;
}

.tag{
    display:inline-block;

    padding:5px 10px;

    border-radius:999px;

    background:#eef2ff;
    color:#3730a3;

    font-size:12px;
    font-weight: 600;

    margin-top: 3px;
    margin-bottom: 3px;
}

.popup-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-box {
    font-weight: 700;
    font-size: 18px;
}

.stats-box{
    font-weight: 200;
    font-size: 12px;
}

.themen-box{
}

.info-box{
    border-top: 1px solid #eef2ff;
    padding-top: 5px;
}

@keyframes fadeIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

