:root {
    --theme-color: #333;
    --theme-bg: #f4f4f4;
}

body.dim-1 { --theme-color: #3498db; --theme-bg: #ebf5fb; }
body.dim-2 { --theme-color: #e74c3c; --theme-bg: #fdedec; }
body.dim-3 { --theme-color: #f39c12; --theme-bg: #fef5e7; }
body.dim-4 { --theme-color: #9b59b6; --theme-bg: #f5eef8; }
body.dim-5 { --theme-color: #e67e22; --theme-bg: #fdf2e9; }
body.dim-6 { --theme-color: #1abc9c; --theme-bg: #e8f8f5; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

header {
    background-color: #2c3e50;
    padding: 15px;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 12px 10px;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    border-radius: 4px;
    transition: 0.3s;
    /* Auf dem Handy: 2 Buttons nebeneinander */
    flex: 1 1 calc(50% - 10px);
    box-sizing: border-box;
    text-align: center;
}

.nav-btn:hover, .nav-btn.active {
    background-color: white;
    color: #2c3e50;
}

@media (min-width: 600px) {
    .nav-btn {
        /* Auf dem Desktop: Alle nebeneinander */
        flex: 1; 
        font-size: 16px;
    }
}

.desktop-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--theme-color);
    width: 0%;
    transition: width 0.4s ease;
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-info {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.btn-restart {
    background-color: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.btn-restart:hover {
    background-color: #e74c3c;
    color: white;
}

h1 {
    font-size: 28px;
    margin-top: 0;
    color: #222;
    border-bottom: 3px solid var(--theme-color);
    padding-bottom: 10px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

.box {
    background-color: var(--theme-bg);
    border-left: 5px solid var(--theme-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

/* Likert Slider */
.slider-container {
    position: relative;
    margin-top: 45px;
    margin-bottom: 30px;
    --slider-color: hsl(0, 80%, 45%);
    width: 100%;
}

input[type="range"].likert-slider {
    width: 100%;
    accent-color: var(--slider-color);
    cursor: pointer;
    height: 8px;
    outline: none;
    margin: 0;
}

.slider-bubble {
    position: absolute;
    top: -35px;
    left: 0;
    transform: translateX(-50%);
    background-color: var(--slider-color);
    color: white;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 18px;
}

.slider-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--slider-color) transparent transparent transparent;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.radio-group label {
    flex: 1;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group span {
    display: block;
    text-align: center;
    padding: 15px 0;
    background: #ffffff;
    border-radius: 6px;
    font-weight: bold;
    font-size: 18px;
    transition: 0.2s;
    border: 2px solid transparent;
}

.radio-group input[type="radio"]:checked + span {
    background-color: var(--theme-color);
    color: white;
    border-color: #222;
    transform: scale(1.02);
}

textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 25px;
}

/* Tabellen */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    font-size: 15px;
}

th {
    background-color: var(--theme-color);
    color: white;
}

tr:nth-child(even) { background-color: #f9f9f9; }

.legend {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Dropdown General */
.info-dropdown {
    margin-bottom: 25px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.info-dropdown summary::-webkit-details-marker {
    display: none;
}

.info-dropdown summary {
    padding: 15px;
    background-color: var(--theme-bg);
    color: #333;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none; 
    position: relative;
    border-left: 5px solid var(--theme-color);
}

.info-dropdown summary::after {
    content: '\25BC'; 
    position: absolute;
    right: 15px;
    top: 15px;
    color: var(--theme-color);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.info-dropdown[open] summary::after {
    transform: rotate(180deg);
}

.dropdown-content {
    padding: 20px;
    text-align: justify; 
    line-height: 1.6;
    color: #444;
    border-top: 1px solid #ddd;
}

/* NEU: Kompaktes Dropdown für die Gewichtungsseite */
.compact-dropdown {
    margin-bottom: 20px;
    border: 1px solid #eee;
    background-color: #fafafa;
}

.compact-dropdown summary {
    padding: 10px 15px;
    background-color: #fdfdfd;
    font-size: 14px;
    font-weight: normal;
    border-left: 4px solid var(--dim-col); /* Nimmt die Farbe der jew. Dimension! */
}

.compact-dropdown summary::after {
    top: 10px;
    color: var(--dim-col);
}

.compact-dropdown .dropdown-content {
    padding: 15px;
    font-size: 14px;
    background-color: #fff;
    text-align: left; /* Überschreibt Blocksatz, da Listen linksbündig besser aussehen */
}

.question-list {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.question-list li {
    margin-bottom: 8px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-navigation button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 48%;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--theme-color);
    color: white;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.btn-primary:disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Styling für die Gewichtung */
.weighting-intro {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    line-height: 1.6;
}

.weighting-item {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 6px solid var(--dim-col);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.color-dim-1 { --dim-col: #3498db; }
.color-dim-2 { --dim-col: #e74c3c; }
.color-dim-3 { --dim-col: #f39c12; }
.color-dim-4 { --dim-col: #9b59b6; }
.color-dim-5 { --dim-col: #e67e22; }
.color-dim-6 { --dim-col: #1abc9c; }

.weighting-header {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.weighting-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

input[type="range"].weight-slider {
    flex-grow: 1;
    accent-color: var(--dim-col);
    cursor: pointer;
    height: 8px;
    outline: none;
}

.weighting-values {
    display: flex;
    gap: 10px;
}

.w-val {
    background: #f4f4f4;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    border: 1px solid #ddd;
}

.w-pct {
    background: var(--dim-col);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

@media (max-width: 600px) {
    .weighting-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .weighting-values {
        justify-content: flex-end;
        margin-top: 10px;
    }
}

/* ================================
   NEU: Styling für den Soll-Zustand
   ================================ */
input[type="range"].soll-slider {
    width: 100%;
    accent-color: var(--slider-color);
    cursor: pointer;
    height: 8px;
    outline: none;
    margin: 0;
}

.soll-question-block {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
}

.soll-question-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.soll-question-block p {
    margin-bottom: 5px;
    color: #444;
    line-height: 1.5;
}

/* ================================
   NEU: Styling für das Dashboard
   ================================ */
.dashboard-grid {
    display: grid;
    /* Reduziert auf 300px, damit auf kleineren Bildschirmen nichts gequetscht wird */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Erzwingt den Abstand zwischen den Kacheln */
    margin-top: 30px;
}

.dashboard-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Der Drag-Handle zum Verschieben */
.drag-handle {
    cursor: grab;
    color: #aaa;
    font-size: 20px;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px;
}

.drag-handle:active {
    cursor: grabbing;
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    padding-right: 30px;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    flex-grow: 1;
}

/* Spezifische Höhe für das Balkendiagramm, da es viele Kategorien hat */
.chart-container.bar-chart-container {
    height: 450px; 
}

/* Highlight Karte für das Gesamt-Ergebnis */
.score-card {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    justify-content: center;
}

.score-card .card-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Auf Handys/Tablets strikt untereinander */
        gap: 20px;
    }
}

/* ================================
   NEU: Styling für die gewichtete Score Card
   ================================ */
.score-percentage {
    font-size: 56px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.score-details {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 500;
}

.score-soll {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ================================
   NEU: Ungewichtete KPIs & Konfidenz
   ================================ */
.secondary-kpi-card {
    background: #fdfdfd;
    border-top: 4px solid #f39c12;
    justify-content: center;
}

.kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.kpi-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.kpi-label {
    font-size: 15px;
    color: #555;
    font-weight: bold;
}

.kpi-value {
    font-size: 18px;
    color: #222;
    font-weight: bold;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
}

.confidence-bar-container {
    height: 300px; /* Etwas flacher als das Haupt-Diagramm */
}

/* ================================
   NEU: Styling für Zielerreichung & Konfidenz-Karten
   ================================ */
.target-card {
    background: #f0fdf4;
    border-top: 4px solid #2ecc71;
    justify-content: center;
    text-align: center;
}

.target-card .score-percentage {
    color: #27ae60;
}

.conf-card {
    background: #fffcf5;
    border-top: 4px solid #f39c12;
    justify-content: center;
    text-align: center;
}

.conf-card .score-percentage {
    color: #d35400;
}

.kpi-subtitle {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}

/* ================================
   NEU: Styling für den PDF Export
   ================================ */
#report-title {
    display: none; /* Auf dem Dashboard unsichtbar, wird nur im PDF eingeblendet */
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    line-height: 1.4;
}

.dimension-descriptions {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.dimension-descriptions h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.dim-desc-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3498db;
}

.dim-desc-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.dim-desc-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}

/* Erzwingt einen Seitenumbruch im PDF vor den Beschreibungen */
.html2pdf__page-break {
    page-break-before: always;
}

/* ================================
   NEU: PDF Export Optimierungen & Notizen
   ================================ */
/* Verhindert, dass Dashboard-Karten und Graphen im PDF in der Mitte durchgeschnitten werden */
.dashboard-card, .dim-desc-item, .note-item {
    page-break-inside: avoid;
    break-inside: avoid;
}

#pdf-meta-info {
    display: none; /* Im normalen Dashboard versteckt */
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #555;
}

#pdf-meta-info a {
    color: #3498db;
    word-break: break-all;
}

.note-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fdfdfd;
    border-left: 4px solid #f39c12;
    border-radius: 4px;
    border: 1px solid #eee;
}

.note-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.note-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* ================================
   NEU: Design für den PDF Export Button
   ================================ */
.btn-export {
    background-color: #e74c3c;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.2);
}

.btn-export:hover {
    background-color: #c0392b;
}

.btn-export:active {
    transform: scale(0.98);
}

/* ================================
   NEU: Tab-System & Reifegradmodell
   ================================ */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stufen des Reifegradmodells */
.reifegrad-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.rg-level {
    display: flex;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6; /* Standardmäßig leicht ausgegraut */
    transition: 0.3s;
}

.rg-level.active-level {
    opacity: 1;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transform: scale(1.02);
}

.rg-number {
    background: #eee;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    transition: 0.3s;
}

.rg-level.active-level .rg-number {
    background: #3498db;
    color: white;
}

.rg-text {
    padding: 20px;
    flex-grow: 1;
}

.rg-text h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.rg-text p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Dimensionen-Details im Reifegrad */
.rg-dim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.rg-dim-card {
    background: white;
    border: 1px solid #eee;
    border-left: 5px solid #3498db;
    padding: 15px;
    border-radius: 6px;
}

.rg-dim-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

/* ================================
   NEU: To-Do Liste
   ================================ */
.todo-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #cce5f7;
}

.todo-rank {
    background: #3498db;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    border-radius: 4px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

/* ================================
   NEU: Reifegrad Schichten & Ampel-To-Dos
   ================================ */
.rg-schichten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.rg-schicht-card {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.rg-schicht-card h4 {
    margin: 0;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schicht-score {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

/* Ampel-Farben für die To-Do Ranks */
.todo-rank.rank-red { background-color: #e74c3c; }
.todo-rank.rank-yellow { background-color: #f39c12; }
.todo-rank.rank-green { background-color: #2ecc71; }


/* ================================
   NEU: Info-Icons & Popups (Modals)
   ================================ */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-family: serif;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-icon:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* Popup Hintergrund */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Popup Fenster */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #777;
    transition: 0.2s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-content h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-content p, .modal-content li {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================
   NEU: Mobile Chart-Fix & Layout Toggle
   ================================ */
/* Verhindert, dass Diagramme auf dem Handy über den Rand hinauswachsen */
.dashboard-card {
    min-width: 0; /* Zwingend notwendig für Chart.js in CSS Grids! */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ersetzt die harten Inline-Styles für volle Breite */
.full-width-card {
    grid-column: 1 / -1;
}

/* Die Kompakte Kachel-Ansicht (überschreibt die volle Breite) */
.dashboard-grid.compact-view .full-width-card {
    grid-column: auto;
}

/* Optimierung der Diagramm-Höhen für Smartphones */
@media (max-width: 768px) {
    .full-width-card {
        grid-column: 1; /* Auf Handys ohnehin immer einspaltig */
    }
    .chart-container {
        height: 300px !important; 
    }
    .bar-chart-container {
        height: 350px !important; /* Säulendiagramme brauchen etwas mehr Platz für Labels */
    }
}

/* ================================
   NEU: Kompakte To-Do Liste (Gestaltungsmodell)
   ================================ */
.todo-item-compact {
    padding: 10px 15px;
    margin-bottom: 0;
    background: white;
    border: 1px solid #eee;
}

.todo-item-compact .todo-rank {
    font-size: 14px;
    padding: 6px 8px;
    min-width: 24px;
    margin-right: 12px;
}

.todo-item-compact .todo-text strong {
    font-size: 14px;
}

.todo-item-compact .todo-text span {
    font-size: 13px;
}

@media (max-width: 600px) {
    .todo-item-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .todo-item-compact .todo-rank {
        margin-right: 0;
        display: inline-block;
    }
}
/* ================================
   NEU: Gestaltungsmodell & Handlungsempfehlungen
   ================================ */
.layout-toggle-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-toggle {
    background: white;
    border: 1px solid #ccc;
    color: #555;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    flex: 1;
    max-width: 300px;
}

.btn-toggle.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.recommendation-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-left: 5px solid #34495e;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.rec-title {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.rec-priority {
    font-size: 13px;
    background: #fdfdfd;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #777;
}

.action-point {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.action-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.bg-strategy { background-color: #9b59b6; }
.bg-orga { background-color: #f39c12; }
.bg-tech { background-color: #1abc9c; }

.action-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Anpassung für Mobile */
@media (max-width: 600px) {
    .action-point {
        flex-direction: column;
        gap: 5px;
    }
    .layout-toggle-container {
        flex-direction: column;
    }
    .btn-toggle {
        max-width: 100%;
    }
}

/* ================================
   NEU: Dimension Stepper (Navigation im Fragebogen)
   ================================ */
.dimension-stepper {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 8px; /* Platz für die Scrollbar auf Windows */
    scrollbar-width: thin; 
}

.dimension-stepper::-webkit-scrollbar {
    height: 6px;
}
.dimension-stepper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.stepper-btn {
    background-color: #ecf0f1;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important; /* Überschreibt globale Button-Breiten */
}

.stepper-btn:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

/* Der aktive Button erbt automatisch die Farbe der jeweiligen Dimension */
.stepper-btn.active {
    background-color: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ================================
   NEU: Gesamtexport (PDF) Styles - KUGELSICHER
   ================================ */
.nav-btn.download-btn {
    background-color: #e74c3c;
    border-color: #e74c3c;
    font-weight: bold;
}

.nav-btn.download-btn:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* --- LIVE DOM PRINT MODUS --- */
/* Wenn das PDF generiert wird, erzwingen wir, dass ALLE Tabs sichtbar sind! */
body.pdf-export-mode .tab-content {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

/* Wir verstecken alle Buttons, die auf einem PDF keinen Sinn machen */
body.pdf-export-mode header,
body.pdf-export-mode .header-top-bar,
body.pdf-export-mode .form-navigation,
body.pdf-export-mode .btn-export,
body.pdf-export-mode .btn-restart,
body.pdf-export-mode .layout-toggle-container,
body.pdf-export-mode .info-icon,
body.pdf-export-mode #startseite,
body.pdf-export-mode #bewertung-start,
body.pdf-export-mode #reifegrad-start,
body.pdf-export-mode #gestaltung-start {
    display: none !important;
}

/* CSS Grid wird für das PDF aufgelöst, da es sonst Bilder zerschneidet */
body.pdf-export-mode .dashboard-grid {
    display: block !important;
}
body.pdf-export-mode .dashboard-card {
    margin-bottom: 25px !important;
}

/* Neue Seiten für die großen Kapitel erzwingen */
body.pdf-export-mode #reifegrad,
body.pdf-export-mode #gestaltung {
    page-break-before: always;
    padding-top: 20px;
}

/* Verhindert das Durchschneiden von Boxen mitten im Text */
.dim-desc-item, .note-item, .rg-level, .rg-schicht-card, .rg-dim-card, .todo-item, .recommendation-card {
    page-break-inside: avoid;
    break-inside: avoid;
}