/* ImmoESt-Rechner - Ergaenzungen zu wbf-rechner.css (Formular- und Ergebnisstile kommen von dort). */
#wbf-rechner.immoest fieldset { margin-bottom: 20px; }
#wbf-rechner .immoest-einstufung { margin: 0 0 14px; font-weight: 600; color: var(--ink, #1A1A1A); }
#wbf-rechner .immoest-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 4px 0 0; }
#wbf-rechner .immoest-knopf,
#wbf-rechner .immoest-knopf-zweit {
    font: inherit; font-weight: 700; font-size: 15px; min-height: 46px; padding: 10px 22px;
    border-radius: 999px; cursor: pointer;
}
#wbf-rechner .immoest-knopf { background: var(--accent, #F20D0D); color: #fff; border: 1px solid var(--accent, #F20D0D); flex: 1 1 auto; }
#wbf-rechner .immoest-knopf:hover { background: var(--accent-deep, #C80A0A); }
#wbf-rechner .immoest-knopf-zweit { background: #fff; color: var(--ink, #1A1A1A); border: 1px solid var(--ie-gray-300, #CCCCCC); }
#wbf-rechner .immoest-knopf:focus-visible,
#wbf-rechner .immoest-knopf-zweit:focus-visible { outline: 2px solid var(--accent, #F20D0D); outline-offset: 2px; }
#wbf-rechner .immoest-ergebnis { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule, #E5E5E5); scroll-margin-top: 90px; }
#wbf-rechner .immoest-ergebnis h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
#wbf-rechner .immoest-fassung { font-size: 13.5px; color: var(--ink-2, #666); margin: 0 0 16px; }
#wbf-rechner .immoest-weg { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; }
#wbf-rechner .immoest-ergebnis .checks { margin: 16px 0 0; }
#wbf-rechner .immoest-ergebnis .hint { margin-top: 8px; }
#wbf-rechner #immoest-haftung { margin-top: 16px; }
@media (min-width: 720px) {
    #wbf-rechner .immoest-knopf { flex: 0 0 auto; }
}
/* Beschriftung mit wechselndem Text wie die uebrigen Feldnamen */
#wbf-rechner label > .immoest-t,
#wbf-rechner .immoest-frage-text .immoest-t { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
/* Gefuehrte Fragen: Auswahl als Knoepfe statt Auswahlliste */
#wbf-rechner.immoest fieldset[hidden],
#wbf-rechner .immoest-frage[hidden],
#wbf-rechner .immoest-befund[hidden] { display: none !important; }
#wbf-rechner.immoest fieldset + fieldset { padding-top: 20px; border-top: 1px solid var(--rule, #E5E5E5); }
#wbf-rechner.immoest .row { margin-bottom: 16px; }
#wbf-rechner.immoest .row:not(:has(> label:not([hidden]))) { display: none; }
#wbf-rechner .immoest-frage { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; min-width: 0; }
#wbf-rechner .immoest-frage-text {
    font-size: 0.82rem; font-weight: 700; color: var(--ie-gray-600, #666666);
    text-transform: uppercase; letter-spacing: .04em;
}
/* Alle Schaltflächen einer Frage gleich breit und gleich hoch, unabhängig von der Textlänge. */
#wbf-rechner .immoest-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5em), 1fr)); gap: 8px; }
#wbf-rechner .immoest-wahl label {
    display: flex; position: relative; margin: 0; padding: 0; min-width: 0;
    font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--ink, #1A1A1A);
}
#wbf-rechner .immoest-wahl input {
    position: absolute; top: 0; left: 0; opacity: 0; box-sizing: border-box;
    width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; cursor: pointer;
}
#wbf-rechner .immoest-wahl label > span {
    display: flex; align-items: center; justify-content: center; flex: 1 1 auto; text-align: center;
    min-height: 46px; padding: 11px 20px; border-radius: 23px; line-height: 22px;
    border: 1px solid var(--ie-gray-300, #CCCCCC); background: #fff; font-weight: 600;
}
#wbf-rechner .immoest-wahl input:hover + span { border-color: var(--ink, #1A1A1A); }
#wbf-rechner .immoest-wahl input:checked + span { background: var(--ink, #1A1A1A); border-color: var(--ink, #1A1A1A); color: #fff; }
#wbf-rechner .immoest-wahl input:focus-visible + span { outline: 2px solid var(--accent, #F20D0D); outline-offset: 2px; }
#wbf-rechner .immoest-frage > .hint { margin: 0; }
#wbf-rechner .immoest-frage.fehlt .immoest-frage-text { color: var(--bad, #C80A0A); }
#wbf-rechner .immoest-frage.fehlt .immoest-wahl label > span { border-color: var(--bad, #C80A0A); }
/* Zwischenbescheid nach den Wohnfragen */
#wbf-rechner .immoest-befund {
    margin: 0 0 18px; padding: 12px 16px; border-radius: 8px; font-size: 14.5px; line-height: 1.5;
    background: var(--band, #F5F5F5); color: var(--ink, #1A1A1A);
}
/* Handy: Tabellen ohne Querwischen - Zellen duerfen umbrechen */
@media (max-width: 600px) {
    #wbf-rechner .immoest-ergebnis table { width: 100%; min-width: 0; }
    #wbf-rechner .immoest-ergebnis th,
    #wbf-rechner .immoest-ergebnis td { white-space: normal; padding-left: 6px; padding-right: 6px; font-size: 13px; }
}
@media (max-width: 600px) {
    #wbf-rechner .immoest-ergebnis th:not(:first-child),
    #wbf-rechner .immoest-ergebnis td:not(:first-child) { white-space: nowrap; }
    #wbf-rechner .immoest-ergebnis th { letter-spacing: 0; font-size: 11px; white-space: normal; }
    #wbf-rechner .immoest-ergebnis th:not(:first-child) { white-space: normal; }
}
@media (max-width: 600px) {
    #wbf-rechner .immoest-ergebnis td:first-child { overflow-wrap: anywhere; hyphens: auto; }
}
