/* Self-hosted Google Fonts (OFL): Fraunces variable (opsz 9..144, wght 300..900), Manrope variable (wght 300..800). No request to Google, no consent gate. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Atlas OS corporate identity.
   Tokens, fonts, radii, gradients and button treatment are taken verbatim from
   the live site's theme (EasyWeb2.0 - atlasos.ch/theme/assets/css/main.css) so
   the pre-sale app reads as the same product, not a look-alike.
   When the site theme changes, re-copy this block. */
:root {
  --ink: #0B0D12;
  --ink-soft: #151922;
  --ink-raised: #1B2029;
  --fog: #F2EFE9;
  --fog-muted: rgba(242, 239, 233, 0.72);
  --fog-faint: rgba(242, 239, 233, 0.5);
  --line: rgba(242, 239, 233, 0.12);
  --line-strong: rgba(242, 239, 233, 0.22);
  --line-input: rgba(242, 239, 233, 0.32);
  --amber: #FFC24A;
  --amber-soft: #FF7A59;
  --magenta: #F2547D;
  --violet: #A855F7;
  --ok: #5FD39A;
  --spectrum: linear-gradient(120deg, var(--amber) 0%, var(--amber-soft) 38%, var(--magenta) 68%, var(--violet) 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
  --radius-card: 10px;
  --max: 1160px;
  --band-card: rgba(11, 13, 18, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fog);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(168, 85, 247, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 15%, rgba(255, 194, 74, 0.10), transparent 50%),
    linear-gradient(170deg, #080A0E 0%, var(--ink) 45%, #10131A 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); text-decoration: underline; }
/* Never below 13.5px: the densest information on the page sits in <small>. */
small { color: var(--fog-muted); font-size: .85rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }

/* —— Header —— */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(var(--max), 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; }
/* Height only: the logo keeps its own aspect ratio whatever width attribute the
   template carries (logo.svg has a 425x66 viewBox, so 24px tall renders about
   155px wide; the old rule stretched it to 185). */
.brand img { display: block; width: auto; height: 24px; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav__links a:not(.btn) { color: var(--fog-muted); font-weight: 500; font-size: 0.94rem; white-space: nowrap; }
.nav__links a:not(.btn):hover { color: var(--fog); text-decoration: none; }
.nav__links .btn { flex-shrink: 0; white-space: nowrap; }

.wrap { width: min(var(--max), 92%); margin: 0 auto; }
/* Reading-width pages (review, thanks, rueckruf) and short notices (expired,
   cancelled). Replaces the inline max-width on those wrappers. */
.wrap--narrow { max-width: 820px; }
.wrap--tight { max-width: 700px; }
/* Vertical rhythm between blocks that sit directly in a .wrap, so templates
   need no inline margin-top. */
.wrap > .grid + .card,
.wrap > .card + .card,
.wrap > .card + .form { margin-top: 1.1rem; }
.wrap > h2 + .grid { margin-top: 1.2rem; }
.wrap > .grid + .proof { margin-top: 1.4rem; }
.wrap > .card + .alert { margin-top: 1.6rem; }
.wrap > * + .actions { margin-top: 1.2rem; }
/* A card that closes a topic after a grid of cards gets a little more air. */
.card--spaced { margin-top: 1.8rem; }
.grid--top { align-items: start; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--band {
  background: var(--ink-soft);
  border-block: 1px solid var(--line);
}
/* Cards on a band must stay visibly cards: same colour as the band reads flat. */
.section--band .card,
.section--band .job,
.section--band .counter,
.section--band .faq details { background: var(--band-card); }
.eyebrow {
  margin: 0 0 0.75rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.lead { font-size: 1.1rem; color: var(--fog-muted); max-width: 62ch; }

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 56px, rgba(242, 239, 233, 0.025) 56px, rgba(242, 239, 233, 0.025) 57px),
    repeating-linear-gradient(0deg, transparent 0, transparent 56px, rgba(242, 239, 233, 0.025) 56px, rgba(242, 239, 233, 0.025) 57px),
    radial-gradient(ellipse 60% 55% at 78% 40%, rgba(242, 84, 125, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 40% at 15% 80%, rgba(255, 194, 74, 0.12), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 48ch; margin-bottom: 1.6rem; }
/* The grey line of evidence above the buttons: quiet, but not faint. */
.proof {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fog-muted);
  max-width: 52ch;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.actions + .proof, .actions + small { margin-top: 1rem; display: block; }

/* —— Offer card (hero, right column) —— */
.offer-card {
  padding: 1.9rem 1.7rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 194, 74, 0.32);
  background: linear-gradient(165deg, rgba(255, 194, 74, 0.09), rgba(168, 85, 247, 0.07)), rgba(21, 25, 34, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  min-width: 0;
}
.offer-card__label {
  margin: 0 0 0.9rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber);
}
.offer-card__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.offer-card__num + .offer-card__label,
.offer-card__num + p { margin-top: 0.45rem; }
.offer-card > p:not([class]) { margin: 0.4rem 0 0; font-size: 0.95rem; font-weight: 600; }
.offer-card > p:not([class]) small { display: block; font-weight: 400; color: var(--fog-faint); }
.offer-card .bar { margin: 0.9rem 0 1.4rem; background: rgba(242, 239, 233, 0.1); }
.offer-card__rows {
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}
.offer-card__rows > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.offer-card__rows > div:last-of-type { border-bottom: 0; }
.offer-card__rows dt {
  flex-shrink: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fog-faint);
}
.offer-card__rows dd {
  margin: 0; text-align: right;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.offer-card__rows dd small,
.offer-card__rows dd span {
  display: block;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 400;
  color: var(--fog-faint); line-height: 1.4; margin-top: 0.1rem; white-space: normal;
}
.offer-card__rows dd s { color: var(--fog-faint); font-size: 0.95rem; font-weight: 500; margin-right: 0.4rem; text-decoration-thickness: 1px; }
.offer-card__rows--muted { opacity: 0.62; }
.offer-card__note { margin: 1.1rem 0 0; font-size: 0.85rem; font-weight: 400; color: var(--fog-faint); line-height: 1.5; }
.offer-card .actions { margin-top: 1.3rem; }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: var(--radius); padding: 0.75rem 1.25rem;
  font: inherit; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn--primary { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-soft) 100%); color: var(--ink); }
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255,122,89,.28);
  color: var(--ink); text-decoration: none;
}
.btn--ghost { background: transparent; color: var(--fog); border: 1px solid var(--line-strong); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--fog); color: var(--fog); text-decoration: none; }
.btn--lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: none), (max-width: 959px) {
  .nav__links .btn, .btn--sm { min-height: 44px; }
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* —— Counters —— */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0; }
.counter { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.4rem; }
.counter__num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter__num.is-gone { background: none; color: var(--fog-faint); -webkit-text-fill-color: currentColor; }
/* A date is not a headline number: plain fog, no gradient, one size smaller. */
.counter__num.counter__num--plain {
  background: none; color: var(--fog); -webkit-text-fill-color: var(--fog);
  font-size: 1.6rem; line-height: 1.2;
}
.counter__label { font-weight: 600; margin: .5rem 0 .2rem; }
.counter small { display: block; color: var(--fog-faint); }
.bar { height: 5px; background: var(--ink-raised); border-radius: 99px; overflow: hidden; margin-top: .85rem; }
.bar__fill { height: 100%; border-radius: 99px; background: var(--spectrum); transition: width .8s cubic-bezier(.22, 1, .36, 1); }

