* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #90caf9;
}

#intro-section {
    text-align: center;
    padding: 20px;
}

.intro-text {
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text p {
    margin-bottom: 15px;
}

.primary-btn {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #5c6bc0;
}

.quiz-container {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.rank-image-container {
    text-align: center;
    margin-bottom: 20px;
}

#rank-image {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #444;
    padding: 10px;
    background-color: #2a2a2a;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 10px;
    background-color: #333333;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #ffffff;
}

.option-btn:hover {
    background-color: #444444;
}

.option-btn.correct {
    background-color: #1b5e20;
    border-color: #2e7d32;
    color: #ffffff;
}

.option-btn.wrong {
    background-color: #b71c1c;
    border-color: #c62828;
    color: #ffffff;
}

.result-feedback {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    min-height: 24px;
}

.result-feedback.correct {
    color: #4caf50;
}

.result-feedback.wrong {
    color: #f44336;
}

.controls {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #5c6bc0;
}

.secondary-btn {
    background-color: #f44336;
    color: white;
}

.secondary-btn:hover {
    background-color: #c62828;
}

.additional-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.link-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.link-btn:hover {
    background-color: #3498db;
}

.reference-section {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.reference-section.collapsed .tabs,
.reference-section.collapsed .tab-content {
    display: none;
}

.reference-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.timer-container {
    position: relative;
    margin: 20px auto;
    height: 36px;
    max-width: 400px;
    background-color: #2a2a2a;
    border-radius: 18px;
    overflow: hidden;
}

.timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #3f51b5;
    transition: width 1s linear;
    border-radius: 18px;
}

#timer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1;
}

.mode-selector {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.mode-options, .category-options, .anwaerter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

/* Verbesserte Formularelemente für Darkmode */
label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: #2a2a2a;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

label:hover {
    background-color: #3a3a3a;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #3f51b5;
}



.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    background-color: transparent;
    color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin-right: 5px;
}

.tab-btn.active {
    border-bottom: 3px solid #90caf9;
    color: #90caf9;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.rank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    margin-bottom: 10px;
}

.rank-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    background-color: #444;
    padding: 5px;
    border-radius: 5px;
}

.rank-name {
    text-align: center;
    font-weight: bold;
}

.rank-category {
    color: #666;
    font-size: 0.8em;
    text-align: center;
}

@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
    }
    
    .rank-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
