/* Rüger Solutions: Leistungsseite „Individuelle Software“.
   Baut auf main.css, agency.css und leistungen.css auf. Eigene Bausteine tragen das Präfix sw-,
   damit sie nicht mit den Bausteinen der übrigen Seiten kollidieren. */

.p-hero svg.sw-cursor { fill: var(--text); stroke: var(--bg); stroke-width: 1.4; }

/* Hero: Pointe „Nicht umgekehrt.“ bleibt zusammen, auf breiten Bildschirmen wächst die Überschrift nicht weiter. */
.sw-hero { padding-bottom: clamp(48px, 5vw, 72px); }
@media (min-width: 1600px) {
  .sw-hero h1 { font-size: 5.4rem; }
}

/* =========================================================
   Hero: Auftragsübersicht im Büro und dieselbe App auf dem Handy.
   Feste Entwurfsmaße in em, eine Einheit = 1/63 der Breite (Containerabfrage).
   Grundzustand ist der Endzustand; die Schleife läuft nur mit JavaScript (.is-run).
   ========================================================= */
.sw-duo { position: relative; width: 100%; max-width: 720px; margin: 0; container-type: inline-size; }
.sw-duo__stage { position: relative; height: 45em; font-size: calc(100cqw / 63); }
.sw-duo__cap { margin-top: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; text-align: center; text-wrap: balance; }

