/* =========================================================================
   pages.css - additive styles for prepared sub-pages (Leistungen + Ratgeber)
   Loads ON TOP of styles.css. Reuses existing :root tokens. Never edit styles.css.
   ========================================================================= */

/* Sub-pages render statically: force reveal-elements visible so no section is
   ever blank in a screenshot (known recurring bug). Animation stays on index. */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* ---- Light-background button variant (styles.css .button-secondary is for dark) ---- */
.button-ghost {
  border-color: rgba(20, 20, 20, 0.22);
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

/* ---- Kompakte Angebots-/Formular-Sektion (Hub + Ratgeber-Artikel) ---- */
.quote-compact {
  padding-top: clamp(48px, 8vh, 76px);
  padding-bottom: clamp(48px, 8vh, 76px);
}
.quote-compact .quote-layout {
  max-width: 1020px;
  margin: 0 auto;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
}
.quote-compact .quote-copy {
  position: static;
  top: auto;
}
.quote-compact .quote-copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 16px;
}
.quote-compact .quote-form {
  padding: 18px;
  gap: 10px;
}
.quote-compact .quote-form .form-field { gap: 5px; }
.quote-compact .quote-form input,
.quote-compact .quote-form select,
.quote-compact .quote-form textarea {
  min-height: 44px;
  padding: 9px 13px;
}
.quote-compact .quote-form textarea {
  min-height: 70px;
  height: 70px;
}
.quote-compact .quote-form label { font-size: 0.86rem; }
@media (max-width: 760px) {
  .quote-compact .quote-layout { grid-template-columns: 1fr; }
}
/* Helles Farbschema (statt des dunklen Homepage-Looks) */
.quote-section.quote-compact {
  background: var(--paper);
  color: var(--ink);
}
.quote-section.quote-compact h2 { color: var(--ink); }
.quote-section.quote-compact .quote-copy p { color: var(--muted); }
.quote-section.quote-compact label { color: var(--ink); }
.quote-section.quote-compact .quote-checklist span {
  border-color: var(--line-light);
  background: var(--paper-strong);
  color: var(--ink);
}
.quote-section.quote-compact .direct-call:hover { color: var(--ink); }
.quote-section.quote-compact .quote-form {
  background: var(--paper-strong);
  border-color: var(--line-light);
  box-shadow: 0 20px 50px rgba(20, 20, 20, 0.08);
  backdrop-filter: none;
}
.quote-section.quote-compact .quote-form:focus-within {
  border-color: rgba(243, 59, 30, 0.42);
  box-shadow: 0 22px 60px rgba(20, 20, 20, 0.10);
}
.quote-section.quote-compact .quote-form input,
.quote-section.quote-compact .quote-form select,
.quote-section.quote-compact .quote-form textarea {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-light);
}
.quote-section.quote-compact ::placeholder { color: rgba(20, 20, 20, 0.42); }

/* ---- Service-page hero (dark, full-bleed image + scrim, like the homepage hero) ---- */
.svc-hero {
  position: relative;
  background: var(--black);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.svc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.svc-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.74) 0%, rgba(9, 9, 9, 0.86) 60%, rgba(9, 9, 9, 0.94) 100%);
}
.svc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(116px, 15vh, 152px) 0 clamp(46px, 9vh, 92px);
}
.svc-hero .crumbs {
  margin: 0;
  padding: 0 0 20px;
  color: rgba(255, 255, 255, 0.55);
}
.svc-hero .crumbs a { color: rgba(255, 255, 255, 0.55); }
.svc-hero .crumbs a:hover { color: var(--white); }
.svc-hero .crumbs span[aria-current] { color: var(--white); }
.svc-hero h1 {
  font-family: "Big Shoulders Display", "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 12px auto 18px;
  max-width: 20ch;
  text-wrap: balance;
}
.svc-hero h1 .accent { color: var(--red); }
.svc-hero .lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.62;
  color: rgba(246, 240, 229, 0.84);
  max-width: 56ch;
  margin: 0 auto 28px;
}
.svc-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Hero: zentrierter Inhalt (Kicker, Heading, Lead, Buttons mittig) */
.svc-hero-inner { text-align: center; }
.svc-hero-copy {
  max-width: 860px;
  margin-inline: auto;
}
.svc-hero .crumbs { text-align: center; justify-content: center; }

