* {
  box-sizing: border-box;
}

:root {
  --legal-text: #17181c;
  --legal-muted: #5d5e63;
  --legal-line: rgba(24, 24, 24, 0.08);
  --legal-line-strong: rgba(24, 24, 24, 0.14);
  --legal-surface: rgba(255, 255, 255, 0.88);
  --legal-surface-solid: #ffffff;
  --legal-gold: #f7b500;
  --legal-gold-strong: #d89b00;
  --legal-shadow:
    0 24px 70px rgba(22, 22, 22, 0.1),
    0 8px 24px rgba(22, 22, 22, 0.04);
  --legal-page-accent: #f7b500;
  --legal-page-accent-strong: #d89b00;
  --legal-page-accent-rgb: 247, 181, 0;
}

html {
  color-scheme: light;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--legal-text);
  background:
    linear-gradient(180deg, #fffdf7 0%, #f7f4eb 55%, #efece4 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(23, 24, 28, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(23, 24, 28, 0.03) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.legal-page--impressum {
  --legal-page-accent: #f7b500;
  --legal-page-accent-strong: #d89b00;
  --legal-page-accent-rgb: 247, 181, 0;
}

.legal-page--datenschutz {
  --legal-page-accent: #05948d;
  --legal-page-accent-strong: #007f79;
  --legal-page-accent-rgb: 5, 148, 141;
}

.legal-page--agb {
  --legal-page-accent: #dd6133;
  --legal-page-accent-strong: #c74b21;
  --legal-page-accent-rgb: 221, 97, 51;
}

.legal-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.legal-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.68;
  animation: legal-float 18s ease-in-out infinite;
}

.legal-page__orb--gold {
  top: -140px;
  left: -110px;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(
      circle,
      rgba(247, 181, 0, 0.2) 0%,
      rgba(247, 181, 0, 0.04) 54%,
      rgba(247, 181, 0, 0) 100%
    );
}

.legal-page__orb--teal {
  top: 28%;
  right: -150px;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(
      circle,
      rgba(5, 148, 141, 0.13) 0%,
      rgba(5, 148, 141, 0.03) 58%,
      rgba(5, 148, 141, 0) 100%
    );
  animation-delay: -6s;
}

.legal-page__orb--coral {
  right: 12%;
  bottom: -170px;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(
      circle,
      rgba(221, 97, 51, 0.12) 0%,
      rgba(221, 97, 51, 0.025) 58%,
      rgba(221, 97, 51, 0) 100%
    );
  animation-delay: -12s;
}

.legal-page__masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 18px;
}

.legal-page__masthead-inner,
.legal-page__shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-page__masthead-inner {
  min-height: 94px;
  padding: 14px 16px 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(225, 162, 0, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 50px rgba(22, 22, 22, 0.08),
    0 7px 18px rgba(225, 162, 0, 0.06);
}

.legal-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.legal-page__brand-mark {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--legal-gold);
  color: #111111;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 32px rgba(235, 174, 0, 0.24);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.legal-page__brand:hover .legal-page__brand-mark,
.legal-page__brand:focus-visible .legal-page__brand-mark {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 18px 38px rgba(235, 174, 0, 0.3);
}

.legal-page__brand:focus-visible {
  outline: none;
}

.legal-page__brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.legal-page__brand-copy strong {
  font-size: clamp(19px, 1.3vw, 26px);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.legal-page__brand-copy span {
  margin-top: 6px;
  color: var(--legal-page-accent-strong);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-page__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.legal-page__nav a {
  padding: 12px 16px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #2b2d33;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.legal-page__nav a:hover,
.legal-page__nav a:focus-visible,
.legal-page__nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(var(--legal-page-accent-rgb), 0.26);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(var(--legal-page-accent-rgb), 0.1);
  outline: none;
}

.legal-page__nav a.is-active {
  color: var(--legal-page-accent-strong);
}

.legal-page__home-link {
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f2b000;
  border-radius: 16px;
  background: var(--legal-gold);
  color: #161616;
  font-size: 15px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(235, 174, 0, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.legal-page__home-link:hover,
.legal-page__home-link:focus-visible {
  transform: translateY(-2px);
  background: #ffc52a;
  box-shadow: 0 18px 36px rgba(235, 174, 0, 0.24);
  outline: none;
}

.legal-page__shell {
  padding: 24px 0 64px;
  display: grid;
  gap: 24px;
}

.legal-page__hero,
.legal-page__frame-card,
.legal-page__footer {
  animation: legal-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.legal-page__frame-card {
  animation-delay: 0.08s;
}

.legal-page__footer {
  animation-delay: 0.16s;
}

.legal-page__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 2.5vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(225, 162, 0, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(var(--legal-page-accent-rgb), 0.14) 0%,
      rgba(var(--legal-page-accent-rgb), 0) 28%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 251, 241, 0.98) 100%
    );
  box-shadow: var(--legal-shadow);
}

.legal-page__hero::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: 280px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse,
      rgba(var(--legal-page-accent-rgb), 0.12) 0%,
      rgba(var(--legal-page-accent-rgb), 0) 72%
    );
  pointer-events: none;
}

.legal-page__hero-copy,
.legal-page__hero-aside {
  position: relative;
  z-index: 1;
}

.legal-page__eyebrow {
  margin: 0 0 16px;
  color: var(--legal-page-accent-strong);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.legal-page__hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--legal-text);
  font-size: clamp(46px, 5.8vw, 78px);
  line-height: 0.98;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.legal-page__intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--legal-muted);
  font-size: clamp(16px, 1.02vw, 19px);
  line-height: 1.68;
}