/* —— Cards —— */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--2 { grid-template-columns: 1fr; }
/* auto-fit with a 320px minimum gave THREE columns in the 1160px wrap, so a
   four-card section rendered 3 + 1 with the last card orphaned. Two means two. */
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 1.6rem; min-width: 0; }
.card--hi { border-color: rgba(255,194,74,.45); box-shadow: 0 0 0 1px rgba(255,194,74,.08) inset; }
.card h3 { margin-top: 0; }
.tag + h3 { margin-top: .8rem; }
/* "CHF 1'200.00" must never split across lines; only the parts may wrap. */
.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem;
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1;
  margin: .4rem 0 .2rem; white-space: nowrap;
}
.price s { color: var(--fog-faint); font-size: 1.05rem; font-weight: 500; margin-right: 0; text-decoration-thickness: 1px; }
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 400; white-space: normal; }
.price-inline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem;
  margin: .4rem 0 .2rem;
}
.price-inline s {
  color: var(--fog-faint); font-size: 1.05rem; font-weight: 500;
  white-space: nowrap; text-decoration-thickness: 1px;
}
.price-inline__now {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
}
.price-inline small { flex-basis: 100%; }
.tag {
  display: inline-block; background: rgba(255,194,74,.14); color: var(--amber);
  border: 1px solid rgba(255,194,74,.35); border-radius: 99px;
  padding: .2rem .7rem; font-size: .78rem; font-weight: 600;
}
.tag--muted { background: rgba(242,239,233,.08); color: var(--fog-muted); border-color: var(--line-strong); }
.tag--ok { background: rgba(95,211,154,.12); color: var(--ok); border-color: rgba(95,211,154,.4); }

