/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 20px;
}

/* Kategorie Section */
.kategorie {
    margin-bottom: 30px;
}

.kategorie-titel {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding: 15px;
    background: #f0f3ff;
    border-radius: 12px;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.kategorie-titel:hover {
    background: #e6eaff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.kategorie-titel:active {
    transform: translateY(0);
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: #667eea;
}

/* Getränke Liste */
.getraenke-liste {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.getraenke-liste.active {
    max-height: 5000px;
    opacity: 1;
    margin-top: 15px;
}

.getraenk-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.getraenk-item:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.getraenk-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.getraenk-name {
    font-size: 1.2em;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.getraenk-preis {
    font-size: 1.3em;
    color: #667eea;
    font-weight: 700;
    white-space: nowrap;
}

.getraenk-beschreibung {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 10px;
    line-height: 1.5;
}

.getraenk-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.detail {
    font-size: 0.9em;
    color: #666;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #dee2e6;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design für größere Bildschirme */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .container {
        max-width: 800px;
    }
    
    header h1 {
        font-size: 2.5em;
    }
    
    .getraenke-liste.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kategorie {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.2em;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .container {
        background: #0f3460;
    }
    
    .getraenk-item {
        background: #16213e;
        border-color: #1a1a2e;
    }
    
    .getraenk-name {
        color: #e9ecef;
    }
    
    .getraenk-beschreibung {
        color: #adb5bd;
    }
    
    .detail {
        background: #0f3460;
        border-color: #1a1a2e;
        color: #adb5bd;
    }
    
    footer {
        background: #16213e;
        border-top-color: #1a1a2e;
        color: #adb5bd;
    }
}