.sw-pc {
  position: absolute; left: 0; top: 2em;
  width: 50em; height: 36em;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 1.6em;
  background: var(--bg-2);
  box-shadow: 0 5em 9em -4em #000;
}
.sw-pc__bar { display: flex; align-items: center; gap: 1.6em; height: 3.4em; padding: 0 1.5em; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.sw-pc__bar span { display: flex; gap: 0.6em; }
.sw-pc__bar i { width: 0.85em; height: 0.85em; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.sw-pc__bar b { color: var(--muted); font-size: 1.2em; font-weight: 500; }
.sw-pc__body { display: grid; grid-template-columns: 12.3em minmax(0, 1fr); height: calc(100% - 3.4em); }
.sw-pc__side { display: grid; align-content: start; gap: 0.2em; padding: 1.4em 0.9em; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.15); }
.sw-pc__side p { display: flex; align-items: center; gap: 0.65em; padding: 0.65em 0.7em; border-radius: 0.8em; color: var(--muted); font-size: 1.2em; }
.sw-pc__side p.is-on { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.sw-pc__side svg { flex: none; width: 1.3em; height: 1.3em; }
.sw-pc__brand { margin-bottom: 0.7em; color: var(--text) !important; font-weight: 500; }
.sw-pc__brand span { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 0.45em; background: var(--text); color: var(--ink); font-size: 0.85em; font-weight: 600; }
.sw-pc__main { min-width: 0; padding: 1.4em 1.6em; }
.sw-pc__title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.3em; }
.sw-pc__title b { font-size: 1.9em; font-weight: 500; letter-spacing: -0.03em; }
.sw-pc__title span { color: var(--dim); font: 400 1.05em/1 var(--mono); }

.sw-board { --pitch: 12.2em; display: grid; grid-template-columns: repeat(3, 11.4em); gap: 0.8em; }
.sw-board__col { display: flex; flex-direction: column; gap: 0.7em; min-height: 24em; padding: 0.8em; border-radius: 1.2em; background: rgba(255, 255, 255, 0.025); }
.sw-board__head { display: flex; justify-content: space-between; margin: 0.1em 0.1em 0.2em; color: var(--muted); font: 400 1em/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.sw-board__head > span { color: var(--dim); }
.sw-card {
  position: relative;
  display: grid; gap: 0.2em;
  min-width: 0;
  padding: 0.95em 1em 1em;
  border: 1px solid var(--line);
  border-radius: 1em;
  background: var(--bg-3);
}
.sw-card b { font-size: 1.3em; font-weight: 500; letter-spacing: -0.01em; }
.sw-card > span { color: var(--muted); font-size: 1.15em; }
.sw-card > i { margin-top: 0.45em; color: var(--dim); font: 400 0.98em/1.2 var(--mono); font-style: normal; }
.sw-card > i em { font: inherit; }
.sw-board__col--done .sw-card { opacity: 0.55; }
.sw-card--move { border-color: var(--line-2); }
.sw-card--move::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow: 0 1.6em 2.6em -1em #000;
  opacity: 0;
}
.sw-cursor { position: absolute; right: 1.2em; bottom: -0.6em; z-index: 2; width: 2.2em; height: 2.2em; opacity: 0; }

/* Kleiner Tausch zweier Zustände an derselben Stelle (Zähler, Status) */
.sw-swap { display: inline-grid; }
.sw-swap > * { grid-area: 1 / 1; }
.sw-swap__a { opacity: 0; }

/* Handy */
.sw-ph {
  position: absolute; right: 0; bottom: 0;
  width: 18em; height: 37em;
  padding: 0.55em;
  border-radius: 3.1em;
  background: linear-gradient(145deg, #4a453e 0%, #1d1b18 22%, #121110 55%, #26231f 85%, #3d3933 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 5em 9em -3em #000, 0 2em 3em -2em rgba(0, 0, 0, 0.8);
}
.sw-ph__screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.6em; background: #f3efe8; color: var(--ink); clip-path: inset(0 round 2.6em); isolation: isolate; }
.sw-ph__status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 3.2em; padding: 0.3em 1.6em 0 2em; }
.sw-ph__status b { font-size: 1.05em; font-weight: 600; }
.sw-ph__island { position: absolute; left: 50%; top: 0.75em; width: 5.4em; height: 1.6em; margin-left: -2.7em; border-radius: 999px; background: #000; }
.sw-ph__icons { display: flex; align-items: center; gap: 0.4em; }
.sw-ph__icons i { width: 1.1em; height: 0.7em; border-radius: 0.15em; background: var(--ink); }
.sw-ph__icons i + i { width: 1.5em; height: 0.75em; border: 1px solid var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box; padding: 0.1em; }
.sw-ph__title { padding: 1em 1.2em 0.9em; font-size: 1.85em; font-weight: 650; letter-spacing: -0.04em; }
.sw-ph__list { display: grid; gap: 0.6em; padding: 0 0.9em; }
.sw-ph__row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding: 0.9em 0.9em; border-radius: 1em; background: #fff; box-shadow: 0 0.1em 0.2em rgba(18, 16, 14, 0.06); }
.sw-ph__row > span { display: grid; gap: 0.15em; min-width: 0; color: var(--ink-muted); font-size: 0.98em; }
.sw-ph__row b { color: var(--ink); font-size: 1.18em; font-weight: 600; letter-spacing: -0.01em; }
.sw-ph__row em { flex: none; padding: 0.45em 0.6em; border-radius: 999px; background: #ece6dc; color: var(--ink-muted); font: 500 0.9em/1 var(--sans); font-style: normal; }
.sw-ph__row em i { font: inherit; }
.sw-ph__row .is-open { background: transparent; box-shadow: inset 0 0 0 1px rgba(18, 16, 14, 0.18); }
.sw-ph__row.is-done { opacity: 0.55; }
.sw-ph__row--hit em { padding: 0; background: none; }
.sw-ph__row--hit em i { padding: 0.45em 0.6em; border-radius: 999px; }
.sw-ph__row--hit .sw-swap__a { background: transparent; box-shadow: inset 0 0 0 1px rgba(18, 16, 14, 0.18); }
.sw-ph__row--hit .sw-swap__b { background: var(--ink); color: var(--paper); }
.sw-ph__row--hit::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0.15em var(--ink); opacity: 0; pointer-events: none; }
.sw-ph__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 1em 1.6em 1.8em; border-top: 1px solid rgba(18, 16, 14, 0.08); background: rgba(250, 248, 244, 0.95); }
.sw-ph__tabs i { width: 1.5em; height: 1.5em; border-radius: 0.45em; background: rgba(18, 16, 14, 0.12); }
.sw-ph__tabs i.is-on { background: var(--ink); }

/* Schleife: Karte von „Anfrage“ nach „Geplant“, Handy zieht nach. 9 s je Durchgang. */
.js .sw-duo .sw-card--move { animation: sw-move 9s var(--io) infinite; }
.js .sw-duo .sw-card--move::before { animation: sw-lift 9s ease-out infinite; }
.js .sw-duo .sw-cursor { animation: sw-cursor 9s var(--out) infinite; }
.js .sw-duo .sw-swap__a { animation: sw-a 9s linear infinite; }
.js .sw-duo .sw-swap__b { animation: sw-b 9s linear infinite; }
.js .sw-duo .sw-ph .sw-swap > * { animation-delay: 0.25s; }
.js .sw-duo .sw-ph__row--hit::after { animation: sw-flash 9s ease-out 0.25s infinite; }
.js .sw-duo .sw-ph__row--hit .sw-swap { animation: sw-pop 9s var(--out) 0.25s infinite; }
/* !important: Die Kurzschreibweisen oben sind teils spezifischer und würden den Zustand sonst auf „running“ zurücksetzen. */
.js .sw-duo:not(.is-run) *, .js .sw-duo:not(.is-run) *::before, .js .sw-duo:not(.is-run) *::after { animation-play-state: paused !important; }

@keyframes sw-move {
  0%, 12% { transform: translateX(calc(var(--pitch) * -1)); opacity: 1; }
  16% { transform: translateX(calc(var(--pitch) * -1)) translateY(-0.5em) rotate(-1deg); }
  28% { transform: translateY(-0.5em) rotate(-0.5deg); }
  31%, 86% { transform: none; opacity: 1; }
  89% { transform: none; opacity: 0; }
  90% { transform: translateX(calc(var(--pitch) * -1)); opacity: 0; }
  94%, 100% { transform: translateX(calc(var(--pitch) * -1)); opacity: 1; }
}
@keyframes sw-lift { 0%, 12% { opacity: 0; } 16%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes sw-cursor {
  0%, 5% { opacity: 0; transform: translate(2.2em, 2.4em); }
  11%, 29% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translate(1.4em, 1.6em); }
}
/* Erst aus, dann ein: zwei Texte stehen nie halb übereinander. */
@keyframes sw-a { 0%, 28% { opacity: 1; } 29.5%, 90.5% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes sw-b { 0%, 29.5% { opacity: 0; } 31%, 89% { opacity: 1; } 90.5%, 100% { opacity: 0; } }
@keyframes sw-flash { 0%, 30% { opacity: 0; } 32% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes sw-pop { 0%, 30% { transform: none; } 32.5% { transform: scale(1.1); } 36%, 100% { transform: none; } }

/* =========================================================
   Was ich baue
   ========================================================= */
/* Weniger Abstand nach oben: Auf großen Bildschirmen ragt die nächste Überschrift in den ersten Bildschirm. */
.page-sub .sw-parts-sec { padding-top: clamp(64px, 5vw, 96px); }
.sw-parts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 84px); align-items: start; }
.sw-parts__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sw-parts__list li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 36px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sw-parts__list h3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.sw-parts__list p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.sw-ki {
  position: sticky; top: 110px;
  display: grid; gap: 18px;
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: 28px;
  background: var(--text);
  color: var(--ink);
}
.sw-ki__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.sw-ki__icon svg { width: 20px; height: 20px; fill: currentColor; }
.sw-ki h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; }
.sw-ki ul { display: grid; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(18, 16, 14, 0.14); }
.sw-ki li { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid rgba(18, 16, 14, 0.14); }
.sw-ki b { font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em; }
.sw-ki__foot { padding-top: 4px; font: 500 1.25rem/1.2 var(--sans); letter-spacing: -0.03em; }

