/* MM Lackveredelung — nur fuer die Leistungs-Detailseiten (leistung.php).

   Weniger ist mehr (26.10.2026): Oben stehen nur noch die Eckdaten, die
   eine Entscheidung brauchen — Ab-Preis, Dauer, ein Knopf. Arbeitsschritte
   und Fragen liegen darunter zum Aufklappen. */

/* --- Eckdaten im Seitenkopf ----------------------------------------------- */

/* Lange Namen ("Keramikversiegelung") brachen auf dem Handy mitten im Wort
   um. Mit hyphens:auto trennte der Browser dann dort, wo die Zeile voll war
   ("Lederauf-bereitung"). Jetzt setzt trennbar() in leistung.php weiche
   Trennstellen an die Wortfuge, und nur dort wird getrennt. Reicht das nicht,
   bricht overflow-wrap als letzte Rettung um, statt ueber den Rand zu laufen. */
.pagehead h1 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }

.eckdaten {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-l);
  margin-block-start: var(--sp-m);
  padding: 0;
  list-style: none;
}
.eckdaten li { display: grid; gap: 0.1rem; }
.eckdaten__wert {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
}
.eckdaten__klein { font-size: var(--fs-xs); color: var(--c-text-mid); }

/* Kein Trennstrich unter dem Kopf: Direkt darunter folgt das Foto, das
   selbst trennt. Mit Strich klebte das Bild an der Linie, darueber stand ein
   leerer Streifen. */
.pagehead--leistung { border-block-end: 0; }

.pagehead .eckdaten__knopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xs) var(--sp-s);
  margin-block-start: var(--sp-m);
  font-size: var(--fs-base);
}

/* --- Arbeitsschritte im Aufklapp-Element ---------------------------------- */

.schritte {
  counter-reset: schritt;
  display: grid;
  gap: var(--sp-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}
.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  align-items: start;
}
.schritte li::before {
  content: counter(schritt) ".";
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-accent);
}

/* --- Handy ----------------------------------------------------------------- */

@media (width < 42rem) {
  /* Beide Knoepfe in voller Breite untereinander. Der zweite war hier
     frueher ein randloser Link — fett und weiss sah er am Handy aus wie
     eine Ueberschrift ohne Inhalt (iPhone-Test Nov. 2026). */
  .pagehead .eckdaten__knopf .btn { flex: 1 1 100%; justify-content: center; }

  /* "Passt dazu" zum Wischen statt untereinander, wie auf der Startseite */
  .grid--cards {
    display: flex;
    gap: var(--sp-s);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-block-end: var(--sp-xs);
    scrollbar-width: none;
  }
  .grid--cards::-webkit-scrollbar { display: none; }
  .grid--cards > * { flex: 0 0 84%; scroll-snap-align: start; }
}

/* ---- Aufbau Vorteile → Ablauf → Extras (22.11.2026) ---------------------- */
.lp-intro{max-width:var(--w-prose)}
.lp-h{font-size:var(--fs-xl);margin-bottom:var(--sp-m)}
.lp-vorteile{display:grid;gap:var(--sp-s);grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));padding:0;margin:0}
.lp-vorteil{display:flex;flex-direction:row;gap:.75rem;align-items:flex-start;padding:var(--sp-m);font-size:var(--fs-sm)}
.lp-vorteil__icon{flex:none}
.lp-stufen{list-style:none;padding:0;margin:0;display:grid;gap:0;counter-reset:none;max-width:var(--w-prose)}
.lp-stufe{display:flex;gap:var(--sp-s);align-items:flex-start;position:relative;padding-bottom:var(--sp-m);font-size:var(--fs-sm)}
.lp-stufe:not(:last-child)::before{content:"";position:absolute;left:1.2rem;top:2.6rem;bottom:.2rem;width:1px;background:var(--c-accent-line)}
.lp-stufe__nr{flex:none;width:2.4rem;height:2.4rem;border-radius:50%;display:grid;place-items:center;border:1px solid var(--c-accent);color:var(--c-accent);font-weight:700;font-variant-numeric:tabular-nums}
.lp-stufe__text{padding-top:.45rem}
.lp-extras{display:grid;gap:var(--sp-s);grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));padding:0;margin:0}
.lp-extra{display:flex;flex-direction:column;gap:.35rem;height:100%;padding:var(--sp-m);text-decoration:none;color:inherit;min-height:44px;transition:border-color var(--t-fast) var(--ease)}
.lp-extra:hover,.lp-extra:focus-visible{border-color:var(--c-accent)}
.lp-extra__name{font-weight:700}
.lp-extra__kurz{font-size:var(--fs-xs);color:var(--c-text-mid)}
.lp-extra__preis{margin-top:auto;padding-top:.4rem;color:var(--c-accent);font-weight:700;font-size:var(--fs-sm)}

