.wirgs{--blue:#125f79;--yellow:#ffd300;max-width:590px;background:white;border:1px solid #c9c9c9;padding:6px;color:#333;font:15px Arial,sans-serif;box-sizing:border-box}.wirgs *{box-sizing:border-box}.wirgs-heading,.wirgs-bar{background:var(--yellow);text-align:center;padding:10px 6px;font-weight:bold;color:#222}.wirgs-fields{padding:8px 4px}.wirgs-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,215px);align-items:center;gap:10px;padding:6px 0;position:relative}.wirgs-field>label{font-size:15px}.wirgs-controls{display:flex;align-items:center;gap:6px;justify-content:flex-end}.wirgs-controls input[type=number]{width:112px;min-width:0;height:34px;border:1px solid #ccc;border-radius:0;background:#fff;color:#333;text-align:right;padding:4px 8px;font-size:16px}.wirgs-choice{height:32px;min-width:46px;cursor:pointer;border:0;background:#e6e6e6;color:#555;font-size:15px}.wirgs-choice:first-child{border-radius:2px 0 0 2px}.wirgs-choice:nth-child(2){border-radius:0 2px 2px 0}.wirgs-choice[aria-pressed=true]{background:var(--blue);color:#fff}.wirgs-choice[data-value="0"][aria-pressed=true]{background:var(--yellow);color:#222}.wirgs-toggle{display:flex}.wirgs-help{width:25px;height:27px;min-width:25px;border:1px solid #ddd;border-radius:1px;color:#444;background:#fafafa;font-size:14px;cursor:pointer;padding:0}.wirgs-help[aria-expanded=true]{background:#d9effb;border-color:#007bb8}.wirgs-helptext{grid-column:1/-1;border:1px solid #ddd;border-left:4px solid #007bb8;padding:12px;font-size:14px;line-height:1.5;background:#f8fbfc}.wirgs-helptext p{margin:5px 0 0}.wirgs-actions{display:flex;justify-content:flex-end;gap:9px;padding:8px 4px}.wirgs-actions button{background:var(--blue);color:white;border:0;padding:8px 13px;cursor:pointer;font-size:14px}.wirgs-actions .wirgs-reset{background:#ececec;color:#333}.wirgs-output{border:1px solid #bbb;margin-top:8px;padding:4px}.wirgs-bar{text-align:left;margin-bottom:4px}.wirgs-resultrow{display:grid;grid-template-columns:minmax(0,1fr) 110px 25px;align-items:center;gap:8px;border-bottom:1px solid #e0e0e0;min-height:37px;padding:5px 8px}.wirgs-resultrow strong{text-align:right;font-weight:normal}.wirgs-resultrow.emphasis{font-weight:700;background:#f6f6f6}.wirgs-resultrow.total{font-weight:bold;margin-top:12px;background:#f7f7f7;border:1px solid #ccc}.wirgs-resultrow.total strong{font-weight:bold}.wirgs-resultrows>.wirgs-helptext{margin:4px 7px}.wirgs-warning,.wirgs-disclaimer{font-size:13px;line-height:1.5;padding:10px;background:#fff8e0;margin:10px 4px}.wirgs-disclaimer{background:#f4f5f5}.wirgs [hidden]{display:none!important}@media(max-width:480px){.wirgs{font-size:14px}.wirgs-field{grid-template-columns:minmax(0,1fr) minmax(135px,155px);gap:4px}.wirgs-field>label{font-size:13px}.wirgs-choice{min-width:34px;font-size:13px}.wirgs-controls{gap:3px}.wirgs-controls input[type=number]{width:95px;font-size:14px}.wirgs-help{width:23px;min-width:23px}.wirgs-resultrow{grid-template-columns:minmax(0,1fr) 85px 23px;font-size:13px;gap:4px;padding:5px 3px}}@media(max-width:350px){.wirgs-field{grid-template-columns:1fr}.wirgs-controls{justify-content:flex-start}} 

/* Version 1.2: ruhige, deutlich unterscheidbare Aktionsfarben */
.wirgs-choice[aria-pressed=true]{background:#127c64;color:#fff;font-weight:700}
.wirgs-choice[data-value="0"][aria-pressed=true]{background:#b84c26;color:#fff;font-weight:700}
.wirgs-choice[aria-pressed=false]{background:#e9eef0;color:#33434b}
.wirgs-actions .wirgs-calc{background:#127c64;color:#fff;font-weight:bold}
.wirgs-actions .wirgs-reset{background:#e5e9eb;color:#273942;border:1px solid #aab8bc;font-weight:bold}
.wirgs-help[aria-expanded=true]{background:#e3f5ef;border-color:#127c64;color:#125540}
.wirgs-choice:focus-visible,.wirgs-actions button:focus-visible,.wirgs-help:focus-visible{outline:3px solid #203b9b;outline-offset:2px}

/* 1.3: VdK-nahe, konsequente Farblogik: GELB = ausgewählt, BLAU = nicht ausgewählt. */
.wirgs .wirgs-choice[aria-pressed="true"],.wirgs .wirgs-choice[data-value="0"][aria-pressed="true"]{background:#ffcc00!important;color:#191919!important;font-weight:700!important}
.wirgs .wirgs-choice[aria-pressed="false"],.wirgs .wirgs-choice[data-value="0"][aria-pressed="false"]{background:#007eb9!important;color:#fff!important;font-weight:500!important}
.wirgs .wirgs-actions .wirgs-calc{background:#007eb9!important;color:white!important}
.wirgs .wirgs-actions .wirgs-reset{background:#eeeeee!important;color:#222!important;border:1px solid #bbb!important}
.wirgs .wirgs-breakdown{background:#f0f7fd;border-left:3px solid #007eb9;margin:10px 4px 2px;padding:9px;font-size:13px;line-height:1.5}
.wirgs .wirgs-help[aria-expanded="true"]{background:#e4f3fb;border-color:#007eb9;color:#005a85}


/* 1.3.1: hellere Gruen-/Rot-Farben fuer Buttons */
.wirgs .wirgs-choice[data-value="1"][aria-pressed="true"]{background:#63d471!important;color:#ffffff!important;font-weight:700!important}
.wirgs .wirgs-choice[data-value="0"][aria-pressed="true"]{background:#ff8a8a!important;color:#ffffff!important;font-weight:700!important}
.wirgs .wirgs-choice[aria-pressed="false"]{background:#edf1f3!important;color:#3d4b52!important;font-weight:600!important}
.wirgs .wirgs-actions .wirgs-calc{background:#56c96a!important;color:#ffffff!important;border:1px solid #3eaf52!important;font-weight:700!important}
.wirgs .wirgs-actions .wirgs-reset{background:#ff9b9b!important;color:#ffffff!important;border:1px solid #e47b7b!important;font-weight:700!important}
.wirgs .wirgs-help[aria-expanded="true"]{background:#ebf8ee;border-color:#56c96a;color:#2b8b40}


/* 1.3.2 – zentrierter Eingabebereich, Desktop-Ergebnis rechts */
.wirgs{--wirgs-green:#48bb68;--wirgs-red:#ee777a;width:100%;max-width:630px;margin:16px auto!important;padding:9px!important;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;justify-items:stretch}
.wirgs .wirgs-heading,.wirgs .wirgs-bar{background:var(--wirgs-green)!important;color:#fff!important;text-align:center!important;border-radius:2px;font-weight:700}
.wirgs .wirgs-entry{min-width:0;width:100%}
.wirgs .wirgs-fields{padding:8px 4px}
.wirgs .wirgs-choice[data-value="1"][aria-pressed="true"]{background:#61ce7b!important;color:#143a22!important}
.wirgs .wirgs-choice[data-value="0"][aria-pressed="true"]{background:#fa8e91!important;color:#491c20!important}
.wirgs .wirgs-choice[aria-pressed="false"],.wirgs .wirgs-choice[data-value="0"][aria-pressed="false"]{background:#eef1f3!important;color:#40464c!important}
.wirgs .wirgs-actions .wirgs-calc{background:#48bb68!important;color:#fff!important;border:1px solid #359b50!important}
.wirgs .wirgs-actions .wirgs-reset{background:#ee777a!important;color:#fff!important;border:1px solid #c85c62!important}
.wirgs .wirgs-output{min-width:0;width:100%;margin:0!important;align-self:start}
.wirgs .wirgs-heading{grid-column:1/-1}
.wirgs .wirgs-disclaimer,.wirgs .wirgs-helps{grid-column:1/-1}
.wirgs .wirgs-warning{text-align:left}
@media(min-width:900px){.wirgs.wirgs-calculated{max-width:1130px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:22px;align-items:start}.wirgs.wirgs-calculated .wirgs-entry{grid-column:1;grid-row:2}.wirgs.wirgs-calculated .wirgs-output{grid-column:2;grid-row:2}.wirgs.wirgs-calculated .wirgs-disclaimer{grid-row:3}}
@media(max-width:899px){.wirgs{max-width:630px}.wirgs .wirgs-output{margin-top:5px!important}}
