/* =========================================================================
   Patrick Heffels — "bin gleich wieder da" (Coming Soon)
   Fonts: JetBrains Mono (Headline) + Inter (Fließtext)
   ========================================================================= */

:root {
  --bg:            #ffffff;
  --hero-top:      #f1f1f4;
  --hero-bottom:   #ffffff;
  --ink:           #1d1d1f;
  --ink-soft:      #2b2b2f;
  --muted:         #86868b;
  --line:          #e7e7ec;
  --accent:        #0a84ff;
  --maxw:          760px;

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 62%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, .6rem + .8vw, 1.18rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================== LAYOUT ================================ */
.soon {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 1rem + 4vw, 3.5rem);
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.3rem, .5rem + 4vw, 2rem);
  overflow: hidden;
}

.soon__card {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  text-align: center;
}

/* ------------------------------- Gruss -------------------------------- */
.wave {
  display: inline-block;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 2.8rem);
  transform-origin: 72% 78%;
  animation: wave 2.6s var(--ease) infinite;
  animation-delay: 1s;
}

/* ------------------------------ Headline ------------------------------ */
.soon__title {
  margin: .2rem 0 1.2rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-size: clamp(1.85rem, 1rem + 3.6vw, 3.1rem);
}

.soon__line { display: block; }

/* ------------------------------- Text --------------------------------- */
.soon__text {
  margin: 0 auto 1rem;
  max-width: 52ch;
  color: var(--ink-soft);
}

.soon__text--muted { color: var(--muted); font-size: .96em; }

/* Wechselndes Wort: gezeichnet / gestaltet / gebastelt ------------------ */
.soon__cycle {
  display: inline-flex;
  align-items: baseline;
  /* Feste Breite fuer das laengste Wort ("gezeichnet" + Cursor), damit der
     Satz beim Tippen nicht hin- und herspringt. JetBrains Mono ist
     monospace, ch trifft die Breite also exakt. */
  min-width: 10.8ch;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

.soon__word { white-space: pre; }

.caret {
  display: inline-block;
  width: .58ch;
  height: 1.05em;
  margin-left: .12ch;
  transform: translateY(.12em);
  background: var(--ink);
  animation: blink 1.05s steps(1, end) infinite;
}

/* ------------------------------ Kontakt ------------------------------- */
.soon__contact {
  margin: 1.8rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 46ch;
  font-size: .96em;
  color: var(--muted);
}

.soon__contact a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}
.soon__contact a:hover { text-decoration: underline; }

/* ------------------------------- Footer ------------------------------- */
.soon__footer {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: .86rem;
  color: var(--muted);
}

.soon__footer-line { margin: 0 0 .4rem; color: var(--ink-soft); }

.soon__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.soon__links a { transition: color .25s var(--ease); }
.soon__links a:hover { color: var(--ink); text-decoration: underline; }
.soon__sep { color: var(--line); }

.soon__credit { margin: .8rem 0 0; font-family: var(--font-mono); font-size: .8rem; }

.heart { display: inline-block; animation: heartbeat 2.4s var(--ease) infinite; }

/* ========================== HINTERGRUND-LOGOS ========================= */
.soon__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.deco {
  position: absolute;
  width: clamp(64px, 5vw + 40px, 116px);
  opacity: .32;
  /* Weiches Schweben: ease-in-out bremst an den Umkehrpunkten sanft ab,
     statt dort loszuschiessen (das wirkte ruckartig). "backwards" haelt das
     Logo waehrend seiner Startverzoegerung schon in der 0%-Position, sonst
     springt es beim Animationsstart aus der Ruhelage. */
  animation: float-deco var(--dur, 6.5s) cubic-bezier(.37, 0, .63, 1) infinite backwards;
  animation-delay: var(--delay, 0s);
  filter: saturate(.9);
}

.deco--craft   { top: 12%;  left: 8%; }
.deco--magic   { top: 18%;  right: 9%; }
.deco--popcorn { bottom: 20%; left: 12%; }
.deco--arrow   { bottom: 16%; right: 11%; }

/* Auf schmalen Screens die Deko weiter an den Rand und kleiner. */
@media (max-width: 720px) {
  .deco { opacity: .24; width: clamp(52px, 14vw, 76px); }
  .deco--craft { top: 4%; left: 2%; }
  .deco--magic { top: 6%; right: 2%; }
  /* Unten wird es auf dem Handy eng - dort wuerden die Logos im Footer liegen. */
  .deco--popcorn, .deco--arrow { display: none; }
}

/* ============================= ANIMATIONS ============================= */
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes float-deco {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.22); }
  30% { transform: scale(1); }
  45% { transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .caret { opacity: 1; }
}

/* ========================= LEGAL SUB-PAGES =========================== */
.legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(1.4rem, .5rem + 4vw, 2rem) 4rem;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.legal__back:hover { color: var(--ink); gap: .8rem; }

.legal h1 {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2.4rem 0 .6rem;
}

.legal p, .legal li { color: var(--ink-soft); max-width: 68ch; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

.legal__note {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--hero-top);
  color: var(--muted);
  font-size: .9rem;
}
