/* KlarWerk — one-screen hero
   Brand: #0A8F2E green · #F5F2EC cream · #111111 black · #6B6B6B grey */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #0A8F2E;
  --green-dark: #077424;
  --green-deep: #0C3D1C;
  --cream: #F5F2EC;
  --black: #111111;
  --grey: #6B6B6B;
  --stage-1: #FBFAF7;
  --stage-2: #ECEBE5;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  padding: 10px;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--black);
  background: #E4E3DD;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ================= frame ================= */
.frame {
  position: relative;
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px);
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  /* white core keeps the van's studio floor invisible; grey only at the edges */
  background:
    radial-gradient(ellipse 95% 80% at 50% 44%, #FFFFFF 0%, #FFFFFF 46%, rgba(255,255,255,0) 78%),
    linear-gradient(168deg, var(--stage-1) 0%, var(--stage-2) 100%);
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.6vh, 28px) clamp(18px, 3vw, 44px);
  box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 20px 60px rgba(17,17,17,.09);
}

/* soft green ambience */
.frame::before,
.frame::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.frame::before {
  width: 46vmax; height: 46vmax; left: -14vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(10,143,46,.16), rgba(10,143,46,0) 70%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.frame::after {
  width: 40vmax; height: 40vmax; right: -12vmax; top: -16vmax;
  background: radial-gradient(circle, rgba(12,61,28,.14), rgba(12,61,28,0) 70%);
  animation: drift2 29s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(7vw, -5vh, 0) scale(1.14); } }
@keyframes drift2 { to { transform: translate3d(-6vw, 6vh, 0) scale(1.12); } }

/* ================= nav ================= */
.nav {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-shrink: 0;
}
/* never let the logo be squeezed by the flex row — it would distort the mark */
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: clamp(26px, 3.1vh, 34px); width: auto; }

.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  font-size: .93rem; font-weight: 600; color: #3A3A38; position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.nav__links a:hover { color: var(--black); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 780px) { .nav__links { display: none; } }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  font-size: .93rem; font-weight: 700;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(10,143,46,.28);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .2s ease;
  white-space: nowrap;
}
.cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,143,46,.36);
}
.cta svg { transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.cta:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------
   CTA VORÜBERGEHEND AUSGEBLENDET
   Das Markup bleibt in der index.html erhalten — nur die Anzeige ist aus.
   ZUM WIEDEREINBLENDEN: einfach diesen einen Block löschen.
   ------------------------------------------------------------------- */
.cta { display: none; }

/* ================= centre stage ================= */
.stage {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: grid; place-items: center;
}

/* giant ghost wordmark */
.ghost {
  position: absolute; z-index: 1;
  top: 46%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1;
  color: #2C2C2A;
  opacity: .085;
  white-space: nowrap;
  user-select: none; pointer-events: none;
}

/* the van */
.scene { position: relative; z-index: 2; perspective: 1400px; width: 100%; height: 100%;
         display: grid; place-items: center; }
.van {
  position: relative;
  width: clamp(320px, 62vw, 780px);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  animation: float 8s ease-in-out infinite;
}
.van--live { transition: transform .12s ease-out; animation: none; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg); }
  50%      { transform: translate3d(0, -13px, 0) rotateY(-1.4deg); }
}
.van__img {
  width: 100%; height: auto;
  transform: translateZ(60px);
  filter: drop-shadow(0 34px 30px rgba(12,61,28,.20));
}
.van__shadow {
  position: absolute; left: 10%; right: 10%; bottom: 1%;
  height: 32px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(12,61,28,.22), rgba(12,61,28,0) 72%);
  filter: blur(15px);
  transform: translateZ(-70px);
  animation: shadowPulse 8s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: translateZ(-70px) scale(1);   opacity: .8; }
  50%      { transform: translateZ(-70px) scale(.88); opacity: .5; }
}