/* =========================================================
   Zahlen & Auswertungen: Dashboard-Vorführung und Liste
   Grundzustand ist der Endzustand; mit JavaScript wachsen die Balken beim Einblenden.
   ========================================================= */
.sw-data-sec { border-top: 1px solid var(--line); border-radius: 0; }
.sw-data { display: grid; gap: clamp(40px, 5vw, 72px); }

/* ---------- Dashboard (Sydney, 05.11.2026, nach Apple-Design-Grundsätzen) ----------
   Grund Schwarz-Weiß wie die Seite, Blau nur für Daten und alles, was man bedienen kann:
   Balken, gewählte Kennzahl, Umschalter, Regler. Keine Schatten-Effekte, kein Leuchten.
   assets/js/dash.js rechnet Zeitraum, Kennzahl, Rangliste und „Was wäre, wenn?“ live um. */
.sw-dash { --blue: #4d78f2; --blue-s: rgba(77, 120, 242, 0.38); --blue-t: rgba(77, 120, 242, 0.14);
  margin: 0; container-type: inline-size; }
.sw-dash__win { overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px; background: var(--bg-2); }
.sw-dash__bar { display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--line); }
.sw-dash__bar > span { display: flex; gap: 7px; }
.sw-dash__bar > span i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.sw-dash__bar b { color: var(--muted); font-size: 14px; font-weight: 500; }
.sw-dash__bar .sw-seg { margin-left: auto; }
.sw-dash__body { display: grid; gap: 12px; padding: 16px; }

