:root {
  --market-paper: #faf7f1;
  --market-paper-strong: #fffdf9;
  --market-paper-alt: #eee7da;
  --market-ink: #111a16;
  --market-ink-soft: #53615b;
  --market-line: #d8d1c6;
  --market-green: #0c705c;
  --market-green-dark: #155e4b;
  --market-green-pale: #d9efe8;
  --market-purple: #493480;
  --market-night: #10261f;
  --market-display: "Space Grotesk", system-ui, sans-serif;
  --market-body: "DM Sans", system-ui, sans-serif;
}

body.market-service-page {
  margin: 0;
  overflow-x: clip;
  background: var(--market-paper);
  color: var(--market-ink);
  font-family: var(--market-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.market-service-page *,
.market-service-page *::before,
.market-service-page *::after {
  box-sizing: border-box;
}

.market-service-page ::selection {
  background: var(--market-green-pale);
  color: var(--market-ink);
}

.market-service-page :focus-visible {
  outline: 3px solid var(--market-green);
  outline-offset: 4px;
}

.market-service-page .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.market-service-page .transition-all {
  transition-property: background-color, border-color, color, box-shadow, transform !important;
  transition-duration: 160ms !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.market-service-page main {
  overflow: clip;
}

.market-service-page .hero-noise {
  position: relative;
  border-bottom: 1px solid var(--market-line);
  background-color: var(--market-paper);
  background-image:
    linear-gradient(rgba(17, 26, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 26, 22, 0.045) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  background-attachment: scroll !important;
}

.market-service-page .hero-noise::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--market-paper) 94%);
  content: "";
  pointer-events: none;
}

.market-service-page .hero-noise > *,
.market-service-page nav.hero-noise > * {
  position: relative;
  z-index: 1;
}

.market-service-page nav[aria-label="Breadcrumb"],
.market-service-page nav[aria-label="Brotkrümelnavigation"] {
  padding-top: 7.25rem !important;
  background-color: var(--market-paper);
  color: var(--market-ink-soft);
  font-family: var(--market-display);
}

.market-service-page nav[aria-label="Breadcrumb"] a,
.market-service-page nav[aria-label="Brotkrümelnavigation"] a {
  text-decoration-color: color-mix(in srgb, var(--market-green) 45%, transparent);
  text-underline-offset: 0.25rem;
}

.market-service-page .hero-noise section,
.market-service-page main > section:first-of-type {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 8vw, 7.5rem) !important;
  background: transparent;
}

/* Die Regel darüber stellt den Hero von dunkel auf hell um. Die hellen
   Schriftfarben aus dem dunklen Entwurf blieben dabei stehen: Preiszeile,
   Eyebrows und der Anruf-Link standen auf 25 Marktseiten mit 1:1 unsichtbar
   auf Papier. Hier bekommt der helle Hero durchgängig Tintenfarbe. */
.market-service-page .hero-noise section,
.market-service-page main > section:first-of-type {
  color: var(--market-ink);
}

.market-service-page .hero-noise section [class*="text-bg"],
.market-service-page main > section:first-of-type [class*="text-bg"] {
  color: var(--market-ink) !important;
}

.market-service-page .hero-noise section [class*="text-bg/65"],
.market-service-page .hero-noise section [class*="text-bg/30"],
.market-service-page main > section:first-of-type [class*="text-bg/65"],
.market-service-page main > section:first-of-type [class*="text-bg/30"] {
  color: var(--market-ink-soft) !important;
}

.market-service-page .hero-noise section > div,
.market-service-page main > section:first-of-type > div,
.market-shell {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0 !important;
}

.market-service-page .hero-noise section > div > .grid,
.market-service-page main > section:first-of-type > div > .grid {
  gap: clamp(2.5rem, 6vw, 5.75rem) !important;
  align-items: center;
}

