/* ==========================================================================
   KAMERA-SIMULATOR DASHBOARD-STILE
   ========================================================================== */

/* Layout & Container */
.simulator-section {
    padding: 120px 0 80px 0;
    position: relative;
}

.simulator-header {
    margin-bottom: 40px;
    text-align: center;
}

.simulator-header .section-desc {
    max-width: 700px;
    margin: 15px auto 0 auto;
    color: var(--text-secondary);
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .simulator-grid {
        grid-template-columns: 1fr 420px;
    }
}

/* Linke Spalte: Live-Vorschau */
.preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 500;
    background-color: #0d0d0d;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: crosshair;
}

/* Live Vorschau SVG */
.preview-svg {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
}

/* SVG Element Transitions */
#bg-mountains, #bg-trees, #subject-dog, #bg-sky,
#bg-birds-sky, #bg-birds-peaks, #subject-birds,
#bg-train-sky, #bg-train-scenery, #subject-train,
#bg-night-city, #subject-night-car, #subject-night-light-trails {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    transform-origin: center center;
}

/* Blitz-Effekte */
#blitz-light-cone, #blitz-shadow-direct, #blitz-ambient-fill {
    transition: opacity 0.3s ease, fill 0.3s ease;
    pointer-events: none;
}

/* Belichtung Layer */
.exposure-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: background-color 0.2s ease;
    z-index: 5;
}

/* Kamera-Sucher HUD */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

/* Drittel-Regel Gitter */
.hud-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.hud-grid::before, .hud-grid::after {
    content: '';
    position: absolute;
    border: 1px dashed var(--text-primary);
}

/* Vertikale Gitterlinien */
.hud-grid::before {
    top: 0;
    bottom: 0;
    left: 33.33%;
    right: 33.33%;
    border-top: none;
    border-bottom: none;
}

/* Horizontale Gitterlinien */
.hud-grid::after {
    left: 0;
    right: 0;
    top: 33.33%;
    bottom: 33.33%;
    border-left: none;
    border-right: none;
}

/* Sucherecken */
.hud-corners {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(
        0% 15px, 0% 0%, 15px 0%,
        calc(100% - 15px) 0%, 100% 0%, 100% 15px,
        100% calc(100% - 15px), 100% 100%, calc(100% - 15px) 100%,
        15px 100%, 0% 100%, 0% calc(100% - 15px)
    );
}

/* Fokus-Messfeld in der Mitte (Sony-typische Doppel-Winkelklammern) */
.hud-focus-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid transparent;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: auto;
    cursor: grab;
}

.hud-focus-box:active {
    cursor: grabbing;
}

/* Sony-Klammerecken zeichnen */
.hud-focus-box::before, .hud-focus-box::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid #ffffff;
    transition: border-color 0.2s ease;
}

/* Obere linke und untere rechte Ecke */
.hud-focus-box::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

/* Obere rechte und untere linke Ecke via zusätzlichem Element */
.hud-focus-box::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Weitere zwei Ecken mit Pseudoelementen auf Kind-Ebenen simulieren (wir nutzen Box-Shadow für Vereinfachung) */
.hud-focus-box.focused::before, .hud-focus-box.focused::after {
    border-color: #2ec4b6;
}

/* Grüne Ecken im fokussierten Zustand */
.hud-focus-box.focused {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
}

/* HUD Datenleisten */
.hud-top-bar, .hud-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    width: 100%;
}

/* Sony Style Bottom Bar Layout */
.hud-bottom-bar.sony-style {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 -20px -20px -20px;
    padding: 10px 24px;
    width: calc(100% + 40px);
    box-sizing: border-box;
}

.hud-bottom-bar.sony-style .hud-indicator {
    background-color: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.sony-exposure-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.sony-numeric-row {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
}

.sony-numeric-row #hud-shutter {
    font-weight: 500;
}

.sony-numeric-row #hud-aperture {
    color: #ffffff;
}

.sony-numeric-row #hud-iso {
    color: #ffffff;
}

