:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --primary: #005f73;
    --primary-hover: #0a9396;
    --correct: #2a9d8f;
    --wrong: #e76f51;
    --danger: #d62828;
    --border: #dee2e6;
}

* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

/* --- INTRO ANIMATION BÄR --- */
.intro-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

.intro-overlay.fly-away {
    transform: translateY(-120vh) translateX(30vw) rotate(25deg) scale(0.3);
    opacity: 0;
}

.intro-bear {
    max-width: 85%;
    max-height: 55vh;
    animation: float 3s ease-in-out infinite;
}

.scroll-hint {
    margin-top: 30px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
/* -------------------------- */

.container { flex: 1; max-width: 600px; width: 100%; margin: 0 auto; padding: 20px; background-color: var(--card-bg); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* Bär im Menü */
.logo-img { display: block; margin: 0 auto 20px auto; max-width: 500px; height: auto; }

h1, h2, h3 { text-align: center; color: var(--primary); margin-top: 0; }
p { line-height: 1.5; }
.subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }

.screen { display: none; animation: fadeIn 0.3s ease-in-out; }
.screen.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Fortschrittsbalken */
.progress-container { width: 100%; background-color: var(--border); border-radius: 8px; height: 10px; margin-bottom: 20px; overflow: hidden; }
.progress-bar { height: 100%; background-color: var(--correct); width: 0%; transition: width 0.3s ease; }

button { width: 100%; background-color: var(--primary); color: white; border: none; padding: 16px; margin: 8px 0; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
button:hover { background-color: var(--primary-hover); }

button.secondary { background-color: var(--text-muted); }
button.secondary:hover { background-color: #495057; }

button.btn-success { background-color: var(--correct); margin-bottom: 20px; }
button.btn-success:hover { background-color: #21867a; }

button.btn-danger { background-color: var(--danger); font-size: 14px; padding: 12px; }
button.btn-danger:hover { background-color: #b01e1e; }

button:disabled { background-color: #ced4da !important; color: #868e96 !important; cursor: not-allowed !important; }

.grid-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.grid-buttons button { margin: 0; padding: 12px; font-size: 15px; }

.question-header { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.question-text { font-size: 18px; font-weight: 600; margin-bottom: 20px; }

.option { display: block; width: 100%; text-align: left; background: var(--bg-color); color: var(--text-main); border: 2px solid transparent; padding: 15px; margin: 10px 0; border-radius: 8px; font-size: 16px; cursor: pointer; transition: all 0.2s; }
.option.selected { border-color: var(--primary); background: #e0fbfc; }

/* Ergebnisanzeige */
.result-box { padding: 20px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-weight: bold; font-size: 20px; }
.result-box.pass { background-color: #d5f5e3; color: var(--correct); }
.result-box.fail { background-color: #fadbd8; color: var(--wrong); }
.score-details { display: flex; justify-content: space-around; margin-top: 15px; font-size: 14px; color: var(--text-main); font-weight: normal; }

/* Akkordeon-Review */
.review-item { background: var(--bg-color); border-radius: 8px; margin-bottom: 10px; overflow: hidden; border: 1px solid var(--border); }
.review-header { padding: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background-color: #fff; }
.review-header.correct { border-left: 5px solid var(--correct); color: var(--correct); }
.review-header.wrong { border-left: 5px solid var(--wrong); color: var(--wrong); }
.review-header:hover { background-color: #f8f9fa; }

.review-content { padding: 15px; border-top: 1px solid var(--border); display: none; }
.review-item.open .review-content { display: block; }

.review-img { max-width: 100%; max-height: 200px; margin-bottom: 15px; border-radius: 4px; }
.review-question { font-weight: 600; margin-bottom: 10px; font-size: 16px; color: var(--text-main); }
.review-your-ans { margin-bottom: 5px; font-size: 14px; }
.review-your-ans.wrong-text { color: var(--wrong); }
.review-your-ans.correct-text { color: var(--correct); }
.review-correct-ans { color: var(--correct); font-weight: 600; font-size: 14px; margin-top: 5px; }

.nav-row { display: flex; gap: 10px; margin-top: 20px; }

/* Footer */
.site-footer { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; margin-top: auto; }