.market-service-page .hero-noise h1,
.market-service-page main > section:first-of-type h1 {
  max-width: 55rem;
  margin: 0.9rem 0 0;
  color: var(--market-ink);
  font-family: var(--market-display);
  font-size: clamp(3rem, 5.8vw, 5.7rem) !important;
  font-weight: 650 !important;
  hyphens: none;
  letter-spacing: -0.065em !important;
  line-height: 0.95 !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.market-service-page .hero-noise h1 .text-primary,
.market-service-page .hero-noise h1 .text-accent,
.market-service-page main > section:first-of-type h1 .text-primary,
.market-service-page main > section:first-of-type h1 .text-accent {
  color: var(--market-green-dark) !important;
}

.market-service-page .hero-noise h1 + p,
.market-service-page main > section:first-of-type h1 + p,
.market-service-page .service-lead {
  max-width: 45rem;
  margin-top: 1.55rem !important;
  color: var(--market-ink-soft) !important;
  font-size: clamp(1.04rem, 1.5vw, 1.22rem) !important;
  line-height: 1.65 !important;
}

.market-service-page .hero-noise p[class*="uppercase"],
.market-service-page main > section:first-of-type p[class*="uppercase"] {
  color: var(--market-green-dark) !important;
  font-family: var(--market-display);
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
}

.market-service-page .hero-noise .mt-9.flex,
.market-service-page main > section:first-of-type .mt-9.flex {
  gap: 0.8rem 1.25rem !important;
  margin-top: 1.75rem !important;
}

.market-service-page .hero-noise .mt-9.flex > a,
.market-service-page main > section:first-of-type .mt-9.flex > a {
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem !important;
  border: 1px solid var(--market-green-dark) !important;
  border-radius: 0.35rem !important;
  font-family: var(--market-display);
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.market-service-page .hero-noise .mt-9.flex > a:first-child,
.market-service-page main > section:first-of-type .mt-9.flex > a:first-child {
  background: var(--market-green-dark) !important;
  color: var(--market-paper-strong) !important;
}

.market-service-page .hero-noise .mt-9.flex > a:not(:first-child),
.market-service-page main > section:first-of-type .mt-9.flex > a:not(:first-child) {
  background: transparent !important;
  color: var(--market-green-dark) !important;
}

.market-service-page .hero-noise .mt-8.grid,
.market-service-page main > section:first-of-type .mt-8.grid {
  gap: 0 !important;
  margin-top: 2rem !important;
  border-block: 1px solid var(--market-line);
}

.market-service-page .hero-noise .mt-8.grid > p,
.market-service-page main > section:first-of-type .mt-8.grid > p {
  min-height: 4.7rem;
  padding: 1rem 1.1rem !important;
  border: 0 !important;
  border-right: 1px solid var(--market-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--market-ink-soft) !important;
  font-size: 0.76rem !important;
  line-height: 1.45;
}

.market-service-page .hero-noise .mt-8.grid > p:last-child,
.market-service-page main > section:first-of-type .mt-8.grid > p:last-child {
  border-right: 0 !important;
}

.market-service-page .hero-noise .relative.rounded-2xl,
.market-service-page main > section:first-of-type .relative.rounded-2xl {
  border: 1px solid var(--market-line) !important;
  border-top: 6px solid var(--market-green) !important;
  border-radius: 0 !important;
  background: var(--market-paper-strong);
  box-shadow: 1.25rem 1.25rem 0 var(--market-green-pale) !important;
}

.market-service-page .hero-noise .relative.rounded-2xl > img,
.market-service-page main > section:first-of-type .relative.rounded-2xl > img {
  width: 100%;
  height: clamp(10rem, 17vw, 12.5rem) !important;
  border-bottom: 1px solid var(--market-line);
  object-fit: cover;
}

.market-service-page .hero-noise .relative.rounded-2xl > .absolute.inset-0,
.market-service-page main > section:first-of-type .relative.rounded-2xl > .absolute.inset-0 {
  display: none;
}

.market-service-page .hero-noise .relative.rounded-2xl > .absolute[class*="bottom"],
.market-service-page main > section:first-of-type .relative.rounded-2xl > .absolute[class*="bottom"] {
  position: static !important;
  padding: 1.25rem 1.3rem 1.4rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--market-paper-strong) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.market-service-page main > section:not(:first-of-type),
.market-service-page main > div + section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem) !important;
  border-bottom: 1px solid var(--market-line);
  background: var(--market-paper-strong);
}

.market-service-page main > section.bg-bg-alt,
.market-service-page main > section[class*="bg-[#FAF8F5]"],
.market-service-page main > section:nth-of-type(even) {
  background: var(--market-paper-alt) !important;
}

.market-service-page main > section > div:not(.market-shell) {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0 !important;
}

.market-service-page main section h2 {
  color: var(--market-ink) !important;
  font-family: var(--market-display) !important;
  font-size: clamp(2.1rem, 4vw, 4rem) !important;
  font-weight: 650 !important;
  hyphens: none;
  letter-spacing: -0.055em !important;
  line-height: 1 !important;
  text-align: left !important;
  text-wrap: balance;
}

.market-service-page main section h3 {
  color: var(--market-ink) !important;
  font-family: var(--market-display);
  font-weight: 650;
  line-height: 1.25;
}

.market-service-page main section > div.text-center {
  text-align: left !important;
}

.market-service-page main section p,
.market-service-page main section li,
.market-service-page main section dd {
  color: var(--market-ink-soft);
}

/* Die farbigen Stapelkarten setzen eigene helle Schrift. Die h3- und
   p-Regeln darüber haben sie mit Tintenfarbe überschrieben: Titel 2,95:1,
   Fließtext 1,08:1 auf grünem Grund. Innerhalb der Karten gilt die
   Kartenfarbe. */
.market-service-page main section [class*="ld-card-"] :is(h3, p, li, dd, span) {
  color: inherit !important;
}