@media (max-width: 600px) {
  /* keep the keyword title (~2 lines max); hide the decorative tagline so it never wraps to 4 lines */
  .svc-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .svc-hero h1 br { display: none; }
  .svc-hero h1 .accent { display: none; }
  .svc-hero .lead { font-size: 1rem; }
}
@media (max-width: 560px) {
  .svc-hero .hero-actions .button { width: 100%; }
}

/* ---- Hero v2: an die Homepage-Hero angeglichen ----
   Grosse Keyword-Zeile + orange Stadt + kleine, fast weisse Tagline (wie .title-accent),
   Lead in Homepage-Typo (Manrope 1.22rem, weiss). Nur auf .svc-hero-v2, damit andere
   Unterseiten unveraendert bleiben, bis wir sie nachziehen. */
.svc-hero.svc-hero-v2 h1 {
  font-size: 72px;
  max-width: 22ch;
}
.svc-hero-v2 .svc-tline { display: block; font-size: 72px; }
.svc-hero-v2 .svc-tline:first-child { font-size: 72px; }
.svc-hero-v2 .svc-tcity { color: var(--yellow); }
.svc-hero-v2 .svc-taccent {
  font-size: 35px;
  line-height: 1.15;
  color: #ffffff;
}
/* Mobile: proportional runter, aber ueberall gleich (Verhaeltnis 72:35) */
@media (max-width: 720px) {
  .svc-hero.svc-hero-v2 h1,
  .svc-hero-v2 .svc-tline,
  .svc-hero-v2 .svc-tline:first-child { font-size: 44px; }
  .svc-hero-v2 .svc-taccent { font-size: 22px; }
}
/* Ratgeber-Artikel: zweite Titelzeile klein (orange Akzent), wie die Tagline bei Services */
.svc-hero-v2 .svc-tsub {
  font-size: 0.5em;
  line-height: 1.12;
  color: var(--yellow);
}

/* Einsatzgebiet-Seiten (standort): lange Ortsnamen + lange Leads wirken sonst ueberladen.
   Headline kleiner (Ortsname bekommt Seitenrand), mehr Luft zum Lead, Lead etwas ruhiger. */
.standort-page .svc-hero.svc-hero-v2 h1 {
  font-size: clamp(2.2rem, 4.7vw, 4.3rem);
  margin-bottom: 24px;
}
.standort-page .svc-hero-v2 .svc-taccent { margin-top: 0.1em; }
.standort-page .svc-hero.svc-hero-v2 .lead {
  font-size: 1.08rem;
  line-height: 1.64;
  max-width: 640px;
}
@media (max-width: 600px) {
  .standort-page .svc-hero.svc-hero-v2 h1 { font-size: clamp(1.9rem, 8.6vw, 2.7rem); margin-bottom: 16px; }
  .standort-page .svc-hero.svc-hero-v2 .lead { font-size: 0.86rem; line-height: 1.52; }
}
.svc-hero.svc-hero-v2 .lead {
  font-size: 1.22rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}
/* Kern-Aussage hervorgehoben (fett + volles Weiss), wie der bold Einstieg der Homepage-Subheadline */
.svc-hero-v2 .lead strong { font-weight: 700; color: #fff; }
/* Hintergrundfoto praesenter (wie Homepage), Scrim nur so dunkel wie noetig fuer den zentrierten weissen Text */
.svc-hero-v2 .svc-hero-bg {
  opacity: 1;
  filter: saturate(0.86) contrast(1.1) brightness(0.82);
}
.svc-hero-v2 .svc-hero-scrim {
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.62) 0%, rgba(9, 9, 9, 0.7) 46%, rgba(9, 9, 9, 0.85) 100%);
}
@media (max-width: 600px) {
  .svc-hero.svc-hero-v2 h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .svc-hero.svc-hero-v2 .lead { font-size: 0.88rem; line-height: 1.5; }
}
/* Desktop: alle v2-Heros exakt gleich hoch, Inhalt vertikal zentriert
   (Mobile-Gleichhoehe kommt aus dem vw-Block weiter unten). */