.sony-ev-wrapper {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.sony-ev-icon {
    margin-right: 4px;
}

.hud-exposure-meter.sony-meter-style {
    background-color: transparent;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sony-focus-dot-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background-color: transparent;
    border: none;
    padding: 0;
}

.sony-focus-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.2s ease;
}

.sony-focus-dot.locked {
    background-color: #2ec4b6;
    border-color: #2ec4b6;
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.95);
}

.hud-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Belichtungsmesser Skala */
.hud-exposure-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-scale {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 12px;
    position: relative;
    padding-bottom: 2px;
}

.meter-tick {
    width: 2px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
}

.meter-tick.major {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
}

.meter-tick.center {
    height: 12px;
    background-color: var(--primary-gold);
}

.meter-pointer {
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #2ec4b6;
    transform: translateX(-50%);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter-pointer.warn-over, .meter-pointer.warn-under {
    border-bottom-color: #e63946;
}

/* Shutter Flash Animation Overlay */
.shutter-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.shutter-flash.flash-active {
    animation: flash-animation 0.35s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes flash-animation {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Status-Leiste unter dem Sucher */
.preview-status-bar {
    padding: 15px 20px;
    background-color: rgba(10, 10, 10, 0.9);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: var(--border-glass);
    border-top: none;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-badge {
    padding: 3px 8px;
    font-family: var(--font-mono);
    background-color: rgba(206, 144, 84, 0.1);
    color: var(--primary-gold);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid rgba(206, 144, 84, 0.2);
}

/* Rechte Spalte: Control Panel */
.control-card {
    padding: 25px;
}

.control-card-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.control-card-title i {
    color: var(--primary-gold);
}

.control-group {
    margin-bottom: 22px;
}

.control-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.control-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-label i {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.control-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-gold);
    background-color: rgba(206, 144, 84, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(206, 144, 84, 0.15);
    min-width: 60px;
    text-align: center;
}

/* Custom Range Sliders */
.range-slider-wrapper {
    position: relative;
    width: 100%;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(206, 144, 84, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary-gold);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(206, 144, 84, 0.5);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary-gold);
}

/* Ticks / Beschriftung unter Sliders */
.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 2px;
}

.slider-tick-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Button-Gruppen (Blitz-Modus) */
.btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}

.btn-toggle {
    padding: 8px 12px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-sans);
}

.btn-toggle:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-toggle.active {
    background-color: rgba(206, 144, 84, 0.15);
    border-color: var(--primary-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(206, 144, 84, 0.15);
}

/* Shutter Trigger Button */
.shutter-btn-container {
    margin-top: 30px;
}

.shutter-btn {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-gold) 0%, #a46d37 100%);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(206, 144, 84, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.shutter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.shutter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 144, 84, 0.35);
}

.shutter-btn:hover::after {
    left: 125%;
}

.shutter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(206, 144, 84, 0.2);
}

/* Foto-Feedback Kartenbereich */
.feedback-overlay-container {
    margin-top: 30px;
    display: none; /* JS toggles this */
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.feedback-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background-color: rgba(206, 144, 84, 0.05);
    border: 1px solid rgba(206, 144, 84, 0.2);
}

.feedback-card.perfect {
    background-color: rgba(46, 196, 182, 0.05);
    border-color: rgba(46, 196, 182, 0.3);
}

.feedback-card.warning {
    background-color: rgba(230, 57, 70, 0.05);
    border-color: rgba(230, 57, 70, 0.3);
}

.feedback-status-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-status-title.perfect {
    color: #2ec4b6;
}

.feedback-status-title.warning {
    color: #e63946;
}

