@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-600.ttf) format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: normal;
  font-display: swap;
  src: url(assets/fonts/instrument-sans-700.ttf) format('truetype');
}

* {
  box-sizing: border-box;
}

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

body {
  background: #eeeeee;
  color: #151412;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Seite 1 -- gestaffelte Einblendung, kein Klick mehr nötig */
.splash-page {
  overflow: hidden;
}

.splash {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #eeeeee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Hintergrund startet leer; Logo faded ab 0,6s sanft ein. Nach dem
     vollstaendigen Reveal (4,6s) + 1s Verweildauer beginnt das
     gemeinsame Ausblenden bei t=5,6s, dauert 1s, endet bei t=6,6s. */
  animation: pageFadeOut 1s ease 5.6s forwards;
}

@keyframes pageFadeOut {
  to { opacity: 0; }
}

.logo {
  width: 110px;
  opacity: 0;
  animation: fadeIn 2.5s ease 0.6s forwards;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.wordmark {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  opacity: 0;
  /* Start 1,5s nach Logo-Start (Logo startet bei 0,6s) */
  animation: fadeIn 2.5s ease 2.1s forwards;
}
.wordmark span {
  display: block;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 19px;
  color: #151412;
}

.hint {
  margin-top: 48px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(21, 20, 18, 0.55);
  opacity: 0;
  /* Start 1s nach Wortmarken-Start (2,1s + 1s = 3,1s) */
  animation: fadeIn 1.5s ease 3.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .logo, .wordmark, .hint {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* Seite 2 */
.teaser-page {
  min-height: 100vh;
  background: #ededed;
}

.teaser {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.teaser .logo,
.teaser .wordmark {
  opacity: 1;
  animation: none;
}

.teaser .wordmark {
  margin-top: 24px;
}

.teaser-text {
  margin: 32px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(21, 20, 18, 0.75);
}

.login-button {
  margin-top: 28px;
  display: inline-block;
  padding: 12px 32px;
  background: #151412;
  color: #eeeeee;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.login-button:hover {
  opacity: 0.85;
}

.teaser-image {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  object-position: center;
  background: #ededed;
  user-select: none;
  -webkit-user-drag: none;
}

/* Sanfter Crossfade zwischen Startseite und Teaser (nativer Browser-
   Seitenübergang, kein JavaScript nötig). Nicht unterstützende Browser
   (u.a. Firefox) zeigen einfach den normalen Sprung, ohne Fehler. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1.5s;
}

/* Sanfter Crossfade zwischen Startseite und Teaser (nativer Browser-
   Seitenübergang, kein JavaScript nötig). Nicht unterstützende Browser
   (u.a. Firefox) zeigen einfach den normalen Sprung, ohne Fehler. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1.5s;
}
