/* ─── Rechtstexte (/impressum, /datenschutz) ─────────────────────────────────
   Layout- und Typo-Layer fuer die Rechtsseiten im neuen Marketer-Branding.
   Nav- und Footer-Markup der Seiten sind 1:1 aus public/marketer/index.html
   uebernommen und werden von den beiden Webflow-Stylesheets gestyled, die die
   Seiten davor laden. Diese Datei laedt zuletzt und liefert nur, was der
   Marketer-Export nicht mitbringt: die Rechtstext-Typografie.
   Alle eigenen Klassen tragen den Prefix .lg- damit nichts mit den
   Webflow-Utilities kollidiert.

   Werte NICHT geschaetzt, sondern aus dem Live-CSS der Marketer-LP und der
   Typografie-Tabelle in DESIGN.md uebernommen:
     Display H1  .new-header-h2  3rem   · 400 · lh .9 · -1.92px (= -.04em)
     Display H2  .new-header-h3  2rem   · 400 · lh .9 · -1.28px (= -.04em)
     Gross       .text-size-big  1.25rem       · ls -.025rem
     Fliesstext  .text-size-reg. 1rem   · 400 · ls -.02rem
     Klein       .text-size-small .875rem      · ls -.02rem
     Tiny        .text-size-tiny .75rem
     Nav-Link    .nav-menu-link  .938rem · 400 · ls -.3px · transition all .45s
     Medium ist der einzige zugelassene Nicht-400-Schnitt (.text-weight-medium)
   „Sequel 100" ist Altbestand und wird hier nicht verwendet. */

:root {
  /* Tinten-Stufen exakt wie die .opacity-*-Utilities der LP */
  --lg-ink: #0c1615;      /* --text-dark, Basis von .body-new-branding */
  --lg-ink-64: #0c1615a3;
  --lg-ink-56: #0c16158f;
  --lg-ink-32: #0c161552;
  --lg-ink-16: #0c161529;

  --lg-green: #193f3b;    /* --new-green */
  --lg-teal-deep: #0a6b61;
  --lg-teal: #398783;
  --lg-teal-glow: #61e1d5;

  --lg-canvas: #f4f8f7;
  --lg-line: #0c161516;
  --lg-card-radius: 14px;
  --lg-shadow: 0 1px 2px rgba(16, 53, 49, 0.04), 0 14px 30px -14px rgba(16, 53, 49, 0.13);

  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lg-hover: all 0.45s;  /* Dauer der LP-Nav-Links */
}

/* Der Marketer-Export setzt Overflow-Clipping fuer die Scroll-Animationen.
   Rechtsseiten brauchen stattdessen sauberes Sticky-Verhalten fuer das
   Inhaltsverzeichnis. */
.lg-page .page-wrapper { overflow: visible; }
.lg-page { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  .lg-page { scroll-behavior: auto; }
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.lg-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Werte aus .nav-menu-link: kein font-weight (erbt 400), .938rem, -.3px, .45s */
.lg-nav-link {
  color: var(--lg-ink);
  font-size: 0.938rem;
  letter-spacing: -0.3px;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--lg-hover);
}

.lg-nav-link:hover { color: var(--lg-ink-64); }

/* Aktive Seite exakt wie .nav-menu-link.w--current: gedimmt PLUS Punkt-
   Indikator. Ohne den Punkt liest sich der gedimmte Zustand wie „deaktiviert"
   und die andere Seite wirkt hervorgehoben. Das Original haengt den Punkt in
   sein padding-right:2rem; hier reicht der Platz fuer den Punkt. */
