.toggle-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-button:hover {
    background-color: #5951e0;
}

.toggle-button.off {
    background-color: #808080;
}

.toggle-button.weather {
    /*background-color: var(--sun-primary);*/
    color: #333;
}

.toggle-button.weather:hover {
    background-color: #5951e0;
}

body.sunny .toggle-button.weather {
    /*background-color: #4682B4; !* Steel Blue für Regenwetter-Button *!*/
    color: var(--text-color);
}

body.sunny .toggle-button.weather:hover {
    background-color: #5951e0; /* Dunkleres Blau für Hover */
}

:root {
    --primary-color: #2C2E3B;
    --secondary-color: #3F4156;
    --accent-color: #6c63ff;
    --text-color: #f5f5f5;
    --light-text: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --rain-color: #5951e0;
    --sun-primary: #FFD700;
    --sun-secondary: #FF8C00;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

body.sunny .container {
    background-color: rgba(63, 65, 86, 0.7);
}

body.sunny header,
body.sunny .status-bar,
body.sunny .question-container,
body.sunny .no-results {
    background-color: rgba(63, 65, 86, 0.9);
}

#weatherCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.button-group {
    display: flex;
    gap: 10px;
}

h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
}

.search-container {
    margin: 20px 0;
    display: flex;
}

#searchInput {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.question-container {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.question-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.question {
    margin-top: 0;
    font-weight: 500;
    color: var(--text-color);
}

.answer-options {
    list-style-type: none;
    padding-left: 0;
}

.answer-option {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.answer-option.correct {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 4px solid var(--success-color);
}

.answer-marker {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    position: relative;
}

.answer-option.correct .answer-marker::after {
    content: "✓";
    position: absolute;
    color: var(--success-color);
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.answer-text {
    flex: 1;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.total-count {
    font-weight: 500;
}

.category-title {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 30px 0 15px 0;
    font-size: 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#categoryDropdown {
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
}

#categoryDropdown option {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
    }
}