article.insights {
    float: none;
    clear: both;
    padding: 2rem 0;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: 4px solid #97cb51;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
}
.button:hover {
    background-color: #97cb51;
}

.next-post-link {
    float: right;
}

.prev-post-link {
}


.insights-thema a.active {
	color: #333;
}


.insights .tabs {
    margin-bottom: 3rem;
}

.insights .tabNavi {
    margin-bottom: 1.5rem;
}

nav#insights-navigation {
    margin: 3rem 0;
}


/* User Feedback */
.insights-feedback {
    margin: 3rem 0;
}


/* Sidebar */
.post-type-archive-insights aside.sidebar {
    display: block !important;
    flex-direction: unset;
}


/* Quiz */
article :last-child.quiz,
article :last-child.quiz-complete-message {
    margin-bottom: 2rem;
}
.quiz {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 2rem !important;
}

.quiz p {
    margin: 0;
}

.quiz-question {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.quiz-question-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Tablet */
@media (max-width: 800px) {
    .quiz {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Smartphone */
@media (max-width: 768px) {    
    .quiz-question {
        padding: 16px;
    }
}

.quiz-answer {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-answer input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.quiz-answer label {
    margin: 0;
    cursor: pointer;
}

.quiz-submit {
    margin-top: 1.25rem;
    padding: 8px 16px;
    background: #ec6608;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quiz-submit:hover {
    background: #d45a07;
}

.quiz-feedback {
    margin: 15px 0 0;
    border-radius: 4px;    
}

.quiz-feedback .correct {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.quiz-feedback .incorrect {
    color: #c62828;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
}

.quiz-retry {
    margin-top: 10px;
    padding: 8px 16px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quiz-retry:hover {
    background: #555;
}

/* Backend Quiz Overview Styles */
.quiz-overview-container {
    margin: 20px 0;
}

.quiz-user-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quiz-post-item {
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 3px solid #ccc;
    background: #f9f9f9;
}

/* Post Status */
.quiz-post-item.status-completed {
    border-left-color: #2e7d32; /* Grün */
}

.quiz-post-item.status-failed,
.quiz-post-item.status-incomplete {
    border-left-color: #f9a825; /* Gelb */
}

.quiz-post-item.has-locked-questions {    border-left: 3px solid #dc3545;}

.quiz-post-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.quiz-post-header h3 {
    margin: 0;
    font-size: 16px;
}

.quiz-post-meta {
    font-size: 12px;
    color: #666;
}

.quiz-post-content {
    display: none;
    padding: 15px;
}

.quiz-post-content.active {
    display: block;
}

.quiz-question-item {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-left: 2px solid #ccc; /* Standard: Grau */
}

/* Question Status */
.quiz-question-item.status-completed {
    border-left-color: #2e7d32; /* Grün */
}

.quiz-question-item.status-failed {
    border-left-color: #f9a825; /* Gelb */
}

.quiz-question-item.status-incomplete {
    border-left-color: #ccc; /* Grau */
}

.quiz-question-item.status-locked {
    border-left-color: #dc3545; /* Rot */
}

/* Zusätzliche Styles für gesperrte Fragen */
.quiz-question-item.status-locked .quiz-question-meta {
    color: #dc3545;
    font-weight: 600;
}

.quiz-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.quiz-question-header h4 {
    margin: 0;
    font-size: 14px;
}

.quiz-question-meta {
    font-size: 12px;
    color: #666;
}

.quiz-question-content {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.quiz-question-content.active {
    display: block;
}

.quiz-attempts {
    margin-top: 10px;
}

.quiz-attempt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
}

.quiz-attempt.correct {
    background: #e8f5e9;
}

.quiz-attempt.incorrect {
    background: #ffebee;
}

.attempt-date {
    color: #666;
}

.attempt-answers {
    flex-grow: 1;
    margin: 0 15px;
}

.attempt-status {
    font-weight: bold;
}

.quiz-attempt.correct .attempt-status {
    color: #2e7d32;
}

.quiz-attempt.incorrect .attempt-status {
    color: #c62828;
}

.quiz-actions {
    margin-top: 1.25rem;    
    text-align: right;
}

.delete-all-quiz-data {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.delete-all-quiz-data:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.quiz-question-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-question-data {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.delete-question-data:hover {
    opacity: 1;
}

.delete-question-data .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.quiz-locked {
    background-color: #fff3e0;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #333;
}

.quiz-locked a {
    color: #e65100;
}

.quiz-attempts-info {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    color: #2e7d32;
    font-size: 0.9em;
}

.quiz-attempts-info p {
    margin: 0;
}

.quiz-retry-container {
    display: block;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.remaining-attempts {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    font-weight: 400;
}

.quiz-edit-link {
    font-size: 12px;
    margin-left: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: normal;
}

.quiz-edit-link:hover {
    color: #00a0d2;
    text-decoration: underline;
}

.quiz-filter {
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.quiz-filter-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.quiz-filter-btn:hover {
    background: #f8f8f8;
    border-color: #ccc;
}

.quiz-filter-btn.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.quiz-overview {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.quiz-complete-message {
    margin: 2rem auto;
    padding: 2rem;
    background: #e8f5e9;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-success {
    color: #2e7d32;
}

.quiz-success h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}