/* Legal pages (Impressum + Datenschutz) */

body.page-impressum,
body.page-datenschutz {
  --legal-text: #101a2f;
  --legal-muted: #677a93;
  --legal-muted-2: #53667f;
  --legal-line: rgba(16, 26, 47, 0.08);
  --legal-line-strong: rgba(16, 26, 47, 0.12);
  background:
    radial-gradient(circle at 7% 9%, rgba(27, 177, 242, 0.16), transparent 40%),
    radial-gradient(circle at 93% 12%, rgba(255, 7, 108, 0.13), transparent 42%),
    radial-gradient(circle at 72% 80%, rgba(27, 177, 242, 0.07), transparent 46%),
    linear-gradient(180deg, #f8fbff 0%, #f4f8ff 48%, #eef4fb 100%);
  color: var(--legal-text);
}

body.page-impressum::after,
body.page-datenschutz::after {
  content: "";
  position: fixed;
  width: clamp(360px, 44vw, 760px);
  height: clamp(360px, 44vw, 760px);
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.065;
  filter:
    grayscale(1)
    contrast(1.02)
    brightness(0.85);
  transform-origin: center;
}

body.page-impressum::before,
body.page-datenschutz::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 26, 47, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 26, 47, 0.018) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.48;
}

body.page-impressum::after {
  left: clamp(-3rem, -1.5vw, -0.8rem);
  top: clamp(7.8rem, 10vw, 10.8rem);
  width: clamp(480px, 50vw, 860px);
  height: clamp(480px, 50vw, 860px);
  background-image: url("/assets/img/Tafel.png");
  opacity: 0.07;
  transform: rotate(-84deg);
}

body.page-datenschutz::after {
  right: clamp(-8.5rem, -4vw, -3.2rem);
  top: clamp(8.4rem, 10vw, 11.2rem);
  width: clamp(320px, 42vw, 700px);
  height: clamp(320px, 42vw, 700px);
  background-image: url("/assets/img/schluessel.png");
  opacity: 0.06;
  transform: rotate(90deg);
}

.page-impressum .site-header,
.page-datenschutz .site-header {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.93), rgba(249, 252, 255, 0.8)),
    radial-gradient(circle at 10% 0%, rgba(27, 177, 242, 0.08), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(255, 7, 108, 0.07), transparent 40%);
  border-bottom: 1px solid rgba(16, 26, 47, 0.05);
  box-shadow:
    0 10px 28px rgba(16, 26, 47, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
}

.page-impressum .site-header::after,
.page-datenschutz .site-header::after {
  background: linear-gradient(
    90deg,
    rgba(27, 177, 242, 0.24),
    rgba(255, 7, 108, 0.18),
    rgba(16, 26, 47, 0)
  );
}

.page-impressum .brand,
.page-datenschutz .brand {
  color: var(--legal-text);
}

.page-impressum .brand-mark,
.page-datenschutz .brand-mark {
  filter:
    drop-shadow(0 0 14px rgba(27, 177, 242, 0.16))
    drop-shadow(0 6px 14px rgba(255, 7, 108, 0.1));
}

.page-impressum .nav-link,
.page-datenschutz .nav-link {
  color: #5a6d84;
}

.page-impressum .nav-link::before,
.page-datenschutz .nav-link::before {
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.95), rgba(255, 7, 108, 0.78));
}

.page-impressum .nav-link:hover,
.page-datenschutz .nav-link:hover {
  color: #15253b;
}

.page-impressum .nav-link.is-active,
.page-datenschutz .nav-link.is-active {
  color: #0f1c30;
}

.page-impressum .site-footer,
.page-datenschutz .site-footer {
  border-top: 1px solid rgba(16, 26, 47, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at 8% 18%, rgba(27, 177, 242, 0.08), transparent 45%),
    radial-gradient(circle at 92% 14%, rgba(255, 7, 108, 0.07), transparent 44%);
  backdrop-filter: blur(10px);
}

.page-impressum .footer-kicker,
.page-datenschutz .footer-kicker {
  color: #16263a;
}

.page-impressum .footer-note,
.page-impressum .footer-copy,
.page-impressum .footer-col-title,
.page-datenschutz .footer-note,
.page-datenschutz .footer-copy,
.page-datenschutz .footer-col-title {
  color: #63758c;
}

