/* ============================================================
   Computerhëllef — Reparatur mit Abholung, Store, Ankauf.
   Ergaenzt styles.css, ersetzt es nicht: dieselben Marken, dieselben
   Farben, dieselben Knoepfe. Hier stehen nur die Bauteile, die es auf
   der gewachsenen Seite noch nicht gab.

   Die Kundschaft ist aelter. Daraus folgt konkret:
     - Tippflaechen mindestens 48 px hoch. Ein Knopf, den man zweimal
       treffen muss, ist kaputt.
     - Keine Information nur ueber Farbe. Jede Farbe hat ein Wort daneben.
     - Keine Umschalter, die aussehen wie Zierde. Was anklickbar ist,
       sieht anklickbar aus, und zwar auch im ausgeschalteten Zustand.
     - Preise in grossen Zahlen, Erklaerung darunter, nie umgekehrt.
     - Kein Zahlenwert ohne Einheit, kein Datum ohne Wochentag.
   ============================================================ */

:root {
  --ok: #156B3A;
  --ok-bg: #E7F6ED;
  --warn-ink: #8A4B07;
  --warn-bg: #FDF2E2;
  --err-ink: #A4231A;
  --err-bg: #FCECEA;
  --tap: 48px;
}

/* ---------- Brotkrumen ---------- */
.crumbs { padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.93rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--blue); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Hinweiskasten ---------- */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px; margin: 20px 0;
  font-size: 1rem; line-height: 1.55;
  border: 1px solid transparent;
}
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.note p { margin: 0; }
.note-info { background: var(--tint); border-color: var(--tint-border); color: var(--ink); }
.note-info svg { color: var(--blue-deep); }
.note-ok { background: var(--ok-bg); border-color: #BEE6CF; color: #0F4F2B; }
.note-ok svg { color: var(--ok); }
.note-warn { background: var(--warn-bg); border-color: #F3DCB8; color: var(--warn-ink); }
.note-warn svg { color: var(--warn-ink); }
.note-err { background: var(--err-bg); border-color: #F3C9C5; color: var(--err-ink); }
.note-err svg { color: var(--err-ink); }

/* ---------- Grosser Knopf ---------- */
.btn-big { padding: 19px 34px; font-size: 1.12rem; border-radius: 19px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.45; pointer-events: none; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
/* `.btn` traegt `white-space: nowrap`, und eine lange Beschriftung schiebt
   damit die ganze Seite waagerecht hinaus. Im Luxemburgischen passiert das
   als Erstes ("Nach en Apparat dobäisetzen"), aber es ist kein Problem EINER
   Sprache: wer morgen eine Leistung laenger benennt, hat es wieder. Auf dem
   Telefon darf die Beschriftung darum umbrechen. */
@media (max-width: 520px) {
  .btn-row .btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* ---------- Vier Schritte ---------- */
.flow { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.flow-i {
  background: var(--card); border: 1px solid var(--tint-border);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-soft);
}
.flow-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--blue-deep); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  margin-bottom: 16px;
}
.flow-i h3 { font-size: 1.14rem; margin-bottom: 8px; }
.flow-i p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Standard gegen Express ---------- */
.levels { display: grid; gap: 20px; margin-top: 38px; }
@media (min-width: 820px) { .levels { grid-template-columns: 1fr 1fr; } }
.level {
  position: relative; background: var(--card); border: 2px solid var(--tint-border);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-soft);
}
.level.pick { border-color: var(--blue-deep); box-shadow: var(--shadow); }
.level-tag {
  position: absolute; top: -13px; left: 26px; background: var(--blue-deep); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 13px; border-radius: 9px;
}
.level h3 { font-size: 1.42rem; }
.level-price { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; margin: 10px 0 4px; }
.level-price small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); display: block; }
.level ul { list-style: none; display: grid; gap: 11px; margin-top: 20px; }
.level li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; }
.level li svg { width: 21px; height: 21px; flex: none; color: var(--ok); margin-top: 3px; }
.level li.no svg { color: var(--ink-soft); }
.level-note { margin-top: 18px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Festpreiskatalog ---------- */
.cat { margin-top: 36px; }
.cat-group + .cat-group { margin-top: 34px; }
.cat-group h3 {
  font-size: 1.06rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 14px;
}
.price-list {
  background: var(--card); border: 1px solid var(--tint-border);
  border-radius: var(--radius); overflow: hidden;
}
.price-row {
  display: flex; align-items: baseline; gap: 16px; justify-content: space-between;
  padding: 17px 22px; border-top: 1px solid var(--tint-border);
}
.price-row:first-child { border-top: none; }
.price-row .pl { font-weight: 600; font-size: 1.05rem; }
.price-row .pn { display: block; font-weight: 400; font-size: 0.93rem; color: var(--ink-soft); margin-top: 3px; }
.price-row .pv {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- Pakete ---------- */
.pkgs { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 700px) { .pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
.pkg {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
}
.pkg h3 { font-size: 1.22rem; }
.pkg-price { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; margin: 8px 0 12px; }
.pkg p { color: var(--ink-soft); }
.pkg ul { list-style: none; display: grid; gap: 9px; margin: 16px 0 20px; }
.pkg li { display: flex; gap: 9px; font-size: 0.99rem; }
.pkg li svg { width: 19px; height: 19px; flex: none; color: var(--ok); margin-top: 3px; }
.pkg .btn { margin-top: auto; }

/* ---------- Gebietspruefung ---------- */
.area-box {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-soft); max-width: 640px;
}
.area-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.area-form label { flex: 1 1 140px; }
.area-form .btn { flex: none; }
.area-out { margin-top: 16px; }
.area-map { margin-top: 24px; display: grid; gap: 10px; }
.area-reg {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-radius: 14px; border: 1px solid var(--tint-border); background: var(--cream);
  font-size: 1rem;
}
.area-reg.on { background: var(--ok-bg); border-color: #BEE6CF; }
.area-reg b { font-family: var(--font-display); }
.area-reg .n { margin-left: auto; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Formulare, grosse Tippflaechen ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-soft);
}
.fgrid { display: grid; gap: 18px; }
@media (min-width: 680px) { .fgrid.two { grid-template-columns: 1fr 1fr; } }
.fgrid label, .area-form label, .form-card label {
  display: grid; gap: 7px; font-weight: 600; font-size: 1rem;
}
.fgrid label .hint, .form-card label .hint {
  font-weight: 400; font-size: 0.92rem; color: var(--ink-soft);
}
.fgrid input, .fgrid select, .fgrid textarea,
.area-form input, .form-card input, .form-card select, .form-card textarea {
  min-height: var(--tap); padding: 13px 15px; font-family: var(--font-body);
  font-size: 1.05rem; color: var(--ink); background: #fff;
  border: 2px solid var(--tint-border); border-radius: 14px; width: 100%;
}
.fgrid textarea, .form-card textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.fgrid input:focus, .fgrid select:focus, .fgrid textarea:focus,
.area-form input:focus, .form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(29, 95, 224, 0.16);
}
.req { color: var(--err-ink); }
.ferr { color: var(--err-ink); font-size: 0.95rem; margin-top: 6px; font-weight: 600; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--err-ink); background: var(--err-bg);
}

