/* The Wohngeld calculator (includes/modules/wohngeld.php): one white sheet, the questions as numbered
   ledger entries, the answer beside them from 1000 px (under them on a phone), the Rechenweg as an
   account book. Colours and fonts are the theme's tokens (themes/wgr/assets/css/site.css). */

.wgr-wohngeld { background: var(--sheet, #fff); border: 1px solid var(--rule, #d8d3c6); border-radius: var(--radius, 4px); box-shadow: var(--shadow); margin: 0 calc(-1 * var(--bleed, 16px)); color: var(--ink); --pad: clamp(16px, 3vw, 32px); }
.wgr-wohngeld [hidden] { display: none !important; }
.wgr-wohngeld__kopf { padding: 24px var(--pad) 16px; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.wgr-wohngeld__titel { margin: 0; font-size: 26px; }
.wgr-wohngeld__kopf p { margin: 0; color: var(--ink-2); font-size: 16px; }
.wgr-wohngeld__koerper { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 29rem), 1fr)); }
.wgr-wohngeld__form { padding: 8px var(--pad) 24px; box-shadow: 1px 0 0 var(--rule); }
.wgr-wohngeld__zeile { border: 0; margin: 0; padding: 24px 0 16px 46px; border-bottom: 1px dashed var(--rule); position: relative; min-width: 0; }
.wgr-wohngeld__zeile > legend { font-weight: 700; font-size: 18px; line-height: 1.35; padding: 0; margin: 0 0 8px; float: left; width: 100%; }
.wgr-wohngeld__zeile > legend + * { clear: both; }
.wgr-wohngeld__nr { position: absolute; left: 0; top: 22px; font: 700 26px/1 var(--font-text); color: var(--blue); }
.wgr-wohngeld__feld { display: grid; gap: 6px; margin: 0 0 12px; }
.wgr-wohngeld__feld > label { font-size: 16px; font-weight: 700; }
.wgr-wohngeld__eingabe { position: relative; display: flex; max-width: 22rem; }
.wgr-wohngeld__eingabe--kurz { max-width: 9rem; }
.wgr-wohngeld__eingabe input, .wgr-wohngeld__auswahl select {
	font: 400 19px/1.2 var(--font-text); color: var(--ink); background: var(--sheet); width: 100%;
	border: 1.5px solid var(--line); border-radius: var(--radius, 4px); min-height: 50px; padding: 10px 12px; appearance: none; font-variant-numeric: tabular-nums;
}
.wgr-wohngeld__eingabe input:focus, .wgr-wohngeld__auswahl select:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.wgr-wohngeld__eingabe--geld input, .wgr-wohngeld__eingabe--kurz input { text-align: right; padding-right: 96px; font-family: var(--font-num); font-size: 20px; }
.wgr-wohngeld__eingabe--kurz input { padding-right: 64px; }
.wgr-wohngeld__einheit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ink-2); pointer-events: none; white-space: nowrap; }
.wgr-wohngeld__eingabe input::placeholder { color: var(--ink-2); opacity: 1; }
.wgr-wohngeld__auswahl { position: relative; max-width: 22rem; }
.wgr-wohngeld__auswahl::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.wgr-wohngeld__auswahl select { padding-right: 40px; }
.wgr-wohngeld__hilfe { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin: 0 0 8px; }
.wgr-wohngeld__ort { position: relative; }
.wgr-wohngeld__liste { list-style: none; margin: 0; padding: 4px 0; max-width: 22rem; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--radius, 4px); box-shadow: var(--shadow); }
.wgr-wohngeld__liste li { padding: 10px 12px; cursor: pointer; font-size: 16px; line-height: 1.3; }
.wgr-wohngeld__liste li span { color: var(--ink-2); font-size: 15px; }
.wgr-wohngeld__liste li em { font-style: normal; font-weight: 700; white-space: nowrap; }
.wgr-wohngeld__liste li:hover, .wgr-wohngeld__liste li[aria-selected="true"] { background: var(--blue-soft); }
.wgr-wohngeld__liste .wgr-wohngeld__nichts { cursor: default; color: var(--ink-2); }
.wgr-wohngeld__treffer { margin: 2px 0 4px; font-size: 17px; line-height: 1.4; }
.wgr-wohngeld__treffer:empty { display: none; }
.wgr-wohngeld__treffer small { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.wgr-wohngeld__stufe { font: 700 21px/1 var(--font-head); }
.wgr-wohngeld__pfeil { color: var(--blue); font-weight: 700; }
.wgr-wohngeld__credit { font-size: 15px; color: var(--ink-2); margin: 0; }

.wgr-wohngeld__person { border: 0; border-left: 3px solid var(--blue-soft); margin: 0 0 16px; padding: 4px 0 4px 16px; min-width: 0; }
.wgr-wohngeld__wer { font-weight: 700; padding: 0; margin: 0 0 8px; }
.wgr-wohngeld__wahl { display: grid; gap: 8px; margin: 0 0 12px; }
.wgr-wohngeld__wahl label { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; cursor: pointer; }
.wgr-wohngeld__wahl input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.wgr-wohngeld__wahl--reihe { grid-auto-flow: column; justify-content: start; gap: 24px; }
.wgr-wohngeld__frage { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.wgr-wohngeld__aus label { font-size: 16px; }
.wgr-wohngeld__weg, .wgr-wohngeld__dazu { font: 700 16px/1.2 var(--font-text); color: var(--blue); background: transparent; border: 1.5px solid var(--blue); border-radius: var(--radius, 4px); min-height: 44px; padding: 8px 14px; cursor: pointer; }
.wgr-wohngeld__weg { border-color: var(--line); color: var(--ink-2); }
.wgr-wohngeld__dazu { margin: 0 0 12px; }
.wgr-wohngeld__knoepfe { padding-top: 16px; }
.wgr-wohngeld__los { font: 700 18px/1 var(--font-text); color: var(--on-blue, #fff); background: var(--blue); border: 0; border-radius: var(--radius, 4px); min-height: 54px; padding: 0 32px; cursor: pointer; }

/* the answer */
.wgr-wohngeld__ergebnis { padding: 24px var(--pad) 32px; box-shadow: 0 -1px 0 var(--rule); }
.wgr-wohngeld__innen { position: sticky; top: 24px; }
.wgr-wohngeld__vor { font-size: 16px; color: var(--ink-2); margin: 0; }
.wgr-wohngeld__betrag { font: 800 clamp(56px, 6vw, 84px)/1 var(--font-head); margin: 8px 0 12px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .2em; }
.wgr-wohngeld__betrag--kein { font-size: clamp(40px, 4vw, 48px); }
.wgr-wohngeld__antwort--leer .wgr-wohngeld__betrag { color: var(--ink-2); }
.wgr-wohngeld__mark { background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%); padding: 0 .08em; margin-left: -.08em; }
.wgr-wohngeld__pro { font: 400 20px/1.2 var(--font-text); letter-spacing: 0; }
.wgr-wohngeld__grund { font-size: 17px; }
.wgr-wohngeld__grundbox { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius, 4px); padding: 16px; margin: 0 0 16px; }
.wgr-wohngeld__grundbox p { margin: 0; }
.wgr-wohngeld__grundtitel { font-weight: 700; margin-bottom: 6px !important; }
.wgr-wohngeld__beispiel { font-size: 16px; margin: 0 0 12px; }
.wgr-wohngeld__label { display: inline-block; font: 700 15px/1 var(--font-text); letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 5px 7px 4px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.wgr-wohngeld__label--entwurf { color: var(--cut); background: var(--cut-soft); border: 1px dashed var(--cut); }
.wgr-wohngeld__hinweise { margin: 0 0 12px; padding-left: 1.1em; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.wgr-wohngeld__hinweise li { margin-bottom: 4px; }
.wgr-wohngeld__amt { font-size: 16px; color: var(--ink-2); border-left: 3px solid var(--rule); padding-left: 12px; margin: 0 0 16px; }
.wgr-wohngeld__entwurf { background: var(--cut-soft); border-left: 3px solid var(--cut); padding: 12px 16px; margin: 0 0 16px; font-size: 16px; }
.wgr-wohngeld__entwurf p { margin: 0 0 6px; }
.wgr-wohngeld__entwurf b { color: var(--cut); font: 700 20px/1.2 var(--font-head); }
.wgr-wohngeld__klein { font-size: 15px; color: var(--ink-2); }
.wgr-wohngeld__rwtitel { font: 700 15px/1.3 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 4px; }
.wgr-wohngeld__buch { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.wgr-wohngeld__buch caption { text-align: left; font-weight: 700; padding: 14px 0 4px; font-size: 16px; }
.wgr-wohngeld__buch td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-variant-numeric: tabular-nums; }
.wgr-wohngeld__buch small { display: block; color: var(--ink-2); font-size: 15px; }
.wgr-wohngeld__head td { font-weight: 700; border-bottom: 0; padding-bottom: 0; }
.wgr-wohngeld__sub td { padding-left: 14px; }
.wgr-wohngeld__sum td { font-weight: 700; border-bottom: 3px double var(--ink); }
.wgr-wohngeld__quelle { font-size: 15px; line-height: 1.45; color: var(--ink-2); padding-left: 12px; border-left: 2px solid var(--rule); margin: 16px 0 0; }
.wgr-wohngeld__quelle a { color: var(--ink-2); }

.wgr-wohngeld__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
