/* Leistungsseiten /services/<slug>: hero.js baut #svc und hängt es in die
   React-Seite (div.pt-20). Deren eigener Inhalt wird über .sv-host ausgeblendet.
   Nutzt .hi-btn und .rf-* (Reel-Handy) aus hero.css. */

.sv-host { background: #0f1012; }
.sv-host > :not(#svc) { display: none !important; }

#svc {
  --hi-red: #df1414;
  background: #0f1012;
  color: #fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#svc h1, #svc h2, #svc h3 { font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif; }

.sv-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.sv-h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 1.3rem;
  color: #fff;
}

/* ---------- Hero: Text links, Bild rechts in voller Helligkeit ---------- */
.sv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: min(calc(100vh - 80px), 860px);
  min-height: min(calc(100svh - 80px), 860px);
}
.sv-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* linke Kante fluchtet mit dem 1280er-Raster der übrigen Seite */
  padding: clamp(3rem, 8vh, 6rem) clamp(2rem, 5vw, 5.5rem) clamp(3rem, 8vh, 6rem) max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
}
.sv-pfad {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 2.4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.sv-pfad a { color: inherit; text-decoration: none; transition: color .2s ease; }
.sv-pfad a:hover { color: #fff; }
.sv-pfad a:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 3px; border-radius: 2px; }
.sv-pfad [aria-current] { color: rgba(255,255,255,.85); }
.sv-tag {
  margin-bottom: 1.2rem;
  padding: .35rem .7rem;
  border-radius: 3px;
  background: var(--hi-red);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}
.sv-h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.045em;
  color: #fff;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.sv-h1::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin: 1.7rem 0 1.6rem;
  background: var(--hi-red);
}
.sv-lead {
  max-width: 36ch;
  margin: 0 0 2.4rem;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}
.sv-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}
.sv-tel {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.sv-tel svg { width: 22px; height: 22px; flex: none; color: var(--hi-red); transition: transform .2s ease; }
.sv-tel span { display: flex; flex-direction: column; line-height: 1.2; }
.sv-tel small { margin-top: .25rem; font-size: .76rem; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.55); }
.sv-tel:hover svg { transform: rotate(-12deg); }
.sv-tel:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 4px; border-radius: 2px; }

