/* STATECH-System-Konfigurator (W-SYSKONFIG1 Phase 2), only on digital/system.html and en/digital/system.html.
   Everything is scoped under .sk so no other page changes. Rules: design-klar (one orange action per view,
   8-px grid, text >= 17 px, contrast AA). The site is light only, so are these tokens. */
.sk {
  --sk-bg: #ffffff;
  --sk-papier: #f3f4f6;
  --sk-tinte: #222529;
  --sk-stahl: #3d434b;
  --sk-grau: #5f646a;
  --sk-linie: #e1e4e8;
  --sk-linie-stark: #c9ced5;
  --sk-orange: #ff9100;
  --sk-orange-text: #ad5c00;
  --sk-orange-zart: #fff3e3;
  --sk-fokus: #2f5fb3;
  --sk-ok: #17703f;
  --sk-schatten: 0 1px 2px rgba(34, 37, 41, .06), 0 8px 24px rgba(34, 37, 41, .07);
  --sk-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color: var(--sk-tinte);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.sk *, .sk *::before, .sk *::after { box-sizing: border-box; }
.sk :focus-visible { outline: 3px solid var(--sk-fokus); outline-offset: 2px; border-radius: 6px; }
.sk h2, .sk h3 { text-wrap: balance; margin: 0; }
.sk p { margin: 0; text-wrap: pretty; }
.sk .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk .mono { font-family: var(--sk-mono); font-variant-numeric: tabular-nums; }
.sk .hinweis { font-size: .94rem; color: var(--sk-grau); }
.sk .kicker { font-family: var(--sk-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-grau); display: inline-flex; align-items: center; gap: 8px; }
.sk .kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--sk-orange); }

.sk-schritte { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sk-schritte button { width: 100%; min-height: 44px; border: 0; background: none; padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: 500 .94rem/1.3 inherit; color: var(--sk-grau); border-radius: 8px; }
.sk-schritte button::before { content: ""; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--sk-linie); transition: background .25s; }
.sk-schritte button[data-erledigt="ja"]::before { background: var(--sk-stahl); }
.sk-schritte button[aria-current="step"] { color: var(--sk-tinte); font-weight: 700; }
.sk-schritte button[aria-current="step"]::before { background: var(--sk-orange); }
.sk-schritte .nr { font-family: var(--sk-mono); font-size: 13px; }

.sk-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: start; }
.sk-buehne { min-width: 0; }
.sk-seite { position: sticky; top: 96px; min-width: 0; }

.sk-kopf { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.sk-kopf h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; letter-spacing: -0.02em; }
.sk-kopf .lead { font-size: 1.15rem; color: var(--sk-stahl); max-width: 36em; }
.sk-beispiel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .94rem; color: var(--sk-grau); }
.sk-beispiel button { border: 1px solid var(--sk-linie-stark); background: var(--sk-bg); border-radius: 999px; padding: 6px 14px; min-height: 40px; cursor: pointer; font: inherit; color: var(--sk-tinte); }

.sk fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.sk legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sk-chip { position: relative; }
.sk-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sk-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--sk-linie-stark); background: var(--sk-bg); font-size: 1rem; transition: border-color .2s, background .2s; }
.sk-chip input:checked + span { border-color: var(--sk-orange); background: var(--sk-orange-zart); font-weight: 600; }
.sk-chip input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sk-orange); }
.sk-chip input:focus-visible + span { outline: 3px solid var(--sk-fokus); outline-offset: 2px; }

