@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --tinte: #0f2a1e;
  --tinte-2: #3f5448;
  --gruen: #0a4f36;
  --gruen-2: #0d6446;
  --logo: #00bf63;
  --rand: clamp(1.25rem, 3.2vw, 3rem);
  --weich: cubic-bezier(0.16, 0.84, 0.24, 1);
  color-scheme: light;
}

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

/* Der Himmel ohne WebGL und bis das erste Bild steht: derselbe Verlauf wie im Shader */
html {
  min-height: 100%;
  background: linear-gradient(180deg, #a9c6e4 0%, #c9dcee 38%, #e4ecf2 68%, #f5efe7 100%) fixed;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--rand);
  padding-left: max(var(--rand), env(safe-area-inset-left));
  padding-right: max(var(--rand), env(safe-area-inset-right));
  color: var(--tinte);
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.himmel {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.himmel.da { opacity: 1; }

.kopf, .buehne { position: relative; z-index: 1; }

.kopf { display: flex; align-items: center; gap: 0.75rem; }
.motte { width: 2.5rem; height: auto; overflow: visible; }
.motte path {
  fill: none;
  stroke: var(--logo);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ziehen 900ms var(--weich) forwards;
}
@keyframes ziehen { to { stroke-dashoffset: 0; } }
.schriftzug { display: block; height: 0.9rem; width: auto; color: var(--tinte); animation: auftauchen 1.2s var(--weich) 0.5s both; }

.buehne {
  display: grid;
  align-items: end;
}

/* Die Absperrung schwebt oben in der Mitte im Himmel */
.schild {
  position: absolute;
  z-index: 1;
  top: clamp(7rem, 26vh, 16rem);
  left: 50%;
  margin-left: -0.5em;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 5.5rem;
  line-height: 1;
  animation: landen 1.3s cubic-bezier(0.3, 1.4, 0.5, 1) 1.1s both;
}
.schild span {
  display: block;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 22px 20px rgba(30, 60, 90, 0.16));
  animation: schweben 6.5s ease-in-out 2.4s infinite;
}
@keyframes landen {
  from { opacity: 0; transform: translateY(-3rem) scale(0.6) rotate(-10deg); }
  to { opacity: 1; transform: none; }
}
@keyframes schweben {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-0.6rem) rotate(2.5deg); }
  70% { transform: translateY(0.3rem) rotate(-2deg); }
}

.text { padding-bottom: clamp(0.25rem, 2.5vh, 2rem); }

h1 {
  font-size: clamp(3.6rem, 1rem + 8.4vw, 10rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.048em;
  margin-left: -0.055em;
}
.w {
  display: inline-block;
  animation: auftauchen 1.25s var(--weich) both;
}
.zusammen { white-space: nowrap; }
h1 > .w:nth-child(1) { animation-delay: 0.3s; }
h1 > .w:nth-child(2) { animation-delay: 0.42s; }
.zusammen > .w:first-child { animation-delay: 0.54s; }
.zwinker { animation-name: zwinkern; animation-delay: 0.85s; margin-left: 0.04em; color: var(--gruen); }
@keyframes auftauchen {
  from { opacity: 0; transform: translateY(0.3em); filter: blur(14px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes zwinkern {
  from { opacity: 0; transform: translateY(0.3em) rotate(-25deg); filter: blur(14px); }
  to { opacity: 1; transform: rotate(0deg); filter: blur(0); }
}

p {
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  max-width: 30ch;
  font-size: clamp(1.15rem, 0.95rem + 0.55vw, 1.5rem);
  line-height: 1.4;
  color: var(--tinte-2);
  animation: auftauchen 1.2s var(--weich) 0.8s both;
}

.wege {
  margin-top: clamp(1.75rem, 3.2vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  animation: auftauchen 1.2s var(--weich) 0.95s both;
}

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.6rem;
  padding: 0 1.6rem 0 1.35rem;
  border-radius: 4px;
  background: var(--gruen);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 14px 30px -14px rgba(10, 60, 40, 0.55);
  transition: background-color 200ms ease, transform 300ms var(--weich), box-shadow 300ms var(--weich);
}
.knopf .wa { width: 1.35rem; height: 1.35rem; fill: currentColor; flex: none; }
.knopf:hover {
  background: var(--gruen-2);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 20px 36px -16px rgba(10, 60, 40, 0.6);
}
.knopf:active { transform: translateY(0); }

.nummer {
  color: var(--tinte);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: rgba(15, 42, 30, 0.3);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms ease;
}
.nummer:hover { text-decoration-color: var(--tinte); }

a:focus-visible { outline: 2px solid var(--tinte); outline-offset: 4px; }

@media (max-width: 760px) {
  .schild { font-size: 4.5rem; top: clamp(6rem, 24vh, 12rem); }
  .kopf { justify-content: center; }
  .text { text-align: center; }
  h1 { margin-left: 0; }
  p { margin-left: auto; margin-right: auto; }
  .wege { justify-content: center; }
  .knopf { width: 100%; justify-content: center; }
  .wege { gap: 1.1rem; }
  .nummer { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motte path { stroke-dashoffset: 0; }
  .himmel { opacity: 1; }
}

/* Die Strahlen der Motte zeichnen sich nacheinander, im Uhrzeigersinn */
.motte path:nth-child(1) { animation-delay: 200ms; }
.motte path:nth-child(2) { animation-delay: 228ms; }
.motte path:nth-child(3) { animation-delay: 256ms; }
.motte path:nth-child(4) { animation-delay: 284ms; }
.motte path:nth-child(5) { animation-delay: 312ms; }
.motte path:nth-child(6) { animation-delay: 340ms; }
.motte path:nth-child(7) { animation-delay: 368ms; }
.motte path:nth-child(8) { animation-delay: 396ms; }
.motte path:nth-child(9) { animation-delay: 424ms; }
.motte path:nth-child(10) { animation-delay: 452ms; }
.motte path:nth-child(11) { animation-delay: 480ms; }
.motte path:nth-child(12) { animation-delay: 508ms; }
.motte path:nth-child(13) { animation-delay: 536ms; }
.motte path:nth-child(14) { animation-delay: 564ms; }
.motte path:nth-child(15) { animation-delay: 592ms; }
.motte path:nth-child(16) { animation-delay: 620ms; }
.motte path:nth-child(17) { animation-delay: 648ms; }
.motte path:nth-child(18) { animation-delay: 676ms; }
.motte path:nth-child(19) { animation-delay: 704ms; }
.motte path:nth-child(20) { animation-delay: 732ms; }
.motte path:nth-child(21) { animation-delay: 760ms; }
.motte path:nth-child(22) { animation-delay: 788ms; }
.motte path:nth-child(23) { animation-delay: 816ms; }
.motte path:nth-child(24) { animation-delay: 844ms; }
.motte path:nth-child(25) { animation-delay: 872ms; }
.motte path:nth-child(26) { animation-delay: 900ms; }
.motte path:nth-child(27) { animation-delay: 928ms; }
.motte path:nth-child(28) { animation-delay: 956ms; }
.motte path:nth-child(29) { animation-delay: 984ms; }
.motte path:nth-child(30) { animation-delay: 1012ms; }
.motte path:nth-child(31) { animation-delay: 1040ms; }
.motte path:nth-child(32) { animation-delay: 1068ms; }
.motte path:nth-child(33) { animation-delay: 1096ms; }
.motte path:nth-child(34) { animation-delay: 1124ms; }