/* --- Seitenkopf als grosses Bild (29.11.2026, Vorbild Ziegler) -------------
   Bild ueber die ganze Breite, links dunkler Verlauf, Text weiss darauf.
   Gilt in hellem und dunklem Modus gleich, weil der Text immer auf dem
   dunklen Verlauf steht. */
.lhero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-block-size: 33rem;
  display: grid;
  align-items: end;
  padding-block: var(--sp-2xl, 5rem) var(--sp-xl, 3rem);
  background: #0c0d10;
  color: #fff;
}
.lhero__bild { position: absolute; inset: 0; z-index: -2; }
.lhero__bild picture { display: block; block-size: 100%; }
.lhero__bild img {
  display: block;
  inline-size: 100%;
  /* picture() setzt inline aspect-ratio und block-size:auto */
  block-size: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover;
}
.lhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      oklch(11% 0.008 255 / 92%) 0%,
      oklch(11% 0.008 255 / 75%) 38%,
      oklch(11% 0.008 255 / 25%) 70%,
      oklch(11% 0.008 255 / 10%) 100%),
    linear-gradient(to top, oklch(11% 0.008 255 / 85%), transparent 50%);
}
.lhero__inhalt { position: relative; }
.lhero__inhalt > * { max-inline-size: 40rem; }
.lhero h1, .lhero .lead { color: #fff; text-shadow: 0 1px 12px oklch(0% 0 0 / .45); }
.lhero .dim { color: oklch(88% 0 0); }
.lhero .eyebrow { color: oklch(80% 0.108 62); }
.lhero .btn--ghost {
  color: #fff;
  border-color: oklch(100% 0 0 / .55);
  background: oklch(0% 0 0 / .25);
}
.lhero .btn--ghost:hover { border-color: oklch(80% 0.108 62); color: oklch(80% 0.108 62); }
.lhero__dauer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin-block-start: var(--sp-s, 1rem);
  font-size: var(--fs-sm);
  color: #fff;
}
.lhero__dauer svg { inline-size: 1.1rem; block-size: 1.1rem; color: oklch(80% 0.108 62); }
.lhero__hinweis {
  position: absolute;
  inset-inline-end: var(--sp-s, 1rem);
  inset-block-end: var(--sp-2xs, .4rem);
  margin: 0;
  font-size: var(--fs-2xs);
  color: #fff;
  background: oklch(11% 0.008 255 / .72);
  padding: .15rem .5rem;
  border-radius: 3px;
  max-inline-size: 60%;
  text-align: end;
}
@media (max-width: 47.99rem) {
  .lhero { min-block-size: 0; padding-block: 12rem var(--sp-xl, 2.5rem); }
  .lhero::after {
    background: linear-gradient(to top,
      oklch(11% 0.008 255 / 96%) 0%,
      oklch(11% 0.008 255 / 85%) 55%,
      oklch(11% 0.008 255 / 15%) 100%);
  }
  .lhero__hinweis { position: static; max-inline-size: none; text-align: start; background: none; padding: 0; color: oklch(88% 0 0); margin: var(--sp-s, 1rem) var(--gutter) 0; }
  /* Handy: Foto nur oben als Streifen, damit das Auto zu sehen ist (Pruefung 29.11.) */
  .lhero__bild { inset: 0 0 auto 0; block-size: 17rem; }
  .lhero { background: oklch(11% 0.008 255); }
  .lhero::after {
    background: linear-gradient(to bottom,
      oklch(11% 0.008 255 / 0%) 0,
      oklch(11% 0.008 255 / 10%) 8rem,
      oklch(11% 0.008 255 / 96%) 17rem) !important;
  }
}

/* 29.11.2026 (Inhaber): Bild oben nicht so gross. Am Computer steht das Foto
   rechts (ca. 62 % breit, Seitenverhaeltnis wie das Foto), links der Text auf
   dunklem Grund; der Verlauf blendet die linke Bildkante weich aus. */
