/* Paket 4 „Geld im Job“ (EF-01, EF-02, EF-07, EF-08). Alle Klassen mit Vorsilbe .efb- */
.efb-num { font-variant-numeric: tabular-nums; white-space: nowrap }
.efb-big { font-size: 28px; font-weight: 900; line-height: 1.1 }
.efb-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; background: var(--c) }
.efb-key.ag, .efb-key.free { background: repeating-linear-gradient(45deg, var(--c) 0 3px, transparent 3px 6px); border: 2px solid var(--c) }
.efb-key.free { background: repeating-linear-gradient(45deg, var(--track) 0 3px, transparent 3px 6px); border-color: var(--track) }
.efb-zw { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 900px) { .efb-zw { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start } .efb-side { position: sticky; top: 12px } }
.ix .efb-ex { border-left: 4px solid var(--c) }

/* Schriftstücke (B7): Papier aus K.papier, hier nur die Zeilen darin */
.efb-zl { display: grid; gap: 0; min-width: 0 }
.efb-zg { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 8px 2px; margin: 0 }
.efb-zf { padding-top: 8px; border-top: 1px solid var(--line) }
.efb-doc { font-size: 15px; padding-bottom: 32px }
/* Stundenzettel (Formular): Zeilen sitzen genau auf den Linien, je 32 px */
.efb-bill { background-image: none }
.efb-sz { background: repeating-linear-gradient(transparent 0 31px, var(--pp-line) 31px 32px) }
.efb-line { display: flex; justify-content: space-between; align-items: start; gap: 10px; line-height: 32px; min-height: 32px }
.efb-line > span:first-child { display: grid }
.efb-calc { font-size: 13px; color: var(--muted) }
.efb-line.tot { font-size: 16px; background: linear-gradient(var(--pp-ink) 0 0) 0 29px / 100% 3px no-repeat }
.efb-line.tot .efb-num { font-weight: 900 }
.efb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 6px; background: none; text-align: left; transition: background-color .2s }
.efb-row:hover { background: var(--panel) }
.efb-row.meta { font-size: 14px; color: var(--muted); min-height: 44px }
.efb-row.meta:first-of-type { margin-top: 2px }
.efb-row.s1 { font-weight: 800; border-top: 1px solid var(--line); border-radius: 0 }
.efb-row.s2 { font-weight: 900; font-size: 17px; border-top: 3px double var(--ink); border-radius: 0; margin-top: 2px }
.efb-row[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 4px 0 0 var(--c) }
@media (max-width: 899px) { .efb-zettel .efb-side { position: sticky; bottom: 0; z-index: 2; background: var(--bg); padding-top: 6px; box-shadow: 0 -8px 12px -8px rgba(0, 0, 0, .25) } }

/* Spiegel: Arbeitnehmer links, Betrieb rechts */
.efb-sp { display: grid; gap: 6px }
.efb-sp-h, .efb-sp-r { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); gap: 8px; align-items: center }
.efb-sp-h { font-size: 14px; font-weight: 800 }
.efb-sp-h span:nth-child(2) { text-align: center; color: var(--muted) }
.efb-sp-h .an { text-align: right } .efb-sp-h .ag { text-align: left }
.efb-sp-l { text-align: center; font-size: 14px }
.efb-sp-cell { display: flex; align-items: center; gap: 6px; min-width: 0 }
.efb-sp-cell.an { justify-content: flex-end }
.efb-sp-cell .efb-num { font-size: 14px }
.efb-track { flex: 1; display: flex; height: 22px; min-width: 0 }
.efb-sp-cell.an .efb-track { justify-content: flex-end }
.efb-bar { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--c); transition: width .45s ease }
.efb-bar.ag { background: repeating-linear-gradient(45deg, var(--c) 0 3px, transparent 3px 6px); border: 2px solid var(--c) }
.efb-sp-uv { font-size: 13px; color: var(--muted); border: 2px dashed var(--c); border-radius: 3px; padding: 0 6px; line-height: 18px }
.efb-sp-r.sum { border-top: 2px solid var(--ink); padding-top: 6px }
.efb-sp-r.sum .efb-num { font-size: 15px }
@media (max-width: 520px) { .efb-sp-h, .efb-sp-r { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); gap: 4px } .efb-sp-l { font-size: 12px } .efb-sp-h span:nth-child(2) { visibility: hidden } .efb-sp-cell { flex-direction: column; align-items: stretch; gap: 2px } .efb-sp-cell.an { align-items: stretch } .efb-sp-cell.an .efb-num { text-align: right } .efb-sp-cell .efb-num { font-size: 13px } .efb-track { flex: none; height: 14px } .efb-sp-h { font-size: 12px } }

