/* Softwareentwicklung (programmierung.html, body.sw).
   Gleiches Design-System wie die Fixpreis-Seite – Farben, Schrift, Abstände,
   Browser-Fenster, Häkchen, tieferes Orange hinter weißer Schrift, oranger
   Abschluss mit Ansprechpartner – aber eigene Komposition: linksbündiger Hero
   mit gestaffeltem Fenster-Stapel, Etappen-Leiste beim Ablauf, Plan-Tabelle. */

body.sw {
  --sw-ink: #0F1117;
  --sw-muted: #5D626D;
  --sw-line: rgba(15, 17, 23, 0.09);
  --sw-tint: #FFF6F2;
  --sw-grey: #F7F7F8;
  --sw-orange-text: #C8432A;
  --sw-orange-deep: #C8432A;
  --sw-orange-deeper: #B03A23;
  --sw-ease: cubic-bezier(.16, 1, .3, 1);
  background: #fff;
}
body.sw ::selection { background: #FFD9CC; color: var(--sw-ink); }
body.sw :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sw .btn-primary, .sw .mobile-cta-bar .btn { background: var(--sw-orange-deep); color: #fff; }
.sw .btn-primary:hover, .sw .mobile-cta-bar .btn:hover { background: var(--sw-orange-deeper); }
.sw .footer-tagline { color: #9A9CA3; }
.sw .footer-links a { color: #A4A6AD; }
.sw .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sw-h2 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; color: var(--sw-ink); text-wrap: balance; }
.sw-sub { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: var(--sw-muted); text-wrap: pretty; }

/* ===== HERO ===== */
.sw-hero { min-height: calc(calc(100vh / var(--z, 1)) - var(--navh)); min-height: calc(calc(100svh / var(--z, 1)) - var(--navh)); display: flex; align-items: center; padding: 72px 1.5rem 56px; background: linear-gradient(180deg, var(--sw-tint) 0%, #fff 82%); overflow: hidden; overflow: clip; }
.sw-hero-inner { width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.sw-title { margin: 0 0 22px; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.03; letter-spacing: -0.042em; font-weight: 800; color: var(--sw-ink); text-wrap: balance; }
.sw-title-accent { display: block; color: var(--orange); }
.sw-lead { margin: 0 0 30px; max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--sw-muted); text-wrap: pretty; }
.sw-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.sw-trust { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 500; color: var(--sw-ink); }
.sw-trust li { display: inline-flex; align-items: center; gap: 7px; }
.sw-trust svg { flex: none; color: var(--sw-orange-text); }
.sw-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 22px; border-top: 1px solid var(--sw-line); font-size: 14.5px; color: var(--sw-muted); }
.sw-contact-person { display: inline-flex; align-items: center; gap: 10px; flex-basis: 100%; }
.sw-contact-person img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sw-contact-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; color: var(--sw-ink); text-decoration: none; }
.sw-contact-link svg { color: var(--sw-orange-text); }
.sw-contact-link:hover { color: var(--sw-orange-text); }

/* Fenster-Stapel: drei gleich große Fenster, versetzt hintereinander.
   --o (0..1) fächert sie beim Scrollen leicht auf (software.js). */
.sw-stack { --o: 0; position: relative; aspect-ratio: 1 / 0.78; }
.sw-card { position: absolute; width: 74%; margin: 0; transition: transform .6s var(--sw-ease); }
.sw-card figcaption { position: absolute; z-index: 4; top: 40px; right: -16px; margin: 0; padding: 5px 12px; white-space: nowrap; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--sw-ink); box-shadow: 0 0 0 1px var(--sw-line), 0 6px 14px -8px rgba(15,17,23,0.25); }
.sw-card .bframe { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(15,17,23,0.05), 0 26px 50px -24px rgba(15,17,23,0.35); }
.sw-card .bframe img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.sw-card-1 { top: 0; left: 0; z-index: 1; transform: translate(calc(var(--o) * -14px), calc(var(--o) * -10px)); }
.sw-card-2 { top: 23%; left: 13%; z-index: 2; transform: translate(0, calc(var(--o) * 6px)); }
.sw-card-3 { top: 46%; left: 26%; z-index: 3; transform: translate(calc(var(--o) * 14px), calc(var(--o) * 22px)); }
.sw-card-1 .bframe img, .sw-card-2 .bframe img { filter: saturate(0.9); }
@media (prefers-reduced-motion: no-preference) {
  .sw-card { animation: sw-in .9s var(--sw-ease) both; }
  .sw-card-2 { animation-delay: .1s; }
  .sw-card-3 { animation-delay: .2s; }
}
@keyframes sw-in { from { opacity: 0; translate: 0 24px; } }

.sw-claim { margin: 0; padding: 40px 1.5rem 96px; text-align: center; font-size: clamp(24px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; color: var(--sw-ink); text-wrap: balance; }
.sw-claim span { color: var(--orange); }

/* ===== ABLAUF: Etappen-Leiste ===== */
.sw-flow { background: var(--sw-grey); border-top: 1px solid var(--sw-line); }
.sw-flow-track { --p: 1; position: relative; }
.sw-flow-stage { padding: 104px 1.5rem 96px; }
.sw-flow-inner { max-width: 1180px; }
.sw-flow-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.sw-flow-head .sw-h2 { margin: 0; max-width: 12ch; }
.sw-rail { position: relative; height: 4px; margin: 0 calc(100% / 8); border-radius: 2px; background: rgba(15,17,23,0.1); }
.sw-rail-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 2px; background: var(--orange); }
.sw-steps { list-style: none; margin: -20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sw-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 22px 26px; border-radius: 16px; transition: background-color .4s, box-shadow .4s var(--sw-ease), transform .4s var(--sw-ease); }
.sw-step-node {
  align-self: center; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 26px; border-radius: 50%;
  background: var(--sw-orange-deep); color: #fff; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--sw-grey); transition: background-color .3s, color .3s;
}
.sw-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--sw-ink); }
.sw-step-tag { margin: 0 0 12px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--sw-orange-text); box-shadow: inset 0 0 0 1px rgba(200,67,42,0.25); }
.sw-step-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sw-muted); }
.is-live .sw-step-node { background: #fff; color: var(--sw-muted); box-shadow: 0 0 0 6px var(--sw-grey), inset 0 0 0 1.5px rgba(15,17,23,0.2); }
.is-live .sw-step.is-on .sw-step-node { background: var(--sw-orange-deep); color: #fff; box-shadow: 0 0 0 6px var(--sw-grey); }
.is-live .sw-step.is-on.is-active { background: #fff; box-shadow: 0 2px 6px rgba(15,17,23,0.04), 0 24px 44px -26px rgba(15,17,23,0.3); }
.is-live .sw-step.is-on.is-active .sw-step-node { box-shadow: 0 0 0 6px #fff; }
.is-live .sw-step:not(.is-on) h3 { color: var(--sw-muted); }

@media (min-width: 901px) and (min-height: 640px) {
  .sw-flow-track.is-live { height: calc(230vh / var(--z, 1)); }
  .sw-flow-track.is-live .sw-flow-stage { position: sticky; top: var(--navh); height: calc(calc(100vh / var(--z, 1)) - var(--navh)); display: flex; align-items: center; padding: 40px 1.5rem; }
  .sw-flow-track.is-live .sw-flow-inner { width: 100%; }
}

/* ===== ORIENTIERUNG: Plan-Tabelle ===== */
.sw-plans { padding: 112px 1.5rem; background: #fff; border-top: 1px solid var(--sw-line); }
.sw-plans-inner { max-width: 1180px; }
.sw-plans-head { max-width: 760px; margin-bottom: 52px; }
.sw-tabs { display: none; }
.sw-table { display: grid; grid-template-columns: minmax(200px, 1.1fr) repeat(3, minmax(0, 1fr)); }
.sw-row { display: contents; }
.sw-row > * { padding: 16px 22px; border-top: 1px solid var(--sw-line); display: flex; align-items: center; font-size: 15.5px; line-height: 1.4; }
.sw-row > :first-child { padding-left: 0; }
.sw-row-label { font-weight: 600; color: var(--sw-ink); }
.sw-cell { justify-content: center; }
.sw-row-head > * { border-top: 0; align-items: stretch; }
.sw-plan { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 6px 14px; padding: 26px 22px 22px !important; border-radius: 16px; background: var(--sw-grey); }
.sw-plan h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--sw-ink); }
.sw-plan > p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--sw-muted); }
.sw-plan-price { margin: auto 0 0 !important; display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--sw-line); width: 100%; }
.sw-plan-price span, .sw-plan-time span { font-size: 12.5px; font-weight: 600; color: var(--sw-muted); }
.sw-plan-price strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--sw-ink); font-variant-numeric: tabular-nums; }
.sw-plan-time { margin: 6px 0 0 !important; display: flex; flex-direction: column; font-size: 15px; font-weight: 700; color: var(--sw-ink); }
.sw-mark, .sw-dash { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; }
.sw-mark { background: var(--sw-orange-deep); color: #fff; }
.sw-dash { background: rgba(15,17,23,0.07); color: var(--sw-muted); }
.sw-row:last-child > * { border-bottom: 1px solid var(--sw-line); }

/* ===== PROJEKTE ===== */
.sw-case { padding: 112px 1.5rem; background: var(--sw-grey); border-top: 1px solid var(--sw-line); }
.sw-case-alt { background: #fff; }
.sw-case-inner { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.sw-case-alt .sw-case-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sw-case-alt .sw-case-media { order: 2; }
.sw-case-media { position: relative; }
.sw-case-media .bframe { border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(15,17,23,0.05), 0 30px 60px -30px rgba(15,17,23,0.4); }
.sw-case-media .bframe img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sw-badge { position: absolute; left: 18px; top: 56px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.94); font-size: 12.5px; font-weight: 700; color: var(--sw-ink); box-shadow: 0 6px 16px -8px rgba(15,17,23,0.4); }
.sw-case-text { margin: 0 0 24px; max-width: 52ch; font-size: 16.5px; line-height: 1.65; color: var(--sw-muted); }
.sw-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.sw-list-2 { grid-template-columns: 1fr; }
.sw-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--sw-ink); }
.sw-list svg { margin-top: 3px; color: var(--sw-orange-text); }