@media (min-width: 48rem) {
  .lhero__bild { inset: 0 0 0 auto; inline-size: 58%; }
  .lhero__inhalt > * { max-inline-size: 31rem; }
  .lhero h1 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem); }
  .lhero::after {
    background:
      linear-gradient(90deg,
        #0c0d10 0%, #0c0d10 42%,
        oklch(11% 0.008 255 / 70%) 49%,
        oklch(11% 0.008 255 / 0%) 60%),
      linear-gradient(to top, oklch(11% 0.008 255 / 55%), transparent 30%);
  }
}

/* Kopf mit Vorher/Nachher-Schieber (Innenraum, 29.11.2026): kein
   Hintergrundbild, sondern Text links und Schieber rechts im Seitenrahmen,
   mit dem goldenen Rahmen der Startseiten-Kacheln. Normale Seitenfarben. */
.lhero--schieber { min-block-size: 0; display: block; background: transparent; color: var(--c-text); padding-block: var(--sp-l, 2rem) var(--sp-xl, 3rem); }
.lhero--schieber::after { display: none; }
.lhero__raster { display: grid; gap: var(--sp-l, 2rem); align-items: center; }
@media (min-width: 56rem) { .lhero__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.lhero--schieber .lhero__inhalt > * { max-inline-size: 34rem; }
.lhero--schieber h1, .lhero--schieber .lead { color: var(--c-text); text-shadow: none; }
.lhero--schieber .dim { color: var(--c-text-mid); }
.lhero--schieber .btn--ghost { color: var(--c-text); border-color: var(--c-line); background: transparent; }
.lhero--schieber .lhero__dauer { color: var(--c-text); }
.lhero__schieber { margin: 0; }
.lhero__schieber .vn__bilder {
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--c-accent);
  border-radius: 4px;
  overflow: hidden;
}
.lhero__schieber .vn__bild picture { display: block; block-size: 100%; }
.lhero__schieber .vn__bild img { inline-size: 100%; block-size: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
.lhero__schieber figcaption { margin-block-start: var(--sp-2xs, .4rem); font-size: var(--fs-2xs); color: var(--c-text-mid); }
@media (max-width: 55.99rem) { .lhero__schieber { order: -1; } }
/* Harmonisch eingefuegt (Inhaber 29.11.): wie bei Ziegler das Bild mit
   versetztem goldenem Rahmen dahinter — dieselbe Goldfarbe wie die Kacheln
   der Startseite. Bild selbst ohne harte Kante, leicht abgerundet. */
.lhero__schieber { position: relative; isolation: isolate; justify-self: end; inline-size: min(100% - 1rem, 31rem); margin-inline-end: 1rem; margin-block-end: 1rem; }
.lhero__rahmen { position: relative; isolation: isolate; }
.lhero__rahmen::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1.5px solid var(--c-accent);
  border-radius: 4px;
  z-index: -1;
  pointer-events: none;
}
.lhero__schieber .vn__bilder.vn__bilder--karte {
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: 0 14px 34px -18px oklch(0% 0 0 / .5);
}
.lhero__schieber .vn__marke { font-size: .62rem; padding: .15rem .5rem; }
.lhero__schieber figcaption { margin-block-start: 1.4rem; }
@media (max-width: 55.99rem) { .lhero__schieber { justify-self: stretch; } }
/* Inhaber 29.11.: gelbe Umrandung weg */
.lhero__rahmen::before { display: none; }
.lhero__schieber { margin-inline-end: 0; margin-block-end: 0; inline-size: min(100%, 31rem); }
.lhero__schieber figcaption { margin-block-start: var(--sp-2xs, .4rem); }

/* ---- Raster mit Nummern (Inhaber 29.11.2026, Vorbild Ziegler) ----------- */
.lp-raster {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 42rem) { .lp-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) {
  .lp-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-raster--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lp-raster > li { background: var(--c-bg); padding: var(--sp-m, 1.5rem); display: flex; flex-direction: column; gap: .45rem; }
.sunk .lp-raster > li { background: var(--c-bg-sunk); }
.lp-raster__nr { color: var(--c-accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lp-raster h3 { font-size: var(--fs-base); margin: 0; }
.lp-raster p { margin: 0; color: var(--c-text-mid); font-size: var(--fs-sm); line-height: 1.6; }