.legal-page__hero-aside {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.legal-page__detail-card,
.legal-page__detail-list {
  padding: 20px 22px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 34px rgba(24, 24, 24, 0.06),
    0 6px 18px rgba(var(--legal-page-accent-rgb), 0.04);
}

.legal-page__detail-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(var(--legal-page-accent-rgb), 0.1);
  color: var(--legal-page-accent-strong);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal-page__detail-card strong {
  display: block;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.05;
  font-weight: 640;
  letter-spacing: -0.04em;
}

.legal-page__detail-card p {
  margin: 12px 0 0;
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.6;
}

.legal-page__detail-list {
  display: grid;
  gap: 13px;
}

.legal-page__detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.legal-page__detail-row span {
  color: #666973;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page__detail-row strong {
  color: #23252c;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
  text-align: right;
}

.legal-page__frame-card {
  padding: clamp(22px, 1.9vw, 32px);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 38px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(250, 247, 239, 0.98) 100%
    );
  box-shadow: var(--legal-shadow);
}

.legal-page__frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 24, 24, 0.08);
}

.legal-page__frame-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #31343b;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.legal-page__status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--legal-page-accent);
  box-shadow:
    0 0 0 8px rgba(var(--legal-page-accent-rgb), 0.12),
    0 0 18px rgba(var(--legal-page-accent-rgb), 0.22);
}

.legal-page__frame-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.legal-page__frame-actions a {
  padding: 10px 14px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 999px;
  background: #ffffff;
  color: #343840;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.legal-page__frame-actions a:hover,
.legal-page__frame-actions a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(var(--legal-page-accent-rgb), 0.22);
  background: rgba(var(--legal-page-accent-rgb), 0.04);
  outline: none;
}

.legal-page__frame-caption {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--legal-muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-page__embed {
  margin-top: 24px;
  padding: clamp(24px, 2.3vw, 40px);
  min-height: 78vh;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at top right,
      rgba(var(--legal-page-accent-rgb), 0.11) 0%,
      rgba(var(--legal-page-accent-rgb), 0.02) 34%,
      rgba(var(--legal-page-accent-rgb), 0) 60%
    ),
    linear-gradient(180deg, #f7f4ec 0%, #efebe3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 40px rgba(24, 24, 24, 0.05);
}

.itrk-legaltext {
  display: block;
  padding: clamp(18px, 1.9vw, 30px);
  min-height: clamp(780px, 80vh, 1180px);
  overflow: clip;
  border: 1px solid rgba(24, 24, 24, 0.06);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
  box-shadow:
    0 28px 64px rgba(24, 24, 24, 0.08),
    0 10px 24px rgba(24, 24, 24, 0.04);
}

.itrk-legaltext iframe {
  width: 100%;
  min-height: clamp(780px, 80vh, 1180px);
  display: block;
  border: 0;
  background: #ffffff;
}

.itrk-legaltext > div:first-child {
  max-width: 1040px;
  margin: 0 auto;
}

.itrk-legaltext h1,
.itrk-legaltext h2,
.itrk-legaltext h3,
.itrk-legaltext h4 {
  margin: 0;
  color: #181a20;
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.itrk-legaltext h1 {
  margin-bottom: 28px;
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 1.02;
  font-weight: 720;
}

.itrk-legaltext h2 {
  margin-top: 40px;
  margin-bottom: 18px;
  font-size: clamp(24px, 1.9vw, 32px);
  line-height: 1.12;
  font-weight: 690;
}

.itrk-legaltext h3,
.itrk-legaltext h4 {
  margin-top: 26px;
  margin-bottom: 14px;
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.2;
  font-weight: 680;
}

.itrk-legaltext p,
.itrk-legaltext li {
  color: #4f5560;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.76;
}

.itrk-legaltext p {
  margin: 0 0 18px;
}

.itrk-legaltext ol,
.itrk-legaltext ul {
  margin: 0 0 28px;
  padding-left: 1.4em;
}

.itrk-legaltext li {
  padding-left: 0.1em;
}

.itrk-legaltext li + li {
  margin-top: 8px;
}

.itrk-legaltext strong,
.itrk-legaltext b {
  color: #1d2026;
  font-weight: 700;
}

.itrk-legaltext a {
  color: var(--legal-page-accent-strong);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.itrk-legaltext a:hover,
.itrk-legaltext a:focus-visible {
  color: var(--legal-page-accent);
  outline: none;
}

#itkanzlei_txt_copyright {
  max-width: 1040px;
  margin:
    clamp(42px, 4vw, 64px)
    auto
    0 !important;
  padding-top: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;

  border-top: 1px solid rgba(24, 24, 24, 0.08);

  color: #6b707a;
  font-size: 12px !important;
  line-height: 1.5;
}

#itkanzlei_txt_copyright > div:nth-child(1),
#itkanzlei_txt_copyright > div:nth-child(2) {
  display: flex !important;
  align-items: center;
}

#itkanzlei_txt_copyright > div:nth-child(2) {
  margin-left: auto;
  float: none !important;
  white-space: nowrap !important;
}