ul.check { list-style: none; padding: 0; margin: 1rem 0; }
ul.check li { padding-left: 1.6rem; position: relative; margin-bottom: .6rem; color: var(--fog-muted); }
ul.check li strong { color: var(--fog); display: block; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
ul.check--muted li::before { content: "–"; color: var(--fog-faint); }

/* —— "Was Atlas tut": job cards with a situation or quote as title —— */
.jobs { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
/* Fixed track counts: auto-fit with a 260px minimum fitted four tracks into the
   1160px wrap, so the six cards rendered 4 + 2 with half of row two empty. */
@media (min-width: 700px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.job {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(21, 25, 34, 0.55);
  min-width: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.job:hover { border-color: rgba(255, 194, 74, 0.4); transform: translateY(-2px); }
.job h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 .6rem; color: var(--fog);
}
.job p { margin: 0; font-size: .94rem; color: var(--fog-muted); }
.job p + p { margin-top: .5rem; }
.job small { display: block; margin-top: .7rem; color: var(--fog-faint); }

/* —— FAQ: native <details>, styled as card rows —— */
.faq { margin-top: 1.5rem; }
.faq details {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: .6rem;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 3rem 1rem 1.2rem;
  font-weight: 600; font-size: 1.02rem; line-height: 1.4;
  color: var(--fog);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "";
  position: absolute; right: 1.25rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--amber); }
.faq summary:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; border-radius: var(--radius-card); }
.faq details p, .faq details ul, .faq details ol {
  margin: 0; padding: 0 1.2rem 1.1rem;
  max-width: 70ch; line-height: 1.7; color: var(--fog-muted);
}
.faq details ul, .faq details ol { padding-left: 2.4rem; }
.faq details p + p { padding-top: 0; margin-top: -.3rem; }

/* —— Forms —— */
.form { background: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(1.2rem, 3vw, 2rem); }
fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: .9rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=password], select, textarea {
  width: 100%; background: var(--ink); color: var(--fog);
  border: 1px solid var(--line-input); border-radius: var(--radius);
  padding: .7rem .85rem; font: inherit; font-size: 1rem;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(242, 239, 233, 0.55); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.field { margin-bottom: 1.1rem; }
.row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row--zip { grid-template-columns: 6rem minmax(0, 1fr); }
.choice {
  display: flex; gap: .7rem; align-items: flex-start; background: var(--ink);
  border: 1px solid var(--line-input); border-radius: var(--radius);
  padding: .85rem 1rem; margin-bottom: .7rem; cursor: pointer; font-weight: 400;
}
.choice:hover { border-color: var(--amber); }
.choice:has(input:checked) { border-color: var(--amber); }
.choice:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 1px; }
.choice input { margin-top: .25rem; accent-color: var(--amber); flex: none; }
.choice span { font-size: .94rem; color: var(--fog-muted); min-width: 0; }
/* Only the first <strong> of a card is its title; every later one stays in
   the sentence (the old block rule cut "Mindestlaufzeit 12 Monate" onto its
   own line with a stray full stop). */
