.bekymringer_container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.bekymringer_container * {
    box-sizing: border-box;
}

#audio-control-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.audio-toggle-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #618aa1;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 138, 161, 0.3);
}

.bekymringer_container .audio-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 138, 161, 0.4);
}

.bekymringer_container .audio-toggle-button:active {
    transform: translateY(0);
}

.bekymringer_container .audio-toggle-button.audio-off {
    background: linear-gradient(135deg, #999 0%, #666 100%);
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.3);
}

.bekymringer_container .audio-toggle-button.audio-off:hover {
    box-shadow: 0 6px 20px rgba(100, 100, 100, 0.4);
}

.bekymringer_container .audio-icon {
    font-size: 1.2em;
    line-height: 1;
}

.bekymringer_container .audio-text {
    font-size: 0.95em;
}

.bekymringer_container #progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.bekymringer_container #progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.5s ease;
}

.bekymringer_container #quiz-container {
    background: white;
    border-radius: 3px;
    padding: 30px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#statement-container {
    margin-bottom: 40px;
    min-height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.bekymringer_container #person-image-container {
    flex-shrink: 0;
}

.bekymringer_container #person-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#statement-text-wrapper {
    flex: 1;
    text-align: left;
}

#statement-heading {
    font-size: 1.3em;
    font-weight: bold;
    color: #618aa1;
    margin: 0;
}

.bekymringer_container #statement-text {
    font-size: 1.4em;
    font-weight: normal;
    color: #333;
    line-height: 1.6;
    font-style: italic;
}

.bekymringer_container #statement-text::before {
    content: '"';
}

.bekymringer_container #statement-text::after {
    content: '"';
}

.bekymringer_container #options-heading {
    font-size: 1.4em;
    font-weight: bold;
    color: #618aa1;
    margin-bottom: 25px;
    text-align: left;
    animation: slideInDown 0.6s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bekymringer_container #options-heading.hide-heading {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-button {
    background: #8c9aa3;
    color: white;
    border: none;
    padding: 20px 30px;
    font-size: 1.12em;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.bekymringer_container .option-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bekymringer_container .option-button:active {
    transform: translateY(0);
}

.bekymringer_container .option-button.correct {
    background: #4CAF50;
    animation: correctPulse 0.5s ease;
}

.bekymringer_container .option-button.incorrect {
    background: #f44336;
    animation: incorrectShake 0.5s ease;
}

.bekymringer_container .option-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.bekymringer_container .option-button.hide-option {
    display: none !important;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.bekymringer_container #feedback-container {
    margin-top: 30px;
    text-align: center;
}

.bekymringer_container #feedback-message {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.bekymringer_container #next-button, .bekymringer_container #restart-button {
    background: #618aa1;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bekymringer_container #next-button:hover, .bekymringer_container #restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bekymringer_container #results-container {
    background: white;
    border-radius: 3px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.bekymringer_container #results-container h1 {
    font-size: 2.5em;
    color: #618aa1;
    margin-bottom: 30px;
}

.bekymringer_container #score-display {
    font-size: 3em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 30px;
}

.bekymringer_container #final-feedback {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 3px;
}

.bekymringer_container .hidden {
    display: none !important;
}

.bekymringer_container .fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.bekymringer_container .fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Intro Modal Overlay */
.bekymringer_container .intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Undgår at følge hele kolonnehøjde når quiz allerede er pre-render i bagved */
    height: min(100vh, 100%);
    height: 120% /*min(100dvh, 100%);*/
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    z-index: 1000;
    backdrop-filter: blur(3px);
    border-radius: 3px;
}

.bekymringer_container .intro-overlay.hidden {
    display: none !important;
}

.bekymringer_container .intro-overlay-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.5s ease;
}

.bekymringer_container .intro-box {
    margin-bottom: 1rem;
}

.bekymringer_container .intro-title {
    color: #618aa1;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bekymringer_container .intro-subtitle {
    color: #618aa1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.bekymringer_container .intro-instruction {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.bekymringer_container .start-exercise-btn {
    background: #618aa1;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 3px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(97, 138, 161, 0.3);
}

