/* irot Zusteht – öffentliche Seite, helles Thema, Familie »private« (Tokens aus dem Kit). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; font-size: 17px; }
img { display: inline-block; vertical-align: middle; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent-light); outline-offset: 2px;
}

.kopf, .inhalt, .fuss { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.kopf { padding-top: 20px; padding-bottom: 8px; }
.marke { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.produktname { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.fuss { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; }
.fuss p { margin: 4px 0; }
.fuss-marke { margin-left: 2px; }

.auftakt h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 24px 0 8px; letter-spacing: -0.02em; }
.unterzeile { color: var(--text-muted); font-size: 18px; margin: 0 0 24px; }

.fragebogen fieldset { border: 0; margin: 0 0 16px; padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; }
.fragebogen legend { font-weight: 700; font-size: 20px; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.fragebogen legend + * { clear: both; }
.nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-fill); color: var(--on-accent); font-size: 15px; margin-right: 8px; }
.fragebogen h3 { font-size: 16px; margin: 20px 0 4px; }
.zwischen { border-top: 1px solid var(--border); padding-top: 16px; }
.feld { margin: 12px 0; }
.feld label, .feld .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.hilfe { color: var(--text-muted); font-size: 14px; margin: 0 0 6px; }
input[type=text], select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--text-muted); background: var(--bg); color: var(--text); min-height: 48px; }  /* WCAG 1.4.11: Rand ≥ 3:1 */
.paar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .paar { grid-template-columns: 1fr; gap: 0; } }
.haken, .wahl { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 0; font-size: 15px; cursor: pointer; }
.wahl { display: inline-flex; margin-right: 20px; }
.haken input, .wahl input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent-fill); flex: none; }
.mehr { margin: 12px 0; }
.mehr summary { cursor: pointer; color: var(--accent-text); font-weight: 700; font-size: 15px; padding: 6px 0; }
.kind { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: 12px; align-items: end; }
@media (max-width: 560px) { .kind { grid-template-columns: 1fr; gap: 0; border-top: 1px dashed var(--border); } }
.kind .feld { margin: 6px 0; }
.weiteres-kind, .aendern button { font: inherit; font-weight: 700; color: var(--accent-text); background: none;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; margin-top: 8px; cursor: pointer; }
.los { width: 100%; font: inherit; font-size: 19px; font-weight: 700; padding: 16px; border: 0; border-radius: 12px;
  background: var(--accent-fill); color: var(--on-accent); cursor: pointer; min-height: 56px; }
