/* =============================================================
   Umwegrechner
   ============================================================= */

.uw-page {
    max-width: 820px;
}

.uw-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    /* padding → p-4 sm:p-6 (Tailwind) */
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.uw-card h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c5282;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf0;
}

/* .uw-grid → grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-5 (Tailwind) */

/* .uw-field input/select → .bp-input / .bp-select (tailwind.input.css) */
.uw-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 4px;
}

.uw-field .uw-unit {
    font-size: 0.72rem;
    color: #888;
    margin-top: 2px;
}

.uw-hint {
    font-size: 0.72rem;
    color: #666;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f7f9fb;
    border-left: 3px solid #4a90d9;
    border-radius: 0 4px 4px 0;
}

/* .uw-submit → mt-4 sm:text-right (Tailwind), button → w-full sm:w-auto */

/* Ergebnis-Tabelle */
.uw-result h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #2c5282;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf0;
}

.uw-result-note {
    font-size: 0.78rem;
    color: #555;
    margin: 0 0 12px;
}

.uw-table thead th { white-space: normal; }

.body-table td.uw-profit { color: var(--color-bp-green-ui); font-weight: 700; }
.body-table td.uw-loss   { color: var(--color-bp-danger-dark); font-weight: 700; }

/* Farbe auch in Überschrift (Verlust/Gewinn-Label) */
.body-table thead .uw-loss,
.body-table thead .uw-profit {
    display: inline-block;
    background: #fff;
    border-radius: 3px;
    padding: 0 3px;
    line-height: 1.4;
}
.body-table thead .uw-loss   { color: var(--color-bp-danger-dark); }
.body-table thead .uw-profit { color: var(--color-bp-green-ui); }