.bekymringer_container .start-exercise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 138, 161, 0.4);
}

.bekymringer_container .start-exercise-btn:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .bekymringer_container {
        padding: 0;
    }

    /* Samme fodaftryk som #quiz-container: fuld bredde i container + samme padding */
    .bekymringer_container .intro-overlay {
        padding: 14px 16px 20px;
    }

    .bekymringer_container .intro-overlay-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20px 24px;
        flex-shrink: 0;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    
    .bekymringer_container .intro-title {
        font-size: 1.5rem;
    }
    
    .bekymringer_container .intro-subtitle {
        font-size: 1.1rem;
    }
    
    .bekymringer_container .intro-instruction {
        font-size: 1rem;
    }
    
    .bekymringer_container .start-exercise-btn {
        padding: 0.85rem 2rem;
        font-size: 1.1rem;
    }
    
    #audio-control-wrapper {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .audio-toggle-button {
        font-size: 0.9em;
        padding: 10px 16px;
    }
    
    #statement-container {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        min-height: 0;
        margin-bottom: 24px;
    }
    
    #statement-text-wrapper {
        text-align: left;
        width: 100%;
    }
    
    .bekymringer_container #person-image-container {
        align-self: center;
    }

    .bekymringer_container #person-image {
        width: 120px;
        height: 120px;
    }
    
    #statement-heading {
        font-size: 1.1em;
    }
    
    .bekymringer_container #statement-text {
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 1.05rem;
        font-weight: 400;
        font-style: normal;
        line-height: 1.55;
        color: #1f1f1f;
        text-align: left;
        overflow-wrap: break-word;
    }
    
    .bekymringer_container #options-heading {
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 1.15em;
        margin-bottom: 16px;
        text-align: left;
    }
    
    #options-container {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .option-button {
        padding: 12px 14px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .bekymringer_container #feedback-message {
        padding: 14px 16px;
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .bekymringer_container #next-button,
    .bekymringer_container #restart-button {
        padding: 10px 22px;
        font-size: 1rem;
    }
    
    .bekymringer_container #quiz-container {
        padding: 20px 24px 20px;
    }

    .bekymringer_container #results-container {
        padding: 20px 16px;
    }
    
    .bekymringer_container #score-display {
        font-size: 2em;
    }
    
    .bekymringer_container #results-container h1 {
        font-size: 2em;
    }

    .bekymringer_container .desktop-only {
        display: none !important;
    }

    .bekymringer_container .mobile-only {
        display: block !important;
    }

    .bekymringer_container .mobile-only.mobile-only--inline {
        display: inline !important;
    }

    .bekymringer_container .audio-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .bekymringer_container .audio-toggle-button {
        padding: 10px 14px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bekymringer_container .intro-overlay {
        padding: 12px 14px 16px;
    }

    .bekymringer_container .intro-overlay-content {
        padding: 16px 20px;
    }
    
    .bekymringer_container .intro-title {
        font-size: 1.3rem;
    }
    
    .bekymringer_container .intro-subtitle {
        font-size: 1rem;
    }
    
    .bekymringer_container .intro-instruction {
        font-size: 0.9rem;
    }
    
    .bekymringer_container .start-exercise-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .bekymringer_container #person-image {
        width: 100px;
        height: 100px;
    }
    
    #statement-heading {
        font-size: 1em;
    }
    
    .bekymringer_container #statement-text {
        font-size: 1em;
    }
    
    .bekymringer_container #options-heading {
        font-size: 1.05em;
    }
    
    .option-button {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .bekymringer_container #feedback-message {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
    
    .bekymringer_container #next-button,
    .bekymringer_container #restart-button {
        padding: 9px 16px;
        font-size: 0.95rem;
    }
    
    .bekymringer_container #final-feedback {
        font-size: 1rem;
        padding: 16px;
    }

    .bekymringer_container #quiz-container {
        padding: 14px 18px;
    }
}

@media (min-width: 769px) {
    .bekymringer_container .mobile-only {
        display: none !important;
    }
}