#itkanzlei_txt_copyright > div:nth-child(3) {
  display: none !important;
}

#itkanzlei_txt_copyright a {
  color: inherit;
  text-decoration: none;
}

#itkanzlei_img_copyright {
  max-width: 144px !important;
  max-height: 34px;
  margin-top: 0 !important;
  opacity: 0.94;
}

.legal-page__footer {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow:
    0 14px 32px rgba(24, 24, 24, 0.05);
}

.legal-page__footer p {
  margin: 0;
  color: #5d616a;
  font-size: 13px;
  line-height: 1.6;
}

.legal-page__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-page__footer-links a {
  color: #343840;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(var(--legal-page-accent-rgb), 0.28);
  text-underline-offset: 5px;
}

.legal-page__footer-links a:hover,
.legal-page__footer-links a:focus-visible {
  color: var(--legal-page-accent-strong);
  outline: none;
}

@keyframes legal-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 18px, 0);
  }
}

@keyframes legal-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .legal-page__masthead-inner {
    grid-template-columns: 1fr auto;
  }

  .legal-page__nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .legal-page__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .legal-page__masthead {
    padding-top: 12px;
  }

  .legal-page__masthead-inner,
  .legal-page__shell {
    width: min(100% - 24px, 1280px);
  }

  .legal-page__masthead-inner {
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .legal-page__brand {
    width: 100%;
  }

  .legal-page__home-link {
    width: 100%;
  }

  .legal-page__hero h1 {
    max-width: none;
  }

  .legal-page__frame-topbar,
  .legal-page__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page__frame-actions {
    justify-content: flex-start;
  }

  .legal-page__detail-row {
    grid-template-columns: 1fr;
  }

  .legal-page__detail-row strong {
    text-align: left;
  }
}

@media (max-width: 620px) {
  body::before {
    background-size: 52px 52px;
  }

  .legal-page__brand-mark {
    width: 50px;
    height: 50px;
    font-size: 19px;
  }

  .legal-page__brand-copy strong {
    font-size: 20px;
  }

  .legal-page__brand-copy span {
    font-size: 10px;
  }

  .legal-page__nav {
    gap: 8px;
  }

  .legal-page__nav a {
    width: calc(50% - 4px);
    justify-content: center;
    text-align: center;
  }

  .legal-page__hero,
  .legal-page__frame-card {
    border-radius: 26px;
  }

  .legal-page__hero {
    padding: 24px 20px;
  }

  .legal-page__detail-card,
  .legal-page__detail-list,
  .legal-page__embed {
    border-radius: 20px;
  }

  .itrk-legaltext,
  .itrk-legaltext iframe {
    min-height: 78svh;
    border-radius: 16px;
  }

  .itrk-legaltext {
    padding: 16px;
  }

  .itrk-legaltext h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .itrk-legaltext h2 {
    font-size: clamp(22px, 6.5vw, 28px);
  }

  .itrk-legaltext p,
  .itrk-legaltext li {
    font-size: 15px;
    line-height: 1.68;
  }

  #itkanzlei_txt_copyright {
    align-items: flex-start;
  }

  #itkanzlei_txt_copyright > div:nth-child(2) {
    width: 100%;
    margin-left: 0;
    white-space: normal !important;
  }
}

@media (max-width: 460px) {
  .legal-page__masthead-inner,
  .legal-page__shell {
    width: min(100% - 18px, 1280px);
  }

  .legal-page__nav a {
    width: 100%;
  }

  .legal-page__frame-actions {
    width: 100%;
  }

  .legal-page__frame-actions a {
    width: 100%;
    text-align: center;
  }

  .legal-page__footer {
    padding: 16px 18px;
  }
}

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

  .legal-page__orb,
  .legal-page__hero,
  .legal-page__frame-card,
  .legal-page__footer,
  .legal-page__brand-mark,
  .legal-page__nav a,
  .legal-page__home-link,
  .legal-page__frame-actions a {
    animation: none !important;
    transition: none !important;
  }
}