.lg-nav-link.is-current {
  color: var(--lg-ink-32);
  background-image: url(/webflow-assets/6a858b430e8c8e630aa0942c_Ellipse-3028.svg);
  background-position: 100%;
  background-repeat: no-repeat;
  background-size: 0.25rem 0.25rem;
  padding-right: 0.625rem;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.lg-hero {
  background-color: #fff;
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.lg-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 88% -10%, rgba(97, 225, 213, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.lg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

/* Allcaps-Tiny wie im Nav-Label: .text-size-tiny + .text-weight-medium
   + .text-style-allcaps, Tracking aus der .ls-4-Variante (.03rem) */
.lg-eyebrow {
  color: var(--lg-teal-deep);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Display H1 = .new-header-h2 */
.lg-h1 {
  color: var(--lg-ink);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-wrap: balance;
}

.lg-h1 .italic-span {
  font-size: inherit;
  letter-spacing: -0.02em;
}

/* .text-size-big + .ls-minus-2 + .opacity-64 */
.lg-lede {
  color: var(--lg-ink-64);
  font-size: 1.25rem;
  letter-spacing: -0.025rem;
  line-height: 1.5;
  max-width: 38rem;
  margin: 1.5rem 0 0;
}

/* Die LP schaltet .text-size-big auf Mobile per .mobile-16 auf 1rem zurueck */
@media (max-width: 479px) {
  .lg-lede { font-size: 1rem; }
}

/* .text-size-small + .ls-minus-2 + .opacity-32 */
.lg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  color: var(--lg-ink-32);
  font-size: 0.875rem;
  letter-spacing: -0.02rem;
}

.lg-meta-dot {
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 999px;
  background-color: var(--lg-teal-glow);
  box-shadow: 0 0 0 0.1875rem rgba(97, 225, 213, 0.22);
}

/* ─── Body-Layout ──────────────────────────────────────────────────────── */

.lg-body {
  background-color: var(--lg-canvas);
  border-top: 1px solid var(--lg-line);
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.lg-layout { display: block; }

@media (min-width: 992px) {
  .lg-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

/* ─── Inhaltsverzeichnis ───────────────────────────────────────────────── */

.lg-toc { display: none; }

@media (min-width: 992px) {
  .lg-toc {
    display: block;
    position: sticky;
    top: 2.5rem;
  }
}

.lg-toc-title {
  color: var(--lg-ink-32);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--lg-line);
}

.lg-toc-list {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* .text-size-small + .ls-minus-2 + .opacity-64 */
.lg-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.375rem 0;
  color: var(--lg-ink-64);
  font-size: 0.875rem;
  letter-spacing: -0.02rem;
  line-height: 1.45;
  text-decoration: none;
  transition: var(--lg-hover);
}

.lg-toc-list a:before {
  content: "";
  flex: none;
  width: 0.3125rem;
  height: 0.3125rem;
  margin-top: 0.4375rem;
  border-radius: 999px;
  background-color: var(--lg-teal-glow);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lg-toc-list a:hover { color: var(--lg-ink); }

.lg-toc-list a.is-active {
  color: var(--lg-teal-deep);
  font-weight: 500;
}

.lg-toc-list a.is-active:before { transform: scale(1); }

/* ─── Prosa ────────────────────────────────────────────────────────────── */

.lg-prose { max-width: 46rem; }

.lg-section { scroll-margin-top: 2.5rem; }
.lg-section + .lg-section { margin-top: 3.5rem; }

/* Display H2 = .new-header-h3 */
.lg-h2 {
  color: var(--lg-ink);
  font-size: clamp(1.625rem, 3.2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}

/* .text-size-big + .text-weight-medium */
.lg-h3 {
  color: var(--lg-ink);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025rem;
  line-height: 1.4;
  text-wrap: balance;
  margin: 2.5rem 0 0.875rem;
}

/* .text-size-regular + .text-weight-medium */
.lg-h4 {
  color: var(--lg-ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  line-height: 1.4;
  text-wrap: balance;
  margin: 1.75rem 0 0.625rem;
}

/* Fliesstext in voller Tinte: Rechtstexte sind lange Lesestrecken, die
   .opacity-64-Stufe bleibt den Sekundaer-Elementen vorbehalten. */
.lg-prose p,
.lg-prose li {
  color: var(--lg-ink);
  font-size: 1rem;
  letter-spacing: -0.02rem;
  line-height: 1.7;
}

.lg-prose p { margin: 0 0 1rem; }
.lg-prose p:last-child { margin-bottom: 0; }

.lg-prose ul,
.lg-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.125rem;
}

.lg-prose li { margin-bottom: 0.5rem; }
.lg-prose li:last-child { margin-bottom: 0; }
.lg-prose li::marker { color: var(--lg-teal); }

.lg-prose strong { font-weight: 500; }

.lg-prose a {
  color: var(--lg-teal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(10, 107, 97, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: var(--lg-hover);
}

.lg-prose a:hover { text-decoration-color: var(--lg-teal-deep); }

/* ─── Karten ───────────────────────────────────────────────────────────── */

.lg-card {
  background-color: #fff;
  border-radius: var(--lg-card-radius);
  box-shadow: var(--lg-shadow);
  padding: 2rem;
}

@media (max-width: 479px) {
  .lg-card { padding: 1.5rem 1.25rem; }
}

.lg-card + .lg-card { margin-top: 1rem; }

/* Anbieterdaten als Definitionsliste */
.lg-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 2rem;
}

@media (min-width: 480px) {
  .lg-dl { grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); }
}

.lg-dl dt {
  color: var(--lg-ink-32);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  padding-top: 0.9375rem;
}

.lg-dl dd {
  color: var(--lg-ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 0.9375rem;
  border-bottom: 1px solid var(--lg-line);
}

@media (min-width: 480px) {
  .lg-dl dd { padding-top: 0.9375rem; }
  .lg-dl dt { border-bottom: 1px solid var(--lg-line); }
}

.lg-dl dd:last-of-type,
.lg-dl dt:last-of-type { border-bottom: 0; padding-bottom: 0; }

.lg-dl a {
  color: var(--lg-teal-deep);
  text-decoration: underline;
  text-decoration-color: rgba(10, 107, 97, 0.32);
  text-underline-offset: 0.2em;
  transition: var(--lg-hover);
}

.lg-dl a:hover { text-decoration-color: var(--lg-teal-deep); }

/* Dienst-Eintraege in der Datenschutzerklaerung */
.lg-service {
  border-top: 1px solid var(--lg-line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.lg-service:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.lg-service .lg-h4 { margin-top: 0; }

/* .text-size-small + .ls-minus-2 + .opacity-64 */
.lg-facts {
  list-style: none;
  margin: 0.875rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.375rem;
}

.lg-facts li {
  color: var(--lg-ink-64);
  font-size: 0.875rem;
  letter-spacing: -0.02rem;
  line-height: 1.55;
  margin: 0;
}

.lg-facts b {
  color: var(--lg-ink);
  font-weight: 500;
}

/* Hinweis-Box fuer Aenderungen gegenueber dem alten Text */
.lg-note {
  background-color: rgba(97, 225, 213, 0.09);
  border-left: 2px solid var(--lg-teal-glow);
  border-radius: 0 7px 7px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.lg-note p {
  color: var(--lg-ink-64);
  font-size: 0.875rem;
  letter-spacing: -0.02rem;
  line-height: 1.6;
  margin: 0;
}

/* ─── Motion ───────────────────────────────────────────────────────────── */

/* Bewusst rein CSS und nur im Hero: Rechtstexte duerfen nie in einem
   versteckten Zustand haengen bleiben. Eine Keyframe-Animation endet immer
   beim Basiszustand opacity:1, auch ohne JS und bei abgeschalteten
   Animationen. Header faded down, Elemente staggern in 0.06s-Schritten
   (Motion-Regel aus DESIGN.md). */
@keyframes lg-rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

.lg-hero-inner > * {
  animation: lg-rise 0.7s var(--lg-ease) backwards;
}

.lg-hero-inner > .lg-eyebrow { animation-delay: 0s; }
.lg-hero-inner > .lg-h1      { animation-delay: 0.06s; }
.lg-hero-inner > .lg-lede    { animation-delay: 0.12s; }
.lg-hero-inner > .lg-meta    { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .lg-hero-inner > * { animation: none; }
  .lg-toc-list a:before { transition: none; }
}

/* ─── Druck ────────────────────────────────────────────────────────────── */

@media print {
  .navigation-component,
  .lg-toc,
  .footer_component,
  .lg-hero:before { display: none !important; }

  .lg-hero-inner > * { animation: none !important; }

  .lg-page,
  .lg-hero,
  .lg-body { background: #fff !important; }

  .lg-body { padding: 0 !important; border-top: 0 !important; }
  .lg-hero { padding: 0 0 1.5rem !important; }
  .lg-layout { display: block !important; }
  .lg-prose, .lg-hero-inner { max-width: none !important; }

  .lg-card {
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  .lg-card + .lg-card { margin-top: 1.5rem !important; }

  .lg-prose p,
  .lg-prose li,
  .lg-facts li { color: #000 !important; }

  .lg-section { page-break-inside: avoid; }
  .lg-prose a { text-decoration: none !important; color: #000 !important; }
}
