/* =========================================================
   setsign.me — single-viewport landing page
   ========================================================= */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  /*
     Eine Familie für alles: BDO Grotesk, SIL Open Font License, liegt in
     fonts/. Vorher kam der Fließtext von Google Fonts und die Display-Schrift
     von db.onlinewebfonts.com — die eine holt bei jedem Aufruf Daten bei
     Dritten, bei der anderen ist die Lizenzlage unklar. Beides gehört nicht
     unter eine Seite, auf der es um Einwilligungen geht.
  */
  --font-sans: "BDO Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-display: "BDO Grotesk", "Segoe UI", system-ui, sans-serif;
}

/*
   BDO Grotesk in allen vier Schnitten. V1 laedt die CI-Tokens nicht, deshalb
   stehen die Deklarationen hier noch einmal.
*/
@font-face {
  font-family: "BDO Grotesk";
  src: url("fonts/BDOGrotesk-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("fonts/BDOGrotesk-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("fonts/BDOGrotesk-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "BDO Grotesk";
  src: url("fonts/BDOGrotesk-ExtraBold.ttf") format("truetype");
  font-weight: 800; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== Background video ===== */

.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ===== Page layout: header / hero / stats ===== */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* ===== 1) Header ===== */

/*
   Eine durchgezogene Pille statt dreier Inseln. Marke, Navigation und
   Anmelden lagen vorher auf je eigener Fläche mit eigenem Schatten; die
   Fläche gehört jetzt dem Header, und die drei Teile sitzen darin.
*/
.site-header {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  gap: clamp(8px, 1.4vw, 16px);
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Marke und Wortmarke als ein Block — sie gehoeren zusammen. */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-left: clamp(6px, 0.8vw, 10px);
  padding-right: clamp(4px, 0.8vw, 10px);
  text-decoration: none;
  flex-shrink: 0;
}

/*
   Schwarz auf heller Fläche. Vorher stand die Wortmarke in Weiß direkt über
   dem Hintergrundvideo — je nach Bildinhalt war sie nicht zu lesen. Das Lockup
   sitzt jetzt auf derselben weißen Pille wie die Navigation daneben, dann
   stimmt der Kontrast unabhängig davon, was das Video gerade zeigt.
*/
.logo-wortmarke {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 22px);
  letter-spacing: -0.03em;
  color: #0a0b0b;
  line-height: 1;
}

.logo {
  display: grid;
  place-items: center;
  width: clamp(32px, 3.4vw, 38px);
  height: clamp(32px, 3.4vw, 38px);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-lockup:hover .logo {
  transform: scale(1.06);
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.6vw, 8px);
  flex: 1;
  height: clamp(38px, 4.4vw, 42px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(10px, 1.6vw, 16px);
  border-radius: 999px;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  transform: translateX(-50%);
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: clamp(38px, 4.4vw, 42px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
}

.burger {
  display: none;
}

/* ===== 2) Hero ===== */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

/* Trust row */

.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Die eingebetteten Piktogramme skalieren mit ihrer Fläche mit. */
.trust-avatar-inner svg {
  width: 54%;
  height: 54%;
  display: block;
}

.trust-avatar-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
}

.trust-avatar--1 {
  z-index: 1;
}

.trust-avatar--2 {
  z-index: 2;
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar--3 {
  z-index: 4;
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar--1:hover {
  transform: translateY(-2px);
}

.trust-avatar--2:hover {
  transform: translateY(-4px);
}

.trust-avatar--3:hover {
  transform: translateY(-2px);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

/* Headline */

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

/* The parent .headline.anim has no reveal animation itself —
   each line fades in on its own. */
.headline.anim {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.headline-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline-line--1 {
  animation-delay: 0.12s;
}

.headline-line--2 {
  animation-delay: 0.3s;
}

/* Subhead */

.subhead {
  max-width: min(500px, 92%);
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

/* CTA */

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(18px, 3vh, 30px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.2);
}

/* ===== 3) Stats footer ===== */

.stats {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
  width: 100%;
  max-width: 920px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(4px, 0.8vh, 8px);
}

.stat-icon {
  display: block;
  line-height: 1;
  color: rgba(255, 255, 255, 0.66);
}

.stat-icon svg {
  width: clamp(22px, 2.4vw, 27px);
  height: clamp(22px, 2.4vw, 27px);
  display: block;
  margin: 0 auto;
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ===== Shared entrance animations ===== */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.anim-pulse {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ===== Mobile menu (shared pieces) ===== */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  z-index: 9;
  top: 84px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 420px;
  border-radius: 28px;
  background: #fff;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu[hidden],
.menu-overlay[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

.mobile-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  transform: translateX(-50%);
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.mobile-signin {
  margin-top: 10px;
  width: 100%;
  background: var(--pill-dark);
  color: var(--sign-in-text);
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* ===== Mobile (≤720px) ===== */

@media (max-width: 720px) {
  .site-header {
    max-width: none;
    justify-content: space-between;
    gap: 0;
  }

  .nav-pill,
  .sign-in {
    display: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .burger-bar {
    grid-area: 1 / 1;
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
  }

  .burger-bar:nth-child(1) {
    transform: translateY(-6.5px);
  }

  .burger-bar:nth-child(3) {
    transform: translateY(6.5px);
  }

  .burger[aria-expanded="true"] {
    background: #fff;
  }

  .burger[aria-expanded="true"] .burger-bar {
    background: #000;
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(1) {
    transform: rotate(45deg);
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(2) {
    transform: scaleX(0);
  }

  .burger[aria-expanded="true"] .burger-bar:nth-child(3) {
    transform: rotate(-45deg);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }
}

/* ===== Small phones (≤420px) ===== */

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

/* ===== Short viewports (≤700px height) ===== */

@media (max-height: 700px) {
  .trust {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: clamp(8px, 1.4vh, 14px);
  }

  .cta {
    margin-top: clamp(12px, 2vh, 20px);
  }
}

/* ===== Version switch (unten rechts, auf allen Versionen) ===== */

.version-switch {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.vs-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.vs-item:hover {
  color: #fff;
}

.vs-item.vs-active {
  background: #fff;
  color: #111;
}

/* ===== Reduced motion ===== */

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .anim,
  .anim-pulse,
  .headline-line,
  .menu-overlay,
  .mobile-menu,
  .mobile-link {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #fff;
  }
}