@media (min-width: 821px) {
  .svc-hero.svc-hero-v2 .svc-hero-inner {
    min-height: 45rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Mobile: alle Unterseiten-Heros gleich hoch, Inhalt vertikal zentriert.
   Hoehe an die Viewport-BREITE (vw) gekoppelt statt an die Hoehe, damit der Hero
   beim Scrollen NICHT mitwaechst, wenn die iOS-Adressleiste ein-/ausfaehrt. */
@media (max-width: 820px) {
  .svc-hero-inner {
    min-height: clamp(30rem, 155vw, 44rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 104px;
    padding-bottom: 40px;
  }
  .svc-hero .crumbs { padding-bottom: 16px; }
}

/* ---- Service-page intro prose (H2 + keyword-optimised body paragraphs) ---- */
.svc-intro {
  margin: 0 auto;
  max-width: 74ch;
}
.svc-intro .kicker.dark { margin-bottom: 14px; }
.svc-intro h2 { margin-top: 0; }

/* ---- Fresher editorial split: headline left, body right, left-aligned ---- */
.svc-intro-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
  max-width: 1060px;
}
.svc-intro-head {
  position: relative;
  padding-left: 22px;
}
.svc-intro-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--red);
}
.svc-intro-head .kicker.dark { margin-bottom: 16px; }
.svc-intro-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}
.svc-intro-body { max-width: 60ch; }
.svc-intro-body p:first-child { margin-top: 0; }