.page-impressum .footer-list a,
.page-datenschutz .footer-list a {
  color: #31465d;
}

.page-impressum .footer-list a:hover,
.page-datenschutz .footer-list a:hover {
  color: #14253a;
  border-bottom-color: rgba(27, 177, 242, 0.26);
}

.page-impressum .main-content,
.page-datenschutz .main-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1040px);
  padding-top: 1.25rem;
  padding-bottom: 2.7rem;
}

.page-impressum .section-block,
.page-datenschutz .section-block {
  margin-top: 1.5rem;
}

.page-impressum .page-hero.panel,
.page-datenschutz .page-hero.panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 0;
  padding: 0;
  position: relative;
}

.page-impressum .page-hero.panel::before,
.page-datenschutz .page-hero.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 640px);
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.56), rgba(255, 7, 108, 0.4), transparent);
}

.page-impressum .page-hero .section-intro,
.page-datenschutz .page-hero .section-intro {
  padding-top: 0.85rem;
}

.page-impressum .page-hero .eyebrow,
.page-datenschutz .page-hero .eyebrow {
  color: #6f829a;
}

.page-impressum .page-hero h1,
.page-datenschutz .page-hero h1 {
  margin: 0.38rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.032em;
  color: #0f1b30;
  max-width: 16ch;
}

.page-impressum .page-hero p,
.page-datenschutz .page-hero p {
  margin-top: 0.85rem;
  color: var(--legal-muted);
  max-width: 76ch;
  line-height: 1.6;
}

.page-impressum code,
.page-datenschutz code {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 26, 47, 0.08);
  color: #1d324c;
  border-radius: 8px;
}

.page-impressum .split,
.page-datenschutz .split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.4rem;
}

.page-impressum .panel,
.page-datenschutz .panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  position: relative;
}

.page-impressum .panel::before,
.page-datenschutz .panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 520px);
  height: 1px;
  background: linear-gradient(90deg, rgba(16, 26, 47, 0.08), rgba(16, 26, 47, 0.04), transparent);
}

.page-impressum .panel > *,
.page-datenschutz .panel > * {
  position: relative;
}

.page-impressum .panel,
.page-datenschutz .panel {
  padding-top: 0.95rem;
}

.page-impressum .panel .section-intro.compact,
.page-datenschutz .panel .section-intro.compact {
  margin-bottom: 0.35rem;
}

.page-impressum .panel .eyebrow,
.page-datenschutz .panel .eyebrow {
  color: #73869f;
}

.page-impressum .panel h2,
.page-datenschutz .panel h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.1vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0f1b30;
  max-width: 24ch;
}

.page-impressum .panel p,
.page-datenschutz .panel p {
  margin: 0.55rem 0 0;
  color: var(--legal-muted-2);
  line-height: 1.7;
}

.page-impressum .panel p strong,
.page-datenschutz .panel p strong {
  color: #16273d;
}

.page-impressum .panel a,
.page-datenschutz .panel a {
  color: #173d68;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 26, 47, 0.12);
}

.page-impressum .panel a:hover,
.page-datenschutz .panel a:hover {
  border-bottom-color: rgba(27, 177, 242, 0.28);
}

.page-impressum .panel ul,
.page-datenschutz .panel ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.page-impressum .panel li,
.page-datenschutz .panel li {
  position: relative;
  color: var(--legal-muted-2);
  padding-left: 1.05rem;
  line-height: 1.55;
}

.page-impressum .panel li::before,
.page-datenschutz .panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 0.42rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.75), rgba(255, 7, 108, 0.65));
}

.page-impressum .panel li:nth-child(odd)::before,
.page-datenschutz .panel li:nth-child(odd)::before {
  width: 0.54rem;
}

.page-impressum .panel li:nth-child(even)::before,
.page-datenschutz .panel li:nth-child(even)::before {
  opacity: 0.85;
}

.page-impressum .cta-strip.panel,
.page-datenschutz .cta-strip.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.95rem 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 26, 47, 0.1);
  background: transparent;
}

.page-impressum .cta-strip.panel::before,
.page-datenschutz .cta-strip.panel::before {
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.56), rgba(255, 7, 108, 0.42), transparent);
}

