:root {
    --primary: #ff4500;      /* Luffy Orange */
    --accent: #ffd700;       /* Gold */
    --ok: #00c853;           /* Erfolgsgrün */
    --not-ok: #ff1744;       /* Rot */
    --navigation: #ffd700;
    --sea-dark: #0a2540;
    --sea-light: #1e4a7a;
    --parchment: #f4e4c1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--sea-dark), var(--sea-light));
    color: #fff;
    overflow: hidden;
}

main {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.quiz-container {
    background-color: var(--parchment);
    border: 8px solid var(--accent);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                inset 0 0 80px rgba(255, 215, 0, 0.3);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    color: #222;
    position: relative;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 80px;
    height: 80px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Straw_Hat_Pirates_Jolly_Roger.svg/1200px-Straw_Hat_Pirates_Jolly_Roger.svg.png') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.question-answer-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5vw;
    min-height: 65vh;
    position: relative;
    z-index: 1;
}

.question-wrapper {
    text-align: left;
    width: 50%;
}

.questions-counter {
    font-family: 'Pirata One', cursive;
    font-size: 1.4rem;
    color: var(--primary);
}

.question {
    font-family: 'Pirata One', cursive;
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 15px 0 25px;
    color: #111;
}

.timer {
    font-family: 'Pirata One', cursive;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.answers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 50%;
}

.answers button {
    background: linear-gradient(#ffd700, #ffaa00);
    color: #222;
    border: 4px solid #222;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.45rem;
    font-weight: 700;
    padding: 18px 12px;
    min-height: 6.2rem;
    width: 100%;
    box-shadow: 4px 4px 0 #222;
    transition: all 0.2s;
}

.answers button:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #222;
}

.answers button.correct {
    background: var(--ok);
    color: #fff;
    border-color: #222;
}

.answers button.incorrect {
    background: var(--not-ok);
    color: #fff;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.score {
    font-family: 'Pirata One', cursive;
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: 2px 2px 3px #000;
    margin: 0;
}

.nav-button {
    background: linear-gradient(#ffd700, #ffaa00);
    color: #222;
    border: 4px solid #222;
    font-family: 'Pirata One', cursive;
    font-size: 1.6rem;
    padding: 12px 28px;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #222;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.nav-button.visible {
    display: block;
}

.nav-button:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #222;
}

.restart-btn {
    background: linear-gradient(#ff4500, #e63300);
    color: #fff;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .question-answer-wrapper {
        flex-direction: column;
    }
    .question-wrapper, .answers {
        width: 100%;
    }
    .question {
        font-size: 1.9rem;
    }
    .timer {
        font-size: 1.8rem;
    }
    .answers button {
        font-size: 1.3rem;
        min-height: 5rem;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 15px;
        border-width: 6px;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.answers button.correct {
    animation: pulse 0.6s ease-in-out;
}