.feedback-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feedback-tip-list {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feedback-tip-list li {
    margin-bottom: 4px;
}

/* Unterer Bereich: Technische Erklärungen */
.simulator-explanation {
    margin-top: 60px;
}

.explanation-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.explanation-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.explanation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .explanation-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.explanation-card {
    padding: 25px;
    height: 100%;
}

.explanation-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.explanation-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.explanation-card ul {
    margin-top: 10px;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.explanation-card li {
    margin-bottom: 6px;
}

/* Motiv-Auswahl Tabs */
.scenario-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.scenario-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.scenario-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.scenario-tab.active {
    background: rgba(46, 196, 182, 0.12);
    border-color: #2ec4b6;
    color: #2ec4b6;
    box-shadow: 0 0 10px rgba(46, 196, 182, 0.15);
}

.scenario-tab i {
    font-size: 1.15rem;
}

/* Scenario Group visibility transitions */
.scenario-group {
    transition: opacity 0.3s ease;
}

/* Glossar-Stile ("Was ist das?") */
.glossary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 35px;
}

@media (min-width: 768px) {
    .glossary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .glossary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.glossary-card {
    padding: 28px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transform: scale(1);
}

.glossary-card:hover {
    border-color: var(--primary-gold) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.glossary-card.expanded {
    transform: scale(1.02);
    border-color: var(--primary-gold) !important;
    background: rgba(18, 18, 18, 0.9) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.glossary-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 500;
}

.glossary-card h3 i {
    font-size: 0.95rem;
    color: var(--primary-gold);
}

.glossary-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.glossary-card .glossary-meta {
    font-size: 0.8rem;
    color: var(--primary-gold);
    opacity: 0.85;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Glossar Expandable Content */
.glossary-card .expanded-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px dashed transparent;
}

.glossary-card.expanded .expanded-content {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Sensor Tabelle */
.sensor-table-container {
    overflow-x: auto;
    margin-bottom: 10px;
}

.sensor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sensor-table th, .sensor-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sensor-table th {
    color: #ffffff;
    font-weight: 500;
    font-family: var(--font-sans);
}

.sensor-table tr.highlight {
    background: rgba(46, 196, 182, 0.05);
    color: #2ec4b6;
}

.sensor-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* SVG Visualisierungen */
.svg-explanation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.glossary-svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.svg-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    margin-top: 2px;
}

/* Formel Anzeige */
.formula-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formula-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.formula-label {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: var(--primary-gold);
    text-transform: uppercase;
}

.formula-math {
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #ffffff;
    gap: 5px;
}

.formula-math .numerator {
    font-weight: 500;
}

.formula-math .denominator {
    font-weight: 500;
    color: var(--primary-gold);
}

.formula-math .equals {
    margin: 0 5px;
    color: var(--text-muted);
}

.formula-math .result {
    font-weight: 600;
    color: #2ec4b6;
}

.formula-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
}

.formula-ex {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.01);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--primary-gold);
}

.formula-ex strong {
    color: #ffffff;
}

.gold-text {
    color: var(--primary-gold);
}

/* Belichtungskompensation Tabelle */
.exposure-grid-container {
    overflow-x: auto;
}

.exposure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.exposure-table th {
    text-align: left;
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    line-height: 1.4;
}

.exposure-table td {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.exposure-table tr:last-child td {
    border-bottom: none;
}

/* Kelvin Farbskala */
.kelvin-scale-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
}

.kelvin-scale {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kelvin-stop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #000000;
    font-family: var(--font-sans);
}

.kelvin-stop .k-val {
    font-family: var(--font-mono);
    font-weight: 600;
}

.kelvin-stop .k-desc {
    font-size: 0.75rem;
    opacity: 0.95;
}

/* ==========================================================================
   INTERAKTIVE FOTO-LABORATORIEN (LABS)
   ========================================================================== */

.simulator-labs {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lab Tabs Navigation */
.lab-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    width: 100%;
}

.lab-tabs {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    justify-content: center;
}

