.qmap-assessment {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.qmap-assessment section {
    margin-bottom: 2rem;
}

.qmap-assessment h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.qmap-assessment h4 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.qmap-assessment .abschnitt {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.qmap-assessment .abs-header {
    background: #f9f9f9;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.qmap-assessment .abs-progress {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: 8px;
}
.qmap-assessment .abs-progress.none {
    background: #ccc;
}
.qmap-assessment .abs-progress.partial {
    background: #f7d58b;
}
.qmap-assessment .abs-progress.complete {
    background: #d4edda;
}
.qmap-assessment .abs-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    margin-right: 12px;
}
.qmap-assessment .toggle-icon {
    min-width: 24px;
    text-align: center;
}
.qmap-assessment .abschnitt:not(.open) .toggle-icon::before {
    content: '▶';
}
.qmap-assessment .abschnitt.open .toggle-icon::before {
    content: '▼';
}
.qmap-assessment .abs-content {
    display: none;
    padding: 10px;
    background: #fff;
}
.qmap-assessment .abschnitt.open .abs-content {
    display: block;
}
.qmap-assessment .section-next-button,
.qmap-assessment .chapter-next-button {
    display: block;
    padding: 6px 12px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    margin-left: auto;
    width: fit-content;
}
.qmap-assessment .section-next-button:hover,
.qmap-assessment .chapter-next-button:hover {
    background: #e8e8e8;
}

.qmap-assessment .abs-description {
    padding: 0 10px 10px;
    font-size: 0.95rem;
    color: #555;
}

.qmap-assessment .raster-head-row {
    display: flex;
    font-weight: 600;
    margin-bottom: 4px;
}

.qmap-assessment .raster-head-row .col-question {
    width: 35%;
    font-size: 0.95rem;
    color: #666;
}

.qmap-assessment .raster-head-row .col-option {
    text-align: center;
    flex: 1;
    font-size: 0.95rem;
}

.qmap-assessment .question-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.qmap-assessment .question-row:nth-child(even) {
    background: #fafafa;
}

.qmap-assessment .semantic-diff-row {
    display: flex;
    justify-content: center;
}
.qmap-assessment .semantic-diff-row .col-options {
    width: 100%;
}

.qmap-assessment .col-question {
    width: 35%;
    padding: 0 8px;
}

.qmap-assessment .col-options {
    flex: 1;
    display: flex;
    justify-content: space-around;
}

.qmap-assessment .col-options.semantic-options {
    display: block;
    justify-content: center;
}

.qmap-assessment .option-cell {
    text-align: center;
    min-width: 60px;
}

.qmap-assessment .question-desc {
    margin-top: 5px;
    padding: 6px 8px;
    background: #fefefe;
    border-left: 3px solid #ddd;
    font-size: 0.9em;
    color: #333;
}

.assessment-bottom-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.assessment-bottom-nav.single-page {
    justify-content: flex-end;
}
.assessment-bottom-nav button {
    margin-bottom: 0.5rem;
}

.assessment-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.assessment-pages a {
    text-decoration: none;
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

.assessment-pages a.active {
    background: #007cba;
    color: #fff;
}

.assessment-pages a.completed {
    background: #d4edda;
}

.semantic-slider {
    display: grid;

    grid-template-columns: minmax(0, 30%) 1fr minmax(0, 30%);

    align-items: center;
    gap: 8px;
}
.semantic-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}
.semantic-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #ccc;
}
.semantic-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    margin-top: -6px;
}
.semantic-slider input[type="range"]::-moz-range-track {
    height: 4px;
    background: #ccc;
}
.semantic-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    border: none;
    cursor: pointer;
}
.semantic-label.left {
    margin-right: 4px;
    text-align: left;
}
.semantic-label.right {
    margin-left: 4px;
    text-align: left;
}


/* Ensure analysis charts scale with container */
.qmap-analysis canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Heatmap styles */
.qmap-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1.5em;
}

.qmap-chapter-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.qmap-chapter-head {
    background: rgba(255,255,255,0.6);
    padding: 0.6em 1em;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.qmap-chapter-head h3 {
    margin: 0;
    font-size: 1.1em;
}
.chapter-avg-score {
    font-size: 0.9em;
    color: #444;
}
.qmap-chapter-body {
    padding: 0.6em 1em 1em;
}
.qmap-module-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    gap: 8px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}
.qmap-module-row:last-child {
    border-bottom: none;
}
.mod-title {
    flex: 0 0 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.mod-scorebar {
    flex: 1 1 auto;
    background: #fafafa;
    border-radius: 4px;
    overflow: hidden;
    height: 20px;
    position: relative;
}
.score-fill {
    color: #fff;
    font-size: 0.85em;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
    height: 100%;
    border-radius: 4px;
}
