/* #KT FORM.WERK – Coming-soon-Seite */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --gips: #e8e7e3;
  --gips-licht: #f4f4f1;
  --gips-schatten: #d6d4ce;
  --tusche: #111111;
  --stein: #5f5d58;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(20px, 5vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--tusche);
  background-color: var(--gips);
  /* Weiches Licht von oben links, wie auf einer Gipsplatte */
  background-image:
    radial-gradient(110% 80% at 10% 0%, var(--gips-licht) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, var(--gips-schatten) 0%, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Feine Gipskörnung */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .34 0 0 0 0 .31 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}

/* ---------- Layout: Smartphone & Tablet (zentrierte Achse) ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--rand);
  padding-top: max(var(--rand), env(safe-area-inset-top));
  padding-bottom: max(var(--rand), env(safe-area-inset-bottom));
}

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(32px, 6vw, 56px);
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(168px, 52vw, 280px);
  height: auto;
}

.fuss {
  width: 100%;
  max-width: 1200px;
  margin: clamp(40px, 8vw, 64px) auto 0;
  font-size: 0.875rem;
  color: var(--stein);
  text-align: center;
}

.fuss p {
  margin: 0;
}

/* ---------- Typografie ---------- */

.titel {
  margin: 0 0 0.6em;
  /* Höhenbegrenzung hält die Zeilen im Handy-Querformat zusammen */
  font-size: min(clamp(2rem, 1.1rem + 4.6vw, 5rem), 12svh);
  font-weight: 650;
  font-stretch: 125%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro {
  margin: 0 auto;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--stein);
  text-wrap: balance;
}

/* ---------- Layout: Desktop & Handy-Querformat (zweispaltig) ---------- */

@media (min-width: 960px), (orientation: landscape) and (min-width: 600px) and (max-height: 600px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .logo {
    order: 2;
    justify-self: center;
    width: min(34vw, 420px, 64svh);
  }

  .intro {
    margin-inline: 0;
    text-wrap: pretty;
  }

  .fuss {
    text-align: left;
  }
}

/* ---------- Einstieg: Logo erscheint, danach der Text ---------- */

@media (prefers-reduced-motion: no-preference) {
  .logo {
    animation: erscheinen 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .text {
    animation: erscheinen 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes erscheinen {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