/* ===== ABSCHLUSS ===== */
.sw-cta { padding: 24px 1.5rem 96px; background: #fff; }
.sw-cta-inner { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: center; padding: 56px 64px; border-radius: 22px; background: var(--sw-orange-deep); color: #fff; }
.sw-cta h2 { margin: 0 0 12px; max-width: 20ch; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.035em; color: #fff; }
.sw-cta p { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: #fff; }
.sw-cta-act { display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-width: 280px; }
.sw-cta-person { display: flex; align-items: center; gap: 14px; }
.sw-cta-person img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }
.sw-cta-person > span { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.35; color: #fff; }
.sw-cta-person strong { font-size: 16px; }
.sw-cta .btn-white { justify-content: center; color: var(--sw-ink); border-radius: 8px; }

/* ===== Tablet ===== */
@media (max-width: 1080px) {
  .sw-hero-inner { gap: 40px; }
  .sw-steps { gap: 12px; }
  .sw-step { padding: 0 14px 22px; }
  .sw-cta-inner { padding: 48px 44px; }
}

/* ===== Handy & kleine Tablets ===== */
@media (max-width: 900px) {
  .sw-hero { padding: 48px 1.25rem 32px; }
  .sw-hero-inner { grid-template-columns: 1fr; }
  .sw-stack { max-width: 520px; width: 100%; margin: 8px auto 0; }
  .sw-claim { padding: 32px 1.25rem 72px; }

  .sw-flow-stage { padding: 80px 1.25rem 72px; }
  .sw-flow-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  /* Etappen senkrecht: die Leiste läuft links an den Punkten entlang */
  .sw-flow-inner { position: relative; }
  .sw-rail { position: absolute; left: calc(1.25rem + 17px); top: var(--rail-top, 240px); bottom: 72px; width: 3px; height: auto; margin: 0; }
  .sw-rail-fill { inset: 0 0 auto 0; width: auto; height: calc(var(--p) * 100%); }
  .sw-steps { margin: 0; grid-template-columns: 1fr; gap: 10px; }
  .sw-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 18px; padding: 16px 16px 18px 0; }
  .sw-step-node { grid-row: 1 / span 3; align-self: start; margin: 0; }
  .sw-step h3, .sw-step-tag, .sw-step-text { grid-column: 2; }
  .sw-step-tag { justify-self: start; }
  .is-live .sw-step.is-on.is-active { box-shadow: none; background: none; }

  .sw-plans { padding: 80px 1.25rem; }
  .sw-plans-head { margin-bottom: 32px; }
  .sw-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 20px; border-radius: 12px; background: var(--sw-grey); }
  .sw-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--sw-muted); cursor: pointer; }
  .sw-tabs button[aria-selected="true"] { background: #fff; color: var(--sw-ink); box-shadow: 0 2px 8px -4px rgba(15,17,23,0.3); }
  .sw-table { grid-template-columns: minmax(0, 1fr) auto; }
  .sw-table [data-col] { display: none; }
  .sw-table[data-plan="1"] [data-col="1"], .sw-table[data-plan="2"] [data-col="2"], .sw-table[data-plan="3"] [data-col="3"] { display: flex; }
  .sw-row-head > .sw-row-label { display: none; }
  .sw-row-head > .sw-plan { grid-column: 1 / -1; margin: 0 0 12px; }
  .sw-row > * { padding: 14px 0; font-size: 15px; }
  .sw-cell { padding-left: 16px !important; }

  .sw-case { padding: 80px 1.25rem; }
  .sw-case-inner, .sw-case-alt .sw-case-inner { grid-template-columns: 1fr; gap: 36px; }
  .sw-case-alt .sw-case-media { order: 0; }

  .sw-cta-inner { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 640px) {
  .sw-title { font-size: clamp(32px, 9.2vw, 40px); }
  .sw-lead { font-size: 16.5px; }
  .sw-hero-buttons { flex-direction: column; }
  .sw-hero-buttons .btn { width: 100%; justify-content: center; }
  .sw-trust { flex-direction: column; gap: 6px; }
  .sw-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .sw-contact-person { grid-column: 1 / -1; }
  .sw-contact-link { justify-content: center; min-height: 46px; padding: 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(15,17,23,0.12); font-size: 14px; white-space: nowrap; }
  .sw-contact-link:first-of-type { grid-column: 1 / -1; }
  .sw-stack { aspect-ratio: 1 / 1.1; }
  .sw-card figcaption { top: 34px; right: -6px; }
  .sw-card { width: 80%; }
  .sw-card-2 { left: 10%; }
  .sw-card-3 { left: 20%; }
  .sw-card figcaption { font-size: 12px; padding: 4px 10px; margin-bottom: 8px; }
  .sw-case-media .bframe-bar { padding: 6px 10px; }
  .sw-badge { left: 12px; top: 48px; font-size: 12px; }
  .sw-cta { padding: 8px 16px 72px; }
  .sw-cta-inner { padding: 32px 22px; border-radius: 18px; }
  .sw-cta-act { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-card, .sw-step, .sw-step-node { transition: none; animation: none; }
}

@media (min-width: 761px) and (max-width: 1366px) and (orientation: portrait) and (min-height: 1000px) {
  /* Tablets hochkant (iPad Pro): Hero untereinander, größer – füllt die Höhe */
  .sw-hero-inner { grid-template-columns: 1fr; gap: 56px; max-width: 760px; }
  .sw-title { font-size: clamp(54px, 7.4vw, 76px); }
  .sw-lead { font-size: 20px; max-width: 40ch; }
  .sw-stack { max-width: 640px; width: 100%; margin: 0 auto; }
}
