.artikelwirkung {
  --aw-ink: #202016;
  --aw-rule: #41413a;
  scroll-margin-top: 7rem;
  color: var(--paper);
  font-family: var(--body);
}
.artikelwirkung :where(h2, h3, h4, p, figure, fieldset, dl, dd, legend) { margin: 0; padding: 0; }
.artikelwirkung fieldset { border: 0; min-width: 0; }
.artikelwirkung [hidden] { display: none !important; }
.aw-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 1fr);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.3rem);
}
.aw-kopf h2 {
  max-width: 23ch;
  color: var(--paper);
  font: 700 2.2rem/1.05 var(--display);
  /* The legacy stylesheet sets the responsive h2 size with !important. */
  font-size: clamp(2.1rem, 3.7vw, 3.9rem) !important;
  letter-spacing: -.022em;
  text-shadow: none;
  text-wrap: balance;
}
.aw-kopf > p { max-width: 41ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.55; }
.aw-sr, .aw-auswahl input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.aw-auswahl { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.aw-auswahl label { position: relative; cursor: pointer; }
.aw-auswahl label span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .45rem 1rem;
  border: 1px solid #626258;
  border-radius: 2rem;
  color: var(--paper);
  font-weight: 650;
  line-height: 1.2;
}
.aw-auswahl label:hover span { border-color: var(--paper); }
.aw-auswahl input:checked + span { background: var(--paper); border-color: var(--paper); color: #181914; }
.aw-auswahl input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.aw-rollen > .aw-auswahl { margin-bottom: .9rem; }
.aw-rollen:has(input[value="einkauf"]:checked) .aw-fall:not([data-rolle="einkauf"]),
.aw-rollen:has(input[value="vertrieb"]:checked) .aw-fall:not([data-rolle="vertrieb"]),
.aw-rollen:has(input[value="buchhaltung"]:checked) .aw-fall:not([data-rolle="buchhaltung"]) { display: none; }
.aw-tafel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--aw-rule);
  border-radius: 1.15rem;
  background: #1b1c18;
}
.aw-tafel > div, .aw-auswertung > div { min-width: 0; padding: clamp(1.3rem, 3.1vw, 2.7rem); }
.aw-ergebnis { display: flex; flex-direction: column; align-items: start; background: var(--gold); color: var(--aw-ink); }
.aw-zeile { display: block; font: 700 .98rem/1.35 var(--body); }
.aw-zahl { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .55rem; margin-top: .9rem !important; }
.aw-zahl strong, .aw-zahl span { font-family: var(--display); font-weight: 900; }
.aw-zahl strong { font-size: clamp(5rem, 8.4vw, 8.5rem); line-height: .84; letter-spacing: -.055em; }
.aw-zahl span { font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1; }
.aw-erklaerung { margin: .5rem 0 1.4rem !important; font: 700 clamp(1.2rem, 1.8vw, 1.65rem)/1.2 var(--display); }
.aw-grafik { width: 100%; margin-top: auto !important; padding-top: .9rem !important; border-top: 1px solid #656416; }
.aw-grafik figcaption { font-size: .96rem; line-height: 1.4; }
.aw-preiszeile { margin-top: .55rem; }
.aw-preiszeile p { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.aw-preiszeile b { font-variant-numeric: tabular-nums; }
.aw-preisbalken { display: flex; width: 100%; height: .72rem; margin-top: .18rem; }
.aw-preisbalken i, .aw-raster i, .aw-legende i { display: block; background: var(--aw-ink); }
.aw-grafik .aw-schraffur {
  border: 1px solid var(--aw-ink);
  background: repeating-linear-gradient(135deg, transparent 0 3px, var(--aw-ink) 3px 4.5px);
}
.aw-legende { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .7rem !important; font-size: .84rem; line-height: 1.4; }
.aw-legende span { display: inline-flex; align-items: center; gap: .35rem; }
.aw-legende i { flex: none; width: .8rem; height: .8rem; }
.aw-raster { display: grid; grid-template-columns: repeat(var(--spalten), 1fr); gap: .23rem; margin-top: .65rem; }
.aw-raster i { height: clamp(.55rem, 1.1vw, .9rem); border-radius: 2px; }
.aw-entscheidung { display: flex; flex-direction: column; justify-content: center; gap: 1.45rem; }
.aw-ablauf > div { position: relative; padding-left: 1.75rem; }
.aw-ablauf > div + div { margin-top: 1.6rem; }
.aw-ablauf > div::before {
  content: ""; position: absolute; left: 0; top: .4rem; width: .82rem; height: .82rem;
  border-radius: 50%; border: 2px solid #b0b0a4; background: #1b1c18;
}
.aw-ablauf > div:first-child::after {
  content: ""; position: absolute; left: .35rem; top: 1.4rem; bottom: -1.8rem; border-left: 1px solid #74746a;
}
.aw-ablauf > div:last-child::before { background: var(--gold); border-color: var(--gold); }
.aw-ablauf dt { color: var(--muted); font: 700 1.06rem/1.3 var(--body); }
.aw-ablauf > div:last-child dt { color: var(--gold); }
.aw-ablauf dd { margin-top: .35rem; max-width: 42ch; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 1.45; }
.aw-ablauf > div:last-child dd { font-weight: 650; }
.aw-notiz { padding: .8rem 0 0; border-top: 1px solid var(--aw-rule); }
.aw-notiz h4 { color: var(--muted); font: 700 .92rem/1.35 var(--body); }
.aw-notiz p { margin-top: .25rem; color: var(--paper); font-size: 1rem; line-height: 1.45; }
.aw-notiz strong { color: var(--gold); font: 800 1.65rem/1 var(--display); letter-spacing: -.025em; }
.aw-tage { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .25rem; margin-bottom: .45rem; }
.aw-tage i { position: relative; overflow: hidden; height: clamp(1.9rem, 3.5vw, 3rem); border: 1px solid #6f6d1b; border-top: 3px solid var(--aw-ink); border-radius: .12rem .12rem .32rem .32rem; }
.aw-tage b { position: absolute; inset: auto 0 0; background: var(--aw-ink); }
.aw-eingabe { align-self: center; }
.aw-volumen { margin: .32rem 0 !important; font: 900 clamp(2.6rem, 4.1vw, 4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.aw-eingabe input[type="range"] { display: block; width: 100%; min-height: 2.55rem; margin: 0; accent-color: var(--gold); cursor: pointer; }
.aw-skala { display: flex; justify-content: space-between; color: var(--muted); font-size: .86rem; line-height: 1.1; }
.aw-vergleich { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.25rem !important; }
.aw-vergleich div { padding-top: .55rem; border-top: 2px solid #66665a; }
.aw-vergleich div:last-child { border-color: var(--gold); }
.aw-vergleich dt { font-weight: 700; }
.aw-vergleich small { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }
.aw-vergleich dd { margin-top: .18rem; font: 700 clamp(1.5rem, 2.5vw, 2.1rem)/1.15 var(--display); }
.aw-hinweis { margin-top: .85rem !important; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.aw-auswertung { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .9rem; border: 1px solid var(--aw-rule); border-radius: 1.1rem; }
.aw-auswertung > div + div { border-left: 1px solid var(--aw-rule); }
.aw-auswertung h3 { font: 700 clamp(1.3rem, 2vw, 1.75rem)/1.12 var(--display); }
.aw-kosten dl, .aw-test { margin-top: 1rem !important; }
.aw-kosten dl > div { display: flex; justify-content: space-between; gap: .8rem; padding-block: .37rem; font-size: 1rem; line-height: 1.4; }
.aw-kosten dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.aw-kosten dl > div:last-child { margin-top: .2rem; padding-top: .65rem; border-top: 1px solid var(--aw-rule); font-weight: 700; }
.aw-jahreswert { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin-top: 1rem !important; }
.aw-jahreswert strong { color: var(--gold); font: 700 clamp(1.8rem, 2.9vw, 2.7rem)/1.05 var(--display); }
.aw-jahreswert span { flex: 1 1 10rem; font-size: .92rem; line-height: 1.35; }
.aw-test legend { margin-bottom: .5rem; color: var(--muted); font-size: .9rem; }
.aw-test .aw-auswahl label span { padding-inline: .75rem; font-size: .91rem; }
.aw-urteil { margin-top: 1.05rem; padding-left: .85rem; border-left: 3px solid var(--gold); }
.aw-urteil:has([data-urteil="fehler"]:not([hidden])) { border-color: #ffad79; }
.aw-urteil h4 { font: 700 1.14rem/1.18 var(--display); }
.aw-urteil p { margin-top: .32rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.sw-ergebnis { display: flex; flex-direction: column; background: #f4f0df; color: var(--aw-ink); }
.sw-betrag {
  margin: .65rem 0 .4rem !important;
  font: 900 clamp(3rem, 5.65vw, 6.4rem)/.98 var(--display);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.sw-ergebnis :is(output, strong), .sw-rechenweg dd { font-variant-numeric: tabular-nums; }
.sw-deckung { max-width: 32ch; font: 700 clamp(1.1rem, 1.7vw, 1.55rem)/1.18 var(--display); }
.sw-budget, .sw-bilanz p, .sw-rechenweg dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem;
}
.sw-budget { padding-block: .78rem; margin-block: 1.1rem 1.4rem !important; border-block: 1px solid #b6b19d; }
.sw-budget span, .sw-bilanz p { font-size: .94rem; line-height: 1.35; }
.sw-budget small { display: block; margin-top: .15rem; color: #56564a; font-size: .83rem; }
.sw-budget strong, .sw-bilanz strong { flex-shrink: 0; font-weight: 700; }
.sw-bilanz { margin-top: auto !important; }
.sw-bilanz figcaption { margin-bottom: .65rem; font-weight: 700; }
.sw-balken { height: .7rem; margin-block: .26rem .72rem; background: #dcd7c4; border-radius: .125rem; overflow: hidden; }
.sw-balken:last-child { margin-bottom: 0; }
.sw-balken i { display: block; height: 100%; background: var(--aw-ink); }
.sw-balken--kosten i { background: repeating-linear-gradient(135deg, var(--aw-ink) 0 2px, transparent 2px 5px); }
.sw-parameter { align-self: center; }
.sw-parameter legend { margin-bottom: .6rem; color: var(--paper); font: 700 clamp(1.35rem, 1.95vw, 1.8rem)/1.2 var(--display); }
.sw-feld { display: grid; grid-template-columns: minmax(0,1fr) 7.4rem; gap: .4rem 1rem; align-items: center; margin-block: .55rem; line-height: 1.35; }
.sw-eingabe {
  display: flex; align-items: center; gap: .25rem; min-width: 0; padding-inline: .67rem;
  background: #262723; color: var(--paper); border: 1px solid #78786c; border-radius: .45rem;
}
.sw-eingabe input {
  min-width: 0; width: 100%; min-height: 2.85rem; margin: 0; padding: 0;
  border: 0; background: transparent; color: inherit; font: 700 1.04rem/1 var(--body);
  font-variant-numeric: tabular-nums;
}
.sw-eingabe input:focus { outline: 0; }
.sw-eingabe:focus-within, .sw-optionen summary:focus-visible, .sw-rechenweg summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sw-eingabe:has([aria-invalid="true"]) { border-color: #ffb38b; }
.sw-eingabe > span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.sw-optionen { margin-top: 1rem; border-top: 1px solid var(--aw-rule); }
.sw-optionen summary, .sw-rechenweg summary { min-height: 2.75rem; padding-block: .8rem; cursor: pointer; font-weight: 700; line-height: 1.35; }
.sw-optionen summary { color: var(--gold); }
.sw-optionen, .sw-rechenweg { accent-color: var(--gold); }
.sw-meldung { color: #ffb38b; font-size: .92rem; }
.sw-rechenweg { padding-inline: clamp(1rem, 2vw, 1.6rem); margin-top: .85rem; border: 1px solid var(--aw-rule); border-radius: .75rem; }
.sw-rechenweg dl { padding-bottom: .2rem; }
.sw-rechenweg dl > div { padding-block: .4rem; border-top: 1px solid var(--aw-rule); }
.sw-rechenweg dt { color: var(--muted); }
.sw-rechenweg dd { text-align: right; font-weight: 650; }
.sw-rechenweg .aw-hinweis { max-width: 85ch; margin-block: .6rem 1rem !important; }
.dev-varianten > .aw-auswahl { margin-bottom: 1rem; }
.dev-varianten:has(input[value="online"]:checked) [data-app-fall="offline"],
.dev-varianten:has(input[value="offline"]:checked) [data-app-fall="online"] { display: none; }
.dev-bilanz { padding-top: 1.5rem !important; }
.dev-rechnung { align-self: center; }
.dev-rechnung h3, .dev-messblatt legend { font: 700 clamp(1.3rem, 2.1vw, 1.8rem)/1.15 var(--display); }
.dev-messblatt > fieldset { background: #1b1c18; border: 1px solid var(--aw-rule); border-radius: 1rem; padding: clamp(1.1rem, 2.4vw, 2rem); }
.dev-kontext > span { display: block; margin-bottom: .4rem; font-weight: 650; }
.dev-kontext input {
  display: block; width: 100%; min-width: 0; border: 1px solid #78786c; border-radius: .45rem;
  padding: .75rem; background: #262723; color: var(--paper); font: 400 1rem/1.5 var(--body);
}
.dev-kontext input:focus-visible, .dev-rechte input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dev-export { margin-top: 1rem; }
.dev-export::after { content: "↓" / ""; }
.dev-basis { max-width: 26rem; margin-bottom: 1.4rem; }
.dev-messblatt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dev-messblatt legend { padding-inline: .35rem; color: var(--gold); }
.dev-kontext { display: block; margin-bottom: 1rem; }
.dev-rechte { display: flex; align-items: center; gap: .6rem; margin-block: .9rem; min-height: 2.75rem; cursor: pointer; }
.dev-rechte input { width: 1.15rem; height: 1.15rem; flex-shrink: 0; accent-color: var(--gold); }
.dev-urteil { display: block; padding-top: .7rem; border-top: 1px solid var(--aw-rule); color: var(--paper); font-weight: 650; }
@media (max-width: 720px) {
  .aw-kopf, .aw-tafel, .aw-auswertung { grid-template-columns: minmax(0, 1fr); }
  .aw-kopf { align-items: start; }
  .aw-auswertung > div + div { border-left: none; border-top: 1px solid var(--aw-rule); }
  .aw-rollen > .aw-auswahl { gap: .35rem; }
  .aw-rollen > .aw-auswahl label span { padding-inline: .7rem; font-size: .94rem; }
  .aw-erklaerung { margin-bottom: 1.1rem !important; }
  .sw-betrag { font-size: clamp(3.1rem, 12vw, 5.6rem); }
  .dev-messblatt { grid-template-columns: minmax(0, 1fr); }
  .dev-varianten .aw-auswahl label span { padding-inline: .75rem; }
}
@media (max-width: 400px) {
  .sw-feld { grid-template-columns: minmax(0,1fr) 6.4rem; gap: .3rem .6rem; }
  .sw-rechenweg dl > div { flex-wrap: wrap; gap: .15rem .6rem; }
}
@media (forced-colors: active) {
  .aw-auswahl input:checked + span { outline: 2px solid Highlight; outline-offset: -3px; }
  .aw-grafik i { border: 1px solid CanvasText; }
  .sw-balken i { border: 2px solid CanvasText; }
}
