/* Single-service landing pages (body.sp-page): /balayage-garbsen, /dauerwelle-garbsen …
   Built by tools/build-service-pages.mjs on top of css/service-pages.css and, on phones,
   css/service-landing-mobile.css. This file adds only the blocks those pages do not have:
   steps, the Google review, the price-section button and the gift-voucher link. */

.sp-page .seo-hero-media img { object-position: 50% 30%; }
.sp-page .seo-copy-grid p,
.sp-page .seo-care-card p { font-size: 16px; }
.sp-page .seo-price-row p { font-size: 14px; }
.sp-page .seo-note { max-width: 820px; }
.sp-page .seo-gallery + .seo-note { margin-top: 34px; }

/* Hero on wide screens: the price sits next to the headline, the button is solid. */
@media (min-width: 769px) {
  .sp-page .seo-hero h1 { margin-bottom: 24px; }
  .sp-page .sl-price {
    display: flex;
    gap: clamp(28px, 4vw, 56px);
    margin: 0 0 28px;
    padding: 18px 0;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
  }
  .sp-page .sl-price p { display: flex; flex-direction: column; gap: 8px; margin: 0; }
  .sp-page .sl-price strong { font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
  .sp-page .sl-price span { font-size: 14px; opacity: 0.72; }
  .sp-page .seo-hero .seo-actions .bracket-cta,
  .sp-page .sp-cta .bracket-cta {
    border-color: var(--color-ink);
    background-color: var(--color-ink);
    color: var(--color-cream);
  }
}

/* Steps */
.sp-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sp-step;
  border-top: 1px solid rgba(16, 14, 13, 0.35);
}
.sp-step-list li { padding-top: 24px; counter-increment: sp-step; }
.sp-step-list li::before {
  content: "0" counter(sp-step);
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.sp-step-list h3 { margin: 18px 0 14px; font-size: 24px; font-weight: 500; line-height: 1.15; }
.sp-step-list p { margin: 0; font-size: 16px; line-height: 1.65; }

/* Price section button */
.sp-cta { margin-top: 40px; }

/* Google review, verbatim */
.sp-quote { max-width: 1040px; margin: 28px 0 0; }
.sp-quote blockquote { margin: 0; }
.sp-quote blockquote p {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.sp-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 30px;
  font-size: 14px;
}
.sp-quote-stars { color: var(--color-accent); letter-spacing: 0.12em; }
.sp-quote figcaption a {
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

@media (max-width: 1100px) {
  .sp-step-list { grid-template-columns: repeat(2, 1fr); }
}

/* Phones: sections follow the document order; the shared phone file sorts the older pages. */
@media (max-width: 768px) {
  .seo-service-page.sp-page main > section { order: 0; }
  .sp-page .seo-hero-media img { object-position: 50% 26%; }
  /* Caps Manrope 600 is about 0.68em per letter: fit the longest word into the column. */
  .seo-service-page.sp-page .seo-hero h1 {
    font-size: min(clamp(34px, 10.4vw, 46px), calc((100vw - 2 * var(--m-gutter)) / (var(--sp-longest, 10) * 0.68)));
    overflow-wrap: normal;
    hyphens: manual;
  }
  .sp-page .sl-price { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .sp-page .seo-gallery + .seo-note { margin-top: 18px; }

  .sp-step-list { display: block; border-top: 1px solid var(--m-rule); }
  .sp-step-list li { padding: 20px 0; border-bottom: 1px solid var(--m-rule); }
  .sp-step-list li::before {
    color: var(--m-brown);
    font: 600 12px/1.4 var(--font-text);
    letter-spacing: 0.04em;
    opacity: 1;
  }
  .sp-step-list h3 {
    margin: 8px 0 10px;
    font: 600 24px/1.1 var(--font-display);
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }
  .sp-step-list p { font-size: 15px; line-height: 1.5; }

  .sp-cta { margin-top: 24px; }
  .sp-cta .bracket-cta { width: 100%; }

  .sp-review .seo-shell {
    padding: 28px 20px 24px;
    border-radius: 28px;
    background: rgba(208, 185, 163, 0.26);
  }
  .sp-quote { margin-top: 0; }
  .sp-quote blockquote p { font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; }
  .sp-quote figcaption { margin-top: 20px; }
  .sp-quote figcaption a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 5px; letter-spacing: 0.02em; }

  .sl-visit .seo-actions .sp-gift { border: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
}

/* Long German words in section headings break at a syllable with a hyphen, not mid-letter. */
@media (max-width: 768px) {
  .sp-page .seo-heading,
  .sp-page .sl-group,
  .sp-page .seo-care-card h3,
  .sp-page .sp-step-list h3 { -webkit-hyphens: auto; hyphens: auto; }
}

/* Official EU "AI" icon over the hero photo (EU AI Act Art. 50(4)). Gallery images carry it in the file. */
.sp-page .seo-hero-media { position: relative; }
/* Selector beats ".seo-hero-media img" (full-size cover) from the shared service-page styles. */
.seo-service-page .seo-hero-media img.sp-ai-icon {
  position: absolute;
  z-index: 2;
  inset: 8px 8px auto auto;
  width: 40px;
  height: 40px;
  min-height: 0;
  object-fit: contain;
  filter: none;
  transform: none;
  pointer-events: none;
}
