.wrap { max-width: 1160px; }
.service-main { display: grid; width: 100%; margin-inline: auto; gap: clamp(64px, 10vw, 128px); padding-block: clamp(104px, 12vw, 152px) clamp(72px, 10vw, 128px); }
.service-main > * { min-width: 0; }
.service-hero { display: grid; min-width: 0; grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr); gap: clamp(34px, 7vw, 96px); align-items: center; }
.service-copy { display: grid; min-width: 0; justify-items: start; gap: clamp(18px, 2.5vw, 26px); }
.service-copy h1 { max-width: 24ch; font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.08; letter-spacing: -0.018em; }
.service-copy h1, .service-copy .lead { overflow-wrap: anywhere; }
.eyebrow { color: var(--teal-ink); font-size: 0.79rem; font-weight: 750; letter-spacing: 0.13em; line-height: 1.4; text-transform: uppercase; }
.service-copy .lead { max-width: 37rem; color: var(--muted); font-size: clamp(1.12rem, 1.65vw, 1.28rem); line-height: 1.65; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.service-hero-image { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 1.02; overflow: hidden; padding: 0; border: 0; border-radius: clamp(22px, 3vw, 38px); background: var(--line); box-shadow: 0 24px 68px rgb(38 27 48 / 0.14); cursor: zoom-in; text-align: left; }
.service-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery-trigger:hover img { transform: scale(1.035); }
.image-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; min-height: 34px; padding: 0.4em 0.8em; border: 1px solid rgb(255 255 255 / 0.23); border-radius: 999px; background: rgb(24 21 28 / 0.64); color: #fff; font-size: 0.76rem; font-weight: 650; line-height: 1; opacity: 0; transform: translateY(3px); transition: opacity 0.18s ease, transform 0.18s ease; pointer-events: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.image-hint::after {
  content: ""; flex: none; width: 1em; height: 1em; margin-left: 0.4em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5.5A1.5 1.5 0 0 0 4 5.5V9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15M15 20h3.5a1.5 1.5 0 0 0 1.5-1.5V15'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5.5A1.5 1.5 0 0 0 4 5.5V9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15M15 20h3.5a1.5 1.5 0 0 0 1.5-1.5V15'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.gallery-trigger:hover .image-hint, .gallery-trigger:focus-visible .image-hint { opacity: 1; transform: translateY(0); }
.service-section { display: grid; gap: 26px; scroll-margin-top: 100px; }
/* Story-Seiten: zitierte Kundensätze zwischen den Kapiteln */
.story-quote { display: grid; gap: 6px; margin: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--teal); }
.story-quote p { max-width: 46rem; color: var(--ink); font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.5; }
.story-quote cite { color: var(--muted); font-size: 0.92rem; font-style: normal; }
.service-section > h2, .section-heading h2 { max-width: 26ch; font-size: clamp(1.85rem, 2.9vw, 2.55rem); letter-spacing: -0.025em; }
.service-section > p { max-width: 54rem; color: var(--muted); }
.section-heading { display: grid; justify-items: start; gap: 11px; }
.section-heading > p:last-child { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: service-step; }
.service-card { align-items: flex-start; }
.service-card p { color: var(--muted); }
.service-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(190px, 1fr)); gap: 14px; }
.service-gallery .gallery-trigger { position: relative; grid-column: span 4; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: var(--line); cursor: zoom-in; }
.service-gallery .gallery-trigger:first-child { grid-column: span 8; grid-row: span 2; }
.service-gallery img { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service-note { display: grid; gap: 14px; padding: clamp(28px, 5vw, 52px); border: 1px solid color-mix(in srgb, var(--violet) 14%, var(--line)); border-radius: 28px; background: radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--violet) 10%, transparent), transparent 70%), var(--lilac); }
.service-note h2 { max-width: 26ch; font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
.service-note p { max-width: 64rem; color: var(--muted); }
.service-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(25px, 4vw, 42px); border-radius: 26px; background: var(--mint); }
.service-contact > div { display: grid; gap: 10px; }
.service-contact h2 { max-width: 24ch; font-size: clamp(1.8rem, 3.5vw, 2.65rem); }
.service-contact p { color: var(--muted); }
.service-contact .btn { flex: none; }
.service-footer { padding-block: 26px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.service-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.service-footer a { color: inherit; text-decoration-color: var(--teal); text-underline-offset: 3px; }

.photo-viewer { position: fixed; width: min(1280px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px); overflow: hidden; padding: 0; border: 1px solid rgb(255 255 255 / 0.18); border-radius: 24px; background: #17141b; color: #f8f5fa; box-shadow: 0 30px 100px rgb(0 0 0 / 0.45); }
.photo-viewer::backdrop { background: rgb(13 10 16 / 0.82); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.viewer-topbar, .viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.viewer-topbar { min-height: 58px; }
.viewer-counter { color: #b8b1bf; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.viewer-close, .viewer-arrow { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgb(255 255 255 / 0.19); border-radius: 50%; background: rgb(255 255 255 / 0.06); color: #fff; cursor: pointer; font: inherit; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.viewer-close svg { width: 17px; height: 17px; }
.viewer-arrow svg { width: 19px; height: 19px; }
.photo-viewer [hidden] { display: none; }
.viewer-close:hover, .viewer-arrow:hover { background: rgb(255 255 255 / 0.16); border-color: rgb(255 255 255 / 0.34); }
.viewer-close:active, .viewer-arrow:active { transform: scale(0.94); }
.viewer-stage { display: grid; place-items: center; min-height: 240px; max-height: calc(100dvh - 158px); background: #0d0b10; }
.viewer-image { display: block; width: 100%; height: min(76vh, 900px); max-height: calc(100dvh - 158px); object-fit: contain; }
.viewer-footer { min-height: 58px; }
.viewer-caption { min-width: 0; color: #ede8f1; font-size: 0.94rem; }
.viewer-navigation { display: flex; flex: none; gap: 8px; }
.viewer-arrow { width: 38px; height: 38px; }
@media (max-width: 1000px) {
  .service-copy h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
}
@media (max-width: 760px) {
  .service-main { gap: 76px; }
  .service-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-hero-image { aspect-ratio: 1.12; border-radius: 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .service-gallery .gallery-trigger:first-child { grid-column: span 2; grid-row: auto; }
  .service-gallery .gallery-trigger { grid-column: span 1; aspect-ratio: 1.08; }
  .service-gallery img { min-height: 0; }
  .photo-viewer { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .viewer-stage { max-height: calc(100dvh - 148px); }
  .viewer-image { height: calc(100dvh - 148px); max-height: calc(100dvh - 148px); }
}
@media (max-width: 480px) {
  .service-main { gap: 64px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-gallery { gap: 9px; }
  .service-gallery .gallery-trigger:first-child { aspect-ratio: 1.1; }
}
@media (max-width: 360px) {
}
@media (prefers-reduced-motion: reduce) {
  .gallery-trigger img { transition: none; }
  .viewer-close, .viewer-arrow { transition: none; }
  .viewer-close:active, .viewer-arrow:active { transform: none; }
}

/* Galerie mit zwei Motiven: zwei gleich große 4:3-Kacheln, mobil untereinander.
   Steht bewusst am Dateiende, damit die Mosaik-Regeln oben nicht dazwischenfunken. */
.service-gallery--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
.service-gallery--pair .gallery-trigger,
.service-gallery--pair .gallery-trigger:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .service-gallery--pair .gallery-trigger,
  .service-gallery--pair .gallery-trigger:first-child { grid-column: span 2; aspect-ratio: 1.2; }
}

/* Galerie mit vier Motiven: 2x2, gleich große Kacheln */
.service-gallery--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
.service-gallery--quad .gallery-trigger,
.service-gallery--quad .gallery-trigger:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 4 / 3; }

/* Galerie mit einem Motiv: breite Einzelkachel */
.service-gallery--single { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.service-gallery--single .gallery-trigger,
.service-gallery--single .gallery-trigger:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 9; }

/* Vorher/Nachher-Regler wie auf der Startseite (eigene Fassung für die Detailseiten). */
.compare { --pos: 50%; position: relative; aspect-ratio: 8 / 5; width: 100%; overflow: hidden; border-radius: 20px; background: var(--line); user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #2b2530; box-shadow: 0 3px 12px rgb(0 0 0 / 0.25); transform: translate(-50%, -50%); }
.compare-knob svg { width: 22px; height: 22px; }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.compare-tags .tag { position: absolute; top: 12px; padding: 0.15em 0.6em; border: 0; border-radius: 6px; background: rgb(43 37 48 / 0.7); color: #fff; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.compare-tags .tag-l { left: 12px; }
.compare-tags .tag-r { right: 12px; }
@media (prefers-reduced-motion: reduce) { .compare-range { cursor: pointer; } }

/* Bildrahmen mit Bildunterschrift unter den Vorher/Nachher-Reglern */
.shot { display: grid; gap: 10px; margin: 0; min-width: 0; }
.shot figcaption { color: var(--muted); font-size: 0.92rem; }

/* Vergrößern-Knopf auf den Vorher/Nachher-Reglern */
.compare-expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 0.45em; min-height: 34px; padding: 0.4em 0.85em; border: 1px solid rgb(255 255 255 / 0.23); border-radius: 999px; background: rgb(24 21 28 / 0.66); color: #fff; font: inherit; font-size: 0.78rem; font-weight: 650; line-height: 1; cursor: zoom-in; opacity: 0; transform: translateY(3px); transition: opacity 0.18s ease, transform 0.18s ease; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.compare:hover .compare-expand, .compare-expand:focus-visible { opacity: 1; transform: translateY(0); }
.compare-expand svg { width: 13px; height: 13px; flex: none; }
@media (hover: none) { .compare-expand { opacity: 1; transform: none; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Hero ohne Bild: einspaltig, damit rechts keine Lücke bleibt */
.service-hero--text { grid-template-columns: minmax(0, 1fr); }
.service-hero--text .service-copy { max-width: 46rem; }

/* Paketkarten: transparente Links zu den Detailseiten */
.plan-links { color: var(--muted); font-size: 0.92rem; }
.plan-links a { color: var(--violet-ink); font-weight: 600; text-underline-offset: 3px; }
.plan-links a:hover { color: var(--ink); }

/* Querverweis unter dem Preisraster auf den Detailseiten */
.plan-more { color: var(--muted); font-size: 0.95rem; }
.plan-more a { color: var(--violet-ink); font-weight: 600; }