.market-service-page main section p[class*="uppercase"],
.market-service-page main section p[class*="tracking"] {
  color: var(--market-green-dark) !important;
  font-family: var(--market-display);
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

/* Diese Karten-Regel traf mit !important auch die farbigen CTA-Buttons
   (rounded-lg + bg-accent). Ergebnis: weiße Schrift auf papierweißer
   Fläche, 1,02:1 — der Haupt-CTA war auf 25 Seiten unsichtbar.
   Buttons mit eigener Flächenfarbe sind jetzt ausgenommen. */
.market-service-page main section .rounded-xl:not([class*="bg-accent"]):not([class*="bg-primary"]),
.market-service-page main section .rounded-lg:not([class*="bg-accent"]):not([class*="bg-primary"]) {
  border-color: var(--market-line) !important;
  border-radius: 0.25rem !important;
  background: var(--market-paper-strong) !important;
  box-shadow: none !important;
}

.market-service-page main section .grid > a.rounded-xl,
.market-service-page main section .grid > div.rounded-xl {
  position: relative;
  padding: 1.25rem 1.3rem !important;
  border-top: 4px solid var(--market-green) !important;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.market-service-page main section .grid > a.rounded-xl:hover {
  border-color: var(--market-green-dark) !important;
  background: color-mix(in srgb, var(--market-paper-strong) 82%, var(--market-green-pale)) !important;
}

.market-service-page #faq > div,
.market-service-page section[id="faq"] > div {
  max-width: 60rem !important;
}

.market-service-page #faq h2,
.market-service-page section[id="faq"] h2 {
  max-width: 44rem;
  margin: 0 0 2rem !important;
}

.market-service-page #faq .divide-y,
.market-service-page section[id="faq"] .divide-y {
  counter-reset: market-faq;
  border-top: 1px solid var(--market-line);
}

.market-service-page #faq details,
.market-service-page section[id="faq"] details {
  counter-increment: market-faq;
  padding-block: 0 !important;
  border-bottom: 1px solid var(--market-line) !important;
}

.market-service-page #faq summary,
.market-service-page section[id="faq"] summary {
  min-height: 4.8rem;
  gap: 1rem;
  align-items: center;
  color: var(--market-ink) !important;
  font-family: var(--market-display);
  font-size: clamp(1rem, 1.8vw, 1.18rem) !important;
  font-weight: 650 !important;
}

.market-service-page #faq summary::before,
.market-service-page section[id="faq"] summary::before {
  flex: 0 0 2rem;
  color: var(--market-green-dark);
  content: counter(market-faq, decimal-leading-zero);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.market-service-page #faq details > p,
.market-service-page section[id="faq"] details > p {
  max-width: 46rem;
  margin: 0 0 1.5rem 3rem !important;
  color: var(--market-ink-soft) !important;
  line-height: 1.7 !important;
}

body.market-service-page main > section.market-service-cta {
  padding-block: clamp(5rem, 9vw, 8rem) !important;
  border-bottom: 0 !important;
  background: var(--market-night) !important;
  color: var(--market-paper) !important;
}

.market-cta-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.2fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.market-eyebrow {
  color: #a7d8ca !important;
  font-family: var(--market-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.market-service-page .market-service-cta h2 {
  color: var(--market-paper) !important;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem) !important;
}

.market-service-cta > .market-shell > div > p {
  color: #d0ddd7 !important;
  font-size: 1.02rem;
  line-height: 1.7;
}

.market-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--market-paper);
  border-radius: 0.35rem;
  background: var(--market-paper);
  color: var(--market-night) !important;
  font-family: var(--market-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.market-button:hover {
  background: transparent;
  color: var(--market-paper) !important;
}

@media (min-width: 1024px) {
  .market-service-page .hero-noise section > div > .grid,
  .market-service-page main > section:first-of-type > div > .grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.5fr) !important;
  }
}

@media (max-width: 767px) {
  .market-service-page nav[aria-label="Breadcrumb"],
  .market-service-page nav[aria-label="Brotkrümelnavigation"] {
    padding-top: 5.75rem !important;
  }

  .market-service-page .hero-noise h1,
  .market-service-page main > section:first-of-type h1 {
    font-size: clamp(2.55rem, 13vw, 4rem) !important;
    letter-spacing: -0.06em !important;
  }

  .market-service-page .hero-noise .mt-8.grid > p,
  .market-service-page main > section:first-of-type .mt-8.grid > p {
    min-height: 0;
    border-right: 0 !important;
    border-bottom: 1px solid var(--market-line) !important;
  }

  .market-service-page .hero-noise .mt-8.grid > p:last-child,
  .market-service-page main > section:first-of-type .mt-8.grid > p:last-child {
    border-bottom: 0 !important;
  }

  .market-service-page .hero-noise .relative.rounded-2xl,
  .market-service-page main > section:first-of-type .relative.rounded-2xl {
    margin-right: 0.9rem;
    box-shadow: 0.9rem 0.9rem 0 var(--market-green-pale) !important;
  }

  .market-service-page main > section:not(:first-of-type),
  .market-service-page main > div + section {
    padding-block: 4.5rem !important;
  }

  .market-service-page main section h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .market-service-page #faq details > p,
  .market-service-page section[id="faq"] details > p {
    margin-left: 0 !important;
  }

  .market-cta-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-service-page *,
  .market-service-page *::before,
  .market-service-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