.sk-zaehler { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sk-zaehler input[type=range] { flex: 1 1 220px; accent-color: var(--sk-orange); min-height: 44px; }
.sk-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--sk-linie-stark); border-radius: 999px; background: var(--sk-bg); }
.sk-stepper button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; border-radius: 999px; color: var(--sk-tinte); }
.sk-stepper input { width: 3.4em; border: 0; background: none; text-align: center; font-family: var(--sk-mono); font-size: 1.05rem; -moz-appearance: textfield; color: var(--sk-tinte); }
.sk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.sk-zone { font-family: var(--sk-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-grau); margin: 24px 0 12px; }
.sk-zone:first-child { margin-top: 0; }
.sk-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sk-karte { position: relative; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; border: 1.5px solid var(--sk-linie); background: var(--sk-bg); cursor: pointer; min-height: 200px; font: inherit; color: inherit; transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.sk-karte:hover { transform: translateY(-2px); box-shadow: var(--sk-schatten); }
.sk-karte[aria-pressed="true"] { border-color: var(--sk-orange); box-shadow: 0 0 0 1px var(--sk-orange) inset; }
.sk-karte[aria-disabled="true"] { cursor: default; }
.sk-karte[aria-disabled="true"]:hover { transform: none; box-shadow: 0 0 0 1px var(--sk-orange) inset; }
.sk-karte .bild { width: 64px; height: 64px; border-radius: 16px; background: var(--sk-papier); display: grid; place-items: center; color: var(--sk-stahl); }
.sk-karte[aria-pressed="true"] .bild { background: var(--sk-orange-zart); color: var(--sk-orange-text); }
.sk-karte .txt { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sk-karte .h { display: block; font-size: 1.12rem; font-weight: 700; }
.sk-karte .p { display: block; font-size: 1rem; color: var(--sk-stahl); line-height: 1.5; }
.sk-karte .preis { display: block; margin-top: auto; font-size: .94rem; color: var(--sk-grau); }
.sk-karte .haken { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--sk-linie-stark); display: grid; place-items: center; color: var(--sk-tinte); }
.sk-karte[aria-pressed="true"] .haken { background: var(--sk-orange); border-color: var(--sk-orange); }
.sk-karte .haken svg { opacity: 0; }
.sk-karte[aria-pressed="true"] .haken svg { opacity: 1; }

.sk-ausbau { display: flex; flex-direction: column; gap: 14px; }
.sk-zeile { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid var(--sk-linie); border-radius: 18px; background: var(--sk-bg); }
.sk-zeile .bild { width: 56px; height: 56px; border-radius: 14px; background: var(--sk-orange-zart); color: var(--sk-orange-text); display: grid; place-items: center; }
.sk-zeile h3 { font-size: 1.1rem; margin-bottom: 4px; }
.sk-zeile .inhalt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sk-stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sk-stufe { position: relative; }
.sk-stufe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sk-stufe label { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--sk-linie-stark); min-height: 44px; cursor: pointer; height: 100%; }
.sk-stufe .balken { display: flex; gap: 4px; }
.sk-stufe .balken i { height: 6px; flex: 1; border-radius: 3px; background: var(--sk-linie); }
.sk-stufe .balken i.an { background: var(--sk-stahl); }
.sk-stufe input:checked + label { border-color: var(--sk-orange); background: var(--sk-orange-zart); }
.sk-stufe input:checked + label .balken i.an { background: var(--sk-orange); }
.sk-stufe input:focus-visible + label { outline: 3px solid var(--sk-fokus); outline-offset: 2px; }
.sk-stufe small { font-size: .94rem; color: var(--sk-grau); }

.sk-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sk-option { position: relative; }
.sk-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sk-option label { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1.5px solid var(--sk-linie); background: var(--sk-bg); cursor: pointer; height: 100%; }
.sk-option input:checked + label { border-color: var(--sk-orange); box-shadow: 0 0 0 1px var(--sk-orange) inset; }
.sk-option input:focus-visible + label { outline: 3px solid var(--sk-fokus); outline-offset: 2px; }
.sk-option input:disabled + label { cursor: not-allowed; background: var(--sk-papier); color: var(--sk-grau); }
.sk-option b { font-size: 1.1rem; }
.sk-option .wert { font-family: var(--sk-mono); }
.sk-option .marke { align-self: flex-start; font-family: var(--sk-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--sk-linie-stark); color: var(--sk-grau); }

