/* Geist – 100% lokal eingebunden (DSGVO-konform) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07090d;
  --bg-soft: #0b0f15;
  --text: #f4f5f7;
  --muted: rgba(231, 235, 241, 0.58);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(9, 12, 17, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 65% at 50% 47%, rgba(24, 32, 45, 0.18), transparent 70%),
    linear-gradient(180deg, #080a0e 0%, #06080c 100%);
}

.hero {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 60px);
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.hero-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 3.8vw, 48px);
  width: auto;
  max-width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.brand-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-logo {
  width: clamp(180px, 19vw, 270px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.10));
  user-select: none;
}

.brand-wordmark {
  color: rgba(247, 249, 252, 0.95);
  font-family: 'Geist', Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(0.66rem, 0.82vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(0.19em);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.hero-divider {
  width: 1px;
  height: clamp(64px, 8.5vw, 96px);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(255, 255, 255, 0.28) 55%,
      rgba(255, 255, 255, 0.02) 100%);
  flex-shrink: 0;
}

.hero-headline {
  margin: 0;
  color: rgba(247, 249, 252, 0.95);
  font-family: 'Geist', Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.22;
  text-align: left;
  max-width: 430px;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.55);
}

.ambient,
.ribbon,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-left {
  z-index: 0;
  background: radial-gradient(46% 34% at 2% 52%, rgba(119, 118, 113, 0.12), transparent 72%);
  filter: blur(20px);
}

.ambient-right {
  z-index: 0;
  background: radial-gradient(40% 42% at 96% 45%, rgba(102, 128, 164, 0.14), transparent 72%);
  filter: blur(26px);
}

/* Subtle, soft ribbons built entirely in CSS. */
.ribbon-one {
  z-index: 1;
  width: 132vw;
  height: 74vh;
  left: -28vw;
  top: 33vh;
  inset-block: auto;
  border-radius: 52% 48% 44% 56%;
  border-top: 1px solid rgba(213, 210, 202, 0.30);
  box-shadow:
    0 -2px 20px rgba(214, 210, 202, 0.055),
    0 -8px 60px rgba(116, 122, 132, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);
  transform: rotate(14deg);
  filter: blur(0.2px);
}

.ribbon-one::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border-top: 22px solid rgba(147, 143, 138, 0.018);
  filter: blur(13px);
}

.ribbon-two {
  z-index: 1;
  width: 126vw;
  height: 88vh;
  right: -54vw;
  top: -23vh;
  border-radius: 44% 56% 48% 52%;
  border-bottom: 1px solid rgba(137, 165, 204, 0.28);
  box-shadow:
    0 2px 28px rgba(121, 150, 193, 0.07),
    0 10px 90px rgba(78, 103, 141, 0.045);
  transform: rotate(17deg);
  filter: blur(0.25px);
}

.ribbon-two::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border-bottom: 24px solid rgba(106, 139, 181, 0.020);
  filter: blur(15px);
}

.grain {
  z-index: 4;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-footer {
  position: relative;
  z-index: 5;
  height: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.04), rgba(5, 7, 10, 0.22));
  backdrop-filter: blur(5px);
}

.footer-inner {
  width: min(1400px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-label {
  color: rgba(219, 223, 229, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.legal-link {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: rgba(225, 229, 235, 0.52);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 400;
  transition: color 180ms ease, transform 180ms ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  color: rgba(245, 247, 250, 0.92);
  transform: translateY(-1px);
}

.legal-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 6px;
}

.separator {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
}

.legal-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

.legal-panel.is-open {
  visibility: visible;
  pointer-events: auto;
}

.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.66);
  opacity: 0;
  transition: opacity 220ms ease;
  backdrop-filter: blur(7px);
}

.legal-sheet {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(920px, calc(100% - 32px));
  max-height: min(78vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  transform: translate(-50%, 34px);
  opacity: 0;
  padding: 32px 34px 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 19, 26, 0.97), rgba(8, 11, 16, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1), opacity 220ms ease;
}

.legal-sheet::-webkit-scrollbar {
  width: 6px;
}

.legal-sheet::-webkit-scrollbar-track {
  background: transparent;
}

.legal-sheet::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.legal-sheet::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.legal-panel.is-open .legal-backdrop {
  opacity: 1;
}

.legal-panel.is-open .legal-sheet {
  transform: translate(-50%, 0);
  opacity: 1;
}

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

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: rgba(220, 225, 232, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.close-button {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.close-button span {
  position: absolute;
  left: 10px;
  top: 18px;
  width: 16px;
  height: 1px;
  background: rgba(240, 243, 247, 0.72);
}

.close-button span:first-child {
  transform: rotate(45deg);
}

.close-button span:last-child {
  transform: rotate(-45deg);
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.legal-content {
  padding-top: 24px;
  color: rgba(224, 229, 236, 0.78);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 32px 0 12px;
  color: rgba(247, 248, 250, 0.95);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 20px 0 8px;
  color: rgba(240, 243, 248, 0.90);
  font-size: 1.02rem;
  font-weight: 500;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #9cbce6;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #c9ddf8;
}

.legal-content strong {
  color: rgba(247, 248, 250, 0.95);
  font-weight: 600;
}

.legal-content em {
  color: rgba(220, 225, 232, 0.65);
  font-style: italic;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .hero {
    min-height: calc(100svh - 56px);
    padding: 32px 20px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }

  .brand-group {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .hero-logo {
    width: clamp(190px, 58vw, 250px);
  }

  .brand-wordmark {
    font-size: 0.62rem;
    letter-spacing: 0.36em;
    transform: translateX(0.18em);
    padding-left: 0;
  }

  .hero-divider {
    width: clamp(48px, 22vw, 84px);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0.02) 100%);
  }

  .hero-headline {
    text-align: center;
    font-size: clamp(1.2rem, 5.8vw, 1.65rem);
    letter-spacing: -0.02em;
    padding: 0 4px;
    line-height: 1.28;
    max-width: 380px;
  }

  .site-footer {
    height: 56px;
  }

  .footer-inner {
    width: min(100% - 28px, 1400px);
    justify-content: center;
  }

  .footer-label {
    display: none;
  }

  .legal-nav {
    justify-content: center;
  }

  .legal-sheet {
    bottom: 14px;
    padding: 26px 22px 28px;
    border-radius: 16px;
    max-height: 82vh;
  }
}

@media (prefers-reduced-motion: reduce) {

  .legal-backdrop,
  .legal-sheet,
  .legal-link {
    transition: none;
  }
}