@font-face {
  font-family: "Inter";
  src: url("/landing-3d/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/landing-3d/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #2b2b2a;
  --panel: #383735;
  --panel-raised: #43413f;
  --text: #fdf3f3;
  --sub: rgba(253, 243, 243, 0.66);
  --hair: rgba(253, 243, 243, 0.11);
  --mark: #b3362f;
  --cta: #8a1d1d;
  --cta-hover: #a52525;
  --glow: rgba(138, 29, 29, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
}

body {
  color: var(--text);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.welcome {
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 38px 0 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  position: relative;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: var(--canvas);
  pointer-events: none;
  transition: opacity 420ms ease-out, visibility 420ms ease-out;
}

.intro::after {
  content: "";
  position: absolute;
  width: min(440px, 72vw);
  height: min(440px, 72vw);
  border: 1px solid var(--hair);
  border-radius: 50%;
  transform: scale(0.78);
  opacity: 0;
  animation: intro-ring 980ms ease-out 180ms forwards;
}

.intro img {
  width: 82px;
  height: auto;
  z-index: 1;
  opacity: 0;
  clip-path: inset(100% 0 0);
  animation: logo-reveal 820ms ease-out 120ms forwards;
}

.intro-line {
  position: absolute;
  width: 1px;
  height: 0;
  background: var(--mark);
  animation: line-reveal 740ms ease-out forwards;
}

.is-ready .intro {
  opacity: 0;
  visibility: hidden;
}

.welcome-head {
  text-align: center;
  padding-top: 8px;
  opacity: 0;
  transform: translateY(16px);
}

.brand-mark {
  width: 42px;
  height: auto;
  margin: 0 auto 16px;
}

.overline {
  margin: 0 0 7px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.welcome-copy {
  margin: 13px 0 0;
  color: var(--sub);
  font-size: 17px;
}

.prealpha-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 14px 0 0;
  padding: 6px 10px;
  border: 1px solid rgba(217, 106, 95, 0.42);
  border-radius: 6px;
  background: rgba(138, 29, 29, 0.24);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 24px;
}

.experience {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--panel);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 220ms ease-out, border-color 220ms ease-out, background 220ms ease-out, box-shadow 220ms ease-out;
}

.experience:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 243, 243, 0.3);
  background: var(--panel-raised);
}

.experience:focus-visible {
  outline: 1px solid var(--cta);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--glow);
}

.experience-media {
  aspect-ratio: 16 / 8.2;
  display: block;
  position: relative;
  overflow: hidden;
  background: #20201f;
  border-bottom: 1px solid var(--hair);
}

.experience-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease-out;
}

.experience:hover .experience-media img {
  transform: scale(1.025);
}

.mode-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(253, 243, 243, 0.16);
  border-radius: 10px;
  background: rgba(43, 43, 42, 0.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-body {
  min-height: 104px;
  min-width: 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.experience-body > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.experience strong {
  display: block;
  margin-bottom: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.experience small {
  display: block;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.45;
}

.arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cta);
  font-size: 20px;
  transition: background 200ms ease-out, transform 200ms ease-out;
}

.experience:hover .arrow {
  background: var(--cta-hover);
  transform: translateX(2px);
}

.welcome-foot {
  margin: 0;
  max-width: 100%;
  padding: 0 8px;
  text-align: center;
  color: rgba(253, 243, 243, 0.44);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  opacity: 0;
}

.welcome-login {
  color: rgba(253, 243, 243, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(253, 243, 243, 0.25);
}

.welcome-login:hover {
  color: var(--text);
}

/* Dezente Rechts-Links (Impressumspflicht) */
.legal-foot {
  padding: 10px 0 0;
  text-align: center;
  opacity: 0;
}

.is-ready .legal-foot {
  opacity: 1;
  transition: opacity 460ms ease-out;
  transition-delay: 240ms;
}

.legal-foot nav {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-foot a {
  color: rgba(253, 243, 243, 0.44);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color 200ms ease-out;
}

.legal-foot a:hover {
  color: var(--text);
}

/* Sichtbarer Fokus-Ring (Tastatur) */
.welcome a:focus-visible {
  outline: 2px solid #d96a5f;
  outline-offset: 3px;
  border-radius: 4px;
}

.is-ready .welcome-head,
.is-ready .experience,
.is-ready .welcome-foot {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 460ms ease-out, transform 460ms ease-out;
}

.is-ready .experience:nth-child(1) {
  transition-delay: 90ms;
}

.is-ready .experience:nth-child(2) {
  transition-delay: 150ms;
}

.is-ready .welcome-foot {
  transition-delay: 210ms;
}

@keyframes logo-reveal {
  0% { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(18px); }
  100% { opacity: 1; clip-path: inset(0 0 0); transform: translateY(0); }
}

@keyframes line-reveal {
  0% { height: 0; opacity: 0; }
  45% { height: 190px; opacity: 1; }
  100% { height: 0; opacity: 0; }
}

@keyframes intro-ring {
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 720px) {
  .welcome {
    width: min(100% - 28px, 560px);
    min-height: auto;
    padding: 26px 0 22px;
    display: block;
  }

  .welcome-head {
    padding-top: 0;
  }

  .brand-mark {
    width: 34px;
    margin-bottom: 12px;
  }

  h1 {
    font-size: 38px;
  }

  .welcome-copy {
    margin-top: 9px;
    font-size: 15px;
  }

  .prealpha-badge {
    margin-top: 11px;
    font-size: 9px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 18px;
  }

  .experience-media {
    aspect-ratio: 16 / 6.3;
  }

  .mode-badge {
    display: none;
  }

  .experience-body {
    min-height: 82px;
    padding: 14px 16px;
    gap: 12px;
  }

  .experience strong {
    font-size: 18px;
  }

  .experience small {
    font-size: 12px;
  }

  .arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .welcome {
    width: calc(100% - 22px);
    padding-top: 18px;
  }

  .brand-mark {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  .experience-grid {
    margin-top: 17px;
  }

  .experience-media {
    aspect-ratio: 16 / 5.5;
  }
}

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

  .intro {
    display: none;
  }

  .welcome-head,
  .experience,
  .welcome-foot {
    opacity: 1;
    transform: none;
  }
}