/* ---- Standort-Seiten: verankerter Local-Intro (helle Band + zentriertes, gestaffeltes Layout) ---- */
.local-band {
  background: var(--paper-strong);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.local-intro {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.local-intro-badge {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(243, 59, 30, 0.10);
  color: var(--red);
  margin-bottom: 22px;
}
.local-intro-badge svg { width: 28px; height: 28px; }
.local-intro .kicker.dark {
  margin-bottom: 18px;
  justify-content: center;
}
.local-intro h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.local-intro-rule {
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  margin-top: 28px;
}
.local-intro-lead {
  margin: 26px 0 0;
  max-width: 54ch;
  font-size: clamp(1.1rem, 1.55vw, 1.24rem);
  line-height: 1.58;
  color: var(--ink);
}
.local-intro-body {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.72;
}
.local-intro a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.local-intro a:hover { text-decoration-thickness: 2px; }

/* ---- Standort-Intro als Split: Text links, Bild rechts ---- */
.local-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.local-split-copy { max-width: 60ch; }
.local-split-copy .kicker.dark { margin-bottom: 16px; }
.local-split-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.local-split-copy .local-intro-lead {
  margin: 0 0 16px;
  max-width: none;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink);
}
.local-split-copy .local-intro-body {
  margin: 0;
  max-width: none;
  color: var(--muted);
  line-height: 1.72;
}
.local-split-copy a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.local-split-copy a:hover { text-decoration-thickness: 2px; }
.local-split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line-light);
}
@media (max-width: 820px) {
  .local-split { grid-template-columns: 1fr; gap: 26px; }
  .local-split-media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .local-intro-badge { width: 54px; height: 54px; margin-bottom: 18px; }
}
@media (max-width: 760px) {
  .svc-intro-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- Editorial FAQ: sticky heading + call rail (left), accordion list (right) ---- */
.faq-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}
.faq-rail {
  position: sticky;
  top: 116px;
  padding-left: 22px;
  border-left: 4px solid var(--red);
}
.faq-rail .kicker.dark { margin-bottom: 16px; }
.faq-rail h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
}
.faq-rail-lead {
  margin: 0 0 26px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.faq-rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-strong);
  text-decoration: none;
  transition: transform 220ms var(--ease), background-color 220ms ease;
}
.faq-rail-cta:hover {
  transform: translateY(-2px);
  background: var(--red);
}
.faq-rail-cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(246, 240, 229, 0.14);
}
.faq-rail-cta-icon svg { width: 20px; height: 20px; }
.faq-rail-cta-copy { display: flex; flex-direction: column; line-height: 1.2; }
.faq-rail-cta-copy small {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.faq-rail-cta-copy strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list .faq-card summary { font-size: 1.08rem; }
@media (max-width: 880px) {
  .faq-editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq-rail { position: static; }
}

/* ---- "Worum es geht": eigenständiges dunkles Panel mit Hintergrundbild ---- */
.worum { background: var(--paper); }
.worum-panel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.worum-panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: -1;
}
.worum-panel-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 9, 9, 0.96) 0%, rgba(9, 9, 9, 0.9) 42%, rgba(9, 9, 9, 0.76) 100%);
}
.worum-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
  padding: clamp(40px, 6vw, 76px) clamp(28px, 5vw, 68px);
}
.worum-head {
  position: relative;
  padding-left: 22px;
  border-left: 4px solid var(--red);
}
.worum-head .kicker { margin-bottom: 16px; }
.worum-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper-strong);
}
.worum-body p {
  margin: 0;
  max-width: 56ch;
  color: rgba(246, 240, 229, 0.85);
  font-size: 1.04rem;
  line-height: 1.72;
}
.worum-body p + p { margin-top: 1.1em; }
@media (max-width: 760px) {
  .worum-panel-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- "Warum wir" trust row: 4 numbered cards side by side ---- */
.why { background: var(--paper); }
.why-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.why-head .kicker.dark { margin-bottom: 14px; justify-content: center; }
.why-head h2 { margin: 0 0 12px; }
.why-head > p { margin: 0 auto; max-width: 60ch; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: var(--paper-strong);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms var(--ease);
}
.why-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 59, 30, 0.32);
  box-shadow: 0 18px 38px rgba(20, 20, 20, 0.07);
}
.why-card:hover::before { transform: scaleX(1); }
.why-num {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 16px;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(243, 59, 30, 0.1);
  color: var(--red);
}
.why-icon svg { width: 23px; height: 23px; }
.why-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}
.why-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 920px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---- Ratgeber teaser: heading row + 3 image cards ---- */
.ratgeber { background: var(--paper); }
.ratgeber-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}
.ratgeber-head .kicker.dark { margin-bottom: 12px; }
.ratgeber-head h2 { margin: 0; }
.ratgeber-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  white-space: nowrap;
}
.ratgeber-all svg { transition: transform 220ms var(--ease); }
.ratgeber-all:hover { color: var(--red); }
.ratgeber-all:hover svg { transform: translateX(4px); }
.ratgeber-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ratgeber-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: var(--paper-strong);
  overflow: hidden;
  text-decoration: none;
  transition: transform 260ms var(--ease), border-color 240ms ease, box-shadow 260ms var(--ease);
}
.ratgeber-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 59, 30, 0.3);
  box-shadow: 0 22px 46px rgba(20, 20, 20, 0.1);
}
.ratgeber-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.ratgeber-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.ratgeber-card:hover .ratgeber-media img { transform: scale(1.06); }
.ratgeber-body { display: flex; flex-direction: column; padding: 20px 22px 22px; flex: 1; }
.ratgeber-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-strong);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ratgeber-body h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
}
.ratgeber-body > p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.ratgeber-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
}
.ratgeber-card:hover .ratgeber-link svg { transform: translateX(3px); }
.ratgeber-link svg { transition: transform 220ms var(--ease); }
@media (max-width: 880px) {
  .ratgeber-grid { grid-template-columns: 1fr; max-width: 460px; }
  .ratgeber-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- Final CTA: full-bleed dark closer block ---- */
.final-cta {
  background: var(--black);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 50% -10%, rgba(243, 59, 30, 0.28) 0%, rgba(243, 59, 30, 0) 55%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) 0;
  text-align: center;
}
.final-cta .kicker {
  justify-content: center;
  color: var(--red);
  margin-bottom: 18px;
}
.final-cta h2 {
  font-family: "Big Shoulders Display", "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 auto 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.final-cta-lead {
  margin: 0 auto 30px;
  max-width: 52ch;
  color: rgba(246, 240, 229, 0.82);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.6;
}
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
@media (max-width: 560px) {
  .final-cta-actions .button { width: 100%; }
}