/* Decke: Beitragsbemessungsgrenzen */
.efb-ctrl { display: grid; gap: 8px; background: var(--panel); border-radius: 10px; padding: 12px 14px; align-content: start }
.efb-bands { display: grid; gap: 14px; padding-bottom: 22px; position: relative }
.efb-band { display: grid; gap: 4px }
.efb-band-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 15px }
.efb-band-v { color: var(--muted); font-size: 14px }
.efb-band-t { position: relative; height: 26px; background: var(--panel); border-radius: 4px }
.efb-fill, .efb-free { position: absolute; top: 0; bottom: 0; left: 0; transition: width .25s ease, left .25s ease }
.efb-fill { background: var(--c); border-radius: 4px 0 0 4px }
.efb-free { background: repeating-linear-gradient(45deg, var(--track) 0 4px, transparent 4px 8px); border: 2px solid var(--track); border-left: 0 }
.efb-lim { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 3px solid var(--ink) }
.efb-lim span { position: absolute; bottom: 100%; transform: translateX(-50%); font-size: 12px; font-weight: 800; white-space: nowrap; margin-bottom: 3px }
.efb-band .efb-band-h { padding-bottom: 22px }
.efb-band:nth-child(2) { margin-bottom: 6px }
.efb-ticks { position: relative; height: 16px; margin: -4px 0 0 }
.efb-ticks span { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap }
.efb-ticks span:first-child { transform: none } .efb-ticks span:last-child { transform: translateX(-100%) }
.efb-bands > .efb-ticks { position: absolute; left: 0; right: 0; bottom: 0 }
.efb-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center }
.efb-kzs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px }
.efb-kz { background: var(--panel); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px }
.efb-kz.q { background: color-mix(in srgb, var(--c) 14%, var(--bg)) }
.efb-kz .efb-big { font-size: 22px }
@media (max-width: 700px) { .efb-kzs { grid-template-columns: repeat(2, minmax(0, 1fr)) } .efb-kz.q { grid-column: 1 / -1 } }

/* Kalenderblatt */
.efb-calw { display: grid; gap: 12px; align-content: start }
.efb-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px }
.efb-cal-h { text-align: center; font: 700 12px var(--mono); color: var(--muted) }
.efb-cal-d, .efb-cal-sa { min-height: 48px; border-radius: 6px; display: grid; place-content: center; text-align: center; line-height: 1.1; font-size: 15px }
.efb-cal-d { background: var(--panel) }
.efb-cal-d span, .efb-cal-sa span { font-size: 11px; color: var(--muted) }
.efb-cal-d.so { background: none; color: var(--muted) }
.efb-cal-sa { border: 2px dashed var(--c); background: var(--bg); padding: 0; transition: background-color .2s, color .2s }
.efb-cal-sa[aria-pressed="true"] { background: var(--c); color: #fff; border-style: solid }
.efb-cal-sa[aria-pressed="true"] span { color: #fff }
.efb-chip { justify-self: start }
.efb-chip.on { background: var(--ink); color: var(--bg) }

/* Geldwege */
.efb-wg { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 760px) { .efb-wg { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center } }
.efb-wg-src { background: var(--panel); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; border-left: 6px solid var(--c) }
.efb-wg-list { display: grid; gap: 8px; position: relative; padding-left: 18px; border-left: 3px solid var(--c) }
.efb-wg-row { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); position: relative }
.efb-wg-row::before { content: ''; position: absolute; left: -18px; top: 22px; width: 14px; border-top: 3px solid var(--c) }
@media (min-width: 620px) { .efb-wg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center } }
.efb-wg-n { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 10px; min-width: 0; min-height: 48px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); text-align: left; transition: background-color .2s, color .2s }
.efb-wg-n .efb-wg-t { display: grid; line-height: 1.2; min-width: 0 }
.efb-wg-n > .efb-num { margin-left: auto }
.efb-wg-n[aria-pressed="true"] { background: var(--ink); color: var(--bg) }
.efb-wg-n[aria-pressed="true"] .sub { color: var(--bg); opacity: .8 }
.efb-wg-sub { display: grid; gap: 2px; font-size: 13px }
.efb-wg-row.has .efb-wg-sub { border-left: 2px dotted var(--c); padding-left: 10px }
.efb-wg-s { display: flex; justify-content: space-between; gap: 8px }