/* floating trust badge */
.badge {
  position: absolute; z-index: 4;
  left: clamp(0px, 2vw, 40px); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(17,17,17,.07);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(17,17,17,.09);
  animation: badgeFloat 6s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 9px)); }
}
.badge__ring {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(10,143,46,.3);
  display: grid; place-items: center; color: var(--green);
}
.badge__txt { font-size: .78rem; line-height: 1.35; color: var(--grey); }
.badge__txt b { display: block; color: var(--black); font-weight: 700; font-size: .84rem; }
@media (max-width: 900px) { .badge { display: none; } }

/* ================= bottom ================= */
.bottom {
  position: relative; z-index: 5;
  flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}
@media (max-width: 820px) { .bottom { flex-direction: column; align-items: flex-start; gap: 14px; } }

.title {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
}
.title em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, var(--green) 0%, #34C759 45%, var(--green-dark) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 820px) { .right { align-items: flex-start; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px;
         justify-content: flex-end; }
@media (max-width: 820px) { .chips { justify-content: flex-start; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: clamp(.74rem, .85vw, .84rem); font-weight: 600;
  color: #3A3A38;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(17,17,17,.08);
  padding: 8px 13px; border-radius: 999px;
  backdrop-filter: blur(8px);
  cursor: default;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease,
              border-color .22s ease, color .22s ease;
}
.chip svg { color: var(--green); flex-shrink: 0; transition: transform .22s ease; }
.chip:hover {
  transform: translateY(-3px);
  color: var(--green-deep);
  border-color: rgba(10,143,46,.4);
  box-shadow: 0 8px 20px rgba(10,143,46,.15);
}
.chip:hover svg { transform: scale(1.15) rotate(-6deg); }

.legal { display: flex; gap: 16px; font-size: .74rem; color: #9A9A96; }
.legal a { transition: color .2s ease; }
.legal a:hover { color: var(--green); }

/* ================= entrance ================= */
.rise { opacity: 0; transform: translateY(20px); }
.is-ready .rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.is-ready .rise--1 { animation-delay: .05s; }
.is-ready .rise--2 { animation-delay: .50s; }
.is-ready .rise--3 { animation-delay: .60s; }
.is-ready .rise--4 { animation-delay: .70s; }

/* badge keeps its own -50% offset while entering */
.badge.rise { opacity: 0; transform: translateY(calc(-50% + 20px)); animation: none; }
.is-ready .badge.rise { animation: badgeIn .8s cubic-bezier(.2,.8,.2,1) .8s forwards; }
@keyframes badgeIn {
  to { opacity: 1; transform: translateY(-50%); }
}

.ghost { opacity: 0; }
.is-ready .ghost { animation: ghostIn 1.4s cubic-bezier(.2,.8,.2,1) .15s forwards; }
@keyframes ghostIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
  to   { opacity: .085; transform: translate(-50%, -50%) scale(1); }
}

.scene { opacity: 0; transform: translateY(46px) scale(.93); }
.is-ready .scene { animation: vanIn 1.2s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes vanIn { to { opacity: 1; transform: translateY(0) scale(1); } }

/* narrow phones: shrink the CTA so the un-squeezable logo still fits beside it */
@media (max-width: 430px) {
  .nav__logo img { height: 24px; }
  .cta { font-size: .82rem; padding: 10px 15px; gap: 0; }
  .cta svg { display: none; }
}

/* ================= small screens ================= */
@media (max-width: 900px), (max-height: 600px) {
  body { overflow: auto; padding: 8px; }
  .frame {
    height: auto;
    min-height: calc(100vh - 16px);
    min-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .stage { padding-block: 18px; }
  .van { width: clamp(280px, 92vw, 560px); }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .scene { opacity: 1 !important; transform: none !important; }
  .ghost { opacity: .085 !important; transform: translate(-50%, -50%) !important; }
  .badge.rise { opacity: 1 !important; transform: translateY(-50%) !important; }
}