/* Umschalter wie ein Segmented Control: ruhige Spur, gewählter Teil in Blau */
.sw-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
.sw-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.1s; }
.sw-seg button:hover { color: var(--text); }
.sw-seg button:active { transform: scale(0.96); }
.sw-seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* Kennzahlen: antippen wechselt das Diagramm */
.sw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sw-kpi { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 14px 14px 40px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-3); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.1s; }
.sw-kpi:hover { border-color: var(--line-2); }
.sw-kpi:active { transform: scale(0.98); }
.sw-kpi span { color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.sw-kpi b { font-size: clamp(1.15rem, 2.3cqw, 1.55rem); font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-kpi small { color: var(--dim); font-size: 12px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sw-kpi svg { position: absolute; left: 14px; right: 14px; bottom: 12px; width: calc(100% - 28px); height: 18px; overflow: visible; }
.sw-kpi svg path { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.sw-kpi.is-on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sw-kpi.is-on svg path { stroke: var(--blue); }

.sw-dash__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; }
.sw-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-3); }
.sw-card__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; min-height: 30px; }
.sw-card__h b { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.sw-card__h .sw-seg button { min-height: 26px; padding: 0 10px; font-size: 12px; }

/* Balkendiagramm: antippen oder überfahren zeigt den Wert */
.sw-tip { min-height: 2.6em; color: var(--muted); font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.sw-tip b { display: block; color: var(--text); font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.sw-plot { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px; height: 170px;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% calc((100% - 22px) / 4); }
.sw-bar { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 22px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.sw-bar i { align-self: end; height: calc(var(--h, 0) * 100%); border-radius: 5px 5px 2px 2px; background: var(--blue-s); transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s; }
.sw-bar::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: calc(22px + (100% - 22px) * var(--p, 0)); border-top: 1.5px solid rgba(240, 235, 225, 0.6); transition: bottom 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-bar.no-prev::after { display: none; }
.sw-bar span { align-self: end; color: var(--dim); font: 400 11px/1 var(--mono); text-align: center; transition: color 0.2s; }
.sw-bar:hover i { background: rgba(77, 120, 242, 0.6); }
.sw-bar.is-on i { background: var(--blue); }
.sw-bar.is-on span { color: var(--text); }
.sw-key { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font: 400 11px/1 var(--mono); }
.sw-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.sw-key i.is-prev { height: 0; border-top: 1.5px solid rgba(240, 235, 225, 0.6); border-radius: 0; background: none; }

/* Rangliste */
.sw-rank { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sw-rank li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; font-size: 13.5px; }
.sw-rank li span { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.sw-rank li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sw-rank li::before, .sw-rank li i { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; border-radius: 2px; }
.sw-rank li::before { right: 0; background: rgba(255, 255, 255, 0.07); }
.sw-rank li i { width: calc(var(--w, 0) * 100%); background: var(--blue); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-card__foot { color: var(--dim); font-size: 12.5px; line-height: 1.4; }

/* Was wäre, wenn? Regler rechnet live */
.sw-what__in { display: grid; gap: 10px; }
.sw-what__in label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; }
.sw-what__in output { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.sw-range { --v: 0.33; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.sw-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) calc(var(--v) * 100%), rgba(255, 255, 255, 0.12) 0); }
.sw-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.sw-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--blue); }
.sw-range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); -webkit-appearance: none; appearance: none; transition: transform 0.15s; }
.sw-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.sw-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.sw-what__res { display: grid; gap: 10px; margin: 0; }
.sw-what__res div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13.5px; }
.sw-what__res dt { color: var(--muted); }
.sw-what__res dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.sw-what__res i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); width: calc(var(--w, 0.5) * 100%); transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-what__res .is-new i { background: var(--blue); }
.sw-what__note { color: var(--muted); font-size: 13px; line-height: 1.4; }
.sw-what__note b { color: var(--text); font-weight: 500; }

