/* ===== ALLGEMEIN ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/background.jpg') center/cover no-repeat fixed;
    background-size: cover;
    background-position: center;
    color: #2d2d2d;
    overflow: hidden;
    height: 100vh;
}

.hidden {
    display: none !important;
}

/* ===== COMMAND CENTER GRID LAYOUT ===== */
#command-center {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 220px 1fr 240px;
    grid-template-rows: 60px 1fr 160px;
    gap: 12px;
    padding: 12px;
    background: url('../images/background.jpg') center/cover no-repeat fixed;
    background-size: cover;
    background-position: center;
}

/* ===== LOGO (Spalte 1, Zeile 1) ===== */
#header {
    grid-column: 1;
    grid-row: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#header h1 {
    font-size: 0.75em;
    color: #c19a47;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5),
                 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1.3;
}

/* ===== VOLKSZUFRIEDENHEIT (Spalte 1, Zeile 2) ===== */
#stats-panel {
    grid-column: 1;
    grid-row: 2;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.stat-icon {
    font-size: 32px;
    line-height: 1;
}

.stat-info {
    flex: 1;
    width: 100%;
}

.stat-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #c19a47;
    margin-bottom: 6px;
    text-align: center;
}

.stat-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #eab308 50%, #22c55e 100%);
    transition: width 0.5s ease;
    width: 50%;
}

.indicators-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.indicator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
}

.indicator-label {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.indicator-value {
    font-weight: bold;
    color: #c19a47;
    font-size: 16px;
}

/* ===== TIMELINE RECHTS (Spalte 3, Zeile 2-3) ===== */
#timeline-container {
    grid-column: 3;
    grid-row: 2 / 4;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.timeline-header {
    padding: 18px;
    font-size: 16px;
    font-weight: bold;
    color: #c19a47;
    text-align: center;
    border-bottom: 3px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.timeline-header span {
    flex: 1;
}

.btn-undo-small {
    padding: 6px 12px;
    font-size: 18px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-undo-small:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.btn-undo-small:active {
    transform: translateY(0);
}

#timeline-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

#timeline-scroll::-webkit-scrollbar {
    width: 8px;
}

#timeline-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#timeline-scroll::-webkit-scrollbar-thumb {
    background: #c19a47;
    border-radius: 4px;
}

#timeline-events {
    position: relative;
    padding-left: 30px;
}

#timeline-events::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #c19a47 0%, #d4af37 100%);
    border-radius: 2px;
}

.timeline-event {
    position: relative;
    margin-bottom: 25px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-event:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 1);
    border-color: #c19a47;
    box-shadow: 0 4px 16px rgba(193, 154, 71, 0.3);
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 18px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid;
    background: white;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.timeline-marker.positive {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.timeline-marker.negative {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.timeline-marker.neutral {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
}

.timeline-month {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.timeline-title {
    font-size: 13px;
    font-weight: bold;
    color: #2d2d2d;
    margin-bottom: 6px;
}

.timeline-party {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-effect {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* ===== HAUPTBEREICH MITTE - FRAGEN (Spalte 2, Zeile 2-3) ===== */
#main-content {
    grid-column: 2;
    grid-row: 2 / 4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#game-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 15px;
    margin: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

#game-area::-webkit-scrollbar {
    width: 8px;
}

#game-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#game-area::-webkit-scrollbar-thumb {
    background: #c19a47;
    border-radius: 4px;
}

#situation-box {
    background: linear-gradient(135deg, rgba(193, 154, 71, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 2px solid rgba(193, 154, 71, 0.4);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(193, 154, 71, 0.15);
}

#situation-box h3 {
    font-size: 1.05em;
    color: #c19a47;
    margin-bottom: 10px;
    font-weight: bold;
}

#situation-text {
    color: #000000;
    line-height: 1.5;
    font-size: 0.95em;
}

#question-box {
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.question-number {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.question-category {
    background: linear-gradient(135deg, #c19a47 0%, #d4af37 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(193, 154, 71, 0.4);
}

#question-text {
    font-size: 1.1em;
    color: #2d2d2d;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 500;
}

#answers-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95em;
    color: #2d2d2d;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.answer-option:hover {
    background: linear-gradient(135deg, #c19a47 0%, #d4af37 100%);
    color: white;
    border-color: #c19a47;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 154, 71, 0.4);
}

.answer-option:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(193, 154, 71, 0.3);
}

#result-box {
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#result-box h3 {
    color: #c19a47;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

#party-name {
    font-size: 1.5em;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 12px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    font-size: 1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #c19a47 0%, #d4af37 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4af37 0%, #c19a47 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 154, 71, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

/* ===== GAME OVER ===== */
#gameover-screen {
    text-align: center;
    padding: 40px;
}

#gameover-title {
    font-size: 2.5em;
    color: #c19a47;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

#gameover-message {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

#final-stats {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #c19a47;
    border-radius: 12px;
    padding: 25px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===== NACHRICHTEN MITTE UNTEN (Spalte 2, Zeile 3) ===== */
#news-ticker-container {
    grid-column: 2;
    grid-row: 3;
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid #c19a47;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.ticker-header {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: bold;
    color: #c19a47;
    text-align: center;
    border-bottom: 3px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    flex-shrink: 0;
}

