/* --- VARIABLEN & GRUNDLAGEN --- */
:root {
    --csu-blue: #0080c8;          /* Klassisches CSU Blau */
    --bg-dark-blue: #003a72;     /* Tiefes Blau für Kontrast */
    --accent: #ffcc00;           /* Wahl-Gelb */
    --glass: rgba(0, 58, 114, 0.75); 
    --glass-border: rgba(255, 204, 0, 0.35);
    --text: #ffffff;
}

/* --- ANIMATIONEN --- */
@keyframes finish-glow {
    0% { box-shadow: 0 0 15px var(--accent); transform: scaleY(1); }
    50% { box-shadow: 0 0 30px #ffffff, 0 0 10px var(--accent); transform: scaleY(1.3); }
    100% { box-shadow: 0 0 15px var(--accent); transform: scaleY(1); }
}

.progress-finished {
    animation: finish-glow 0.8s ease-in-out 2;
    background: #ffffff !important;
}

/* --- LAYOUT --- */
body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background: 
        radial-gradient(circle at top right, rgba(255, 204, 0, 0.6) 0%, transparent 70%),
        linear-gradient(135deg, var(--csu-blue) 0%, var(--bg-dark-blue) 100%);
    background-attachment: fixed;
    color: var(--text);
    display: flex; 
    flex-direction: column;
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 20px;
    box-sizing: border-box;
}

.quiz-container {
    background: rgba(0, 40, 80, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 35px 25px; 
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    max-width: 750px; 
    width: 100%; 
    margin: auto 0;
}

/* --- NAVIGATION & HEADER --- */
h1 { 
    text-align: center; 
    margin: 0 0 10px 0; 
    font-weight: 800; 
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.candidate-duel-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}
.candidate-card { 
    flex: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer; 
    transition: alls0.3s ease;
    text-align: senter; 
}

.candidate-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 10px 0 2px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.candidate-sub {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #ffffff;
    max-width: 120px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-card:hover { 
    transform: scale(1.05); 
    filter: drop-shadow(0 8px 20px rgba(255, 204, 0, 0.4));
}

.candidate-image-wrapper {
    width: 150px; 
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    justify-content: center;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    background: var(--glass);
}

.candidate-img {
    width: 100%;
    height: 100%;     
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.duel-vs { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: var(--accent); 
    opacity: 0.5; 
}

.nav-buttons { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}

.nav-btn {
    flex: 1; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white; 
    padding: 12px 5px; 
    border-radius: 12px; 
    cursor: pointer;
    font-size: 0.85rem; 
    font-weight: 500; 
    transition: 0.3s;
    min-width: 130px;
}

.nav-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
    border-color: var(--accent); 
}

/* --- FORTSCHRITT --- */
.progress-container { 
    width: 100%; 
    background: rgba(255, 255, 255, 0.1); 
    height: 10px; 
    border-radius: 12px; 
    margin: 20px 0 8px 0; 
    overflow: hidden;
}

#progress-bar { 
    width: 0%; 
    height: 100%; 
    background: var(--accent); 
    transition: 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67); 
    box-shadow: 0 0 15px var(--accent); 
}

.step-info { 
    text-align: center; 
    font-size: 0.9rem; 
    color: var(--accent); 
    font-weight: 700;
    margin-bottom: 30px; 
}

/* --- FRAGEN & ANTWORTEN --- */
.question { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 30px; 
    text-align: center; 
    line-height: 1.35; 
}

.answer-card {
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 18px; 
    margin-bottom: 14px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    overflow: hidden;
}

.answer-card:hover { 
    background: rgba(255, 255, 255, 0.15); 
    border-color: var(--accent); 
    transform: translateY(-2px); 
}

.card-main { 
    padding: 22px; 
    padding-right: 55px; 
    cursor: pointer; 
}

.card-heading { 
    color: var(--text); 
    font-weight: 600; 
    font-size: 1.05rem; 
    line-height: 1.4; 
}

/* --- INFO & MODALS --- */
.info-btn {
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 50px; 
    height: 55px;
    border-radius: 0 18px 0 18px; 
    border: none; 
    background: var(--accent); 
    color: var(--bg-dark-blue); 
    font-weight: 900; 
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer-box {
    background: rgba(255, 94, 0, 0.1); 
    border-left: 4px solid #ff3c00;      
    padding: 15px 20px;
    margin: 30px 0 10px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #eeeeee;
    text-align: left; 
}

.disclaimer-box strong {
    color: #FFCC00; 
}

.disclaimer-box p {
    margin-bottom: 10px;
}
.info-btn:hover {
    background: #ffffff;
    transform: scale(1.2);
}

.info-text { 
    padding: 15px 20px 20px 20px; 
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem; 
    line-height: 1.5;
    border-top: 1px solid rgba(255, 204, 0, 0.3); 
    margin-top: 0px; 
    background: rgba(0, 0, 0, 0.2);
}

.modal { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 15, 30, 0.9); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000; 
    backdrop-filter: blur(8px); 
}

.modal-content { 
    background: var(--bg-dark-blue); 
    padding: 35px; 
    border-radius: 24px; 
    max-width: 500px; 
    width: 90%; 
    position: relative; 
    border: 2px solid var(--accent); 
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.2); 
    max-height: 80vh; 
    overflow-y: auto; 
}

.close-modal { 
    position: absolute; 
    top: 15px; right: 20px; 
    font-size: 30px; 
    cursor: pointer; 
    color: var(--accent); 
}

/* --- START & ERGEBNISSE --- */
.start-btn, .restart-btn { 
    background: var(--accent); 
    color: var(--bg-dark-blue); 
    border: none; 
    padding: 20px; 
    font-size: 1.25rem; 
    font-weight: 800; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: 0.3s; 
    width: 100%; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover, .restart-btn:hover { 
    transform: scale(1.03); 
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3);
}

.party-score { 
    display: flex; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.05); 
    margin-bottom: 15px; 
    padding: 15px 20px; 
    border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-left: 6px solid var(--accent);
}

.party-info { 
    flex-grow: 1; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.party-percent { 
    font-size: 1.35rem; 
    color: var(--accent); 
    font-weight: 800; 
}

/* --- FOOTER & MISC --- */
footer { 
    margin-top: 40px; 
    text-align: center; 
    font-size: 0.85rem; 
    opacity: 0.7; 
    padding-bottom: 30px; 
}

.share-footer-btn {
    background: var(--accent); 
    color: var(--bg-dark-blue); 
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
    font-size: 0,85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-footer-btn span {
    font-size: 1.2rem;
}

.share-footer-btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.share-footer-btn:active {
    transform: scale(0.98);
}

footer div {
    border-top: 1px solid rgba(255, 204, 0, 0.2) !important;
    margin-top: 20px;
    padding-top: 25px;
}

footer a { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 700; 
}

.hidden { display: none !important; }

@media (max-width: 400px) {
    .quiz-container { padding: 25px 15px; }
    .question { font-size: 1.3rem; }
    .nav-btn { font-size: 0.75rem; min-width: 80px; }
    .candidate-duel-container { gap: 5px; }
    .candidate-label { font-size: 0.95rem; }
    .candidate-sub { font-size: 0.75rem; }
}