/* Quizkönig Web-App Styles */

:root {
    --energy-red: #e30613;
    --energy-dark: #1a1a1a;
    --bg-light: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;

    /* Content-Breite (NavBar + Container synchron) */
    --content-width: fit-content;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    /* Footer immer unten */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    /* Breite wird von NavBar bestimmt (via JS) */
    max-width: var(--content-width, 800px);
    width: 100%;
    margin: 0 auto;
    padding: 0; /* Kein padding - Cards sind gleich breit wie NavBar */
    flex: 1; /* Nimmt verfügbaren Platz ein (für Footer unten) */
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.header h1 {
    font-size: 2.5rem;
    color: var(--energy-red);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h2 {
    color: var(--energy-dark);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.card.hidden {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: var(--energy-red);
    color: white;
}

.btn-primary:hover {
    background: #c00510;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--energy-dark);
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

.btn-info {
    background: #007bff;
    color: white;
}

.btn-info:hover {
    background: #0056b3;
}

.btn-large {
    padding: 20px 32px;
    font-size: 1.2rem;
}

.btn-large small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* Accept Button (grün) - unmarkiert: weiss mit grünem Rahmen */
.btn-accept {
    padding: 6px 12px;
    border: 1px solid var(--success);
    border-radius: 6px;
    background: white;
    color: var(--success);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accept:hover {
    background: var(--success);
    color: white;
}

.btn-accept.accepted {
    background: var(--success);
    color: white;
}

/* Station Cards */
.station-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.station-card {
    background: #f5f5f5;
    border: 3px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.station-card:hover {
    border-color: #28a745;
    background: #f0fff0;
}

.station-card.selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
}

.station-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #28a745;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.station-card.selected .station-check {
    opacity: 1;
    transform: scale(1);
}

.station-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.station-code {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-recherche {
    width: 100%;
    margin-top: 8px;
}

.btn-recherche:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Warning Modal */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.warning-modal.hidden {
    display: none;
}

.warning-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.warning-content h3 {
    color: #f0ad4e;
    margin-bottom: 16px;
}

.warning-stations {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
}

.warning-station-badge {
    background: #f0ad4e;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.warning-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.warning-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .station-cards {
        grid-template-columns: 1fr;
    }
}

/* Kontakte Liste */
.kontakt-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kontakt-item:hover {
    border-color: var(--energy-red);
    background: #fff5f5;
}

.kontakt-item input {
    margin-right: 12px;
}

.kontakt-name {
    flex: 1;
    font-weight: 500;
}

.kontakt-stationen {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Vorschläge Liste */
.vorschlag-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vorschlag-item:hover {
    border-color: var(--energy-red);
}

.vorschlag-item.selected {
    border-color: var(--energy-red);
    background: #fff5f5;
}

.vorschlag-item input {
    margin-right: 12px;
    margin-top: 4px;
}

.vorschlag-content {
    flex: 1;
}

.vorschlag-thema {
    font-size: 0.85rem;
    color: var(--energy-red);
    font-weight: 600;
    margin-bottom: 4px;
}

.vorschlag-frage {
    font-weight: 500;
    margin-bottom: 4px;
}

.vorschlag-antwort {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Fragen Editor */
.frage-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.frage-editor h3 {
    color: var(--energy-red);
    font-size: 1rem;
    margin-bottom: 12px;
}

.frage-editor textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.frage-editor input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 8px;
}

/* Actions */
.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Log */
#log {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: var(--energy-dark);
    color: #fff;
    border-radius: 8px;
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-success { color: var(--success); }
.log-warning { color: var(--warning); }
.log-error { color: var(--error); }

/* Schätzfrage Auswahl */
.schaetzfrage-auswahl {
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.schaetzfrage-info {
    margin-bottom: 20px;
}

.schaetzfrage-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.schaetzfrage-select-row {
    margin-bottom: 24px;
}

.basis-frage-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.basis-frage-select:focus {
    border-color: var(--primary);
    outline: none;
}

.schaetzfrage-actions {
    display: flex;
    justify-content: center;
}

/* Vorschau Grid (Step 5) */
.vorschau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.vorschau-block {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.vorschau-block.pdf-ready {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fff4 0%, white 100%);
}

.vorschau-block.pdf-error {
    border-color: var(--error);
    background: linear-gradient(135deg, #fff5f5 0%, white 100%);
}

.vorschau-block h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.vorschau-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.vorschau-fragen {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.vorschau-frage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.vorschau-frage:last-child {
    border-bottom: none;
}

.vorschau-frage.lokal {
    background: #e8f4fd;
    margin: -6px -8px;
    padding: 8px;
    border-radius: 6px;
    border-bottom: none;
}

.vorschau-num {
    font-weight: 700;
    color: var(--energy-red);
    min-width: 24px;
}

.vorschau-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.vorschau-block .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.pdf-summary {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
    margin: 16px 0 0 0;
    padding: 12px;
    background: #f0fff4;
    border-radius: 8px;
}

.error-text {
    color: var(--error);
    font-size: 0.9rem;
}

/* Erfolg / Fertig Sektion */
.success-content {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.success-content h2 {
    color: var(--success);
    margin-bottom: 20px;
}

.success-details {
    background: #f0fff4;
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.success-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #d4edda;
}

.success-item:last-child {
    border-bottom: none;
}

.success-item .icon {
    font-size: 1.2rem;
}

.success-item .name {
    flex: 1;
    font-weight: 500;
}

.success-item .status {
    color: var(--success);
    font-weight: 600;
}

/* Loading Overlay */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

/* Loading Card */
.loading-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 360px;
    max-width: 420px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e5e5;
    border-top-color: var(--energy-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-text {
    margin-top: 16px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--energy-red), #ff6b6b);
    border-radius: 3px;
    animation: progress-animate 2s ease-in-out infinite;
}

@keyframes progress-animate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

/* Live Steps im Loading */
.loading-steps {
    width: 100%;
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    animation: fadeIn 0.3s ease;
}

.loading-step:last-child {
    border-bottom: none;
    color: #333;
    font-weight: 500;
}

.loading-step .step-icon {
    width: 18px;
    text-align: center;
}

.loading-step.done .step-icon { color: #22c55e; }
.loading-step.active .step-icon { color: var(--energy-red); }
.loading-step.error .step-icon { color: #ef4444; }

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

/* Responsive */
@media (max-width: 600px) {
    .options {
        grid-template-columns: 1fr;
    }

    .stations {
        flex-direction: column;
        gap: 10px;
    }

    .actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

/* Hint Text */
.hint {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ============================================================
   NAVIGATION - VERSION 2: FLOATING
   ============================================================ */

/* Wrapper für Sticky + Padding */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 20px 0 20px;
    transition: padding 0.3s ease;
    will-change: padding;
}

.nav-wrapper.scrolled {
    padding: 8px 20px 0 20px;
}

/* Floating NavBar */
.nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 14px 12px 14px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    width: fit-content;
    margin: 0 auto;
    /* NavBar bestimmt Content-Breite */
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.nav.scrolled {
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}


/* Logo - Bildet linkes Ende der NavBar */
.nav-brand {
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-logo {
    height: 120px;
    border-radius: 16px 0 16px 16px;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: -35px;
}

.nav.scrolled .nav-logo {
    height: 50px;
    border-radius: 12px 0 12px 12px;
    margin-bottom: 0;
}

/* Navigation Links - Legacy (nicht mehr verwendet) */
.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobile Dropdown Menu */
.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 15px;
    width: fit-content;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px;
    margin-top: 10px;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
}

.nav-mobile-menu.show {
    display: flex;
}

.nav-mobile-menu a {
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
    background: var(--energy-red);
    color: white;
}

/* Nav Sektionen mit Labels */
.nav-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 1;
}

.nav-section:first-child {
    margin-left: 0px;
    margin-right: 0px;
}

.nav-section:last-child {
    margin-left: 0px;
    margin-right: 0px;
}

.nav-section-links {
    display: flex;
    gap: 6px;
}

.nav-section-label {
    font-size: 0.65rem;
    color: var(--energy-red);
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 20px;
}

.nav.scrolled .nav-section-label {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}

/* Logo in der Mitte (V3) - Symmetrisch angepasst */
.nav-center-logo {
    height: 120px;
    margin: 0 0px -35px 0px;
    border-radius: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile Logo - auf Desktop versteckt */
.nav-logo-mobile {
    display: none;
}

.nav.scrolled .nav-center-logo {
    height: 50px;
    margin: 0 15px;
    border-radius: 12px;
}

/* Links */
.nav-links a {
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav.scrolled .nav-links a {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.nav-links a:hover {
    background: #f5f5f5;
}

.nav-links a.active {
    background: var(--energy-red);
    color: white;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: var(--energy-red);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.3rem;
    margin-left: auto;
}

.nav-toggle:hover {
    background: #c00510;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 10px 15px 0 15px;
        position: relative;
    }

    .nav-wrapper.scrolled {
        padding: 6px 15px 0 15px;
    }

    /* NavBar auf Mobile */
    .nav {
        padding: 8px 12px;
        border-radius: 12px;
        width: 100%;
        justify-content: space-between;
    }

    /* Hamburger sichtbar */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Desktop nav-links verstecken */
    .nav-links {
        display: none !important;
    }

    /* Mobile Logo sichtbar */
    .nav-logo-mobile {
        display: block;
        height: 55px;
        margin: 0 0 -15px 0;
        border-radius: 10px;
    }
}

/* ============================================================
   TABLES
   ============================================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: #fafafa;
}

.table code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--energy-red);
    color: white;
    margin-right: 4px;
}

/* ============================================================
   MODALS
   ============================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

/* Error Overlay */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-overlay.hidden {
    display: none;
}

.error-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-message {
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Universal Alert Overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.alert-overlay.hidden {
    display: none;
}

.alert-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    min-width: 300px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.alert-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.alert-message {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-line;
}

.alert-content.alert-warning .alert-icon { color: #f59e0b; }
.alert-content.alert-error .alert-icon { color: var(--primary); }
.alert-content.alert-success .alert-icon { color: var(--success); }
.alert-content.alert-info .alert-icon { color: #3b82f6; }

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: var(--energy-red);
}

.modal-content form {
    padding: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--energy-red);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.checkbox-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

/* ============================================================
   CARD HEADER
   ============================================================ */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h2 {
    margin: 0;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* ============================================================
   BUTTONS EXTRA
   ============================================================ */

.btn-small {
    padding: 6px 10px;
    font-size: 0.9rem;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* ============================================================
   CODE EDITOR
   ============================================================ */

.editor-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.editor-tabs {
    display: flex;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tab:hover {
    background: white;
}

.tab.active {
    background: white;
    color: var(--energy-red);
    font-weight: 500;
}

.tab-content {
    padding: 0;
}

.tab-content.hidden {
    display: none;
}

.code-editor {
    width: 100%;
    min-height: 400px;
    padding: 16px;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    background: #1e1e1e;
    color: #d4d4d4;
}

.code-editor:focus {
    outline: none;
}

.markdown-preview {
    padding: 20px;
    min-height: 400px;
    background: white;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.markdown-preview ul {
    margin-left: 20px;
}

/* ============================================================
   QUICK REFERENCE
   ============================================================ */

.quick-ref {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-ref-section {
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.quick-ref-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--energy-dark);
}

.quick-ref-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-ref-section li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================================
   DIALEKT TABS
   ============================================================ */

.dialekt-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dialekt-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dialekt-tab:hover {
    border-color: var(--energy-red);
}

.dialekt-tab.active {
    background: var(--energy-red);
    color: white;
    border-color: var(--energy-red);
}

/* ============================================================
   FEHLER GRID
   ============================================================ */

.fehler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.fehler-card {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff5f5;
    text-align: center;
}

.fehler-wrong {
    color: var(--error);
    font-weight: 500;
    text-decoration: line-through;
}

.fehler-arrow {
    color: var(--text-secondary);
    margin: 4px 0;
}

.fehler-correct {
    color: var(--success);
    font-weight: 600;
}

.fehler-dialekt {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================================
   SEARCH
   ============================================================ */

.card-header input[type="text"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    width: 200px;
}

.card-header input[type="text"]:focus {
    outline: none;
    border-color: var(--energy-red);
}

/* ============================================================
   RESPONSIVE FORMS
   ============================================================ */

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .card-header input[type="text"] {
        width: 100%;
    }
}

/* ============================================================
   QUIZ FRAGEN EDITOR (erweitert)
   ============================================================ */

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #999 !important;
}

.btn-disabled:hover {
    background: #999 !important;
}

.frage-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.frage-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.frage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.frage-header label {
    margin: 0;
}

.frage-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--energy-dark);
}

.frage-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-nav {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--energy-red);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-refresh {
    width: 32px;
    height: 28px;
    border: 1px solid var(--energy-red);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.btn-refresh:hover:not(:disabled) {
    background: var(--energy-red);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: wait;
}

.frage-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 30px;
    text-align: center;
}

.antwort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.antwort-row label {
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
}

.antwort-row input {
    flex: 1;
    margin: 0 !important;
}

.einheit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.kontext {
    margin-top: 8px;
    width: 100%;
    padding: 10px 12px;
    background: #f0f7ff;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #0066cc;
    border: 1px solid #cce0ff;
    border-left: 3px solid #0066cc;
    font-family: inherit;
    resize: none;
    overflow: hidden;
    min-height: 40px;
    field-sizing: content; /* Modern browsers */
}

.kontext:focus {
    outline: none;
    border-color: #0066cc;
    background: #fff;
}

.kontext-label {
    font-size: 0.8rem;
    color: #0066cc;
    margin-top: 8px;
    margin-bottom: 4px;
}

.schaetzfrage {
    background: #fff9e6;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.schaetzfrage label {
    color: #996600;
}

/* Loading State für Fragen */
.frage-group.loading-frage {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.frage-group.loading-frage::after {
    content: '⏳ Generiere neue Frage...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--energy-red);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Nationale vs Lokale Fragen Styling */
.nationale-fragen {
    border-left: 4px solid var(--energy-red);
}

.nationale-fragen h3 {
    color: var(--energy-red);
}

.lokale-frage {
    border-left: 4px solid #0066cc;
    background: #f8fbff;
}

.lokale-frage h3 {
    color: #0066cc;
}

/* Lokale Frage Header mit Toggle */
.lokal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lokal-header h3 {
    margin: 0;
}

.btn-toggle-lokal {
    padding: 6px 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-lokal.active {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-toggle-lokal:hover {
    opacity: 0.9;
}

/* Lokale Frage disabled */
.lokale-frage.disabled {
    opacity: 0.5;
    border-left-color: #ccc;
    background: #f5f5f5;
}

.lokale-frage.disabled h3 {
    color: #999;
}

.lokal-disabled-hint {
    padding: 12px;
    background: #e9ecef;
    border-radius: 6px;
    color: #666;
    font-style: italic;
    text-align: center;
}

.lokal-disabled-hint.hidden {
    display: none;
}

/* Replace Select */
.replace-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.replace-select {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Feedback & Ablehnung Buttons */
.frage-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.btn-feedback {
    padding: 6px 12px;
    border: 1px solid #0066cc;
    border-radius: 6px;
    background: white;
    color: #0066cc;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback:hover {
    background: #0066cc;
    color: white;
}

.btn-feedback.used {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-feedback.used:hover {
    background: #0052a3;
    border-color: #0052a3;
}

.btn-reject {
    padding: 6px 12px;
    border: 1px solid var(--error);
    border-radius: 6px;
    background: white;
    color: var(--error);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reject:hover {
    background: var(--error);
    color: white;
}

.btn-reject.active {
    background: var(--error);
    color: white;
}

.reject-options {
    display: none;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.reject-options.show {
    display: flex;
}

.reject-option {
    padding: 6px 12px;
    border: 2px solid var(--error);
    border-radius: 6px;
    background: white;
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reject-option:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.reject-option.selected {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* Lern-Button (Ist Lokale/Nationale Frage) */
.btn-learn {
    padding: 6px 12px;
    border: 1px solid #6c757d;
    border-radius: 6px;
    background: white;
    color: #6c757d;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-learn:hover {
    background: #6c757d;
    color: white;
}

.btn-learn.learned {
    background: #28a745;
    border-color: #28a745;
    color: white;
    cursor: default;
}

/* Lokale Frage Sender-Auswahl */
.lokal-options {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.lokal-options.hidden {
    display: none;
}

.lokal-hint {
    font-size: 0.8rem;
    color: #666;
    margin-right: 8px;
}

.lokal-sender-btn {
    padding: 5px 10px;
    border: 1px solid var(--energy-red);
    border-radius: 6px;
    background: white;
    color: var(--energy-red);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lokal-sender-btn:hover {
    background: var(--energy-red);
    color: white;
}

.lokal-sender-btn.other {
    border-color: #6c757d;
    color: #6c757d;
}

.lokal-sender-btn.other:hover {
    background: #6c757d;
    color: white;
}

/* Eigene Frage Button */
.btn-eigene {
    padding: 6px 12px;
    border: 1px solid #17a2b8;
    border-radius: 6px;
    background: white;
    color: #17a2b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-eigene:hover {
    background: #17a2b8;
    color: white;
}

.btn-eigene.used {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.btn-eigene.used:hover {
    background: #138496;
    border-color: #138496;
}

/* Replace Buttons (Ersetzt-Auswahl für lokale Fragen) */
.replace-buttons {
    display: flex;
    gap: 8px;
}

.replace-btn {
    padding: 6px 12px;
    border: 2px solid #4a90d9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #4a90d9;
}

.replace-btn:hover {
    background: #f0f7ff;
}

.replace-btn.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: white;
}

/* Basis-Frage Buttons für Schätzfrage */
.basis-frage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.basis-frage-btn {
    padding: 10px 16px;
    border: 2px solid #4a90d9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #4a90d9;
}

.basis-frage-btn:hover {
    background: #f0f7ff;
}

.basis-frage-btn.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: white;
}

/* Quellen-Anzeige */
.frage-quellen {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.frage-quellen .quelle,
.frage-quellen .faktencheck {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.frage-quellen .quelle.primaer a {
    color: #0066cc;
}

.frage-quellen .quelle.sekundaer a {
    color: #6600cc;
}

.frage-quellen .faktencheck a {
    color: #006633;
}

.frage-quellen a {
    color: #0066cc;
    text-decoration: none;
}

.frage-quellen a:hover {
    text-decoration: underline;
}

.frage-quellen .no-source {
    color: #999;
    font-style: italic;
}

/* Quellen ohne URL */
.frage-quellen .no-url {
    color: #666;
}

.frage-quellen .url-missing {
    color: #dc3545;
    font-size: 0.75rem;
    font-style: italic;
}

/* Quellen-Warnung */
.quellen-warning {
    width: 100%;
    background: linear-gradient(90deg, #fff3cd 0%, #ffe8a1 100%);
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* KI Quellen-Suche Button - passend zur Warnung */
.btn-quellen-suchen {
    background: white;
    color: #856404;
    border: 2px solid #c9a227;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-quellen-suchen:hover {
    background: #ffc107;
    color: #664d03;
    border-color: #b89a1e;
}

.btn-quellen-suchen:disabled {
    background: #e9ecef;
    color: #6c757d;
    border-color: #adb5bd;
    cursor: wait;
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.feedback-content h3 {
    margin-bottom: 16px;
    color: var(--energy-dark);
}

.feedback-frage-preview {
    background: #f0f4ff;
    border: 1px solid #d0d8ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.feedback-frage-preview .preview-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.feedback-frage-preview .preview-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feedback-frage-preview .preview-antwort {
    font-size: 0.9rem;
    color: #555;
}

.feedback-frage-preview .preview-antwort strong {
    color: var(--energy-red);
}

.feedback-frage-preview .preview-kontext {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-style: italic;
}

.feedback-content label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 12px;
}

.feedback-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

/* Dialekt-Auswahl Buttons im Feedback Modal */
.dialekt-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dialekt-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialekt-btn:hover {
    border-color: #007bff;
    background: #f0f7ff;
}

.dialekt-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.dialekt-btn[data-dialekt="ezh"].active {
    background: #e31937;
    border-color: #e31937;
}

.dialekt-btn[data-dialekt="ebe"].active {
    background: #ff6600;
    border-color: #ff6600;
}

.dialekt-btn[data-dialekt="ebs"].active {
    background: #009933;
    border-color: #009933;
}

.feedback-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

/* Abgelehnte Frage Styling */
.frage-group.rejected {
    opacity: 0.5;
    background: #ffebee;
    border-left: 3px solid var(--error);
    padding-left: 12px;
}

.frage-group.rejected::before {
    content: '❌ Abgelehnt';
    display: block;
    color: var(--error);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Angenommene Frage Styling */
.frage-group.accepted {
    background: rgba(76, 175, 80, 0.08);
    border-left: 4px solid var(--success);
    padding-left: 12px;
    border-radius: 8px;
}

.frage-group.accepted::before {
    content: '✅ Angenommen';
    display: block;
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* ============================================================
   STATUS DISPLAY (neu)
   ============================================================ */

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    cursor: pointer;
}

.status-header:hover {
    opacity: 0.8;
}

.status-toggle {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

#status-card.collapsed .status-toggle {
    transform: rotate(-90deg);
}

#status-card.collapsed .status-steps {
    display: none;
}

#status-card.collapsed .status-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.status-icon {
    font-size: 2rem;
    line-height: 1;
}

.status-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--energy-dark);
}

.status-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.status-step.active {
    background: #e8f4fd;
    border-left: 3px solid #0066cc;
}

.status-step.done {
    background: #e8f8e8;
    border-left: 3px solid var(--success);
}

.status-step.error {
    background: #fde8e8;
    border-left: 3px solid var(--error);
}

.step-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.step-text {
    flex: 1;
    font-size: 0.95rem;
}

.step-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Pulse Animation für aktiven Step */
.status-step.active .step-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#status-card {
    transition: all 0.3s ease;
}

/* ============================================================
   FOOTER V2 - Floating Design (wie NavBar)
   ============================================================ */

/* Footer Wrapper - am Ende der Seite */
.footer-wrapper {
    padding: 30px 20px 20px 20px;
    margin-top: auto;
}

/* Floating Footer - wie .nav */
.app-footer {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

.footer-row:first-child {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-row:last-child {
    padding: 8px 24px;
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f0f0 100%);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #333;
}

.footer-item .icon {
    font-size: 1rem;
}

.footer-item .label {
    color: #666;
    font-size: 0.75rem;
}

.footer-item .value {
    font-weight: 600;
    color: #333;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-badge.offline {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.status-badge.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #d4a106;
}

.status-badge.error {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Footer Copyright Row */
.footer-copyright {
    font-size: 0.7rem;
    color: #888;
}

.footer-version {
    background: var(--energy-red);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-divider {
    width: 1px;
    height: 14px;
    background: rgba(0,0,0,0.15);
}

/* Legacy support */
.token-footer {
    display: none;
}

/* ============================================================
   FOOTER - Mobile Responsive
   ============================================================ */
@media (max-width: 768px) {
    .footer-wrapper {
        padding: 20px 15px 15px 15px;
    }

    .app-footer {
        border-radius: 12px;
        width: 100%;
    }

    .footer-row {
        gap: 8px;
        padding: 10px 12px;
    }

    .footer-row:first-child {
        flex-direction: column;
        gap: 6px;
    }

    .footer-item {
        font-size: 0.8rem;
    }

    .footer-item .label {
        font-size: 0.7rem;
    }

    .footer-divider {
        display: none;
    }

    .footer-row:last-child {
        padding: 6px 12px;
    }

    .footer-copyright {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .footer-row:first-child {
        /* 2x2 Grid auf sehr kleinen Bildschirmen */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .footer-item {
        justify-content: center;
        font-size: 0.75rem;
    }
}

/* ============================================================
   STATUSBAR - Aktueller Schritt (sticky über Footer)
   Design wie NavBar - floating, zentriert
   ============================================================ */

.statusbar-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 500;
    padding: 0 20px 15px 20px;
    pointer-events: none;
}

.statusbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    padding: 12px 24px;
    width: fit-content;
    margin: 0 auto;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.statusbar-icon {
    font-size: 1.3rem;
}

.statusbar-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.statusbar-detail {
    color: #666;
    font-size: 0.85rem;
}

.statusbar-detail:empty {
    display: none;
}

/* StatusBar Zustände */
.statusbar.loading {
    background: linear-gradient(90deg, #fff 0%, #f0f9ff 50%, #fff 100%);
    background-size: 200% 100%;
    animation: statusbar-loading 1.5s ease infinite;
}

@keyframes statusbar-loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.statusbar.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
}

.statusbar.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
}

.statusbar.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

/* StatusBar Mobile */
@media (max-width: 768px) {
    .statusbar-wrapper {
        padding: 0 15px 10px 15px;
    }

    .statusbar {
        padding: 10px 16px;
        border-radius: 12px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }

    .statusbar-text {
        font-size: 0.85rem;
    }

    .statusbar-detail {
        font-size: 0.75rem;
    }
}

/* KI-Verbesserung Section */
.ki-improve-section {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
}

.ki-improve-section.hidden {
    display: none;
}

.ki-improve-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 12px;
    font-size: 1rem;
}

.ki-icon {
    font-size: 1.3rem;
}

.ki-improve-result {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ki-improve-result > div {
    margin-bottom: 8px;
}

.ki-improve-result > div:last-child {
    margin-bottom: 0;
}

.ki-frage span,
.ki-antwort span {
    color: var(--text-primary);
}

.ki-aenderungen {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.ki-improve-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    background: #218838;
}

/* Prominenter grüner Button für KI-Korrektur übernehmen */
.btn-apply-ki {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.2s ease;
    flex: 1;
}

.btn-apply-ki:hover {
    background: linear-gradient(135deg, #218838 0%, #1db388 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.btn-apply-ki:active {
    transform: translateY(0);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover {
    background: #138496;
}

/* Loading state for KI button */
.btn-ki-loading {
    position: relative;
    color: transparent !important;
}

.btn-ki-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Disabled/Greyed out buttons when Frage angenommen */
.btn-disabled-grey {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    background: #ccc !important;
    border-color: #ccc !important;
    color: #888 !important;
}

.frage-actions .btn-disabled-grey {
    background: #e0e0e0 !important;
    border-color: #d0d0d0 !important;
    color: #999 !important;
}

/* Reject Feedback Input */
.reject-feedback-input,
.reject-confirm {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
    align-items: center;
}

.reject-feedback-input.hidden,
.reject-confirm.hidden {
    display: none;
}

.reject-feedback-input input,
.reject-confirm input {
    flex: 1;
    max-width: 400px;
    padding: 8px 12px;
    border: 2px solid var(--error);
    border-radius: 6px;
    font-size: 0.9rem;
}

.reject-feedback-input input:focus,
.reject-confirm input:focus {
    outline: none;
    border-color: #b02a37;
}

.reject-feedback-input input.error,
.reject-confirm input.error {
    background: #ffebee;
    animation: shake 0.3s ease;
}

.btn-reject-submit {
    padding: 8px 16px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-reject-submit:hover {
    background: #b02a37;
}

.reject-feedback {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

.reject-feedback:hover {
    background: #ffc107 !important;
    color: #000 !important;
}

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

/* Info Box (z.B. keine Schätzfrage vorhanden) */
.info-box {
    background: #f8f9fa;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 16px 0;
}

.info-box .info-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.info-box p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.info-box p strong {
    color: var(--energy-dark);
}

.info-box .btn {
    margin-top: 16px;
}

/* ============================================================
   DIVIDER MIT "ODER" TEXT
   ============================================================ */
.divider-or {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin: 0 16px;
}

/* ============================================================
   OUTLINE BUTTON VARIANTS
   ============================================================ */
.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--energy-red);
    color: var(--energy-red);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--energy-red);
    color: white;
}

.btn-outline-info {
    background: transparent;
    border: 2px solid #4a90d9;
    color: #4a90d9;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-info:hover {
    background: #4a90d9;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.btn-quick-jump {
    background: transparent;
    border: 2px solid #4a7cc9;
    color: #4a7cc9;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-jump:hover {
    background: #4a7cc9;
    color: white;
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid var(--error);
    color: var(--error);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: var(--error);
    color: white;
}

/* ============================================================
   PDF PROGRESS BAR
   ============================================================ */
.pdf-progress-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.pdf-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pdf-progress-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.pdf-progress-count {
    font-weight: 600;
    color: var(--energy-red);
    font-size: 0.95rem;
}

.pdf-progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--energy-red), #ff6b6b);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pdf-progress-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    min-height: 1.2em;
}

.pdf-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.pdf-step {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--bg-light);
}

.pdf-step.done {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.pdf-step.error {
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
}

/* Replace-Buttons Fehler-Hervorhebung */
.replace-buttons.highlight-error {
    background: #fff3cd;
    border-radius: 8px;
    padding: 5px;
}

.replace-btn.pulse-error {
    animation: pulse-red 0.5s ease-in-out 3;
    border-color: #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(220, 53, 69, 0.8); }
}

/* ============================================================
   MODUS TOGGLE: iOS-Style Slider
   ============================================================ */

/* QuizModus Toggle - Global unter Header */
.modus-toggle-global {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.modus-toggle-global.hidden {
    display: none;
}

.modus-toggle-slider {
    position: relative;
    display: inline-flex;
    background: #e5e5e5;
    border-radius: 12px;
    padding: 4px;
    gap: 0;
}

/* Sliding Background */
.modus-slider-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--energy-red);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(227, 6, 19, 0.4);
}

/* Slider nach rechts wenn Pro aktiv */
.modus-toggle-slider.pro-active .modus-slider-bg {
    left: calc(50% + 0px);
    background: var(--success, #22c55e);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.modus-slider-btn {
    position: relative;
    z-index: 1;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #666;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.modus-slider-btn[data-modus="anfaenger"] {
    padding-left: 16px;
    padding-right: 32px;
}

.modus-slider-btn.active {
    color: white;
}

.modus-slider-btn:hover:not(.active) {
    color: #333;
}

/* Anfänger-Modus: Diese Elemente verstecken */
body.modus-anfaenger .btn-learn,           /* Ist Lokale/Nationale Frage */
body.modus-anfaenger .btn-feedback,        /* Feedback */
body.modus-anfaenger .btn-reject,          /* Frage Sperren */
body.modus-anfaenger .btn-quellen-suchen,  /* KI: Quellen suchen */
body.modus-anfaenger .lokal-options,       /* Sender-Auswahl */
body.modus-anfaenger .reject-options,      /* Sperr-Optionen */
body.modus-anfaenger .reject-confirm,      /* Sperr-Bestätigung */
body.modus-anfaenger .btn-nav,             /* History-Pfeile */
body.modus-anfaenger .frage-counter,       /* History-Counter (1/1) */
body.modus-anfaenger .quellen-warning {    /* Quellen-Warnung */
    display: none !important;
}

/* Anfänger-Modus: Refresh-Button im Stil von btn-reject */
body.modus-anfaenger .btn-refresh {
    width: auto;
    padding: 6px 12px;
    white-space: nowrap;
    border: 1px solid var(--error);
    border-radius: 6px;
    background: white;
    color: var(--error);
    font-size: 0.8rem;
}

body.modus-anfaenger .btn-refresh:hover:not(:disabled) {
    background: var(--error);
    color: white;
}

/* ============================================================
   SPECIAL EDITION FEATURE
   ============================================================ */

/* Special Button */
.btn-special {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-special:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Special Modal */
.special-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.special-modal.hidden {
    display: none;
}

.special-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.special-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 16px 16px 0 0;
}

.special-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.special-header .btn-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-header .btn-close:hover {
    background: rgba(255,255,255,0.3);
}

.special-form {
    padding: 25px;
}

.special-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 16px;
    color: #333;
}

.special-label:first-child {
    margin-top: 0;
}

.special-form textarea,
.special-form input[type="text"],
.special-form input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.special-form textarea:focus,
.special-form input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.special-form textarea {
    resize: vertical;
    min-height: 100px;
}

.special-sources {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 8px;
}

.source-option {
    margin-bottom: 12px;
}

.source-option:last-of-type {
    margin-bottom: 0;
}

.source-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.source-option input[type="file"] {
    font-size: 0.9rem;
}

.source-option input[type="url"] {
    width: calc(100% - 120px);
    display: inline-block;
}

.source-option .btn-small {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin-left: 8px;
    vertical-align: top;
}

.source-list {
    margin-top: 10px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.source-item .url {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
}

.source-item .btn-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.source-item .btn-remove:hover {
    color: var(--error);
}

.special-existing {
    padding: 15px 25px;
    background: #f5f3ff;
    border-bottom: 1px solid #e9e5ff;
}

.special-existing select {
    width: 100%;
    padding: 10px;
    border: 2px solid #d4c8ff;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 6px;
}

.special-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

/* Special Progress */
.special-progress {
    padding: 25px;
    text-align: center;
}

.special-progress .progress-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #8b5cf6;
}

.special-progress .progress-bar {
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.special-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    width: 0%;
    transition: width 0.3s ease;
}

.special-progress .progress-steps {
    text-align: left;
    font-size: 0.9rem;
}

.special-progress .step {
    padding: 6px 0;
    color: #666;
}

.special-progress .step.active {
    color: #8b5cf6;
    font-weight: 500;
}

.special-progress .step.done {
    color: #22c55e;
}

/* Special Summary */
.special-summary {
    padding: 25px;
    text-align: center;
}

.special-summary h4 {
    color: #22c55e;
    margin-bottom: 15px;
}

.summary-content {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.9rem;
    max-height: 250px;
    overflow-y: scroll;  /* Immer Scrollbar zeigen */
}

/* Sichtbare Scrollbar für Summary */
.summary-content::-webkit-scrollbar {
    width: 8px;
}

.summary-content::-webkit-scrollbar-track {
    background: #d1fae5;
    border-radius: 4px;
}

.summary-content::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 4px;
}

.summary-content::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

.summary-content ul {
    margin: 0;
    padding-left: 20px;
}

.summary-content li {
    margin-bottom: 6px;
}

/* ============================================================
   QUIZ STATUS CARD (Safety-Check für Bearbeitungsseite)
   ============================================================ */

.quiz-status-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.quiz-status-card.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f59e0b;
}

.quiz-status-message {
    max-width: 500px;
    margin: 0 auto;
}

.quiz-status-message .status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quiz-status-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.quiz-status-message p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.quiz-status-message .status-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.quiz-status-message .status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.quiz-status-message .status-item:last-child {
    border-bottom: none;
}

.quiz-status-message .status-item .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.quiz-status-message .status-item.done {
    color: var(--success);
}

.quiz-status-message .status-item.done .icon {
    color: var(--success);
}

.quiz-status-message .status-item.pending {
    color: var(--warning);
}

.quiz-status-message .status-item.pending .icon {
    color: #f59e0b;
}

.quiz-status-message .status-item.not-done {
    color: var(--text-secondary);
}

.quiz-status-message .btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
    display: inline-block;
}

.quiz-status-message .hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
    margin-bottom: 0;
}