.page-impressum .cta-strip h2,
.page-datenschutz .cta-strip h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: #101a2f;
  max-width: 28ch;
}

.page-impressum .cta-strip p,
.page-datenschutz .cta-strip p {
  margin: 0.5rem 0 0;
  color: var(--legal-muted);
  line-height: 1.55;
}

.page-impressum .cta-strip .button.ghost,
.page-datenschutz .cta-strip .button.ghost {
  min-height: 0;
  padding: 0 0 0.12rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d3b63;
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
  position: relative;
}

.page-impressum .cta-strip .button.ghost::after,
.page-datenschutz .cta-strip .button.ghost::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.46), rgba(255, 7, 108, 0.28));
}

.page-impressum .cta-strip .button.ghost:hover,
.page-datenschutz .cta-strip .button.ghost:hover {
  transform: none;
  color: #10253d;
  background: transparent;
}

.page-impressum .section-block:nth-of-type(odd) .panel::before,
.page-datenschutz .section-block:nth-of-type(odd) .panel::before {
  background: linear-gradient(90deg, rgba(27, 177, 242, 0.18), rgba(16, 26, 47, 0.05), transparent);
}

.page-impressum .section-block:nth-of-type(even) .panel::before,
.page-datenschutz .section-block:nth-of-type(even) .panel::before {
  background: linear-gradient(90deg, rgba(255, 7, 108, 0.16), rgba(16, 26, 47, 0.05), transparent);
}

@media (max-width: 960px) {
  body.page-impressum::after,
  body.page-datenschutz::after {
    opacity: 0.05;
  }

  body.page-impressum::after {
    left: -3.8rem;
    top: 7.7rem;
    width: clamp(390px, 62vw, 640px);
    height: clamp(390px, 62vw, 640px);
    transform: rotate(-86deg);
  }

  body.page-datenschutz::after {
    right: -4.8rem;
    top: 8.1rem;
    width: clamp(260px, 50vw, 460px);
    height: clamp(260px, 50vw, 460px);
    transform: rotate(90deg);
  }

  .page-impressum .main-content,
  .page-datenschutz .main-content {
    width: min(100% - 1.35rem, 1040px);
    padding-top: 1rem;
    padding-bottom: 2.25rem;
  }

  .page-impressum .section-block,
  .page-datenschutz .section-block {
    margin-top: 1.2rem;
  }

  .page-impressum .split,
  .page-datenschutz .split {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .page-impressum .panel,
  .page-datenschutz .panel {
    padding-top: 0.82rem;
  }

  .page-impressum .panel h2,
  .page-datenschutz .panel h2 {
    max-width: none;
  }

  .page-impressum .cta-strip.panel,
  .page-datenschutz .cta-strip.panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-impressum .cta-strip .button.ghost,
  .page-datenschutz .cta-strip .button.ghost {
    width: fit-content;
  }
}

@media (max-width: 600px) {
  body.page-impressum::after,
  body.page-datenschutz::after {
    opacity: 0.035;
  }

  body.page-impressum::after {
    left: -5.2rem;
    top: 7rem;
    width: clamp(310px, 74vw, 430px);
    height: clamp(310px, 74vw, 430px);
    transform: rotate(-88deg);
  }

  body.page-datenschutz::after {
    right: -4.6rem;
    top: 7.2rem;
    width: clamp(210px, 52vw, 320px);
    height: clamp(210px, 52vw, 320px);
    transform: rotate(90deg);
  }

  .page-impressum .page-hero .section-intro,
  .page-datenschutz .page-hero .section-intro {
    padding-top: 0.65rem;
  }

  .page-impressum .page-hero h1,
  .page-datenschutz .page-hero h1 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
    line-height: 0.98;
    max-width: 18ch;
  }

  .page-impressum .page-hero p,
  .page-datenschutz .page-hero p {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .page-impressum .panel h2,
  .page-datenschutz .panel h2 {
    font-size: clamp(1.06rem, 6.3vw, 1.28rem);
  }

  .page-impressum .panel p,
  .page-datenschutz .panel p {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .page-impressum .panel li,
  .page-datenschutz .panel li {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}
