/* --- 1. VARIABLEN & BASIS --- */
:root {
    --milky-way-purple: #4a1d66;
    --deep-ocean: #002d66;
    --cyan-bg: #f0fbfc;
    --sun-yellow: #ffcc00;
    --white: #ffffff;
    --text-dark: #1a252f;
    --light-sea: #00acc1;
    --danger: #e74c3c;
    --technician-gray: #7f8c8d;
    --shadow: 0 12px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Roboto, sans-serif; 
    margin: 0; 
    background: var(--cyan-bg); 
    color: var(--text-dark);
    padding-bottom: 140px; 
    line-height: 1.6;
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, #00142d 100%);
    color: white; 
    padding: 100px 20px; 
    text-align: center; 
    border-bottom: 6px solid var(--sun-yellow);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    position: relative;
}

header h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    color: var(--white) !important;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.9), 0 0 20px rgba(255, 204, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}
.header-clock {
    font-family: 'Courier New', Courier, monospace; /* Digitaler Look */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--sun-yellow);
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 50px;
    margin: 10px 0;
    border: 1px solid rgba(255, 204, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
    letter-spacing: 2px;
}

.nav-login { 
    position: absolute; top: 25px; right: 25px; 
    color: white !important; text-decoration: none; 
    background: rgba(255, 255, 255, 0.2); 
    padding: 10px 25px; border-radius: 50px; 
    font-size: 0.9rem; font-weight: bold; 
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); 
    z-index: 9999; transition: var(--transition);
}
.nav-login:hover { background: var(--sun-yellow); color: var(--deep-ocean) !important; transform: scale(1.05); }

/* --- 3. LAYOUT & CARDS --- */
.container { max-width: 1300px; margin: -40px auto 20px; padding: 0 20px; position: relative; z-index: 10; }

.card { 
    background: var(--white); padding: 30px; border-radius: 24px; 
    box-shadow: var(--shadow); margin-bottom: 40px; 
    border: 1px solid rgba(0,0,0,0.03);
}

h2, h3 { color: var(--deep-ocean); margin-top: 0; }

/* --- 4. ON-AIR-CARD (STARTSEITE) --- */
.on-air-card {
    background: var(--white); border-radius: 30px; padding: 30px;
    display: flex; align-items: center; gap: 30px;
    box-shadow: var(--shadow); margin: -80px auto 40px;
    max-width: 900px; border: 1px solid rgba(0,0,0,0.05);
    position: relative; z-index: 20;
}

.live-indicator {
    background: var(--danger); color: white;
    padding: 4px 15px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 900;
    text-transform: uppercase; animation: pulse 2s infinite;
    position: absolute; top: -10px; left: 20px;
}



@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.show-img-large {
    width: 130px; height: 130px; border-radius: 20px;
    object-fit: cover; border: 4px solid var(--sun-yellow);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- 5. LOGIN & PASSWORT-AUGE --- */
.login-card { max-width: 400px; margin: 50px auto; padding: 40px; text-align: center; }

.password-container { position: relative; width: 100%; margin: 10px 0; }

.toggle-password {
    position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%); background: none;
    border: none; cursor: pointer; font-size: 1.2rem;
    color: var(--technician-gray); padding: 5px;
}

/* --- 6. FORMULARE & BUTTONS --- */
input, textarea, select {
    width: 100%; padding: 12px 20px; margin: 8px 0;
    border-radius: 50px; border: 1px solid #ddd;
    background: #f8f9fa; transition: var(--transition);
}
textarea { border-radius: 20px; resize: none; }
input:focus { border-color: var(--light-sea); outline: none; background: white; }

.btn-save, .btn-login {
    background: var(--deep-ocean); color: white;
    padding: 12px 30px; border-radius: 50px;
    border: none; font-weight: bold; cursor: pointer;
    transition: var(--transition); text-transform: uppercase;
}
.btn-save:hover, .btn-login:hover { background: var(--light-sea); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- 7. SENDEPLAN (HORIZONTAL & TABELLE) --- */
.calendar-horizontal { display: flex; gap: 20px; overflow-x: auto; padding: 10px 5px 25px; scroll-behavior: smooth; }
.calendar-column { flex: 0 0 220px; background: #fff; border-radius: 20px; border: 1px solid #eee; transition: var(--transition); }
.calendar-column.is-today { border: 2px solid var(--sun-yellow); background: #fffef0; }

.show-row { border-bottom: 1px solid #eee; transition: 0.2s; }
.show-row:hover { background: rgba(0,0,0,0.02); }

.show-img-preview { width: 55px; height: 55px; object-fit: cover; border-radius: 12px; border: 2px solid var(--sun-yellow); }

/* --- 8. TEAM & AVATARE --- */
.avatar-wrapper { 
    width: 120px; height: 120px; margin: 0 auto 15px; 
    border-radius: 50%; overflow: hidden; border: 4px solid var(--sun-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: var(--transition);
}
.team-img-upload { width: 100%; height: 100%; object-fit: cover; display: block; }

.team-card { background: var(--white); padding: 35px 25px; border-radius: 25px; text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-10px); }

/* --- 9. BADGES --- */
.badge { display: inline-block; font-size: 0.7rem; font-weight: 800; padding: 6px 16px; border-radius: 50px; color: white; text-transform: uppercase; }
.badge-webmaster { background: var(--milky-way-purple); }
.badge-moderator { background: var(--light-sea); }
.badge-betreiber { background: var(--deep-ocean); }
.badge-radioleitung { background: var(--danger); }
.badge-techniker { background: var(--technician-gray); }

/* --- 10. PLAYER BAR --- */
#player-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 90px;
    background: rgba(0, 20, 45, 0.95); backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: space-between; padding: 0 30px;
    border-top: 4px solid var(--sun-yellow); z-index: 9999;
}

#play-btn { 
    background: var(--sun-yellow); color: var(--deep-ocean); border: none; 
    padding: 12px 25px; border-radius: 50px; font-weight: 900; cursor: pointer;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 768px) {
    .on-air-card { flex-direction: column; text-align: center; margin-top: -40px; }
    .container { margin-top: -20px; }
    .calendar-column { flex: 0 0 180px; }
    .admin-grid { grid-template-columns: 1fr; }
}