/* ---- Blog index page header (H1 styled like a section heading, no hero) ---- */
.blog-head h1 {
  color: var(--ink);
  font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.74rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  line-height: 1.04;
  max-width: 820px;
  margin: 0 0 14px;
}
.blog-head h1 .accent { color: var(--red); }
.blog-head .post-meta { margin-bottom: 14px; }

/* ---- Standardised blog hero: text left + photo right (desktop), photo below text (mobile) ---- */
.blog-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
}
.blog-hero .wrap {
  max-width: var(--container);
  margin: 0 auto;
  /* top padding clears the fixed header (~104px) */
  padding: clamp(104px, 13vh, 140px) 0 clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.blog-hero-copy { min-width: 0; }
.blog-hero .crumbs { margin: 0 0 16px; padding: 0; }
.blog-hero .post-meta { margin: 0 0 14px; }
.blog-hero h1 {
  color: var(--ink);
  font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.95rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0 0 16px;
  max-width: 20ch;
}
.blog-hero h1 .accent { color: var(--red); }
.blog-hero .lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 54ch;
  margin: 0 0 22px;
}
.blog-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.blog-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-hero-media .badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--black);
  color: var(--paper-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 13px;
  border-radius: 999px;
}
@media (max-width: 880px) {
  .blog-hero .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: clamp(92px, 18vw, 112px);
  }
  /* copy stays first in the DOM, so the photo renders BELOW the text on mobile */
  .blog-hero-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .blog-hero .hero-actions .button { width: 100%; }
}

/* ---- Breadcrumbs ---- */
.crumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 700; }
.crumbs .sep { opacity: 0.5; }

/* ---- Sub-page hero (paper, compact) ---- */
.subpage-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
}
.subpage-hero .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 34px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.subpage-hero h1 {
  font-family: "Big Shoulders Display", "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.subpage-hero h1 .accent { color: var(--red); }
.subpage-hero .lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 52ch;
  margin: 0 0 26px;
}
.subpage-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.subpage-hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.subpage-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subpage-hero-media .badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--black);
  color: var(--paper-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 14px;
  border-radius: 999px;
}

