:root {
  color-scheme: dark;

  --background: #090b12;
  --background-soft: #0e111b;
  --surface: rgba(19, 23, 36, 0.88);
  --surface-solid: #131724;
  --surface-hover: #181d2d;
  --border: rgba(155, 167, 211, 0.14);
  --border-strong: rgba(123, 111, 255, 0.38);

  --text: #f5f7ff;
  --text-soft: #b7bfd3;
  --text-muted: #7f899f;

  --blue: #4e9cff;
  --blue-light: #80bbff;
  --purple: #8b6cff;
  --purple-light: #b49cff;
  --danger: #ff637d;
  --warning: #ffbc5c;

  --gradient: linear-gradient(135deg, var(--blue), var(--purple));
  --gradient-soft: linear-gradient(
    135deg,
    rgba(78, 156, 255, 0.14),
    rgba(139, 108, 255, 0.14)
  );

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 13px;

  --page-width: 1240px;
  --header-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(78, 156, 255, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(139, 108, 255, 0.08), transparent 32%),
    var(--background);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--background);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 18, 0.78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.logo-wrap {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 5px rgba(78, 156, 255, 0.07);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  font-size: 1.35rem;
  font-weight: 950;
  color: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: 0.015em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-glow-one {
  top: -230px;
  left: -150px;
  background: var(--blue);
}

.hero-glow-two {
  right: -180px;
  bottom: -270px;
  background: var(--purple);
}

.hero-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 580px;
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 64px;
}

.eyebrow,
.section-label,
.rule-kicker {
  margin: 0;
  color: var(--blue-light);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 16px 0 22px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero h1::first-line {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 680px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 14px 38px rgba(78, 126, 255, 0.24);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.acceptance-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow);
}

.acceptance-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(80px);
  opacity: 0.15;
}

.card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient);
  color: white;
  font-size: 1.2rem;
  font-weight: 950;
}

.acceptance-card h2 {
  margin: -2px 0 7px;
  font-size: 1.15rem;
}

.acceptance-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.content-layout {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 72px 0 110px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.table-of-contents {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc-card {
  max-height: calc(100vh - var(--header-height) - 48px);
  padding: 20px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(15, 18, 29, 0.74);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 108, 255, 0.5) transparent;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc-card nav {
  display: grid;
  gap: 3px;
}

.toc-card a {
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.toc-card a span {
  color: var(--purple-light);
  font-size: 0.72rem;
  font-weight: 900;
}

.toc-card a:hover,
.toc-card a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.rules {
  min-width: 0;
}

.intro-panel {
  margin-bottom: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--gradient-soft);
}

.intro-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.intro-panel p {
  margin: 0;
  color: var(--text-soft);
}

.rule-card {
  position: relative;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
}

.rule-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient);
  opacity: 0.52;
}

.rule-card-highlight {
  border-color: var(--border-strong);
  background:
    linear-gradient(
      135deg,
      rgba(78, 156, 255, 0.08),
      rgba(139, 108, 255, 0.09)
    ),
    var(--surface-solid);
}

.rule-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rule-number {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: rgba(78, 156, 255, 0.08);
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rule-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.18;
}

.rule-kicker {
  color: var(--purple-light);
  font-size: 0.68rem;
}

.rule-card ol,
.rule-card ul:not(.sanction-grid) {
  margin: 0;
  padding-left: 1.35rem;
}

.rule-card ol {
  counter-reset: rule-item;
  list-style: none;
  padding: 0;
}

.rule-card ol li {
  position: relative;
  padding-left: 42px;
  color: var(--text-soft);
}

.rule-card ol li + li {
  margin-top: 13px;
}

.rule-card ol li::before {
  counter-increment: rule-item;
  content: counter(rule-item);
  position: absolute;
  top: 0.08rem;
  left: 0;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(128, 187, 255, 0.2);
  border-radius: 8px;
  background: rgba(78, 156, 255, 0.07);
  color: var(--blue-light);
  font-size: 0.7rem;
  font-weight: 900;
}

.rule-card > p {
  color: var(--text-soft);
}