.sk-weiter { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.sk-system { border-radius: 22px; border: 1px solid var(--sk-linie); background: var(--sk-papier); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sk-system-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sk-system-kopf h2 { font-size: 1.25rem; }
.sk-plan { width: 100%; height: auto; display: block; }
.sk-plan .rahmen { fill: var(--sk-bg); stroke: var(--sk-linie); stroke-width: 1; }
.sk-plan .ring { fill: none; stroke: var(--sk-orange); stroke-linecap: round; }
.sk-plan .zone { font-family: var(--sk-mono); font-size: 11px; letter-spacing: .08em; fill: var(--sk-grau); text-transform: uppercase; }
.sk-plan .platz { fill: none; stroke: var(--sk-linie-stark); stroke-width: 1.2; stroke-dasharray: 5 5; }
.sk-plan .leer { font-size: 13px; fill: var(--sk-grau); }
.sk-plan .grund { fill: var(--sk-orange-zart); stroke: var(--sk-orange); stroke-width: 1.5; }
.sk-plan .titel { font-size: 14px; font-weight: 700; fill: var(--sk-tinte); }
.sk-plan .unter { font-size: 12px; fill: var(--sk-stahl); }
.sk-plan .ikon { color: var(--sk-orange-text); }
.sk-plan .block { transform-box: fill-box; transform-origin: center; animation: sk-einsetzen .45s cubic-bezier(.2, .8, .2, 1) both; }
.sk-plan .block.alt { animation: none; }
.sk-plan .masch { fill: var(--sk-bg); stroke: var(--sk-stahl); stroke-width: 1.2; }
.sk-plan .masch.an { fill: var(--sk-stahl); }
.sk-plan .stufe-i { fill: var(--sk-linie-stark); }
.sk-plan .stufe-i.an { fill: var(--sk-orange); }
.sk-plan .kern rect { fill: var(--sk-tinte); }
.sk-plan .kern text { fill: #ffffff; font-size: 13px; font-weight: 600; }
.sk-plan .host { font-size: 12px; fill: var(--sk-grau); }
.sk-plan .host-linie { stroke: var(--sk-linie-stark); stroke-width: 1; }
@keyframes sk-einsetzen { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.sk-summe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sk-summe div { background: var(--sk-bg); border: 1px solid var(--sk-linie); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.sk-summe span { display: block; font-size: .9rem; color: var(--sk-grau); }
.sk-summe b { display: block; font-family: var(--sk-mono); font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-offen { font-size: .94rem; color: var(--sk-stahl); }
.sk-pflicht { font-size: .94rem; color: var(--sk-grau); border-top: 1px solid var(--sk-linie); padding-top: 12px; }

.sk-tabelle { overflow-x: auto; border: 1px solid var(--sk-linie); border-radius: 18px; background: var(--sk-bg); }
.sk table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0; }
.sk th, .sk td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--sk-linie); vertical-align: top; }
.sk th { font-size: .9rem; font-weight: 600; color: var(--sk-grau); }
.sk td.zahl, .sk th.zahl { text-align: right; font-family: var(--sk-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk tfoot td { font-weight: 700; border-bottom: 0; }
.sk td small { display: block; color: var(--sk-grau); font-size: .9rem; }
.sk .folgt { color: var(--sk-grau); font-family: inherit; font-style: normal; }
.sk-abschnitt { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.sk-abschnitt h3 { font-size: 1.35rem; }
.sk-schnitt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sk-schnitt li { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--sk-linie); border-radius: 14px; background: var(--sk-bg); }
.sk-schnitt .ik { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--sk-papier); display: grid; place-items: center; color: var(--sk-stahl); }
.sk-schnitt b { display: block; }
.sk-schnitt small { display: block; color: var(--sk-grau); font-size: .94rem; line-height: 1.45; }
.sk-aktion { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sk-form { margin-top: 8px; }

/* the configurator page has no application window in its hero: one column, smaller headline */
.it-seite:has(.sk) .it-held .huelle { grid-template-columns: minmax(0, 1fr); }
.it-seite:has(.sk) .it-held h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); max-width: 22ch; }
.it-seite:has(.sk) .it-held .it-lead { max-width: 46ch; }
.it-seite:has(.sk) .it-held .it-text { padding-bottom: clamp(24px, 4vw, 48px); }
.sk-preisleiste { display: none; }
.sk-lade { padding: 16px; border-radius: 12px; border: 1px solid var(--sk-linie); background: var(--sk-papier); }

@media (max-width: 980px) {
  .sk-raster { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sk-seite { position: static; }
  /* phones: the site keeps its own fixed bar at the bottom, so the running total sits in the flow under the steps */
  .sk-preisleiste { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -16px 0 24px; padding: 12px 16px; border: 1px solid var(--sk-linie); border-radius: 14px; background: var(--sk-papier); }
  .sk-preisleiste .werte { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .sk-preisleiste .werte b { font-family: var(--sk-mono); font-size: 1rem; }
  .sk-preisleiste .werte span { font-size: .94rem; color: var(--sk-grau); }
  .sk-preisleiste a { min-height: 44px; padding: .6em 1.1em; font-size: .95rem; }
}
@media (max-width: 640px) {
  .sk-schritte { display: flex; }
  .sk-schritte li { flex: 1 1 0; min-width: 0; }
  .sk-schritte li:has([aria-current="step"]) { flex: 2.6 1 auto; }
  .sk-schritte .wort { display: none; }
  .sk-schritte [aria-current="step"] .wort { display: inline; }
  .sk-schritte button { white-space: nowrap; }
  .sk-karten { grid-template-columns: minmax(0, 1fr); }
  .sk-karte { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .sk-karte .bild { width: 52px; height: 52px; }
  .sk-karte .txt { flex: 1 1 180px; min-width: 0; padding-right: 32px; }
  .sk-zeile { grid-template-columns: minmax(0, 1fr); }
  .sk-weiter .knopf { flex: 1 1 auto; }
  .sk th, .sk td { padding: 10px; }
  .sk table { font-size: .96rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sk *, .sk *::before, .sk *::after { animation: none !important; transition: none !important; }
}
