/* IP-Header-Trainer – Modul-spezifisches CSS */

/* Hover-Karten auf Schwierigkeits- und Szenario-Auswahlseiten */
.iph-hover-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.iph-hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Aufgaben-Karte */
#exerciseCard .card-header {
    background-color: #f8f9fa;
}

/* Eingabe-Felder */
#inputArea .form-check {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.1s;
    cursor: pointer;
}
#inputArea .form-check:hover {
    background-color: #fffbf0;
}

/* Fortschrittsbalken */
.progress {
    border-radius: 4px;
}

/* Lösungs-Code */
.alert code {
    background-color: rgba(0, 0, 0, 0.06);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.95em;
    font-family: 'Courier New', Courier, monospace;
}

/* Navbar-Titel-Farbe (dunkle Schrift auf gelber Navbar) */
.navbar.bg-warning .navbar-brand {
    color: #212529 !important;
}

/* ── Header-Analyse Visualisierung ────────────────────────────────────────── */
.iph-header-display {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    background: #fff;
}

.iph-header-title {
    background: #f8f9fa;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
}

.iph-row {
    display: flex;
    border-bottom: 1px solid #dee2e6;
}

.iph-row:last-child {
    border-bottom: none;
}

.iph-cell {
    border-right: 1px solid #dee2e6;
    padding: 6px 3px;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    transition: background-color 0.15s;
}

.iph-cell:last-child {
    border-right: none;
}

.iph-cell-label {
    font-size: 0.62rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.iph-cell-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hervorgehobene Felder (highlight_fields) */
.iph-hl {
    background-color: #fff3cd;
    box-shadow: inset 0 0 0 2px #ffc107;
}

.iph-hl .iph-cell-label {
    color: #856404;
}

.iph-hl .iph-cell-value {
    color: #533f03;
}
