/* ========================================= */
/* --- CSS VARIABLEN FÜR THEME SWITCHING --- */
/* ========================================= */
:root {
    --bg-color: #0d1117; /* Dunkler Hintergrund (Dark Mode Default) */
    --text-color: #c9d1d9; 
    --primary-accent: #58a6ff; /* Tech Blue - Akzentfarbe */
    --secondary-bg: #161b22;
    --button-bg: #21262d;
    --shadow-glow: rgba(0, 255, 255, 0.3);
}

/* Light Mode Definition */
body.light-mode {
    --bg-color: #f0f4f8; /* Heller Hintergrund */
    --text-color: #1a202c; /* Dunkler Text */
    --primary-accent: #3b82f6; 
    --secondary-bg: #ffffff;
    --button-bg: #e2e8f0;
    --shadow-glow: rgba(59, 130, 246, 0.3);
}

/* ========================================= */
/* --- GRUNDSTIL & LAYOUT (RESPONSIVE) --- */
/* ========================================= */
body {
    background: var(--bg-color);
    color: var(--text-color); 
    font-family: 'Inter', sans-serif;
    padding: 20px;
    transition: background-color 0.5s ease, color 0.5s ease; /* Sanfter Übergang beim Theme Wechsel */
}

/* Hauptcontainer für bessere Kontrolle auf kleinen Screens */
#quiz-container {
    max-width: 800px; 
    margin: 0 auto; 
    padding-bottom: 120px; 
    position: relative; 
}

/* ------------------- MENÜ & HEADER ------------------- */
nav {
    background: var(--secondary-bg); 
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex; 
    justify-content: center;
    align-items: center;
}

nav a {
    color: var(--primary-accent); 
    margin: 0 15px; 
    text-decoration: none; 
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fff; 
    border-bottom: 2px solid var(--primary-accent); 
}


/* ========================================= */
/* --- CONTROLS (TOP & BOTTOM) -------------- */
/* ========================================= */
.controls {
    position: fixed; /* Bleibt immer am Platz */
    z-index: 100; /* Stellt sicher, dass die Buttons über allem liegen */
    display: flex;
    gap: 15px;
}

/* Top Left (Theme Toggle) */
.controls.top-left {
    top: 20px;
    left: 20px; 
}

/* Bottom Left (Dev Settings Button) */
.controls.bottom-left {
    bottom: 20px;
    left: 20px; 
}

/* Bottom Right (GitHub Link & Secondary Controls) */
.controls.bottom-right {
    bottom: 20px;
    right: 20px; 
}


.control-btn, .control-link {
    background: none;
    border: 1px solid var(--primary-accent); 
    color: var(--text-color);
    cursor: pointer;
    font-size: 1em; 
    padding: 8px 12px;
    transition: color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    border-radius: 6px;
}

.control-btn:hover, .control-link:hover {
    transform: scale(1.1);
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}


/* ========================================= */
/* --- QUIZ-ELEMENTE (TITEL/BILD) ------------------- */
/* ========================================= */
h1#quiz-title{
    font-size: clamp(2em, 5vw, 3.5em); 
    color: var(--text-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px var(--primary-accent); 
}

#question-img {
    max-width: 90%; /* Wichtig für Mobilgeräte */
    height: auto;
    display: block; 
    margin: 20px auto 30px; 
    border-radius: 15px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); 
    transition: transform 0.3s ease; 
}

#question {
    font-size: clamp(1.2em, 3vw, 1.6em); 
    margin-bottom: 40px;
    padding: 0 20px;
}


/* ------------------- BUTTONS (Die Interaktion) ------------------- */
button {
    padding: 15px 30px; 
    font-size: 1.1em; 
    cursor: pointer;
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 2px solid #444;
    margin: 10px 15px;
    transition: all 0.3s ease; 
    border-radius: 8px;
}

button:hover {
    background-color: var(--primary-accent); 
    color: #fff;
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px var(--shadow-glow); /* Neon-Schimmer beim Hovern */
}

/* ========================================= */
/* --- ERGEBNISSE UND FEEDBACK ------------------- */
/* ========================================= */
#result {
    font-size: clamp(1.2em, 3vw, 1.8em);
    margin-top: 40px;
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Spezielle Klassen für Feedback */
.correct {
     background-color: rgba(76, 175, 80, 0.2); 
     color: #9ae6b4;
}
.incorrect {
     background-color: rgba(255, 82, 82, 0.2); 
     color: #f87171;
}

/* ========================================= */
/* --- DEV SETTINGS MODAL (OVERLAY) ----------- */
/* ========================================= */
#settingsModal {
    display: none; 
    position: fixed; z-index: 1000; 
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); /* Dunkler Overlay */
}

#settingsModal > div {
    background-color: var(--secondary-bg); 
    margin: 5% auto; 
    padding: 30px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 600px; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Debug Panel Styling */
#debugPanelContent {
    margin-top: 20px;
    padding: 15px;
    border: 1px dashed var(--primary-accent);
    background-color: var(--bg-color);
    max-height: 400px;
    overflow-y: auto;
}

/* Stil für die Liste der Bilder */
#debugPanelContent ul {
    list-style-type: none;
    padding: 0;
}
#debugPanelContent li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Stil für den Zustand */
#debugPanelContent h4, #debugPanelContent p strong {
    display: inline-block;
    min-width: 180px;
}