.kleingedruckt { color: var(--text-muted); font-size: 13px; text-align: center; }
.feld-fehler input, .feld-fehler select { border-color: #B3261E; border-width: 2px; }
.fehlertext { color: #B3261E; font-size: 14px; margin: 4px 0 0; }
.fehlerkasten { background: #FCEEEE; border: 1px solid #E8B4B4; color: #6A1B16; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }

.summe { margin: 24px 0; padding: 24px; border-radius: 16px; background: var(--accent-fill); color: var(--on-accent); }
.summe p, .summe h1 { margin: 0; font: inherit; }
.summe-vor, .summe-zahl { display: block; }
.summe-vor { font-size: 16px; opacity: 0.9; }
.summe-zahl { font-size: clamp(34px, 8vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 !important;
  font-variant-numeric: tabular-nums; }
.summe-zahl span { font-size: 20px; font-weight: 500; }
.summe-null { font-size: 24px; }
.summe-ort { font-size: 14px; opacity: 0.9; }

.leistung { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin: 12px 0; }
.leistung header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.leistung h2 { font-size: 20px; margin: 0; }
.betrag { font-size: 22px; font-weight: 700; margin: 0; color: var(--accent-text); white-space: nowrap; }
.betrag span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.sicherheit { font-size: 14px; font-weight: 700; margin: 8px 0 0; }
.sicherheit-hoch .sicherheit { color: #165733; }
.sicherheit-mittel .sicherheit { color: #7A5A12; }
.sicherheit-niedrig .sicherheit { color: #8B222C; }
.gruende { margin: 6px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-muted); }
.stelle { margin: 10px 0 0; font-size: 15px; }
.rechenweg { margin-top: 10px; font-size: 14px; }
.rechenweg summary { cursor: pointer; color: var(--accent-text); font-weight: 700; padding: 6px 0; }
.rechenweg table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.rechenweg td { padding: 6px 4px; border-top: 1px solid var(--border); vertical-align: top; }
.rechenweg .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rechenweg .norm { color: var(--text-muted); font-size: 12px; }
@media (max-width: 560px) { .rechenweg .norm { display: none; } }
.norm-zeile { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.hinweise { margin-top: 24px; }
.hinweise h2 { font-size: 18px; }
.hinweise li { margin: 6px 0; font-size: 15px; }
.text h1 { font-size: 30px; }
.text h2 { font-size: 19px; margin-top: 24px; }
.entwurf { background: #FFF4D6; border: 1px solid #E6C770; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 14px; }
[hidden] { display: none !important; }

/* Sprachwahl DE · EN */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sprachen { font-size: 15px; color: var(--text-muted); }
.sprachen [aria-current] { font-weight: 700; color: var(--text); }

/* Ausblick 2027 (Gesetzentwurf) */
.ausblick { margin: 12px 0; padding: 12px 14px; border-left: 4px solid var(--accent-fill);
  background: var(--surface); border-radius: 0 10px 10px 0; font-size: 15px; }
.krumen { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }
.tabelle { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.tabelle caption { text-align: left; font-weight: 700; padding-bottom: 6px; }
.tabelle th, .tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.tabelle td { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .tabelle { font-size: 14px; } .tabelle th, .tabelle td { padding: 8px 5px; } }
.orte { columns: 2 14rem; list-style: none; padding: 0; margin: 8px 0; }
.orte li { margin: 4px 0; break-inside: avoid; }
.aktion { margin: 24px 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ausblick h3 { font-size: 15px; margin: 0 0 4px; }
.ausblick p { margin: 4px 0; }

/* Unterlagen und Schritte zum Antrag */
.unterlagen { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 8px; }
.unterlagen summary { font-weight: 600; cursor: pointer; padding: 4px 0; }
.unterlagen-kopf { margin: .75rem 0 .25rem; font-weight: 600; }
.unterlagen ul, .unterlagen ol { margin: .25rem 0 .5rem 1.25rem; padding: 0; }
.nur-druck { display: none; }

/* Drucken / als PDF speichern: nur das Ergebnis, ohne Bedienelemente */
@media print {
  .kopf nav, .sprachen, .aendern, .drucken-hinweis, .fuss a { display: none; }
  .nur-druck { display: block; font-weight: 600; margin-bottom: 1rem; }
  .leistung, .unterlagen { break-inside: avoid; }
  .unterlagen { border-color: #999; }
  a { color: inherit; text-decoration: none; }
  body { background: #fff; }
}

/* Übersichtsseiten (Tabelle, Wohngeld 2027, Mietenstufe, Methodik) */
a.los { display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-align: center; text-decoration: none; }
.tabelle-scroll { overflow-x: auto; margin: 12px 0; }
.tabelle-scroll:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.tabelle-scroll .tabelle { margin: 0; min-width: 34rem; }
.referenz .tabelle th[scope=row] { white-space: nowrap; }
.referenz .tabelle td { text-align: right; }
.referenz thead th { text-align: left; }
.suche { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 12px 0; }
.suche label { flex-basis: 100%; font-weight: 700; font-size: 15px; }
.suche input { flex: 1 1 12rem; width: auto; }
.suche .los { flex: 0 0 auto; width: auto; font-size: 16px; padding: 12px 18px; }
.referenz h1 { font-size: clamp(24px, 6.4vw, 36px); line-height: 1.15; }
.tabelle-scroll th[scope=row] { position: sticky; left: 0; background: var(--bg); }
.tabelle-scroll caption { position: sticky; left: 0; }

/* Partner-Organisation (signierter Link): Kopfzeile, Beratungskasten, Einbindung */
.organisation-kopf { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 15px; }
.organisation-abgelaufen { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; }
.beratung { margin: 24px 0; padding: 16px 18px; border: 2px solid var(--accent-text);
  border-radius: 14px; break-inside: avoid; }
.beratung h2 { margin-top: 0; }
.beratung dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; }
.beratung dt { font-weight: 600; }
.beratung dd { margin: 0; overflow-wrap: anywhere; }
body.kompakt .inhalt { padding-top: 16px; }
body.kompakt .fuss { margin-top: 24px; padding-bottom: 16px; }
@media print { .beratung { border-color: #000; } .organisation-kopf { border-color: #999; } }

/* Für Organisationen */
.angebote { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin: 12px 0; }
.angebot { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; }
.angebot h3 { margin: 0 0 4px; }
.angebot .preis { font-size: 22px; font-weight: 700; margin: 8px 0 0; }
.angebot .preis span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.einbindung-beispiel { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: 14px; }
