:root {
    --primary: #d11212;
    --primary-glow: rgba(209, 18, 18, 0.6);
    --bg-dark: #050505;
    --panel-bg: rgba(20, 20, 20, 0.75);
    --text-main: #ffffff;
    --text-muted: #999999;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Rajdhani', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; min-height: 100vh; }

.background-wrapper { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -10; pointer-events: none; overflow: hidden; }

/* Neuer, modernerer Hintergrund, der mit den Bildern besser harmoniert */
.bg-gradient { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: radial-gradient(circle at 50% 30%, #1f0505 0%, #0a0a0a 50%, #000000 100%); 
}

.bg-pattern {
    position: absolute; top: -50px; left: -50px; width: calc(100% + 100px); height: calc(100% + 100px);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
    animation: gridDrift 15s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
}
@keyframes gridDrift { 0% { transform: translateY(0); } 100% { transform: translateY(35px); } }

.bg-logo {
    position: absolute; top: 50%; left: 50%; width: 70%; max-width: 900px; height: 70%;
    background-image: url('https://upbxznmaviomljfejlyw.supabase.co/storage/v1/object/public/avatars/Calapex_Logo.oh.png');
    background-size: contain; background-position: center; background-repeat: no-repeat;
    animation: logoFloatPulse 6s ease-in-out infinite;
}
@keyframes logoFloatPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; filter: drop-shadow(0 0 15px rgba(209, 18, 18, 0.4)); }
    50% { transform: translate(-50%, calc(-50% - 20px)) scale(1.03); opacity: 0.4; filter: drop-shadow(0 0 40px rgba(209, 18, 18, 0.9)); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; filter: drop-shadow(0 0 15px rgba(209, 18, 18, 0.4)); }
}

#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; width: 90%; max-width: 400px; }
.toast { background: rgba(20, 20, 20, 0.95); border-left: 4px solid var(--primary); color: white; padding: 15px 25px; border-radius: 8px; font-weight: 500; box-shadow: 0 5px 15px rgba(0,0,0,0.8); font-size: 1.1rem; animation: fadeInDown 0.3s ease forwards; white-space: pre-wrap; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOutUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }

#profile-badge { display: none; position: fixed; top: 20px; right: 20px; background: rgba(20, 20, 20, 0.85); border: 1px solid var(--primary); padding: 10px 20px; border-radius: 30px; backdrop-filter: blur(10px); z-index: 1000; align-items: center; gap: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#btn-logout { background: transparent; border: 1px solid #aaa; color: #aaa; padding: 4px 12px; border-radius: 15px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
#btn-logout:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

.container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.view { display: none; opacity: 0; transform: translateY(30px); }
.view.active { display: block; animation: slideUp 0.6s forwards; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(30px); } }