.info-box,
.warning-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-small);
  font-size: 0.92rem;
}

.info-box {
  border: 1px solid rgba(78, 156, 255, 0.22);
  background: rgba(78, 156, 255, 0.075);
  color: #d6e9ff;
}

.warning-box {
  border: 1px solid rgba(255, 188, 92, 0.23);
  background: rgba(255, 188, 92, 0.075);
  color: #ffe4b8;
}

.sanction-grid {
  margin: 22px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.sanction-grid li {
  position: relative;
  padding: 13px 14px 13px 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.sanction-grid li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--gradient);
  transform: translateY(-50%) rotate(45deg);
}

.muted {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

.version-section {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 0 0 110px;
}

.version-card {
  padding: clamp(28px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 50px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 108, 255, 0.16), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(78, 156, 255, 0.13), transparent 36%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.version-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.version-card p {
  margin: 0;
  color: var(--text-soft);
}

.version-data {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.version-data div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.version-data dt {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.version-data dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 13, 0.78);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 120px;
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  font-weight: 950;
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-brand small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-inner > a {
  color: var(--blue-light);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 76px 0;
  }

  .acceptance-card {
    max-width: 680px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
  }

  .toc-card {
    max-height: none;
  }

  .toc-card nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .header-inner,
  .hero-inner,
  .content-layout,
  .version-section,
  .footer-inner {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .header-nav {
    display: none;
  }

  .logo-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero-inner {
    padding: 62px 0 66px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .content-layout {
    padding: 48px 0 80px;
  }

  .toc-card {
    padding: 16px;
  }

  .toc-card nav {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rule-card {
    border-radius: 21px;
  }

  .rule-heading {
    align-items: flex-start;
  }

  .rule-number {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .rule-card ol li {
    padding-left: 37px;
    font-size: 0.95rem;
  }

  .sanction-grid {
    grid-template-columns: 1fr;
  }

  .version-section {
    padding-bottom: 78px;
  }

  .version-card {
    gap: 32px;
    border-radius: 22px;
  }

  .version-data {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand-text small {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .acceptance-card {
    padding: 22px;
    flex-direction: column;
  }

  .rule-card {
    padding: 22px 19px;
  }

  .rule-heading {
    gap: 12px;
  }

  .rule-heading h2 {
    font-size: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ===== PlaceMC Footer und rechtliche Seiten – verbindliche Korrektur ===== */

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  justify-self: start;
}

.footer-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--gradient);
}

.footer-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.footer-legal {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-legal a,
.footer-top-link {
  color: var(--blue-light);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-top-link:hover,
.footer-top-link:focus-visible {
  text-decoration: underline;
}

.footer-top-link {
  justify-self: end;
}

.legal-main {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  padding: 72px 0 110px;
}

.legal-hero {
  margin-bottom: 24px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-large);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 108, 255, 0.15), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(78, 156, 255, 0.12), transparent 42%),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.legal-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-hero p {
  margin: 0;
  color: var(--text-soft);
}

.legal-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.legal-section h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
}

.legal-section p,
.legal-section address {
  margin: 0;
  color: var(--text-soft);
}

.legal-section p + p {
  margin-top: 14px;
}

.legal-section address {
  font-style: normal;
}

.legal-section a {
  color: var(--blue-light);
  overflow-wrap: anywhere;
}

.legal-divider {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--border);
}

.legal-back {
  margin-top: 34px;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-brand,
  .footer-legal,
  .footer-top-link {
    justify-self: start;
  }

  .footer-legal {
    align-items: flex-start;
    text-align: left;
  }

  .legal-main {
    width: min(calc(100% - 28px), 920px);
    padding: 48px 0 80px;
  }
}


/* ===== Datenschutzerklärung ===== */

.legal-list {
  margin: 16px 0;
  padding-left: 1.3rem;
  color: var(--text-soft);
}

.legal-list li + li {
  margin-top: 7px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-legal-links a {
  color: var(--blue-light);
  font-weight: 800;
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .footer-legal-links {
    justify-content: flex-start;
  }
}