/* Auswahl als grosse Flaechen statt als Haekchen. Ein Haekchen von 14 px
   trifft nicht jeder, und die Beschriftung daneben ist dann nutzlos. */
.pick-grid { display: grid; gap: 12px; }
@media (min-width: 620px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .pick-grid.three { grid-template-columns: repeat(3, 1fr); } }
.pick {
  display: flex; gap: 13px; align-items: flex-start; cursor: pointer;
  padding: 16px 18px; min-height: var(--tap);
  background: #fff; border: 2px solid var(--tint-border); border-radius: 16px;
  font-weight: 500; font-size: 1.02rem; transition: border-color 0.15s, background 0.15s;
}
.pick:hover { border-color: var(--blue); }
/* Das Feld liegt GENAU auf dem sichtbaren Kaestchen und ist 26 px gross,
   nur durchsichtig. Ein Feld von 1 px gilt dem Browser als unsichtbar: er
   verweigert die Pflichtmeldung dann ohne jeden Hinweis, und der Besucher
   steht vor einem Formular, das nicht abschickt und nichts sagt. */
.pick { position: relative; }
.pick input {
  position: absolute; left: 18px; top: 17px; width: 26px; height: 26px;
  margin: 0; opacity: 0; cursor: pointer;
}
.pick .box {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  border: 2px solid var(--ink-soft); background: #fff; display: grid; place-items: center;
  margin-top: 1px;
}
.pick .box svg { width: 18px; height: 18px; color: #fff; opacity: 0; }
.pick input:checked ~ .box { background: var(--blue-deep); border-color: var(--blue-deep); }
.pick input:checked ~ .box svg { opacity: 1; }
.pick input:focus-visible ~ .box { box-shadow: 0 0 0 4px rgba(29, 95, 224, 0.2); }
.pick.on, .pick:has(input:checked) { border-color: var(--blue-deep); background: var(--tint); }
.pick .t { display: grid; gap: 3px; }
.pick .t b { font-family: var(--font-display); font-size: 1.02rem; }
.pick .t span { font-weight: 400; font-size: 0.93rem; color: var(--ink-soft); }
.pick .p {
  margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pick.off { opacity: 0.5; cursor: not-allowed; }
.pick.off:hover { border-color: var(--tint-border); }

/* Eine Karte, die zugleich Auswahlflaeche ist (`class="level pick"`).
   Ohne diese Regel gewinnt `.pick` mit `display: flex` und schmalem
   Innenabstand, die Karte wird zu einer Zeile, und ein Knopf mit
   `white-space: nowrap` darin sprengt auf 390 px das ganze Dokument
   (gemessen: scrollWidth 495 statt 390). */
.level.pick {
  display: block; padding: 30px 26px; min-height: 0;
  font-weight: inherit; font-size: inherit; cursor: default;
}
.level.pick:hover { border-color: var(--tint-border); }
.level.pick.on, .level.pick:has(input:checked) { border-color: var(--blue-deep); background: var(--card); }

/* ---------- Schritte im Formular ---------- */
.wizard { margin-top: 30px; }
.steps-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.steps-bar li {
  list-style: none; display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 13px; background: var(--cream);
  border: 1px solid var(--tint-border); font-size: 0.95rem; font-weight: 600;
  color: var(--ink-soft);
}
.steps-bar li .n {
  width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--tint-border); font-family: var(--font-display);
  font-size: 0.88rem;
}
.steps-bar li.on { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.steps-bar li.on .n { background: rgba(255, 255, 255, 0.2); border-color: transparent; color: #fff; }
.steps-bar li.done { background: var(--ok-bg); border-color: #BEE6CF; color: #0F4F2B; }
.steps-bar li.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.wstep { display: none; }
.wstep.on { display: block; }
.wnav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; }

/* ---------- Geraetekarten im Formular ---------- */
.dev-card {
  border: 2px solid var(--tint-border); border-radius: 18px; padding: 22px 20px;
  background: var(--cream); margin-bottom: 18px;
}
.dev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dev-head h3 { font-size: 1.1rem; }
.dev-head .rm {
  margin-left: auto; background: none; border: none; color: var(--err-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  min-height: var(--tap); padding: 0 8px;
}

/* ---------- Preisrechner, immer sichtbar ---------- */
.calc {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.calc h3 { color: #fff; font-size: 1.16rem; }
.calc .line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1rem;
}
.calc .line .l { color: rgba(255, 255, 255, 0.82); }
.calc .line .l small { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.58); }
.calc .line .v { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.calc .line.free .v { color: #8FE3AE; }
.calc .line.sum {
  border-bottom: none; border-top: 2px solid rgba(255, 255, 255, 0.3); margin-top: 8px;
  padding-top: 15px; font-family: var(--font-display); font-size: 1.32rem; font-weight: 800;
}
.calc .hint { margin-top: 14px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }
.calc-sticky { position: sticky; top: 96px; }

/* ---------- Store: Raster ---------- */
.shop-top { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 900px) { .shop-top { grid-template-columns: 1fr auto; align-items: center; } }
.shop-search { display: flex; gap: 10px; }
.shop-search input { flex: 1; }
.cats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.cats a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 17px; border-radius: 13px; background: #fff;
  border: 2px solid var(--tint-border); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
}
.cats a:hover { border-color: var(--blue); }
.cats a[aria-current="page"] { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.cats a .n { color: var(--ink-soft); font-weight: 400; font-size: 0.88rem; }
.cats a[aria-current="page"] .n { color: rgba(255, 255, 255, 0.78); }

.shop-layout { display: grid; gap: 26px; margin-top: 28px; }
@media (min-width: 980px) { .shop-layout { grid-template-columns: 268px 1fr; align-items: start; } }

.filters {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 22px 20px;
}
.filters h3 { font-size: 1.04rem; margin-bottom: 14px; }
.fgroup + .fgroup { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--tint-border); }
.fgroup h4 {
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px;
}
.fgroup label { display: flex; align-items: center; gap: 10px; min-height: 42px; font-weight: 500; font-size: 0.99rem; }
.fgroup label .n { margin-left: auto; color: var(--ink-soft); font-size: 0.88rem; }
.fgroup input[type="checkbox"], .fgroup input[type="radio"] { width: 22px; height: 22px; accent-color: var(--blue-deep); }
.filters-toggle { display: block; width: 100%; }
@media (min-width: 980px) { .filters-toggle { display: none; } }

.prods { display: grid; gap: 20px; }
@media (min-width: 560px) { .prods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .prods { grid-template-columns: repeat(3, 1fr); } }
.prod {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s;
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* Die Karte ist oft ein <a>. Ohne diese zwei Zeilen ist der ganze Inhalt
   blau und unterstrichen, weil `a { color: var(--blue-deep) }` greift. */
a.prod { color: inherit; text-decoration: none; display: flex; }
a.prod:hover h3 { color: var(--blue-deep); }
.prod-img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ph { display: grid; place-items: center; height: 100%; color: var(--blue); }
.prod-img .ph svg { width: 56px; height: 56px; }
.prod-flags { position: absolute; top: 12px; left: 12px; display: grid; gap: 6px; justify-items: start; }
.flag-pill {
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 8px;
  background: var(--ink); color: #fff;
}
.flag-pill.new { background: var(--blue-deep); }
.flag-pill.sale { background: var(--err-ink); }
.flag-pill.out { background: var(--ink-soft); }
.prod-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.1rem; line-height: 1.3; }
/* Zwei Formen, weil zwei Stellen sie bauen: die Seite eine Liste (<li>),
   shop.js im Anreisser Spannen (<span>). Beide muessen gleich aussehen. */
.prod-specs { list-style: none; display: grid; gap: 5px; margin: 12px 0 16px; font-size: 0.95rem; color: var(--ink-soft); }
.prod-specs > li, .prod-specs > span { display: flex; gap: 8px; }
.prod-specs > li b, .prod-specs > span b { color: var(--ink); font-weight: 600; min-width: 74px; }
.prod-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.prod-price { font-family: var(--font-display); font-weight: 800; font-size: 1.62rem; line-height: 1.1; }
.prod-price s { display: block; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.grade {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; font-weight: 600;
  padding: 5px 11px; border-radius: 9px; background: var(--tint); color: var(--blue-dark);
}
.grade.b { background: #FFF6E2; color: #7A4F05; }
.grade.c { background: #F2F1EE; color: #4A4A48; }

/* ---------- Store: Produktseite ---------- */
.pdp { display: grid; gap: 30px; margin-top: 26px; }
@media (min-width: 940px) { .pdp { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.gallery { display: grid; gap: 12px; }
.gal-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gal-thumbs button {
  width: 82px; height: 62px; border-radius: 12px; overflow: hidden; padding: 0;
  border: 2px solid var(--tint-border); background: var(--tint); cursor: pointer;
}
.gal-thumbs button[aria-current="true"] { border-color: var(--blue-deep); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-note { font-size: 0.9rem; color: var(--ink-soft); }

.buybox {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-soft);
}
.buybox .p {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 1.05;
}
.buybox .p s { display: block; font-size: 1.05rem; font-weight: 500; color: var(--ink-soft); }
.buybox .vat { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }
.buybox .btn { width: 100%; justify-content: center; margin-top: 20px; }
.buybox .avail { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-weight: 600; }
.buybox .avail svg { width: 20px; height: 20px; }
.buybox .avail.yes { color: var(--ok); }
.buybox .avail.no { color: var(--ink-soft); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-top: 1px solid var(--tint-border); font-size: 1rem; }
.spec-table th { width: 42%; color: var(--ink-soft); font-weight: 600; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: none; }

.cond-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 620px) { .cond-grid { grid-template-columns: 1fr 1fr; } }
.cond {
  background: var(--cream); border: 1px solid var(--tint-border); border-radius: 16px; padding: 18px 20px;
}
.cond h4 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.cond p { margin-top: 8px; font-size: 1rem; }
.cond .big { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; margin-top: 6px; }

.report-list { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.report-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.98rem; }
.report-list li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.report-list li.pass svg { color: var(--ok); }
.report-list li.fail svg { color: var(--err-ink); }
.report-list li .v { margin-left: auto; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Warenkorb und Kasse ---------- */
.cart-layout { display: grid; gap: 26px; margin-top: 26px; }
@media (min-width: 940px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-item {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--tint-border);
}
.cart-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; flex: none; }
.cart-item .t { flex: 1; }
.cart-item .t b { display: block; font-family: var(--font-display); font-size: 1.04rem; }
.cart-item .t span { font-size: 0.92rem; color: var(--ink-soft); }
.cart-item .p { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.cart-item .rm {
  background: none; border: none; color: var(--err-ink); font-family: var(--font-body);
  font-weight: 600; cursor: pointer; min-height: 44px; font-size: 0.95rem; padding: 0;
}
.summary {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-soft);
}
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 1rem; }
.summary .line .v { font-variant-numeric: tabular-nums; font-weight: 600; }
.summary .line.free .v { color: var(--ok); }
.summary .line.sum {
  border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
}
.summary .btn { width: 100%; justify-content: center; margin-top: 18px; }
.hold {
  margin-top: 14px; font-size: 0.92rem; color: var(--warn-ink); background: var(--warn-bg);
  border-radius: 12px; padding: 11px 14px;
}

/* ---------- Auftrag verfolgen ---------- */
.track-head {
  background: var(--card); border: 1px solid var(--tint-border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-soft);
}
.track-no { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.state {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 9px 16px; border-radius: 11px; background: var(--tint); color: var(--blue-dark);
}
.state.ok { background: var(--ok-bg); color: #0F4F2B; }
.state.wait { background: var(--warn-bg); color: var(--warn-ink); }
.state.bad { background: var(--err-bg); color: var(--err-ink); }
.dates { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 620px) { .dates { grid-template-columns: 1fr 1fr; } }
.date-box { background: var(--cream); border: 1px solid var(--tint-border); border-radius: 16px; padding: 18px 20px; }
.date-box h4 { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.date-box p { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-top: 6px; }

.timeline { list-style: none; margin-top: 26px; display: grid; gap: 0; }
.timeline li { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--tint-border);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-deep);
  flex: none; z-index: 1;
}
.timeline li.past .dot { background: var(--blue-deep); }
.timeline .tx b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.timeline .tx span { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Entscheidung (Kostenvoranschlag, Angebot, Freigabe) ---------- */
.decide {
  background: var(--card); border: 2px solid var(--blue-deep); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); max-width: 760px;
}
.decide .amount { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1.05; }
.decide .items { list-style: none; display: grid; gap: 0; margin: 22px 0; }
.decide .items li {
  display: flex; justify-content: space-between; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--tint-border); font-size: 1.02rem;
}
.decide .items li .v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.decide .items li.credit { color: var(--ok); }
.decide .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.decide .acts .btn { flex: 1 1 200px; justify-content: center; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0F4F2B; }
.btn-no { background: #fff; color: var(--err-ink); border: 2px solid var(--err-ink); }
.btn-no:hover { background: var(--err-bg); }
.terms {
  margin-top: 24px; padding: 20px 22px; background: var(--cream);
  border: 1px solid var(--tint-border); border-radius: 16px; font-size: 0.98rem; line-height: 1.6;
}
.terms h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 10px; }
.terms p { margin-bottom: 8px; }

/* ---------- Termine waehlen ---------- */
.slots { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 680px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  background: #fff; border: 2px solid var(--tint-border); border-radius: 16px;
  padding: 18px 20px; min-height: var(--tap);
}
.slot:hover { border-color: var(--blue); }
.slot { position: relative; }
.slot input {
  position: absolute; left: 20px; top: 21px; width: 24px; height: 24px;
  margin: 0; opacity: 0; cursor: pointer;
}
.slot .box {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink-soft);
  flex: none; margin-top: 3px; display: grid; place-items: center;
}
.slot .box::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.slot input:checked ~ .box { border-color: var(--blue-deep); }
.slot input:checked ~ .box::after { background: var(--blue-deep); }
.slot:has(input:checked) { border-color: var(--blue-deep); background: var(--tint); }
.slot .t b { display: block; font-family: var(--font-display); font-size: 1.04rem; }
.slot .t span { font-size: 0.93rem; color: var(--ink-soft); }
.slot.off { opacity: 0.55; cursor: not-allowed; background: var(--cream); }
.slot.off:hover { border-color: var(--tint-border); }
.slot .why { font-size: 0.9rem; color: var(--warn-ink); margin-top: 5px; }

/* ---------- Haken fuer shop.js ----------
   Diese vier Klassen schreibt shop.js an: es legt `.note`-Markup hinein, sie
   brauchen also keine eigene Farbe. Sie stehen hier, damit niemand sie fuer
   vergessen haelt und sie mit einer eigenen Optik doppelt. `.form-done` lebt
   allein vom `hidden`-Attribut. */
.form-msg:empty, .cart-msg:empty, .slots-msg:empty, .up-msg:empty { display: none; }
.form-msg, .cart-msg, .slots-msg { margin-top: 14px; }
.form-done { margin-top: 0; }
.form-done[hidden] { display: none !important; }

/* ---------- Hauptueberschrift ----------
   styles.css bemasst h1 nur innerhalb von .hero. Die neuen Seiten brauchen
   aber auch ausserhalb eines Aufmachers eine echte erste Ueberschrift: eine
   Seite ohne h1 ist fuer eine Suchmaschine und fuer einen Vorleser eine
   Seite ohne Thema. */
.page-head { padding: 34px 0 6px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3rem); line-height: 1.12; letter-spacing: -0.015em;
}
.page-head .lead { margin-top: 16px; font-size: 1.14rem; line-height: 1.6; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Fotos im Formular ---------- */
.up-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.up-i { position: relative; display: inline-block; }
.up-i img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; border: 1px solid var(--tint-border); }
.up-rm {
  position: absolute; top: -8px; right: -8px; width: 26px; height: 26px;
  border-radius: 50%; border: none; background: var(--ink); color: #fff;
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.up-msg { margin-top: 8px; }

/* ---------- FAQ ----------
   site.js erzeugt .faq und .faq-i; styles.css kennt nur .faq-list/.faq-item
   von der gebackenen Seite. Beide sehen gleich aus, damit ein Besucher den
   Unterschied zwischen gebackener und gezeichneter Seite nicht bemerkt. */
.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; }
.faq-i {
  background: var(--card); border: 1px solid var(--tint-border);
  border-radius: 18px; overflow: hidden;
}
.faq-i summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  position: relative; min-height: var(--tap);
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq-i[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq-i summary:hover { background: var(--tint); }
.faq-i p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

/* ---------- Kleines ---------- */
.lead-big { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.empty-box {
  background: var(--card); border: 1px dashed var(--tint-border); border-radius: var(--radius);
  padding: 44px 26px; text-align: center; color: var(--ink-soft);
}
.empty-box svg { width: 48px; height: 48px; color: var(--blue); margin-bottom: 14px; }
.spinner {
  display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor;
  border-right-color: transparent; border-radius: 50%; animation: shsp 0.7s linear infinite;
  vertical-align: -3px;
}
@keyframes shsp { to { transform: rotate(360deg); } }
/* Unsichtbar heisst unsichtbar, und zwar gegen jede andere Regel.
   `.fgrid input` und `.form-card input` sind spezifischer als `.sr` und
   haben dem Honigtopf-Feld `width: 100%` und `min-height: 48px` gegeben:
   ein durchsichtiges Feld von 390 px, das die Seite waagerecht aufzog.
   Das ist die eine Stelle, an der `!important` richtig ist. */
.sr {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  min-height: 0 !important; min-width: 0 !important;
  padding: 0 !important; margin: -1px !important; border: 0 !important;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* ---------- Was auf den neuen Seiten anders ist als auf den gebackenen ----------
   Die gebackene Startseite macht aus langen Listen auf dem Telefon einen
   waagerechten Schieber. Das ist dort richtig: die Ortsliste ist Zierde.
   Auf der Gebietsseite sucht jemand seine EIGENE Gemeinde unter 53, und ein
   Schieber versteckt fuenfzig davon. Darum bricht sie hier um.
   Die Regel haengt an der Koerperklasse der gezeichneten Seiten und laesst
   die gebackenen unberuehrt. */
@media (max-width: 767.98px) {
  body.ch-page .area-chips {
    flex-wrap: wrap; overflow-x: visible;
    padding: 0; margin-left: 0; margin-right: 0;
  }
  body.ch-page .area-chips li { white-space: normal; flex: 0 1 auto; }
}

/* Die feste Aktionsleiste. Drei Knoepfe auf 390 px, und eine franzoesische
   Beschriftung ist laenger als eine luxemburgische: ohne `min-width: 0`
   koennen Rasterfelder nicht schrumpfen, und der dritte Knopf schob sich aus
   dem Bild (gemessen: bis 417 px auf einem 390er Fenster).
   Drei gleiche Spalten geben je 118 px, und das reicht fuer "Termin buchen"
   nicht. Der ERSTE Knopf ist der, den die Seite will, und bekommt mehr
   Platz; die anderen zwei verzichten auf dem engsten Geraet auf ihr Symbol,
   denn ein abgeschnittenes Wort ist schlimmer als ein fehlendes Bildchen. */
/* `minmax(0, ...)` statt `1.6fr`: eine fr-Spalte ist mindestens so breit wie
   ihr Inhalt und kann das Raster damit ueber den Bildschirm hinausdruecken.
   Genau das waren die 2 px, die auf der Ankaufsseite herausragten. */
.action-bar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.action-bar .btn { min-width: 0; }
/* Lieber zwei kurze Zeilen als ein abgeschnittenes Wort. "Réserver un
   enlèvement" und "Kostenvoranschlag ansehen" passen in keine Zeile von
   150 px, und ein Knopf, auf dem "Kostenvoranschlag anse..." steht, sagt
   nichts. Zwei Zeilen passen; ab der dritten wird gekuerzt. */
.action-bar .btn span {
  min-width: 0; white-space: normal; line-height: 1.12;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; text-align: center;
}
/* 46 px ist die Hoehe, die ein Finger braucht. Das Polster darf schrumpfen,
   die Hoehe nicht. */
.action-bar .btn {
  padding-top: 6px; padding-bottom: 6px; align-items: center;
  min-height: 46px;
}
/* Mit dem echten WhatsApp-Zeichen traegt unter 420 px das SYMBOL und nicht
   das Wort: "WhatsAp..." erkennt niemand, das Zeichen jeder. Das Wort bleibt
   fuer den Screenreader stehen. Vorher war es umgekehrt, und genau das war
   im Bild zu sehen. */
@media (max-width: 420px) {
  .action-bar .btn { padding-left: 4px; padding-right: 4px; }
  .action-bar .btn-call svg, .action-bar .btn-wa svg { width: 20px; height: 20px; }
  .action-bar .btn-call span, .action-bar .btn-wa span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .action-bar .btn-call, .action-bar .btn-wa { gap: 0; }
}

/* Die feste Aktionsleiste verdeckt sonst den letzten Knopf einer Seite. */
@media (max-width: 899.98px) {
  main { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .prod:hover { transform: none; }
  .spinner { animation: none; }
}

/* ---------- Rechtstexte -------------------------------------------------
   Ein elfpunktiger Text in einem Absatz liest niemand, und ein Knopf, der
   wegfuehrt, bringt den Besucher aus der Buchung. Darum aufklappbar an der
   Stelle, an der er gebraucht wird: zugeklappt eine Zeile, aufgeklappt der
   ganze Text, und das Aufklappen ist eine Fingerflaeche. Derselbe Haken wie
   bei der FAQ, nur kleiner, weil es hier um Kleingedrucktes geht. */
.legal {
  background: var(--card); border: 1px solid var(--tint-border);
  border-radius: 14px; overflow: hidden; margin-top: 14px;
}
.legal summary {
  cursor: pointer; list-style: none; padding: 13px 44px 13px 16px;
  font-weight: 650; font-size: 0.93rem; position: relative;
  min-height: var(--tap); display: flex; align-items: center;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep);
  transform: rotate(45deg); transition: transform 0.2s;
}
.legal[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.legal summary:hover { background: var(--tint); }
.legal > p {
  margin: 0; padding: 0 16px 12px; font-size: 0.9rem; line-height: 1.6;
  color: var(--ink-soft);
}
.legal > p:first-of-type { padding-top: 4px; }