/* ---- Prose (article / service detail body) ---- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
}
.prose h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 1.4em;
}
.prose p, .prose li { font-size: 1.04rem; line-height: 1.72; color: var(--ink); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 700; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--red);
  background: var(--paper-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.08rem;
}

/* ---- Two-column body+aside layout ---- */
.detail-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
/* vertikal mittig sticky statt oben klebend (Boxhoehe ~480px -> halbe = 240px) */
.detail-aside { position: sticky; top: max(24px, calc(50vh - 240px)); display: grid; gap: 20px; }
.aside-card {
  background: var(--graphite);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
}
.aside-card.light {
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid var(--line-light);
}
.aside-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  margin: 0 0 12px;
}
.aside-card p { font-size: 0.95rem; line-height: 1.6; margin: 0 0 16px; opacity: 0.92; }
.aside-card .button { width: 100%; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-card ul li {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.aside-card ul li::before { content: "✓"; color: var(--red); font-weight: 900; }

/* ---- Spec / scope checklist ---- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.spec-item {
  background: var(--paper-strong);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 20px;
}
.spec-item h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.spec-item h3 .n {
  font-family: "Big Shoulders Display", sans-serif;
  color: var(--red);
  font-size: 1.3rem;
}
.spec-item p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: var(--muted); }

/* ---- Related services / posts grid ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--paper-strong);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 200ms var(--spring), box-shadow 200ms ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.related-card .body { padding: 18px 20px 22px; }
.related-card .body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.related-card .body p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.related-card .more {
  display: inline-block;
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
}

/* ---- Blog list ---- */
.post-meta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.post-meta .tag {
  background: var(--red);
  color: var(--paper-strong);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 700;
}
.post-featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--paper-strong);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-featured img { width: 100%; height: clamp(260px, 30vw, 400px); object-fit: cover; min-height: 0; }
.post-featured .body { padding: clamp(24px, 4vw, 44px); }
.post-featured h2 {
  font-family: "Big Shoulders Display", "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.02;
  margin: 14px 0 14px;
}

/* ---- Table of contents (article) ---- */
.toc {
  background: var(--paper-strong);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol { margin: 10px 0 0; padding-left: 1.1em; }
.toc li { margin-top: 7px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); }

/* ---- Article footer author / share ---- */
.article-author {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.article-author img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; }
.article-author strong { font-family: "Space Grotesk", sans-serif; }
.article-author small { display: block; color: var(--muted); }

/* ---- Section helper for paper sub-pages ---- */
.section.paper { background: var(--paper); }
.section.tight { padding-top: 0; }
.section.tight-b { padding-bottom: 40px; }
.section.tight-t { padding-top: 40px; }
@media (max-width: 820px) {
  .section.tight-b { padding-bottom: 26px; }
  .section.tight-t { padding-top: 26px; }
}

/* Tighter vertical rhythm on sub-pages only (homepage doesn't load pages.css).
   Original .section padding is 96px top+bottom -> ~192px gaps; trim it down. */
.section {
  padding-top: clamp(40px, 6vh, 68px);
  padding-bottom: clamp(40px, 6vh, 68px);
}
@media (max-width: 700px) {
  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .subpage-hero .wrap { grid-template-columns: 1fr; }
  .subpage-hero-media { order: -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .post-featured { grid-template-columns: 1fr; }
  /* stacked: no sibling column to match height to, so crop to a landscape
     ratio instead of letting the portrait source render full-height */
  .post-featured img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
}


/* "Passt dazu" / Weitere Leistungen: dunkles Band in Brand-Schwarz (alle Service-Seiten) */
.section.ratgeber.weitere-services {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.weitere-services .kicker.dark { color: var(--red); }
.weitere-services h2 { color: #ffffff; }
.weitere-services .ratgeber-all { color: rgba(255, 255, 255, 0.82); }
.weitere-services .ratgeber-all:hover { color: var(--red); }
.weitere-services .ratgeber-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}
.weitere-services .ratgeber-card:hover {
  border-color: rgba(243, 59, 30, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
.weitere-services .ratgeber-tag { background: var(--red); color: #ffffff; }
.weitere-services .ratgeber-body h3 { color: #ffffff; }
.weitere-services .ratgeber-body > p { color: var(--muted-dark); }
.weitere-services .ratgeber-link { color: var(--red); }


/* "Weiterlesen" / Mehr aus dem Ratgeber: dunkles Band in Brand-Schwarz (alle Ratgeber-Artikel) */
.section.paper.weiterlesen {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.weiterlesen .kicker.dark { color: var(--red); }
.weiterlesen h2 { color: #ffffff; }
.weiterlesen .ratgeber-all { color: rgba(255, 255, 255, 0.82); }
.weiterlesen .ratgeber-all:hover { color: var(--red); }
.weiterlesen .ratgeber-card {
  background: var(--graphite);
  border-color: rgba(255, 255, 255, 0.12);
}
.weiterlesen .ratgeber-card:hover { border-color: rgba(243, 59, 30, 0.5); }
.weiterlesen .ratgeber-body h3 { color: #ffffff; }
.weiterlesen .ratgeber-body > p { color: var(--muted-dark); }
.weiterlesen .ratgeber-tag { background: var(--red); color: #ffffff; }
.weiterlesen .ratgeber-link { color: var(--red); }


/* weiterlesen: dunkle Cards + kompaktere, luftigere Section (Fix: nutzt .related-card) */
.section.paper.weiterlesen {
  padding-top: clamp(52px, 7vh, 76px);
  padding-bottom: clamp(52px, 7vh, 76px);
}
.weiterlesen .section-head { margin-bottom: 30px; }
.weiterlesen .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weiterlesen .related-card {
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.weiterlesen .related-card:hover { border-color: rgba(243, 59, 30, 0.5); box-shadow: 0 26px 60px rgba(0,0,0,0.45); }
.weiterlesen .related-card .body { padding: 20px 22px 22px; }
.weiterlesen .related-card .body h3 { color: #ffffff; }
.weiterlesen .related-card .body p { color: var(--muted-dark); }
.weiterlesen .related-card .more { color: var(--red); }
@media (max-width: 860px) { .weiterlesen .related-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* Ratgeber-Hub: 3 Spalten (statt auto-fit-4), damit 6 Artikel als 3+3 stehen */
.ratgeber-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ratgeber-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ratgeber-hub-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