.lab-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: calc(var(--radius-lg) - 4px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lab-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.lab-tab.active {
    color: #ffffff;
    background: rgba(46, 196, 182, 0.15);
    border-color: rgba(46, 196, 182, 0.3);
    box-shadow: 0 4px 15px rgba(46, 196, 182, 0.05);
}

/* Lab Content Panels */
.lab-content-area {
    position: relative;
    width: 100%;
}

.lab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lab-panel.active {
    display: block;
    opacity: 1;
}

/* Grid Layout for Labs */
.lab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 1024px) {
    .lab-grid {
        grid-template-columns: 380px 1fr;
    }
}

.lab-controls {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lab-controls h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-controls h3 i {
    color: var(--primary-gold);
}

.lab-visual {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    min-height: 380px;
}

.lab-visual h3 {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-visual h3 i {
    color: #2ec4b6;
}

.lab-help-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 5px 0 0 0;
}

/* DoF Simulator Styles */
.dof-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-row strong {
    color: #ffffff;
    font-family: var(--font-mono);
}

.result-row.highlight-gold {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.result-row.highlight-gold span {
    color: var(--primary-gold);
    font-weight: 500;
}

.result-row.highlight-gold strong {
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: 700;
}

.dof-svg-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
}

.dof-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Portrait Simulator Styles */
.portrait-explanation-card {
    background: rgba(206, 144, 84, 0.05);
    border-left: 3px solid var(--primary-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.portrait-explanation-card h4 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.portrait-explanation-card p {
    color: var(--text-secondary);
    margin: 0;
}

.portrait-svg-wrapper {
    width: 100%;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.portrait-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Composition Trainer Styles */
.comp-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.comp-subtab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.comp-subtab:hover {
    color: #ffffff;
}

.comp-subtab.active {
    color: var(--primary-gold);
}

.comp-subtab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
}

.comp-panel {
    display: none;
}

.comp-panel.active {
    display: block;
}

.comp-overlays-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comp-overlay-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    padding: 10px 14px;
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.comp-overlay-btn.active {
    background: rgba(46, 196, 182, 0.1);
    border-color: #2ec4b6;
    color: #ffffff;
}

.comp-overlay-btn i {
    width: 16px;
    text-align: center;
}

.comp-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.comp-info-card h4 {
    color: #ffffff;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.comp-info-card p {
    color: var(--text-secondary);
    margin: 0;
}

.comp-svg-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
}

.comp-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Crop Game Styles */
.game-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.challenge-goal strong {
    color: var(--primary-gold);
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-feedback-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

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

.game-feedback-card h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.game-feedback-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.game-score-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.game-score-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gold);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.game-score-txt {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--primary-gold);
    font-weight: 600;
    text-align: right;
}

/* RAW vs JPEG Styles */
.rescue-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rescue-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .rescue-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.rescue-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rescue-card h3 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0;
}

.rescue-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 350 / 220;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rescue-svg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.jpeg-degradation-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: color;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.rescue-status-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-sans);
    min-height: 18px;
}

/* ==========================================================================
   MOBILE SCREEN WARNING (max-width: 768px)
   ========================================================================== */
.mobile-warning-container {
    display: none;
    position: relative;
    z-index: 10;
    min-height: calc(100vh - var(--header-height) - 150px);
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.mobile-warning-card {
    background: rgba(18, 18, 18, 0.45);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    max-width: 500px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.mobile-warning-card .warning-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 24px;
    display: inline-block;
    animation: warningPulse 2s infinite ease-in-out;
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 8px rgba(206, 144, 84, 0.3)); }
}

.mobile-warning-card h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 400;
}

.mobile-warning-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 20px;
}

.mobile-warning-card p:last-of-type {
    margin-bottom: 30px;
}

.warning-btn {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(206, 144, 84, 0.08);
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-md);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(206, 144, 84, 0.03);
}

.warning-btn:hover {
    background: rgba(206, 144, 84, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(206, 144, 84, 0.25);
}

@media (max-width: 768px) {
    .simulator-grid {
        display: none !important;
    }
    
    .simulator-labs {
        display: none !important;
    }
    
    .mobile-warning-container {
        display: flex !important;
        min-height: auto;
        padding: 40px 0;
    }
}