.choice strong { display: inline; font-size: inherit; color: var(--fog); }
.choice span > strong:first-child { display: block; font-size: 1rem; margin-bottom: .15rem; }
.choice--secondary { border-style: dashed; background: transparent; }
.choice--secondary span { font-size: .88rem; }
.choice--secondary span > strong:first-child { font-size: .95rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .4rem; }
.checks .choice { margin-bottom: 0; padding: .6rem .8rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Segmented control (Firma / Privatperson). The radios stay in the tab order
   and keep their semantics; only their box is clipped away. */
.seg {
  position: relative;
  display: inline-flex; flex-wrap: wrap; gap: 3px;
  max-width: 100%;
  padding: 3px;
  background: var(--ink);
  border: 1px solid var(--line-input);
  border-radius: 6px;
  margin-bottom: 1.1rem;
}
.seg label { display: block; margin: 0; font-weight: 600; font-size: inherit; }
.seg input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.seg span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 4px;
  font-size: .92rem; font-weight: 600; color: var(--fog-muted);
  cursor: pointer; user-select: none;
  transition: background .15s ease, color .15s ease;
}
.seg span:hover { color: var(--fog); }
.seg input:checked + span { background: var(--amber); color: var(--ink); }
.seg input:focus-visible + span { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--amber); }

/* Collapsible groups inside the form (systems list, reservations). */
.form details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1rem; margin-bottom: 1.1rem; background: var(--ink); }
.form details summary { cursor: pointer; padding: .8rem 0; font-weight: 600; font-size: .95rem; list-style: revert; }
.form details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.form details > :last-child { margin-bottom: .9rem; }
.form details > .field { margin-top: .8rem; }
.form details > .checks + .field { margin-top: 1rem; }
.form details > p { margin: 0 0 .4rem; }
.form details > .checks + p { margin-top: 1.1rem; }
/* One-line note that belongs to the row of fields above it. */
.field-note { margin: -.4rem 0 1rem; }

/* Live quote next to the form: sticky on desktop, a normal card on mobile. */
.form--grid > .quote-aside,
.quote-aside {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.25rem;
  margin-bottom: 1.3rem;
  min-width: 0;
}
.quote-aside h2, .quote-aside h3 { font-size: 1.05rem; margin: 0 0 .7rem; }
.quote-aside table.totals { margin: .3rem 0; }
.quote-aside table.totals td { padding: .45rem 0; font-size: .94rem; }
.quote-aside table.totals tr.sum td { font-size: 1.1rem; }
.quote-aside small { display: block; margin-top: .6rem; }
.quote-aside .btn { margin-top: .9rem; }
.quote-aside[hidden] { display: none; }
.legal-note { margin: .8rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--fog-faint); }
.legal-note a { color: var(--fog-muted); text-decoration: underline; }