#news-ticker-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#news-ticker-scroll::-webkit-scrollbar {
    width: 6px;
}

#news-ticker-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
}

#news-ticker-scroll::-webkit-scrollbar-thumb {
    background: #c19a47;
    border-radius: 3px;
}

#news-ticker {
    padding: 12px;
}

.news-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%);
    border-left: 4px solid #c19a47;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #2d2d2d;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.news-time {
    font-size: 0.75em;
    color: #999;
    margin-right: 8px;
    font-weight: 600;
}

/* ===== START SCREEN ===== */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../images/background.jpg') center/cover no-repeat fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.start-banner {
    background: rgba(255, 255, 255, 0.5);
    border: 5px solid #c19a47;
    border-radius: 20px;
    padding: 50px 60px;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 50px rgba(212, 175, 55, 0.5);
}

.start-banner h1 {
    font-size: 2.8em;
    color: #c19a47;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    letter-spacing: 3px;
}

.start-banner h2 {
    font-size: 1.8em;
    color: #2d2d2d;
    margin-bottom: 25px;
}

.start-banner p {
    font-size: 1.1em;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.6;
}

.start-banner button {
    margin-top: 30px;
}

/* ===== PARTEIENFARBEN ===== */
.dielinke { background-color: #BE3075; }
.party-linke { background-color: #BE3075; }
.gruene { background-color: #64A12D; }
.party-gruene { background-color: #64A12D; }
.spd { background-color: #E3000F; }
.party-spd { background-color: #E3000F; }
.cdu { background-color: #000000; }
.party-cdu { background-color: #000000; }
.fdp { background-color: #FFED00; color: #2d2d2d !important; }
.party-fdp { background-color: #FFED00; color: #2d2d2d !important; }
.afd { background-color: #009EE0; }
.party-afd { background-color: #009EE0; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    
    #command-center {
        position: relative;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 8px;
        gap: 10px;
    }
    
    #header {
        order: 1;
        padding: 8px 10px;
        min-height: 50px;
    }
    
    #header h1 {
        font-size: 0.7em;
        letter-spacing: 1px;
        line-height: 1.2;
    }
    
    #stats-panel {
        order: 2;
        padding: 12px;
        min-height: auto;
    }
    
    .stat-compact {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e0e0e0;
    }
    
    /* Indikatoren auf Mobile anzeigen */
    .indicators-compact {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .indicator-item {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .indicator-label {
        font-size: 12px;
    }
    
    .indicator-value {
        font-size: 14px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
        text-align: left;
    }
    
    .stat-label {
        text-align: left;
    }
    
    #main-content {
        order: 3;
        overflow: visible;
        height: auto;
        flex: 0 0 auto;
    }
    
    #game-area {
        padding: 12px;
        margin: 0;
        overflow: visible;
        height: auto;
    }
    
    #timeline-container {
        order: 4;
        min-height: 150px;
        max-height: 200px;
    }
    
    .timeline-event {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .timeline-title {
        font-size: 11px;
    }
    
    #news-ticker-container {
        order: 5;
        min-height: 140px;
        max-height: 160px;
    }
    
    .news-item {
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    #situation-box {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    #situation-box h3 {
        font-size: 0.95em;
    }
    
    #situation-text {
        font-size: 0.85em;
    }
    
    #question-box {
        padding: 12px;
    }
    
    #question-text {
        font-size: 0.95em;
        margin-bottom: 12px;
    }
    
    .answer-option {
        padding: 12px 14px;
        font-size: 0.85em;
        margin-bottom: 8px;
    }
    
    /* Result Box für Mobile optimieren */
    #result-box {
        padding: 18px;
        margin: 15px 0;
    }
    
    #result-box h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    
    .result-text {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    #party-name {
        font-size: 1.2em;
        padding: 12px 20px;
        margin: 15px 0;
        word-break: break-word;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95em;
        width: 100%;
        margin: 5px 0;
    }
    
    .start-banner {
        padding: 25px 18px;
        max-width: 90%;
    }
    
    .start-banner h1 {
        font-size: 1.8em;
    }
    
    .start-banner h2 {
        font-size: 1.3em;
    }
    
    .start-banner p {
        font-size: 0.95em;
    }
}