/* Woher die Anfragen kommen */
.sw-src__total { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.sw-src__total small { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.sw-stack { display: flex; gap: 3px; height: 10px; }
.sw-stack i { flex: var(--n) 1 0; border-radius: 3px; transition: flex-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sw-c1 { background: var(--blue); } .sw-c2 { background: var(--blue-s); } .sw-c3 { background: rgba(255, 255, 255, 0.7); } .sw-c4 { background: rgba(255, 255, 255, 0.22); }
.sw-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.sw-legend li { display: flex; align-items: center; gap: 9px; }
.sw-legend li i { width: 8px; height: 8px; border-radius: 2px; }
.sw-legend li span { flex: 1; color: var(--muted); }
.sw-legend li b { font-weight: 500; font-variant-numeric: tabular-nums; }

.sw-dash__cap { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

/* Schmale Vorführung */
@container (max-width: 720px) {
  .sw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-dash__row { grid-template-columns: 1fr; }
}
@container (max-width: 480px) {
  .sw-dash__bar { flex-wrap: wrap; padding: 10px 12px; }
  .sw-dash__bar > span { display: none; }
  .sw-dash__bar .sw-seg { margin-left: 0; width: 100%; }
  .sw-dash__bar .sw-seg button { flex: 1; }
  .sw-dash__body { padding: 10px; gap: 10px; }
  .sw-kpi b { font-size: 1.25rem; }
  .sw-plot { height: 140px; gap: 6px; }
}

.sw-data__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin: 0; padding: 0; list-style: none; }
.sw-data__list li { display: grid; align-content: start; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.sw-data__list h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.sw-data__list p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

.sw-data__extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sw-data__extra li { display: grid; align-content: start; gap: 6px; padding-top: 22px; }
.sw-data__extra h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.sw-data__extra p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.sw-data__extra small { color: #6d8ff5; font-size: 13px; }
.sw-data__src { max-width: 46em; margin-top: clamp(36px, 4vw, 52px); font: 500 clamp(1.2rem, 1.8vw, 1.5rem)/1.3 var(--sans); letter-spacing: -0.03em; }

/* =========================================================
   Eigene Software statt Abo-Sammlung: Rechner
   Der Rechner nutzt den Markup-Vertrag von agency.js (.calc);
   die Gestaltung steht hier vollständig, unabhängig von leistungen.css.
   ========================================================= */
.sw-abo-sec { border-radius: 44px; }
/* Abo-Rechner steht direkt unter „Was macht Ihr Betrieb?“: beide hellen Abschnitte bilden ein Band ohne dunkle Fuge. */
.picker-sec:has(+ .sw-abo-sec) { border-radius: 44px 44px 0 0; }
.picker-sec + .sw-abo-sec { border-radius: 0 0 44px 44px; padding-top: clamp(24px, 4vw, 56px); }
.sw-abo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.sw-abo__points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: point; }
.sw-abo__points li { display: grid; grid-template-columns: 56px minmax(0, 1fr); row-gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); counter-increment: point; }
.sw-abo__points li::before { content: counter(point, decimal-leading-zero); grid-row: span 2; color: var(--dim); font: 500 1.6rem/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.sw-abo__points h3, .sw-abo__points p { grid-column: 2; }
.sw-abo__points h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; }
.sw-abo__points p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.sw-abo__honest { margin-top: 30px; padding: 18px 22px; border-left: 2px solid var(--ink); border-radius: 0 16px 16px 0; background: var(--paper-card); font-size: 16.5px; line-height: 1.5; }

.sw-abo .calc {
  --text: #f0ebe1; --muted: #a39d92; --dim: #77726a; --line: rgba(240, 235, 225, 0.12); --line-2: rgba(240, 235, 225, 0.2); --on-text: #12100e;
  position: relative; top: auto;
  display: grid; gap: 16px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 28px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 50px 90px -50px rgba(18, 16, 14, 0.7);
}
.sw-abo .calc__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.035em; }
.sw-abo .calc__hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.sw-abo .calc__rows { display: grid; gap: 8px; }
.sw-abo .calc__row { display: grid; grid-template-columns: minmax(0, 1fr) 164px 36px; gap: 8px; align-items: center; }
.sw-abo .calc__row input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; outline: none; background: rgba(255, 255, 255, 0.04); color: var(--text); font: 400 16px/1.2 var(--sans); transition: border-color 0.25s, background-color 0.25s; }
.sw-abo .calc__row input::placeholder { color: var(--dim); }
.sw-abo .calc__row input:focus-visible { border-color: var(--text); background: rgba(255, 255, 255, 0.07); }
.sw-abo .calc__money { position: relative; }
.sw-abo .calc__money input { padding-right: 90px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.sw-abo .calc__money input::-webkit-outer-spin-button, .sw-abo .calc__money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sw-abo .calc__money i { position: absolute; right: 12px; top: 50%; color: var(--muted); font: 400 12px/1 var(--mono); font-style: normal; white-space: nowrap; transform: translateY(-50%); pointer-events: none; }
.sw-abo .calc__del { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.sw-abo .calc__del[disabled] { opacity: 0.3; cursor: not-allowed; }
.sw-abo .calc__del svg, .sw-abo .calc__add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sw-abo .calc__add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px dashed var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: 400 14px/1 var(--sans); cursor: pointer; transition: color 0.25s, border-color 0.25s; }
@media (hover: hover) {
  .sw-abo .calc__del:not([disabled]):hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
  .sw-abo .calc__add:not([disabled]):hover { color: var(--text); border-color: var(--text); }
}
.sw-abo .calc__add[disabled] { opacity: 0.4; cursor: not-allowed; }
.sw-abo .calc__del:focus-visible, .sw-abo .calc__add:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sw-abo .calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.sw-abo .calc__out p { display: grid; gap: 6px; padding: 16px 18px; background: var(--bg); }
.sw-abo .calc__out span { color: var(--muted); font: 400 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sw-abo .calc__out b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-abo .calc__big { grid-column: 1 / -1; }
.sw-abo .calc__big b { font-size: clamp(2.6rem, 4.6vw, 3.8rem); letter-spacing: -0.06em; line-height: 1; }
.sw-abo .calc__fine { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* =========================================================
   Praxisbeispiel BauLog
   ========================================================= */
/* Umschalter: ohne JavaScript stehen alle Bildschirme untereinander. */
.sw-case { position: relative; }
.sw-case__note { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sw-case__tabs { display: none; }
.sw-case__panels { display: grid; gap: 20px; }
.sw-case__panel,
.sw-case.is-tabbed .sw-case__panels {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: radial-gradient(80% 90% at 78% 30%, #23201c 0%, #141311 62%, #121110 100%);
}
.sw-case__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 110px);
  align-items: center;
  margin: 0;
  padding: clamp(28px, 3.4vw, 48px) clamp(28px, 5vw, 80px);
}
.sw-case__panel:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sw-case__text { display: grid; justify-items: start; gap: 18px; max-width: 30em; }
.sw-case__kicker { color: var(--muted); font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.sw-case__text h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.sw-case__text p:not(.sw-case__kicker) { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.6; }

.sw-case.is-tabbed .sw-case__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.sw-case__tabs button {
  position: relative;
  display: flex; align-items: baseline; gap: 10px;
  padding: 18px 2px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 17px/1.2 var(--sans);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.sw-case__tabs button span { font: 400 12px/1 var(--mono); letter-spacing: 0.04em; }
.sw-case__tabs button[aria-selected="true"] { color: var(--text); }
@media (hover: hover) {
  .sw-case__tabs button:hover { color: var(--text); }
}
.sw-case__tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
.sw-case__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line-2); }
.sw-case__bar b { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.sw-case__tabs [aria-selected="true"] .sw-case__bar b { transform: none; }
.sw-case.is-ticking [aria-selected="true"] .sw-case__bar b { animation: sw-fill var(--dur, 7s) linear both; }
.sw-case.is-hold [aria-selected="true"] .sw-case__bar b { animation-play-state: paused; }
@keyframes sw-fill { from { transform: scaleX(0); } }

/* Mit JavaScript: Bildschirme übereinander. Wechsel nacheinander:
   erst blendet der alte Bildschirm in 0,2 s aus, danach blendet der neue ein.
   So stehen nie zwei Texte oder zwei Telefonrahmen halb übereinander. */
.sw-case.is-tabbed .sw-case__panels { gap: 0; }
.sw-case.is-tabbed .sw-case__panel { grid-area: 1 / 1; border: 0; border-radius: 32px; background: none; }
.sw-case.is-tabbed .sw-case__panel[hidden] { display: grid; visibility: hidden; opacity: 0; transition: opacity 0.2s ease-out, visibility 0s linear 0.2s; }
.sw-case.is-tabbed .sw-case__panel:not([hidden]) { opacity: 1; visibility: visible; transition: opacity 0.4s ease-out 0.2s, visibility 0s; }
.sw-case.is-tabbed .sw-case__text > *,
.sw-case.is-tabbed .sw-dev { transition: transform 0.7s var(--out) 0.2s; }
.sw-case.is-tabbed .sw-case__panel[hidden] .sw-case__text > * { transform: translateY(12px); transition-duration: 0s; transition-delay: 0.2s; }
.sw-case.is-tabbed .sw-case__panel[hidden] .sw-dev { transform: translateY(16px); transition-duration: 0s; transition-delay: 0.2s; }
.sw-case.is-tabbed .sw-case__text > :nth-child(2) { transition-delay: 0.24s; }
.sw-case.is-tabbed .sw-case__text > :nth-child(3) { transition-delay: 0.28s; }
.sw-case.is-tabbed .sw-case__text > :nth-child(4) { transition-delay: 0.32s; }

/* Handyrahmen um die echten Bildschirmfotos */
.sw-dev {
  position: relative;
  width: clamp(252px, 20vw, 280px);
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(145deg, #4a453e 0%, #1d1b18 22%, #121110 55%, #26231f 85%, #3d3933 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 2px 1px rgba(255, 255, 255, 0.14),
    0 50px 90px -34px rgba(0, 0, 0, 0.95),
    0 90px 150px -60px rgba(0, 0, 0, 0.8);
}
.sw-dev::before, .sw-dev::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2c2925, #4a453e); }
.sw-dev::before { left: -2px; top: 120px; height: 54px; }
.sw-dev::after { right: -2px; top: 150px; height: 76px; }
.sw-dev__screen { overflow: hidden; border-radius: 41px; background: #fffefb; clip-path: inset(0 round 41px); isolation: isolate; }
.sw-dev__status { position: relative; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 2px 22px 0 28px; color: #201515; }
.sw-dev__status b { font: 600 12.5px/1 var(--sans); letter-spacing: -0.01em; }
.sw-dev__island { position: absolute; left: 50%; top: 9px; width: 76px; height: 22px; margin-left: -38px; border-radius: 999px; background: #000; }
.sw-dev__icons { display: flex; align-items: center; gap: 5px; }
.sw-dev__icons i { width: 15px; height: 9px; border-radius: 2px; background: currentColor; }
.sw-dev__icons i + i { width: 21px; height: 10px; padding: 1px; border: 1.2px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 72%, transparent 72%) content-box; }
.sw-dev img { display: block; width: 100%; height: auto; }
/* Unterer Rand wie beim echten Telefon: Fläche in Bildschirmfarbe mit Home-Leiste,
   damit die Eckrundung die Beschriftungen der Tab-Leiste nicht anschneidet. */
.sw-dev__home { display: flex; justify-content: center; align-items: flex-end; height: 23px; padding-bottom: 7px; background: #fffefb; }
.sw-dev__home i { width: 36%; height: 4px; border-radius: 4px; background: #201515; }


/* =========================================================
   Ablauf und Fragen
   ========================================================= */
.sw-flow-sec { border-top: 1px solid var(--line); border-radius: 0; }
.sw-faq-sec { border-radius: 44px; }
.sw-faq-sec .faq-sec__head a { color: var(--text); text-underline-offset: 4px; }

/* =========================================================
   Responsiv
   ========================================================= */
/* Hero bleibt bis gut 1000 px zweispaltig (leistungen.css bricht schon bei 1180 px um). */
@media (min-width: 1001px) and (max-width: 1180px) {
  .sw-hero .p-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sw-hero .p-hero__text { max-width: none; }
}

/* Einspaltig: Vorführung mittig unter dem Text. */
@media (max-width: 1000px) {
  .sw-duo { margin: 4px auto 0; }
}

@media (max-width: 960px) {
  .sw-parts, .sw-abo, .sw-data { grid-template-columns: 1fr; }
  .sw-data__extra { grid-template-columns: 1fr; margin-top: 0; border-top: 0; }
  .sw-data__extra li { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .sw-ki { position: static; max-width: 640px; }
  .sw-data__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .sw-data__list { grid-template-columns: 1fr; } }

/* Einspaltig: erst Überschrift und Text, darunter das Telefon. */
@media (max-width: 760px) {
  .sw-case__panel { grid-template-columns: 1fr; justify-items: center; gap: 26px; padding: 30px 22px 34px; }
  .sw-case__text { justify-self: stretch; max-width: none; gap: 14px; }
  .sw-case__text h3 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
}

/* Handy: kleinerer Entwurf, Seitenleiste entfällt, das Handy überdeckt die dritte Spalte. */
@media (max-width: 640px) {
  .sw-duo__stage { height: 38em; font-size: calc(100cqw / 40); }
  .sw-pc { top: 0; width: 37.5em; height: 31em; }
  .sw-pc__body { grid-template-columns: minmax(0, 1fr); }
  .sw-pc__side { display: none; }
  .sw-board { --pitch: 11.4em; grid-template-columns: repeat(3, 10.6em); }
  .sw-board__col { min-height: 22em; }
  .sw-ph { width: 16.5em; height: 34em; }
  .sw-duo__cap { font-size: 14px; }
  .sw-parts__list li { grid-template-columns: 1fr; padding: 22px 0; }
  .sw-parts__list p, .sw-abo__points p, .sw-data__list p, .sw-data__extra p,
  .sw-abo .calc__hint, .sw-abo .calc__fine { font-size: 16px; }
  .sw-abo__points li { grid-template-columns: 44px minmax(0, 1fr); }
  /* Rechner: Name und Betrag in einer Zeile, Einheit nur „€“ (pro Monat steht darüber). */
  .sw-abo .calc__row { grid-template-columns: minmax(0, 1fr) 92px 44px; gap: 6px; padding-bottom: 0; border-bottom: 0; }
  .sw-abo .calc__row > input[type="text"] { grid-column: auto; }
  .sw-abo .calc__row input { min-height: 44px; padding: 12px 11px; font-size: 16px; }
  .sw-abo .calc__money input { padding-right: 28px; }
  .sw-abo .calc__money i { right: 11px; }
  .sw-abo .calc__money i span { display: none; }
  .sw-abo .calc__del { width: 44px; height: 44px; }
  .sw-abo .calc__add { min-height: 44px; font-size: 16px; }
  .sw-abo .calc__out p { padding: 14px 16px; }
  .sw-abo .calc__out p:not(.calc__big) b { font-size: 1.35rem; }
  .sw-case__note { margin-bottom: 16px; font-size: 14px; }
  .sw-case.is-tabbed .sw-case__tabs { gap: 6px; margin-bottom: 18px; }
  .sw-case__tabs button { flex-direction: column; gap: 6px; padding: 14px 0 6px; font-size: 15px; }
  .sw-case__panel { gap: 22px; padding: 24px 16px 30px; }
  /* Telefon etwa 60 % der Bildschirmhöhe: 68 px Rahmen, Status- und Home-Leiste, der Rest ist das Bild (390 × 844). */
  .sw-dev { width: clamp(190px, calc((60svh - 68px) * 0.4621 + 18px), 266px); border-radius: 44px; }
  .sw-dev__screen { border-radius: 35px; }
  .sw-dev__status { height: 30px; padding: 2px 16px 0 22px; }
  .sw-dev__status b { font-size: 11px; }
  .sw-dev__island { top: 8px; width: 56px; height: 17px; margin-left: -28px; }
  .sw-dev__icons { gap: 4px; }
  .sw-dev__icons i { width: 12px; height: 7px; }
  .sw-dev__icons i + i { width: 17px; height: 8px; }
  .sw-dev__home { height: 20px; padding-bottom: 6px; }
  .sw-dev::before { top: 96px; height: 44px; }
  .sw-dev::after { top: 122px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sw-duo .sw-card--move, .js .sw-duo .sw-card--move::before, .js .sw-duo .sw-cursor,
  .js .sw-duo .sw-swap > *, .js .sw-duo .sw-ph__row--hit::after, .js .sw-duo .sw-swap { animation: none !important; }
  .sw-case.is-tabbed .sw-case__panel[hidden] .sw-case__text > *, .sw-case.is-tabbed .sw-case__panel[hidden] .sw-dev { transform: none; }
  .sw-bar i, .sw-bar::after, .sw-rank li i, .sw-what__res i { transition: none; }
}