.alert { border-radius: var(--radius-card); padding: .95rem 1.15rem; margin-bottom: 1.3rem; border: 1px solid; }
.alert--err { background: rgba(242,84,125,.1); border-color: var(--magenta); color: #ffd9e2; }
.alert--info { background: rgba(255,194,74,.08); border-color: rgba(255,194,74,.4); }
.alert--ok { background: rgba(95,211,154,.1); border-color: var(--ok); color: #cdf3e2; }
.alert p:last-child { margin-bottom: 0; }

table.totals { width: 100%; border-collapse: collapse; margin: 1rem 0; }
table.totals td { padding: .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.totals td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.totals tr.sum td { border-bottom: 0; font-weight: 700; font-size: 1.15rem; padding-top: .9rem; }
table.totals tr.sum td:last-child { color: var(--amber); }
.qty { color: var(--fog-faint); font-size: .85rem; }

table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
table.data th { color: var(--fog-faint); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
.scroll { overflow-x: auto; }

/* —— Sticky order bar (mobile only, landing only) —— */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem max(0.9rem, env(safe-area-inset-left)) calc(0.7rem + env(safe-area-inset-bottom)) max(0.9rem, env(safe-area-inset-right));
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 194, 74, 0.24);
}
.sticky-cta__text { min-width: 0; }
.sticky-cta__text strong { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.sticky-cta__text span, .sticky-cta__text small { display: block; font-size: 0.85rem; color: var(--fog-faint); line-height: 1.3; }
.sticky-cta .btn { flex-shrink: 0; min-height: 44px; padding: 0.65rem 1rem; font-size: 0.86rem; white-space: nowrap; }
.sticky-cta[hidden] { display: none; }

.foot { border-top: 1px solid var(--line); background: rgba(8,10,14,.6); margin-top: 3rem; padding-block: 2.5rem 1.5rem; }
.foot__inner { width: min(var(--max), 92%); margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot p { font-size: .9rem; color: var(--fog-muted); }
.foot strong { display: block; margin-bottom: .5rem; }
.foot__bottom { width: min(var(--max), 92%); margin: 2rem auto 0; font-size: .85rem; color: var(--fog-faint); }

/* —— Desktop: two-column hero and form with sticky quote —— */
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; }
  .form--grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
  }
  .form--grid > * { grid-column: 1; min-width: 0; }
  .form--grid > .quote-aside {
    /* Column 1 holds exactly two blocks (fields, submit). Spanning 20 rows
       created 18 empty tracks whose 2rem gaps stacked to ~577px of blank
       space under the submit button. */
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky; top: 84px;
    margin-bottom: 0;
  }
}

/* —— Tablet —— */
@media (max-width: 959px) {
  .form--grid > .quote-aside { position: static; }
}

/* —— Phone —— */
@media (max-width: 640px) {
  .nav__inner { padding: 0.6rem 0; flex-wrap: wrap; row-gap: .35rem; }
  .nav__links { margin-left: auto; justify-content: flex-end; gap: .35rem .8rem; }
  /* Logo and call to action on one row. Hiding only the first text link left
     three links plus a wide ghost button, which wrapped the sticky header to
     three rows (116px measured on /bestellen at 390px) over the order form.
     The footer keeps the link to the website, so nothing is unreachable. */
  .nav__links a:not(.btn) { display: none; }
  .brand img { height: 18px; }
  .card { padding: 1.2rem; }
  .grid--2, .grid--3, .checks, .counters, .jobs { grid-template-columns: 1fr; }
  .offer-card { padding: 1.5rem 1.25rem; }
  .offer-card__num { font-size: 3rem; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .sticky-cta { display: flex; }
  body:has(.sticky-cta:not([hidden])) { padding-bottom: 84px; }
  .faq summary { padding: .9rem 2.6rem .9rem 1rem; font-size: .98rem; }
  .faq summary::after { right: 1rem; }
  .faq details p, .faq details ul, .faq details ol { padding-left: 1rem; padding-right: 1rem; }
  .faq details ul, .faq details ol { padding-left: 2.2rem; }
  .seg { display: flex; }
  .seg label { flex: 1; }
  .seg span { width: 100%; }
  .quote-aside .btn { width: 100%; }
}

/* Older engines without :has(): the bar is fixed but body gets no padding,
   so it sits on top of the footer's last line. Fall back to a sticky bar
   that stops above the footer instead of covering it. */
@supports not selector(:has(a)) {
  @media (max-width: 640px) {
    .sticky-cta { position: sticky; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .job, .bar__fill, .faq summary::after, .seg span { transition: none; }
  .btn--primary:hover, .job:hover { transform: none; }
}