/* Stellschrauben */
.efb-pcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
@media (max-width: 600px) { .efb-pcs { grid-template-columns: minmax(0, 1fr) } }
.efb-pc.pro { border-color: #0B7A3E } .efb-pc.con { border-color: #B3261E }
.efb-pcw { gap: 10px }
.efb-pc-in { display: grid; gap: 6px; align-content: start }
.ix .efb-pc-in.swap { animation: swapin .22s ease }
.efb-pc-in p { margin: 0 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .efb-pc.pro { border-color: #4CC38A } :root:not([data-theme="light"]) .efb-pc.con { border-color: #F28B82 } }
:root[data-theme="dark"] .efb-pc.pro { border-color: #4CC38A } :root[data-theme="dark"] .efb-pc.con { border-color: #F28B82 }

@media (prefers-reduced-motion: reduce) { .efb-bar, .efb-fill, .efb-free, .efb-row, .efb-cal-sa, .efb-wg-n { transition: none } }
.efb-wg-k { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }

/* EF-02: Trichter */
.efb-tr { display: grid; gap: 6px }
.efb-tr-r { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 96px; gap: 10px; align-items: center; min-height: 40px }
.efb-tr-l { display: grid; line-height: 1.25 } .efb-tr-l b { font-size: 15px } .efb-tr-l .sub { font-size: 13px }
.efb-tr-t { display: flex; justify-content: center; height: 22px }
.efb-tr-bar { display: block; height: 100%; border-radius: 3px; background: var(--track); transition: width .45s ease }
.efb-tr-bar.full { background: var(--c) } .efb-tr-bar.cut { background: repeating-linear-gradient(45deg, var(--track) 0 3px, transparent 3px 6px); border: 2px solid var(--track) }
.efb-tr-bar.tax { background: var(--ink) }
.efb-tr-r .efb-num { text-align: right; font-size: 15px }
.efb-tr-r.z { border-top: 2px solid var(--ink); padding-top: 6px } .efb-tr-r.z .efb-num, .efb-tr-r.m .efb-num { font-weight: 900 }
.efb-tr-r.tax:not(.m) { border-top: 1px dashed var(--track); padding-top: 6px }
@media (max-width: 600px) { .efb-tr-r { grid-template-columns: minmax(0, 1fr) 84px; } .efb-tr-t { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; height: 12px } }

/* EF-02: Tarifkurve */
.efb-chart { width: 100% } .efb-svg { width: 100%; height: auto; display: block; overflow: visible }
.efb-grid { stroke: var(--line); stroke-width: 1 } .efb-ax { fill: var(--muted); font: 12px var(--sans) }
.efb-lg { fill: none; stroke: var(--ink); stroke-width: 3 } .efb-ld { fill: none; stroke: var(--c); stroke-width: 3; stroke-dasharray: 8 5 }
.efb-mk { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3 }
.efb-dg { fill: var(--ink); stroke: var(--bg); stroke-width: 2 } .efb-dd { fill: var(--c); stroke: var(--bg); stroke-width: 2 }
.efb-key.line { height: 0; width: 22px; border-radius: 0; background: none; border-top: 3px solid var(--ink); vertical-align: 4px }
.efb-key.line.d { border-top: 3px dashed var(--c) }
.efb-kzs.four { grid-template-columns: repeat(4, minmax(0, 1fr)) }
@media (max-width: 700px) { .efb-kzs.four { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* EF-02: Steuerklassen */
.efb-kls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
@media (max-width: 760px) { .efb-kls { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.efb-kl { display: grid; gap: 2px; align-content: start; text-align: left; min-height: 64px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bg); transition: background-color .2s, color .2s }
.efb-kl span { font-size: 14px; color: var(--muted); line-height: 1.3 }
.efb-kl[aria-pressed="true"] { background: var(--ink); color: var(--bg) } .efb-kl[aria-pressed="true"] span { color: var(--bg); opacity: .85 }
.efb-kl-big { display: grid } .ix .efb-kl-big b { font-size: 30px; font-weight: 900; color: var(--c); line-height: 1.1 }

/* EF-02: Belege */
.efb-bls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
@media (max-width: 600px) { .efb-bls { grid-template-columns: minmax(0, 1fr) } }
.efb-bl { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; min-height: 56px; padding: 6px 10px 6px 40px; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg); position: relative }
.efb-bl > span:first-child { display: grid; line-height: 1.25 } .efb-bl .sub { font-size: 13px }
.efb-bl::before { content: ''; position: absolute; left: 10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--ink); border-radius: 4px; background: var(--bg) }
.efb-bl[aria-pressed="true"]::before { background: var(--c); border-color: var(--c); box-shadow: inset 0 0 0 3px var(--bg) }
.efb-bl.nein[aria-pressed="true"]::before { background: var(--muted); border-color: var(--muted) }
.efb-bl.nein[aria-pressed="true"] .efb-num { text-decoration: line-through; color: var(--muted) }
.efb-note { font-size: 15px } .efb-note p { margin: 0 }
.efb-bl-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
@media (max-width: 600px) { .efb-bl-sum { display: grid; gap: 2px } }
.efb-bl-bar { position: relative; height: 30px; background: var(--panel); border-radius: 4px; margin-top: 22px }
.efb-bl-seg { position: absolute; top: 0; bottom: 0; transition: left .3s ease, width .3s ease; border-right: 2px solid var(--bg) }
.efb-bl-seg.s0 { background: var(--c) } .efb-bl-seg.s1 { background: color-mix(in srgb, var(--c) 75%, var(--bg)) } .efb-bl-seg.s2 { background: color-mix(in srgb, var(--c) 55%, var(--bg)) } .efb-bl-seg.s3, .efb-bl-seg.s4 { background: color-mix(in srgb, var(--c) 38%, var(--bg)) }
.efb-bl-pb { position: absolute; top: -6px; bottom: -6px; border-left: 3px solid var(--ink) }
.efb-bl-pb span { position: absolute; bottom: 100%; transform: translateX(-50%); font-size: 12px; font-weight: 800; white-space: nowrap; margin-bottom: 2px }
.efb-calc-l { font-variant-numeric: tabular-nums; font-size: 15px; margin: 0 }
.efb-bl-seg.gew, .efb-key.gew { background: repeating-linear-gradient(45deg, var(--ink) 0 3px, color-mix(in srgb, var(--ink) 25%, var(--bg)) 3px 6px) }

/* EF-02: Modelle */
.efb-md { display: grid; gap: 12px }
.efb-md-r { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) minmax(0, 170px); gap: 10px; align-items: center }
.efb-md-h { display: grid; line-height: 1.25 } .efb-md-h .sub { font-size: 13px }
.efb-md-t { position: relative; height: 26px }
.efb-md-inc { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, var(--track) 0 3px, transparent 3px 6px); border: 2px solid var(--track); border-radius: 4px }
.efb-md-tax { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 4px; transition: width .45s ease }
.efb-md-tax.zuviel { background: #B3261E }
.efb-md-v { display: grid; line-height: 1.25; min-width: 0 } .efb-md-v .sub { font-size: 13px } .efb-md-q { font-variant-numeric: tabular-nums; min-height: 2.5em }
@media (max-width: 640px) { .efb-md-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } .efb-md-t { grid-column: 1 / -1; grid-row: 2 } }
@media (prefers-reduced-motion: reduce) { .efb-tr-bar, .efb-bl-seg, .efb-md-tax, .efb-kl { transition: none } }

/* EF-07 Zeitstrahl Meldefristen */
.efb-ax-w { padding: 0 2px }
.efb-fristen .efb-ax { position: relative; height: 80px; fill: none }
.efb-ax-line { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--panel); border-radius: 6px; overflow: hidden }
.efb-ax-m { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; z-index: 2 }
.efb-ax-m:first-child { border-left: 0 }
.efb-ax-band, .efb-ax-alg, .efb-ax-sp { position: absolute; display: block; transition: left .35s ease, width .35s ease }
.efb-ax-band { top: 0; bottom: 0; background: color-mix(in srgb, var(--c) 30%, transparent) }
.efb-ax-alg { top: 0; height: 12px; background: var(--c) }
.efb-ax-sp { top: 0; height: 12px; z-index: 1; background: repeating-linear-gradient(45deg, #B3261E 0 3px, color-mix(in srgb, #B3261E 30%, var(--bg)) 3px 6px) }
.efb-ax-pin { position: absolute; bottom: 34px; height: 30px; width: 2px; margin-left: -1px; background: var(--ink); transition: left .35s ease, height .25s ease }
.efb-ax-pin.li b { left: auto; right: 3px; transform: none }
.efb-ax-pin.re b { left: 3px; transform: none }
.efb-ax-pin b { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 800; display: grid; place-items: center }
.efb-ax-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.efb-ax-list li { display: grid; grid-template-columns: 24px 52px minmax(0, 1fr); gap: 8px; align-items: center }
.efb-ax-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; display: grid; place-items: center }
.efb-ax-list li:nth-child(2) span:last-child, .efb-ax-list li:nth-child(4) span:last-child { font-weight: 700 }
.efb-key.band { background: color-mix(in srgb, var(--c) 40%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent) }
.efb-key.sp { background: repeating-linear-gradient(45deg, #B3261E 0 3px, color-mix(in srgb, #B3261E 30%, var(--bg)) 3px 6px) }

/* EF-07 Arbeitslosengeld: Bedingungen und Treppe */
.efb-alg-c { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.efb-alg-s { display: grid; gap: 6px; align-content: start; background: var(--panel); border-radius: 10px; padding: 12px 14px }
@media (max-width: 700px) { .efb-alg-c { grid-template-columns: minmax(0, 1fr) } }
.efb-tps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: end; height: 150px; padding-top: 4px }
.efb-tp { position: relative; display: grid; grid-template-rows: 1fr auto auto; height: 100%; text-align: center; gap: 2px }
.efb-tp i { display: block; align-self: end; width: 100%; background: var(--track); border-radius: 4px 4px 0 0; transition: background-color .25s, opacity .25s }
.efb-tp b { font-size: 15px; white-space: nowrap } .efb-tp b small { font-size: 11px; font-weight: 600 }
@media (max-width: 560px) { .efb-tp b small { display: none } }
.efb-tp span { font-size: 11px; color: var(--muted); line-height: 1.2; min-height: 2.4em }
.efb-tp.on i { background: color-mix(in srgb, var(--c) 45%, var(--bg)) }
.efb-tp.cur i { background: var(--c) }
.efb-tp.aus b { color: var(--muted) }
.efb-tp.aus i { background: repeating-linear-gradient(45deg, var(--track) 0 3px, transparent 3px 6px) }
.efb-kzs.two { grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (max-width: 700px) { .efb-kzs.two .efb-kz.q { grid-column: auto } }

/* EF-07 Sperrzeit: zwölf Wochen */
.efb-wkw { display: grid; gap: 6px }
.efb-wks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px }
.efb-wk { height: 40px; border-radius: 4px; background: var(--panel); display: grid; place-items: center; font-size: 12px; transition: background-color .3s, color .3s }
.efb-wk.ok { background: var(--c); color: var(--bg) }
.efb-wk.sp { background: repeating-linear-gradient(45deg, #B3261E 0 3px, color-mix(in srgb, #B3261E 30%, var(--bg)) 3px 6px); color: var(--ink) }
.efb-wk.sp b { background: var(--bg); border-radius: 3px; padding: 0 3px }
.efb-sperre .efb-kl { min-height: 56px }

/* EF-07 Zwei Töpfe */
.efb-tf { display: grid; gap: 10px }
.efb-tf-r { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; gap: 10px; align-items: center }
.efb-tf-r > span { text-align: right; font-weight: 700 }
.efb-tf-t { position: relative; height: 30px; background: var(--panel); border-radius: 6px; overflow: hidden }
.efb-tf-t i { position: absolute; top: 0; bottom: 0; left: 0; display: block; transition: left .35s ease, width .35s ease }
.efb-tf-rb { background: var(--c) }
.efb-tf-f, .efb-key.al { background: color-mix(in srgb, var(--ink) 62%, var(--bg)) }
.efb-tf-mi { background: color-mix(in srgb, var(--c) 45%, var(--bg)) }
.efb-tf-g { background: repeating-linear-gradient(45deg, var(--c) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 2px var(--c) }
.efb-key.rb { background: var(--c) } .efb-key.mi { background: color-mix(in srgb, var(--c) 45%, var(--bg)) }
.efb-tf-gs { font-weight: 800; margin: 0; white-space: normal }
@media (max-width: 560px) { .efb-tf-r { grid-template-columns: minmax(0, 1fr) auto } .efb-tf-r > b { grid-column: 1 } .efb-tf-r > span { grid-column: 2; grid-row: 1 } .efb-tf-t { grid-column: 1 / -1 } }

/* EF-07 Regler Fördern und Fordern */
.efb-rg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
.efb-rg-l { min-height: 44px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); padding: 4px; border-radius: 6px }
.efb-rg-l:first-child { text-align: left } .efb-rg-l:last-child { text-align: right }
.efb-rg-l.on { color: var(--ink); font-weight: 800 }
@media (prefers-reduced-motion: reduce) { .efb-ax-band, .efb-ax-alg, .efb-ax-sp, .efb-ax-pin, .efb-tp i, .efb-wk, .efb-tf-t i { transition: none } }

/* EF-08 Kreislauf der Rentenkasse */
.efb-kg { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 70px minmax(0, 1fr);
  grid-template-areas: ". . bund . ." ". . a2 . ." "lea a1 kasse a3 rent" ". . a4 . ." ". . konto . ."; align-items: center }
.efb-kn { border: 2px dashed var(--track); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; text-align: center; background: var(--bg); color: var(--muted); transition: color .3s, border-color .3s, background-color .3s }
.efb-kn.on { color: var(--ink); border-style: solid; border-color: var(--ink) }
.efb-kn.cur { background: color-mix(in srgb, var(--c) 14%, var(--bg)); border-color: var(--c) }
.efb-kn.lea { grid-area: lea } .efb-kn.kasse { grid-area: kasse } .efb-kn.bund { grid-area: bund } .efb-kn.rent { grid-area: rent } .efb-kn.konto { grid-area: konto }
.efb-kn.konto { border-style: dashed }
.efb-ka { display: grid; justify-items: center; gap: 0; color: var(--muted); transition: color .3s }
.efb-ka i { opacity: .3; transition: opacity .3s }
.efb-ka.on { color: var(--ink) } .efb-ka.on i { opacity: 1 } .efb-ka.cur { color: var(--c) }
.efb-ka.a1 { grid-area: a1 } .efb-ka.a2 { grid-area: a2 } .efb-ka.a3 { grid-area: a3 } .efb-ka.a4 { grid-area: a4 }
.efb-ka-l { font-size: 13px; font-weight: 800 }
.efb-ka i { font-style: normal; font-size: 24px; line-height: 1; font-weight: 900 }
.efb-ka-v { display: none }
.efb-ka.a2 .efb-ka-l, .efb-ka.a4 .efb-ka-l { order: 2 }
@media (max-width: 700px) {
  .efb-kg { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); grid-template-areas: "lea . bund" "a1 . a2" "kasse kasse kasse" "a4 . a3" "konto . rent" }
  .efb-ka-h { display: none } .efb-ka-v { display: block }
}
.efb-next { justify-self: start }

/* EF-08 Rentenkonto */
.efb-pk-bs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
@media (max-width: 600px) { .efb-pk-bs { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.efb-pk-b { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 2px 8px; align-items: center; text-align: left; min-height: 56px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit }
.efb-pk-b span { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.3 }
.efb-pk-b:disabled { opacity: .4 }
.efb-pk-k { width: 14px; height: 14px; border-radius: 3px; display: block }
.efb-pk-w { display: grid; gap: 4px }
.efb-pk-ax { display: flex; justify-content: space-between }
.efb-pk-bar { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 1px; height: 34px }
.efb-pk-s { display: block; background: var(--panel); border-radius: 2px; transition: background-color .2s }
.efb-pk-s.ausb, .efb-pk-b.ausb .efb-pk-k { background: color-mix(in srgb, var(--c) 45%, var(--bg)) }
.efb-pk-s.voll, .efb-pk-b.voll .efb-pk-k { background: var(--c) }
.efb-pk-s.teil, .efb-pk-b.teil .efb-pk-k { background: repeating-linear-gradient(45deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 30%, var(--bg)) 3px 6px) }
.efb-pk-s.kind, .efb-pk-b.kind .efb-pk-k { background: #B35C00 }
.efb-pk-s.alo, .efb-pk-b.alo .efb-pk-k { background: color-mix(in srgb, var(--ink) 55%, var(--bg)) }
.efb-pk-s.luecke, .efb-pk-b.luecke .efb-pk-k { background: var(--bg); box-shadow: inset 0 0 0 1px var(--muted) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .efb-pk-s.kind, :root:not([data-theme="light"]) .efb-pk-b.kind .efb-pk-k { background: #F0A35E } }
:root[data-theme="dark"] .efb-pk-s.kind, :root[data-theme="dark"] .efb-pk-b.kind .efb-pk-k { background: #F0A35E }
.efb-pk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.efb-kzs.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 700px) { .efb-kzs.three { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* EF-08 Rentenbeginn */
.efb-al { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: 190px; align-items: end }
.efb-al-c { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; text-align: center }
.efb-al-v { font-size: 14px; font-weight: 700; color: var(--muted) }
.efb-al-t { position: relative }
.efb-al-t i { position: absolute; left: 0; right: 0; bottom: 0; display: block; background: color-mix(in srgb, var(--c) 35%, var(--bg)); border-radius: 6px 6px 0 0; transition: background-color .25s }
.efb-al-c.on .efb-al-t i { background: var(--c) } .efb-al-c.on .efb-al-v { color: var(--ink) }

/* EF-08 Stunden am Tag */
.efb-hrs { position: relative; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 2px; height: 36px; margin-bottom: 22px }
.efb-hr { display: block; background: var(--panel); border-radius: 3px; transition: background-color .2s }
.efb-hr.on { background: var(--c) }
.efb-hr-m { position: absolute; top: 100%; transform: translateX(-50%); font-size: 12px; color: var(--muted); padding-top: 3px; white-space: nowrap }
.efb-hr-m::before { content: ''; position: absolute; left: 50%; top: -40px; height: 40px; border-left: 2px dashed var(--ink) }
.efb-hr-m.m3 { left: 37.5% } .efb-hr-m.m6 { left: 75% }
.efb-hr-k { justify-self: start; min-width: 220px }
.efb-stunden .efb-chip:disabled { opacity: .4 }

/* EF-08 Rente nach 45 Jahren */
.efb-f45 { display: grid; gap: 10px }
.efb-f45-r { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 10px; align-items: center }
.efb-f45-n { display: grid; line-height: 1.25 }
.efb-f45-t { position: relative; height: 26px; background: var(--panel); border-radius: 4px }
.efb-f45-bar { position: absolute; top: 0; bottom: 0; display: block; background: var(--c); border-radius: 4px; transition: width .4s ease }
.efb-f45-mk { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 3px solid var(--ink); margin-left: -1px; display: block }
.efb-key.mk { width: 0; height: 16px; border-radius: 0; background: none; border-left: 3px solid var(--ink) }
.efb-f45-l { font-weight: 700; white-space: normal }
.efb-f45-ax { position: relative; height: 16px }
.efb-f45-ax span { position: absolute; transform: translateX(-50%); font-size: 12px }
@media (max-width: 700px) {
  .efb-f45-r { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px }
  .efb-f45-n { grid-column: 1 } .efb-f45-l { grid-column: 2; grid-row: 1; text-align: right; font-size: 14px }
  .efb-f45-t { grid-column: 1 / -1 } .efb-f45-r.ax > span { display: none } .efb-f45-ax { grid-column: 1 / -1 }
}
@media (prefers-reduced-motion: reduce) { .efb-kn, .efb-ka, .efb-pk-s, .efb-al-t i, .efb-hr, .efb-f45-bar { transition: none } }
button.efb-al-c { border: 0; background: none; font: inherit; color: inherit; padding: 4px 0 0; border-radius: 8px; cursor: pointer }
button.efb-al-c:hover .efb-al-t i { background: color-mix(in srgb, var(--c) 60%, var(--bg)) }
button.efb-al-c.on .efb-al-t i { background: var(--c) }
button.efb-al-c.on b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px }

/* K5 Umsetzung 03.11.2026: Sperrzeit-Anspruch, Fall im Prüfstand EF-07 */
.efb-wk-lab p { margin: 0 }
.efb-an { display: flex; height: 26px; background: var(--panel); border-radius: 4px; overflow: hidden }
.efb-an i { display: block; height: 100%; transition: width .35s ease }
.efb-an-r { background: var(--c) }
.efb-an-c, .efb-key.cut { background: repeating-linear-gradient(45deg, #B3261E 0 3px, color-mix(in srgb, #B3261E 30%, var(--bg)) 3px 6px) }
.efb-wkw + .efb-wkw { margin-top: 4px }
.efb-alg-s .seg + .sub { margin-top: 4px }
.efb-ff-fall { display: grid; gap: 4px; border-left: 4px solid var(--c); padding: 4px 0 4px 12px }
.efb-ff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
@media (max-width: 600px) { .efb-ff { grid-template-columns: minmax(0, 1fr) } }
.efb-tf-gs p { margin: 0; font-weight: 800 }

/* B2 Prüfstand-Gerüst: Stimmen von Betroffenen, Waage (EF-01), „Was hieße das für dich als Azubi?“ */
.efb-st { display: grid; gap: 8px }
.efb-st > .lab { margin: 0 }
.efb-st-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
@media (max-width: 600px) { .efb-st-g { grid-template-columns: minmax(0, 1fr) } }
.efb-st-c { margin: 0; display: grid; gap: 4px; align-content: start; background: var(--panel); border-radius: 10px; padding: 10px 14px; border-left: 4px solid var(--track) }
.efb-st-c blockquote { margin: 0; font-style: normal }
.efb-st-c figcaption { margin: 0 }
.efb-wa-c { font: inherit; color: inherit; text-align: left; border: 2px solid var(--line); border-left-width: 4px; border-left-color: var(--track); cursor: pointer; min-height: 44px }
.efb-wa-c.on { border-color: var(--ink); border-left-color: var(--ink) }
.efb-wa-q { display: block }
.efb-wa-tag { font-weight: 700 }
.efb-wa { position: relative; height: 112px; margin: 6px 0 0; display: grid; justify-items: center }
.efb-wa-beam { --neig: 0deg; position: relative; width: min(560px, 100%); height: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 4px solid var(--ink); transform: rotate(var(--neig)); transform-origin: 50% 100%; transition: transform .4s ease }
.efb-wa-p { display: grid; align-content: end; justify-items: center; gap: 2px; padding: 0 8px 6px; text-align: center; font-size: 15px; line-height: 1.25 }
.efb-wa-p span { color: var(--muted) }
.efb-wa-fuss { width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 34px solid var(--ink); margin-top: 2px }
.efb-az { display: grid; gap: 6px; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px }
.efb-az-in { display: grid; gap: 6px; align-content: start }
.efb-az-in p { margin: 0 }
.ix .efb-az-in.swap { animation: swapin .22s ease }
/* B3 EF-07 Andere Wege: Beispiele als Schnellwahl über den Reglern */
.efb-chips { display: flex; flex-wrap: wrap; gap: 8px }