.landing-hero { text-align: center; margin-bottom: 60px; margin-top: 40px; position: relative; z-index: 1; }
.landing-hero h1 { font-size: 3.5rem; color: white; text-transform: uppercase; margin-bottom: 20px; text-shadow: 0 0 20px rgba(209, 18, 18, 0.5); }
.landing-hero p { font-size: 1.3rem; color: #ccc; max-width: 800px; margin: 0 auto 40px auto; line-height: 1.6; }
.auth-buttons-container { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.landing-section { max-width: 1000px; margin: 0 auto 50px auto; padding: 40px; background: var(--panel-bg); border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; z-index: 1; }
.landing-section h2 { color: var(--primary); font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; border-bottom: 2px solid rgba(209, 18, 18, 0.3); padding-bottom: 10px; }
.landing-section p { font-size: 1.2rem; color: #ddd; line-height: 1.8; margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 30px; }
.feature-card { background: rgba(0,0,0,0.6); padding: 25px; border-radius: 12px; border-top: 4px solid var(--primary); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 15px rgba(209, 18, 18, 0.3); }
.feature-card h3 { font-size: 1.6rem; margin-bottom: 15px; color: white; }
.feature-card p { font-size: 1.05rem; color: #aaa; line-height: 1.5; }
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.menu-grid { display: flex; flex-direction: column; gap: 25px; max-width: 800px; margin: 50px auto 0; }
.menu-btn { background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-left: 5px solid var(--primary); padding: 35px 40px; text-align: center; color: white; font-size: 2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; cursor: pointer; border-radius: 12px; transition: all 0.4s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.menu-btn.disabled { opacity: 0.5; cursor: not-allowed; border-left-color: #555; }
.menu-btn span { display: block; margin-top: 10px; font-size: 1.1rem; color: #aaa; text-transform: none; font-weight: 500; }
.menu-btn:not(.disabled):hover { transform: translateX(10px); box-shadow: 0 15px 30px rgba(0,0,0,0.6), 0 0 25px var(--primary-glow); border-color: var(--primary); color: var(--primary); }

.top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.back-btn { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 10px 20px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; text-transform: uppercase; font-weight: 600; transition: 0.3s; }
.back-btn:hover { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-glow); }
.panel { background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 15px; padding: 30px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.panel-header { font-size: 2rem; margin-bottom: 20px; border-bottom: 2px solid var(--primary); padding-bottom: 10px; display: inline-block; }

.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
@media (max-width: 900px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .event-grid { grid-template-columns: 1fr; } }
.team-events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media (max-width: 1400px) { .team-events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .team-events-grid { grid-template-columns: 1fr; } }

.team-card { background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.95)); border: 1px solid rgba(255, 255, 255, 0.05); border-top: 4px solid var(--primary); border-radius: 12px; padding: 25px; transition: 0.4s; position: relative; cursor: pointer; }
.team-card:hover { transform: translateY(-8px); border-color: rgba(209, 18, 18, 0.5); box-shadow: 0 12px 25px rgba(0,0,0,0.6), 0 0 20px rgba(209, 18, 18, 0.3); }
.team-logo { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-bottom: 15px; background: #222; border: 1px solid #444; }
.team-title { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 10px; }
.team-badge { position: absolute; top: 20px; right: 20px; background: rgba(209, 18, 18, 0.15); color: var(--primary); padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; border: 1px solid rgba(209, 18, 18, 0.3); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.9rem;}
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 8px; outline: none; font-size: 1.1rem; font-family: inherit; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="file"] { padding: 10px; cursor: pointer; background: rgba(209, 18, 18, 0.15); border: 1px solid var(--primary); }
.form-group input[type="file"]::file-selector-button { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 5px; margin-right: 15px; cursor: pointer; font-weight: bold; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

.custom-checkbox-container { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.custom-checkbox-container input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary); }
.custom-checkbox-container label { margin-bottom: 0; color: white; font-size: 1.1rem; cursor: pointer; }

.btn-submit { background: var(--primary); color: white; border: none; padding: 12px 25px; font-size: 1.2rem; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; width: 100%; text-transform: uppercase; margin-top: 10px; }
.btn-submit:hover { background: white; color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

.team-tabs { display: flex; gap: 15px; margin-bottom: 30px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 15px; flex-wrap: wrap; }
.tab-btn { background: transparent; border: none; color: #aaa; font-size: 1.2rem; cursor: pointer; text-transform: uppercase; font-weight: 600; transition: 0.3s; padding: 10px 20px; border-radius: 8px; flex: 1; text-align: center; min-width: 150px; }
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 0 15px var(--primary-glow); }
.tab-btn:hover:not(.active) { color: white; background: rgba(255,255,255,0.05); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: slideUp 0.4s forwards; }

#member-sidebar { position: fixed; top: 0; right: -100%; width: 350px; max-width: 100vw; height: 100vh; background: rgba(15, 15, 15, 0.98); border-left: 2px solid var(--primary); transition: right 0.4s ease; z-index: 2000; padding: 30px 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.8); display: flex; flex-direction: column; }
#member-sidebar.open { right: 0; }
.sidebar-close { float: right; cursor: pointer; color: var(--primary); font-size: 2rem; background: none; border: none; line-height: 1; }
.hamburger-btn { background: transparent; border: 1px solid var(--primary); color: white; font-size: 1.2rem; padding: 8px 15px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: bold; text-transform: uppercase; }
.hamburger-btn:hover { background: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }

#sidebar-member-list { flex: 1; overflow-y: auto; }
.member-item { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 10px; transition: 0.2s; border-radius: 8px; padding-inline: 5px; }
.member-item.admin-hover:hover { background: rgba(255,255,255,0.05); cursor: context-menu; }

.context-menu { display: none; position: fixed; z-index: 4000; background: rgba(15,15,15,0.98); border: 1px solid var(--primary); border-radius: 8px; padding: 5px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.9); backdrop-filter: blur(10px); min-width: 180px; }
.context-menu div { padding: 10px 20px; color: white; cursor: pointer; font-size: 1.1rem; transition: 0.2s; }
.context-menu div:hover { background: rgba(209,18,18,0.2); color: var(--primary); }
.context-menu hr { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 5px 0; }

.modal-overlay { display: none; position: fixed; top:0; left:0; width:100vw; height:100vh; background: rgba(0,0,0,0.8); z-index: 3000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--panel-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--primary); width: 90%; max-width: 700px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.confirm-box { background: var(--panel-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--primary); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.8); max-width: 400px; width: 90%; }
.confirm-msg { color: white; font-size: 1.2rem; margin-bottom: 25px; line-height: 1.4; white-space: pre-wrap;}
.confirm-btns { display: flex; gap: 15px; justify-content: center; }

#online-users-widget { display: none; position: fixed; bottom: 20px; left: 20px; width: 250px; max-width: calc(100vw - 40px); background: rgba(10,10,10,0.85); border: 1px solid var(--primary); border-radius: 12px; padding: 15px; z-index: 900; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#online-users-list { max-height: 35vh; overflow-y: auto; transition: all 0.3s ease; }
.collapsed-list { display: none !important; }

.event-canceled { opacity: 0.5; filter: grayscale(80%); }
.event-canceled-text { text-decoration: line-through; }
.live-glow { border-color: #ff0000 !important; box-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important; animation: cardPulse 2s infinite; }
@keyframes cardPulse { 0% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); } 50% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); } 100% { box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); } }
@keyframes textPulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.chat-container { display: flex; flex-direction: column; height: 60vh; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-message { background: rgba(255,255,255,0.05); padding: 12px 15px; border-radius: 8px; border-left: 3px solid var(--primary); align-self: flex-start; max-width: 80%; }
.chat-message.own { background: rgba(209, 18, 18, 0.15); border-left: none; border-right: 3px solid var(--primary); align-self: flex-end; }
.chat-input-area { display: flex; padding: 15px; background: rgba(20,20,20,0.8); border-top: 1px solid rgba(255,255,255,0.1); gap: 10px; }
.chat-input-area input { flex: 1; }

.masonry-grid { column-count: 3; column-gap: 15px; }
@media (max-width: 900px) { .masonry-grid { column-count: 2; } }
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }
.masonry-item { break-inside: avoid; margin-bottom: 15px; position: relative; }
.masonry-item img { width: 100%; height: auto; border-radius: 8px 8px 0 0; display: block; border: 1px solid rgba(255,255,255,0.1); border-bottom: none; }

