/* HELM Master V38 – einheitliches, kompaktes Layout für Rechtstextseiten */
body.helm-legal-page main {
  overflow: visible;
}

/* Hero/Rechtstitel bewusst ruhiger als Marketingseiten */
body.helm-legal-page main .portal-page-hero,
body.helm-legal-page main .u-hero,
body.helm-legal-page main .helm-en-hero {
  min-height: 0 !important;
  padding-top: clamp(2rem, 4vw, 3.25rem) !important;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important;
}

/* Einige Betriebs-Rechtsseiten haben Hero und Inhalt in derselben Section. */
body.helm-legal-page main.legal-page > .section:first-child {
  padding-top: clamp(2rem, 4vw, 3.25rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.5rem) !important;
}

body.helm-legal-page main h1 {
  font-size: clamp(2.35rem, 4.2vw, 4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  max-width: 100% !important;
  margin-top: .45rem !important;
  margin-bottom: 1rem !important;
  text-wrap: balance;
  white-space: normal !important;
  overflow-wrap: break-word;
}

body.helm-legal-page main .portal-page-hero p,
body.helm-legal-page main .u-hero p,
body.helm-legal-page main .helm-en-hero p,
body.helm-legal-page main.legal-page > .section:first-child > .container > p:not(.eyebrow) {
  max-width: 760px !important;
  font-size: clamp(1rem, 1.25vw, 1.12rem) !important;
  line-height: 1.65 !important;
}

/* Rechtstext als ruhiges Dokument statt große Marketingkarte. */
body.helm-legal-page .section,
body.helm-legal-page .u-section,
body.helm-legal-page .helm-en-content {
  padding-top: clamp(2.25rem, 4vw, 3.5rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.75rem) !important;
}

body.helm-legal-page .portal-grid,
body.helm-legal-page .u-grid,
body.helm-legal-page .helm-en-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.helm-legal-page .legal-layout,
body.helm-legal-page .legal-panel,
body.helm-legal-page .legal-card,
body.helm-legal-page .u-content-card,
body.helm-legal-page .helm-en-card {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.helm-legal-page .legal-panel,
body.helm-legal-page .legal-card,
body.helm-legal-page .u-content-card,
body.helm-legal-page .helm-en-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.helm-legal-page main h2 {
  font-size: clamp(1.35rem, 1.85vw, 1.75rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em !important;
  max-width: 100% !important;
  margin: 2.35rem 0 .8rem !important;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(11, 47, 54, .14);
  text-wrap: pretty;
  white-space: normal !important;
  overflow-wrap: break-word;
}

body.helm-legal-page .legal-panel > h2:first-child,
body.helm-legal-page .legal-card > h2:first-child,
body.helm-legal-page .u-content-card > h2:first-child,
body.helm-legal-page .helm-en-card > h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0 !important;
}

body.helm-legal-page main h3 {
  font-size: clamp(1.1rem, 1.35vw, 1.3rem) !important;
  line-height: 1.3 !important;
  margin-top: 1.65rem !important;
  margin-bottom: .55rem !important;
}

body.helm-legal-page main p,
body.helm-legal-page main li,
body.helm-legal-page main address,
body.helm-legal-page main td,
body.helm-legal-page main th {
  font-size: 1rem;
  line-height: 1.72;
}

body.helm-legal-page main p {
  margin-top: 0;
  margin-bottom: 1rem;
}

body.helm-legal-page main ul,
body.helm-legal-page main ol {
  margin-top: .6rem;
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
}

body.helm-legal-page main table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

body.helm-legal-page main a {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  body.helm-legal-page main .portal-page-hero,
  body.helm-legal-page main .u-hero,
  body.helm-legal-page main .helm-en-hero {
    padding-top: 1.65rem !important;
    padding-bottom: 1.5rem !important;
  }

  body.helm-legal-page main.legal-page > .section:first-child {
    padding-top: 1.65rem !important;
    padding-bottom: 2.75rem !important;
  }

  body.helm-legal-page main h1 {
    font-size: clamp(1.9rem, 8vw, 2.1rem) !important;
    line-height: 1.06 !important;
  }

  body.helm-legal-page main h2 {
    font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
    margin-top: 1.9rem !important;
    padding-top: 1.1rem;
  }

  body.helm-legal-page .section,
  body.helm-legal-page .u-section,
  body.helm-legal-page .helm-en-content {
    padding-top: 1.9rem !important;
    padding-bottom: 3rem !important;
  }
}


/* V40: WKO ECG is integrated into the existing legal content container. */
.helm-legal-page .helm-wko-ecg{margin-top:2.2rem;}
.helm-legal-page .helm-wko-ecg h2{margin-top:0 !important;}
