/* Ergänzungen für aktive gemeinsame Komponenten und die Pflichtseiten. */
.header .brand,
.site-footer .brand {
  display: grid;
  text-decoration: none;
  min-height: 44px;
  align-content: center;
}

.p04-page .header .brand { color: var(--text); }

.p04-page .site-footer a,
.site-footer .brand {
  color: var(--footer-link);
}

.p04-page .site-footer a:hover,
.site-footer .brand:hover {
  color: var(--footer-link-hover);
}

.p04-page .site-footer a:focus-visible,
.site-footer .brand:focus-visible {
  outline-color: var(--focus-on-dark);
}

.site-footer nav a,
.p04-page .crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.related a {
  min-height: 44px;
  align-items: center;
  display: inline-flex;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: break-word;
}

.p04-page .related { hyphens: manual; }
.p04-page #ansprechpartner a.activated-link,
a.activated-link { color: var(--link); }

.p04-page .p04-premium-hero h1 {
  hyphens: manual;
  overflow-wrap: break-word;
}

@media (max-width: 360px) {
  .p04-page .amount-stepper { grid-template-columns: minmax(54px, 1fr) minmax(0, 2fr) minmax(54px, 1fr); }
  .p04-page .amount-stepper button { white-space: nowrap; padding-inline: 2px; }
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.reference-margin-top-16 { margin-top: 16px; }
.reference-margin-top-24 { margin-top: 24px; }
.reference-margin-bottom-0 { margin-bottom: 0; }

.legal-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.58 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.legal-page * { box-sizing: border-box; }
.legal-page a { color: var(--link); text-underline-offset: .24em; }
.legal-page a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.legal-page .shell { width: min(1180px, 100% - 40px); margin-inline: auto; }

.legal-page .header,
.legal-page .footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-block: 12px;
}

.legal-page .header { border-bottom: 1px solid var(--border-decorative); }
.legal-page .brand { line-height: 1.25; color: inherit; }
.legal-page .brand strong { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.legal-page .brand small { font-size: 14px; color: var(--text-secondary); }
.legal-page nav { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; font-weight: 600; }
.legal-page nav a { display: inline-flex; min-height: 44px; align-items: center; }
.legal-page header nav a { text-decoration: none; }
.legal-page .site-footer { margin-top: auto; background: var(--footer); color: var(--text-inverse); }
.legal-page .site-footer a { color: var(--footer-link); }
.legal-page .site-footer a:hover { color: var(--footer-link-hover); }
.legal-page .site-footer a:focus-visible { outline-color: var(--focus-on-dark); }
.legal-page .site-footer .brand small { color: var(--accent-on-dark); }

.legal-page .skip-link {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 12px;
  transform: translateY(-200%);
  padding: 10px 14px;
  background: var(--background);
}
.legal-page .skip-link:focus { transform: none; }

.legal-copy { padding-block: clamp(30px, 6vw, 72px); }
.legal-copy > * { max-width: 70ch; }
.legal-copy h1,
.legal-copy h2 {
  line-height: 1.15;
  letter-spacing: -.025em;
  hyphens: auto;
  scroll-margin-block-start: 20px;
}

.legal-copy h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); margin: 0 0 24px; }
.legal-copy h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin: 44px 0 16px; }
.legal-copy ul { padding-inline-start: 1.4em; }

@media (min-width: 600px) {
  .legal-page .shell { width: min(1180px, 100% - 48px); }
}

@media (min-width: 900px) {
  .legal-page .shell { width: min(1180px, 100% - 64px); }
  .legal-page .header { min-height: 84px; }
  .legal-page .brand strong { font-size: 26px; }
}
