:root {
  --xsec-ink: #111317;
  --xsec-surface: #181b20;
  --xsec-muted: #626873;
  --xsec-line: #e3e5e8;
  --xsec-accent: #d3202f;
}

body.page-id-3 .site-content > .ast-container,
body.page-id-1365 .site-content > .ast-container {
  max-width: 100%;
  padding: 0;
}

body.page-id-3 #primary,
body.page-id-1365 #primary,
body.page-id-3 .site-main,
body.page-id-1365 .site-main,
body.page-id-3 .entry-content,
body.page-id-1365 .entry-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.xsec-legal-shell {
  color: var(--xsec-ink);
  background: #fff;
}

.xsec-legal-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: clamp(20rem, 42vw, 31rem);
  display: grid;
  align-items: end;
  padding: clamp(8.5rem, 14vw, 12rem) clamp(1.25rem, 6vw, 6rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 86% 20%, rgba(211, 32, 47, .22), transparent 33rem),
    linear-gradient(135deg, #0e1013 0%, #1b1f25 100%);
  color: #fff;
}

/* Die Datenschutz-Seite liefert Gutenberg-Bloecke, daher greift Astras Regel
 * .entry-content[data-ast-blocks-layout] > *:not(.wp-block-group) > *
 * und presst den Hero auf die Content-Breite. Nur diese Begrenzung wird
 * aufgehoben (Specificity 0,5,0 schlaegt Astras 0,4,0). */
body.page-id-3.ast-page-builder-template .entry-content[data-ast-blocks-layout] > .xsec-legal-shell > * {
  max-width: none;
}

.xsec-legal-hero::after {
  content: "";
  position: absolute;
  right: clamp(-5rem, -4vw, -2rem);
  bottom: -11rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(45deg);
}

.xsec-legal-hero__inner {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  margin: 0 auto;
}

.xsec-legal-eyebrow {
  margin: 0 0 1rem;
  color: #f2a5ac;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.xsec-legal-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.xsec-legal-lead {
  max-width: 48rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.xsec-legal-article {
  width: min(74rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.xsec-legal-article > .elementor,
.xsec-legal-article .e-con,
.xsec-legal-article .elementor-widget-container {
  max-width: 100%;
}

.xsec-legal-article .elementor-spacer:first-child,
.xsec-legal-article .elementor-widget-spacer:first-child {
  display: none;
}

.xsec-legal-article h2,
.xsec-legal-article h3,
.xsec-legal-article h4 {
  color: var(--xsec-ink);
  line-height: 1.25;
  scroll-margin-top: 7rem;
}

.xsec-legal-article h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--xsec-line);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.xsec-legal-article h3 {
  margin-top: 2rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.xsec-legal-article p,
.xsec-legal-article li {
  color: #3e434c;
  font-size: 1rem;
  line-height: 1.8;
}

.xsec-legal-article a {
  color: #a61623;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

.xsec-legal-article a:focus-visible {
  outline: 3px solid rgba(211, 32, 47, .38);
  outline-offset: 3px;
}

.xsec-whatsapp-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 9990;
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  gap: .55rem;
  padding: 0 .95rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.xsec-whatsapp-fab svg {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.xsec-whatsapp-fab:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
}

.xsec-whatsapp-fab:focus-visible {
  outline: 3px solid #111317;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .xsec-whatsapp-fab {
    width: 3.5rem;
    justify-content: center;
    padding: 0;
  }

  .xsec-whatsapp-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 600px) {
  .xsec-legal-hero {
    min-height: 24rem;
    padding-inline: 1.25rem;
  }

  .xsec-legal-article {
    width: min(100% - 2rem, 74rem);
  }
}
