/* Sekundärer Button (Neue Gruppe erstellen, Zurück) */
.btn-secondary {
    background: linear-gradient(90deg, #e91e63, #38cfd9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30,60,114,0.12);
    margin-top: 10px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-secondary:hover {
    background: linear-gradient(90deg, #38cfd9, #e91e63);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #38cfd9 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #1e3c72;
}

/* Konfetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 12px;
    animation: confettiFall linear infinite;
    opacity: 0.8;
    background: #38cfd9;
}

.confetti:nth-child(1) { background: #1e3c72; animation-duration: 4s; }
.confetti:nth-child(2) { background: #2a5298; animation-duration: 4.5s; }
.confetti:nth-child(3) { background: #38cfd9; animation-duration: 4.2s; }
.confetti:nth-child(4) { background: #e91e63; animation-duration: 4.8s; }
.confetti:nth-child(5) { background: #00bcd4; animation-duration: 4.3s; }
.confetti:nth-child(6) { background: #e91e63; animation-duration: 4.6s; }
.confetti:nth-child(7) { background: #1e3c72; animation-duration: 4.4s; }
.confetti:nth-child(8) { background: #2a5298; animation-duration: 4.7s; }
.confetti:nth-child(9) { background: #38cfd9; animation-duration: 4.1s; }
.confetti:nth-child(10) { background: #e91e63; animation-duration: 4.9s; }

@keyframes confettiFall {
    0% { top: -10px; opacity: 0.8; }
    100% { top: 100vh; opacity: 0.2; }
}

/* Begrüßungswort blau/türkis Verlauf */
.welcome {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #1e3c72, #38cfd9, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
}

.container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(30,60,114,0.15);
    max-width: 500px;
    margin: 60px auto;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

/* Login mittig */
.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #1e3c72, #38cfd9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30,60,114,0.12);
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #38cfd9, #1e3c72);
}
/* Musik Liste */
.musik-liste {
    margin-top: 20px;
}

.musik-item {
    background: linear-gradient(135deg, #fff 0%, #e8f4f8 100%);
    border: 2px solid #38cfd9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.musik-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.2);
}

.musik-info {
    flex: 1;
}

.musik-kategorie {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 8px;
}

.musik-kategorie.einmarsch, .musik-kategorie.\31 _einmarsch, .musik-kategorie[class*="einmarsch"] { background: #1e3c72; }
.musik-kategorie.haupttanz, .musik-kategorie.\32 _haupttanz, .musik-kategorie[class*="haupttanz"] { background: #e91e63; }
.musik-kategorie.ausmarsch, .musik-kategorie.\33 _ausmarsch, .musik-kategorie[class*="ausmarsch"] { background: #38cfd9; color: #000; }
.musik-kategorie.zugabe, .musik-kategorie.\34 _zugabe, .musik-kategorie[class*="zugabe"] { background: #ff6b00; }
.musik-kategorie.reserve, .musik-kategorie.\35 _reserve, .musik-kategorie[class*="reserve"] { background: #666; }

.musik-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.musik-details {
    color: #666;
    font-size: 0.9em;
}

.musik-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.musik-actions a,
.musik-actions button {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.musik-actions a:hover,
.musik-actions button:hover {
    background: #38cfd9;
    color: #1e3c72;
    transform: scale(1.05);
}

.musik-actions button.delete-btn {
    background: #e91e63;
}

.musik-actions button.delete-btn:hover {
    background: #c41e3a;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 1rem;
    }
    
    .welcome {
        font-size: 1.5rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .container {
        margin: 20px auto;
        padding: 25px 15px;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .login-box,
    .upload-box {
        padding: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-field,
    input[type="text"],
    input[type="password"],
    input[type="tel"],
    input[type="file"],
    select,
    textarea {
        width: 100% !important;
        font-size: 16px !important; /* Verhindert iOS Zoom */
        padding: 12px !important;
    }
    
    .musik-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
    }
    
    .musik-info {
        width: 100%;
        text-align: center;
    }
    
    .musik-name {
        word-break: break-word;
        font-size: 0.95em;
    }
    
    .musik-actions {
        margin-top: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .musik-actions a,
    .musik-actions button {
        flex: 1;
        text-align: center;
        padding: 10px;
    }
    
    /* Party Header */
    .party-header h1 {
        font-size: 1.3rem;
    }
    
    .motto {
        font-size: 0.9rem;
    }
    
    .welcome-text {
        flex-direction: column;
        gap: 10px;
    }
    
    .welcome-text button {
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Divider */
    .divider {
        margin: 20px 0;
    }
    
    .divider span {
        font-size: 0.9em;
        padding: 0 10px;
    }
}

/* Sehr kleine Handys */
@media (max-width: 400px) {
    .welcome {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .musik-kategorie {
        font-size: 0.75em;
    }
    
    .musik-details {
        font-size: 0.8em;
    }
}

/* Impressum Footer */
.impressum-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.95);
    color: white;
    z-index: 1000;
    text-align: center;
}

.impressum-toggle {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.impressum-toggle:hover {
    background: rgba(56, 207, 217, 0.3);
}

.impressum-toggle i {
    margin-right: 8px;
    color: #38cfd9;
}

.impressum-content {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    border-top: 2px solid #38cfd9;
    font-size: 0.9em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .impressum-content {
        padding: 15px;
        font-size: 0.85em;
    }
}