.spreadsheet-container { background: #ffffff; border-radius: 8px; overflow: hidden; color: #000000; }
.spreadsheet-container .jexcel_content { box-shadow: none !important; max-height: 600px; overflow-y: auto; }
.spreadsheet-container .jexcel > thead > tr > td { background-color: #f3f3f3; color: #333; font-weight: bold; }
.spreadsheet-container .jexcel > tbody > tr > td { color: #000; }
.spreadsheet-container .jexcel > tbody > tr > td.readonly { background-color: #fafafa; }
.jexcel_toolbar i { color: #555 !important; }

.formula-active { background-color: #d1f2f8 !important; color: #000000 !important; border: 2px solid #17a2b8 !important; box-shadow: 0 0 10px rgba(23, 162, 184, 0.5) !important; outline: none !important; }

.iracing-event-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid #ff0000; 
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    transition: 0.3s;
}
.iracing-event-card:hover { background: rgba(30, 30, 30, 0.9); border-color: #ff0000; }
.iracing-month-label { color: #ff0000; font-weight: bold; font-size: 0.9rem; display: block; margin-bottom: -2px; }
.iracing-date-label { color: white; font-size: 1.1rem; font-weight: bold; }
.iracing-title-label { color: white; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; }
.iracing-track-label { color: #aaa; font-size: 0.8rem; text-transform: uppercase; font-weight: 500; }
.iracing-cars-label { color: #ccc; font-size: 0.85rem; }
.iracing-cars-container { text-align: left; width: 100%; margin-top: 5px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5px; }

.badge-team { background: rgba(0, 80, 143, 0.2); color: #66b3ff; border: 1px solid #00508F; font-size: 0.65rem; font-weight: bold; padding: 2px 6px; border-radius: 8px; display: inline-block; margin-bottom: 3px; }
.badge-super { background: rgba(255, 165, 0, 0.2); color: #ffcc00; border: 1px solid #ffcc00; font-size: 0.65rem; font-weight: bold; padding: 2px 6px; border-radius: 8px; display: inline-block; margin-bottom: 3px; }

/* Added for Side Images - FULL VIEWPORT OVERFLOW */
.landing-side-images { 
    position: absolute; 
    top: -40px; 
    left: calc(-50vw + 50%); 
    width: 100vw; 
    height: calc(100% + 80px); 
    pointer-events: none; 
    z-index: 0; 
    overflow: hidden; 
}
.landing-side-col { 
    position: absolute; 
    top: 0; 
    width: 35vw; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    opacity: 0.6; 
}
.landing-side-col.left { 
    left: 0; 
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
}
.landing-side-col.right { 
    right: 0; 
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
}
.landing-side-col img { 
    width: 100%; 
    height: 100%; 
    flex: 1; 
    object-fit: cover; 
    display: block; 
    border: none; 
    box-shadow: none; 
    border-radius: 0; 
    min-height: 0; 
}

@media (max-width: 1600px) { .landing-side-col { width: 38vw; } }
@media (max-width: 1200px) { .landing-side-col { width: 45vw; opacity: 0.4; } }
@media (max-width: 900px) { .landing-side-col { display: none; } }

@media (max-width: 900px) {
    #team-calendar-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .menu-btn { padding: 25px 20px; font-size: 1.5rem; }
    .top-nav { flex-direction: column; align-items: stretch; text-align: center; }
    .back-btn, .hamburger-btn { width: 100%; }
    #admin-controls { flex-direction: column; align-items: stretch; gap: 15px; text-align: center; }
    #online-users-widget { bottom: 10px; left: 10px; max-width: calc(100vw - 20px); }
    #profile-badge { position: absolute; top: 10px; right: 10px; padding: 5px 10px; }
    .panel { padding: 20px; }
    .landing-section { padding: 25px 20px; }
    .landing-hero h1 { font-size: 2.5rem; }
    .landing-hero p { font-size: 1.1rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 20px; }
    #iracing-widget { top: 60px !important; right: 10px !important; width: calc(100vw - 20px) !important; }
}

select option {
    background-color: var(--bg-dark);
    color: white;
}

/* --- STYLES FÜR DAS STREAM CENTER (aus test3.html) --- */
.filter-container {
    max-width: 1200px; margin: 0 auto 30px auto; display: flex; gap: 20px;
    justify-content: center; background-color: #1a1a1a; padding: 20px;
    border-radius: 8px; border: 1px solid #333;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; flex: 1; max-width: 400px; }
.filter-group label { font-size: 14px; color: #aaa; font-weight: bold; }
.filter-select {
    background-color: #262626; color: #fff; border: 1px solid #444; padding: 12px;
    border-radius: 6px; font-size: 16px; outline: none; cursor: pointer; transition: 0.2s;
}
.filter-select:focus { border-color: #ff4500; }
.filter-select:disabled { opacity: 0.5; cursor: not-allowed; }

.video-box {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background-color: #1a1a1a; border-radius: 8px; overflow: hidden; border: 1px solid #333;
}
.video-box iframe, .placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center; }
.unlock-btn { background-color: #ff4500; color: white; border: none; padding: 10px 20px; font-weight: bold; cursor: pointer; border-radius: 4px; margin-top: 10px; }

.renn-liste { flex: 1; background-color: #1a1a1a; border-radius: 8px; padding: 15px; max-height: 500px; overflow-y: auto; border: 1px solid #333; }
.renn-item { background-color: #262626; padding: 12px; margin-bottom: 10px; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; border-left: 4px solid #555; }
.renn-item:hover { background-color: #333; }
.renn-item.active { background-color: #333; border-left-color: #ff4500; }
.renn-titel { font-weight: bold; font-size: 14px; }
.renn-meta { font-size: 12px; color: #aaa; margin-top: 4px; }

.badge { display: inline-block; padding: 2px 6px; font-size: 10px; font-weight: bold; border-radius: 3px; float: right; }
.badge.live { background-color: #e50914; color: white; animation: blinker 1.5s linear infinite; }
.badge.vod { background-color: #555; color: white; }
.badge.geplant { background-color: #007bff; color: white; }
@keyframes blinker { 50% { opacity: 0.4; } }

footer a:hover {
    color: var(--primary) !important;
    text-decoration: underline;
    text-align: center;
}

/* --- FIX FÜR ABGESCHNITTENE FAHRERNAMEN (EVENT-DRIVERS-CONTAINER) --- */
#event-drivers-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    width: 100% !important;
}

#event-drivers-container * {
    max-width: none !important;
    text-overflow: clip !important;
}

#event-drivers-container div,
#event-drivers-container label,
#event-drivers-container .custom-checkbox-container {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: max-content !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

#event-drivers-container div:hover,
#event-drivers-container label:hover,
#event-drivers-container .custom-checkbox-container:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: var(--primary) !important;
}

#event-drivers-container input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 10px 0 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

#event-drivers-container span,
#event-drivers-container p {
    color: #ffffff !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}