* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


.loading {
    text-align: center;
    padding: 50px;
    color: white;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error {
    background: rgba(255, 107, 107, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #ff6b6b;
}

.categories {
    display: grid;
    gap: 30px;
}

.category {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    border: 1px solid #404040;
}

.category:hover {
    transform: translateY(-5px);
}

.category-header {
    padding: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Category-specific colors with transparency for dark mode */
.category-header.konzert { background: rgba(40, 167, 69, 0.6); } /* Green */
.category-header.party { background: rgba(220, 53, 69, 0.6); } /* Red */
.category-header.literatur { background: rgba(253, 126, 20, 0.6); } /* Brown/Orange */
.category-header.comedy { background: rgba(111, 66, 193, 0.6); } /* Bright Purple */
.category-header.theater, .category-header.bühne { background: rgba(255, 193, 7, 0.6); } /* Yellow */
.category-header.medien { background: rgba(23, 162, 184, 0.6); } /* Petrol */
.category-header.sport { background: rgba(40, 167, 69, 0.6); } /* Green */
.category-header.kunst { background: rgba(220, 53, 132, 0.6); } /* Pink */
.category-header.kino { background: rgba(73, 80, 87, 0.6); } /* Dark Purple */
.category-header.festival { background: rgba(255, 99, 132, 0.6); } /* Bright Pink */
.category-header.food\ \&\ drinks { background: rgba(255, 159, 64, 0.6); } /* Orange */
.category-header.aktiv\ \&\ kreativ { background: rgba(54, 162, 235, 0.6); } /* Blue */
.category-header.sonstige { background: rgba(108, 117, 125, 0.6); } /* Grey */
.category-header.vortrag { background: rgba(111, 66, 193, 0.6); } /* Purple */

.category-content {
    padding: 0;
}

.event {
    padding: 20px;
    border-bottom: 1px solid #404040;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

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

.event:hover {
    background-color: #353535;
}

.event-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #f0f0f0;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.event-detail strong {
    color: #e0e0e0;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
}