.sv-hero-bild { position: relative; overflow: hidden; background: #16181b; }
.sv-hero-bild img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Einziger Auftritt mit Bewegung: Text steigt auf, Bild öffnet sich von links. */
.sv-hero-text > * { animation: sv-auf .7s cubic-bezier(.2,.7,.2,1) both; }
.sv-hero-text > :nth-child(2) { animation-delay: .06s; }
.sv-hero-text > :nth-child(3) { animation-delay: .12s; }
.sv-hero-text > :nth-child(4) { animation-delay: .2s; }
.sv-hero-text > :nth-child(5) { animation-delay: .28s; }
.sv-hero-bild img { animation: sv-bild 1.1s cubic-bezier(.7,0,.2,1) .05s both; }
@keyframes sv-auf {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes sv-bild {
  from { clip-path: inset(0 0 0 100%); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Umfang: Kopf klebt links, Punkte rechts ---------- */
.sv-umfang {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(4.5rem, 9vw, 8rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}
.sv-umfang-kopf { position: sticky; top: 112px; align-self: start; }
.sv-umfang-kopf p {
  margin: 0;
  max-width: 46ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
}
.sv-punkte { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.sv-punkte li {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: .5rem 2.2rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sv-punkte h3 {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}
.sv-punkte h3::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  background: var(--hi-red);
  transform: translateY(-2px);
}
.sv-punkte p { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.68); }

/* ---------- Ablauf ---------- */
.sv-ablauf { background: #16181b; padding: clamp(4.5rem, 9vw, 7rem) 0; }
.sv-schritte {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem;
}
.sv-schritte li { padding-top: 1.5rem; border-top: 2px solid rgba(255,255,255,.14); }
.sv-schritte li:first-child { border-top-color: var(--hi-red); }
.sv-nr {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.2);
}
.sv-schritte li:first-child .sv-nr { color: var(--hi-red); }
.sv-schritte h3 { margin: 0 0 .55rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sv-schritte p { margin: 0; font-size: .97rem; line-height: 1.6; color: rgba(255,255,255,.66); }
.sv-schritte a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--hi-red);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
.sv-schritte a:hover { color: #ff8a80; }
.sv-schritte a:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 3px; border-radius: 2px; }

/* ---------- Reels ---------- */
.sv-praxis { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* ---------- Weitere Leistungen ---------- */
.sv-weitere { padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.sv-weitere-liste {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2.2rem;
}
.sv-mini {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #16181b;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.sv-mini img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.9);
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.sv-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,11,13,.92) 0%, rgba(10,11,13,.25) 50%, rgba(10,11,13,0) 100%);
}
.sv-mini::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  z-index: 3;
  background: var(--hi-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.sv-mini span {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sv-mini svg { width: 20px; height: 20px; flex: none; color: var(--hi-red); transition: transform .3s ease; }
.sv-mini:hover img, .sv-mini:focus-visible img { transform: scale(1.05); filter: none; }
.sv-mini:hover::after, .sv-mini:focus-visible::after { transform: scaleX(1); }
.sv-mini:hover svg { transform: translateX(4px); }
.sv-mini:focus-visible { outline: 2px solid var(--hi-red); outline-offset: 2px; }

/* ---------- Abschluss ---------- */
.sv-schluss { border-top: 2px solid var(--hi-red); padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(4.5rem, 8vw, 6rem); }
.sv-schluss .sv-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  align-items: end;
}
.sv-schluss .sv-h2 { max-width: 14ch; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.sv-schluss-text p {
  max-width: 44ch;
  margin: 0 0 2.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}
.sv-adresse {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-left: 1.6rem;
  border-left: 1px solid rgba(255,255,255,.14);
  font-style: normal;
  font-size: .98rem;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
}
.sv-adresse b { color: #fff; font-weight: 700; }
.sv-adresse a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.3);
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.sv-adresse a:hover { text-decoration-color: var(--hi-red); }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1023px) {
  .sv-schritte { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.6rem; }
  .sv-weitere-liste {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12rem, 40%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1.5rem;
    scrollbar-width: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 1.5rem;
  }
  .sv-weitere-liste::-webkit-scrollbar { display: none; }
  .sv-mini { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .sv-hero { grid-template-columns: 1fr; min-height: 0; }
  .sv-hero-bild { order: -1; aspect-ratio: 4 / 3; max-height: 56vh; }
  .sv-hero-text { padding: 2.2rem 1.5rem 3.4rem; }
  .sv-pfad { margin-bottom: 1.6rem; }
  .sv-umfang { grid-template-columns: 1fr; gap: 2rem; }
  .sv-umfang-kopf { position: static; }
  .sv-punkte li { grid-template-columns: 1fr; padding: 1.3rem 0; }
  .sv-punkte p { padding-left: calc(8px + .75rem); }
  .sv-schluss .sv-wrap { grid-template-columns: 1fr; }
  .sv-adresse { padding: 1.6rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 767px) {
  .sv-wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  .sv-hero-text { padding: 2rem 1.1rem 3rem; }
  .sv-cta { width: 100%; }
  .sv-weitere-liste { grid-auto-columns: 62%; margin-left: -1.1rem; margin-right: -1.1rem; padding: 0 1.1rem; scroll-padding: 0 1.1rem; }
}
@media (max-width: 560px) {
  .sv-schritte { grid-template-columns: 1fr; gap: 2rem; }
  .sv-nr { font-size: 2.6rem; margin-bottom: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-hero-text > *, .sv-hero-bild img { animation: none; }
  .sv-mini img, .sv-mini::after, .sv-mini svg, .sv-tel svg { transition: none; }
}
