/**
 * LORO Rohrlängen-Berechnung - Styles
 * Aktualisiert: 2026-01-09
 * VEREINHEITLICHT 2026-07-19: nutzt jetzt zentrale Komponenten
 * (.oa-form-row / .table / .alert-info / .oa-btn) aus templates/css/style.css.
 * Kompaktes Tabellen-Layout per Override erhalten. Original-Backup:
 * backups/tool_styles_2026-07-19/rohrlaengen/.
 * Nur Layout-spezifische Styles, TYPO3-Template liefert Basis
 */

/* Container */
.rohr-container {
    max-width: 900px;
}

/* Formular */
.rohr-form {
    margin-bottom: 25px;
}

/* display/align-items/flex-wrap/gap kommen jetzt von .oa-form-row, nur abweichender margin-bottom bleibt */
.rohr-form-row {
    margin-bottom: 15px;
}

.rohr-form-row:last-child {
    margin-bottom: 0;
}

.rohr-form-row input[type="text"],
.rohr-form-row select {
    padding: 6px 10px;
    width: 160px;
}

/* Radio-Buttons */
.rohr-radio-group {
    align-items: flex-start;
}

.rohr-radio-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rohr-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.rohr-radio input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.rohr-radio-rir {
    margin-top: 8px;
    padding-top: 8px;
}

/* Ergebnis */
.rohr-ergebnis {
    margin-top: 20px;
}

/* Ergebnis-Tabelle: width/border-collapse kommen jetzt von .table */

/* Kompaktes Tabellen-Layout erhalten trotz .table-Basis (kein Rahmen, engeres Padding) */
.rohr-tabelle td,
.rohr-tabelle th {
    border: none;
    padding: 8px 6px;
}

.rohr-zeile td {
    padding: 8px 6px;
    vertical-align: middle;
}

.rohr-anzahl {
    width: 60px;
    text-align: right;
}

.rohr-bild {
    width: 50px;
    text-align: center;
}

.rohr-bild img {
    max-height: 28px;
    vertical-align: middle;
}

/* Keine Eingabe */
.rohr-keine-eingabe {
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Hinweise: Hintergrund/Rahmen/Innenabstand kommen jetzt von .alert.alert-info, hier nur Abstand nach oben */
.rohr-hinweise {
    margin-top: 20px;
}

.rohr-hinweis-kuerzen {
    padding: 10px 15px;
    margin-bottom: 10px;
}

/* Ausschreibung */
.rohr-ausschreibung {
    margin-top: 20px;
    text-align: center;
}

/* Grafik */
.rohr-grafik {
    text-align: center;
    margin-top: 25px;
}

.rohr-grafik img {
    max-width: 100%;
    height: auto;
}

/* Rohr-in-Rohr Gruppen */
.rohr-gruppe {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.rohr-gruppe:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.rohr-gruppe-titel {
    margin-bottom: 10px;
    padding-left: 8px;
}

.rohr-zubehoer-gruppe {
    padding: 15px;
    margin-top: 15px;
}

/* Festpunkt-Empfehlung: Innenabstand kommt jetzt von .alert.alert-info, hier nur Abstand nach oben */
.rohr-festpunkt-empfehlung {
    margin-top: 15px;
}

.rohr-festpunkt-empfehlung p {
    margin: 0 0 10px 0;
}

/* Mobile */
@media (max-width: 600px) {
    .rohr-form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rohr-form-row > label {
        min-width: auto;
    }

    .rohr-form-row input[type="text"],
    .rohr-form-row select {
        width: 100%;
        max-width: 250px;
    }

    .rohr-zeile td {
        padding: 6px 4px;
    }

    .rohr-anzahl {
        width: 50px;
    }

    .rohr-bild {
        width: 40px;
    }

    .rohr-bild img {
        max-height: 24px;
    }
}

/* Overflow-Fix (2026-07-19): Symbol-Icons (SYMBOLROHRWAAGERECHT.gif etc.) hatten
   keine max-width -> defensiv gegen ueberbreite Ersatzgrafiken absichern. */
.rohr-bild img { max-width: 100%; }
