:root {
  --bg: #070a10;
  --bg-2: #0b1017;
  --panel: rgba(14, 18, 27, 0.72);
  --panel-strong: rgba(12, 16, 24, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #9ea7b6;
  --accent: #c5ccd7;
  --accent-soft: rgba(197, 204, 215, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --container: min(100% - 32px, 1120px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(120, 130, 150, 0.10), transparent 25%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  opacity: 0.38;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  flex-direction: column;
}

.topbar,
.footer,
.hero-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbe1ea, #8c95a5);
  box-shadow: 0 0 24px rgba(219, 225, 234, 0.32);
  flex: 0 0 auto;
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.impressum-link,
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.impressum-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  font-size: 0.92rem;
  white-space: nowrap;
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.hero-panel {
  position: relative;
  width: 100%;
  padding: 32px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.10), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(160, 169, 183, 0.08), transparent 35%);
}

.kicker,
.lead,
.footer,
.impressum-link {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.4rem, 12vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 8ch;
}

.lead {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.actions {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 4px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 900ms cubic-bezier(.2,.7,.2,1) forwards;
}

.fade-delay-1 {
  animation-delay: 120ms;
}

.fade-delay-2 {
  animation-delay: 240ms;
}

.impressum-link:hover,
.footer a:hover {
  color: var(--text);
}

.button-primary:hover,
.impressum-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.06);
}

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

@media (min-width: 640px) {
  .page {
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .topbar {
    padding: 16px 18px;
  }

  .hero {
    padding: 36px 0;
  }

  .hero-panel {
    min-height: min(72vh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 46px;
    border-radius: 30px;
  }

  .lead {
    font-size: 1.08rem;
  }
}

@media (min-width: 960px) {
  :root {
    --container: min(100% - 56px, 1180px);
  }

  .hero-panel {
    padding: 72px 64px;
  }

  .footer {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 12px 12px;
  }

  .brand-text {
    font-size: 0.84rem;
    letter-spacing: 0.14em;
  }

  .impressum-link {
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero-panel {
    padding: 28px 18px;
  }

  .footer {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
