/* DerKassenDoc – Coming Soon
   Frischer Look · Split-Flap-Countdown
   Navy #182848 · Blue #106cb0 · Orange #ec7014 · Green #78b834 · Sky #2c94d0 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:      #182848;
  --bg:        #f3f7f2;
  --bg-soft:   #e8f0ec;
  --blue:      #106cb0;
  --sky:       #2c94d0;
  --orange:    #ec7014;
  --green:     #78b834;
  --ink:       #182848;
  --ink-70:    rgba(24, 40, 72, 0.72);
  --ink-50:    rgba(24, 40, 72, 0.52);
  --ink-40:    rgba(24, 40, 72, 0.4);
  --line:      rgba(24, 40, 72, 0.1);
  --flap-face: #1a2438;
  --flap-deep: #0d1320;
  --cream:     #f0d9a8;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font:      "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display:   "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono:      "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere */

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, #f7faf6 0%, #eef5fb 45%, #eaf3ee 78%, #e6f0f6 100%);
}

.stage__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(24, 40, 72, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 40, 72, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.stage__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.stage__orb--a {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  top: -8%;
  left: -6%;
  background: rgba(44, 148, 208, 0.28);
}

.stage__orb--b {
  width: min(36vw, 24rem);
  height: min(36vw, 24rem);
  right: -4%;
  bottom: 4%;
  background: rgba(120, 184, 52, 0.22);
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

/* Layout */

.page {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(2rem, env(safe-area-inset-top))
    1.25rem
    max(2rem, env(safe-area-inset-bottom));
}

.page__inner {
  width: min(40rem, 100%);
  text-align: center;
}

.hero-top {
  margin-bottom: 1.5rem;
}

.brand-logo {
  display: block;
  width: clamp(12rem, 44vw, 17.5rem);
  height: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 14px 32px rgba(24, 40, 72, 0.14));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.85;
}

.heading {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.8vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--navy);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.body {
  font-size: clamp(0.95rem, 2vw, 1.06rem);
  line-height: 1.7;
  color: var(--ink-70);
  margin: 0 auto 1rem;
  max-width: 34rem;
  text-wrap: pretty;
}

.body:last-of-type {
  margin-bottom: 0;
}

/* Teaser – no cards, accent marks only */

.teaser {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  margin: 2rem auto 0;
  max-width: 22rem;
  text-align: left;
}

.teaser__item {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.65rem;
  border-top: 2px solid transparent;
}

.teaser__item--blue { border-top-color: var(--blue); }
.teaser__item--green { border-top-color: var(--green); }
.teaser__item--orange { border-top-color: var(--orange); }

.teaser__t {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.teaser__d {
  font-size: 0.9rem;
  color: var(--ink-70);
  line-height: 1.45;
}

@media (min-width: 40rem) {
  .teaser {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 1.5rem;
  }
}

/* Countdown Split-Flap */

.countdown {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.countdown__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}

.countdown__timer {
  display: flex;
  justify-content: center;
  gap: clamp(0.45rem, 2.5vw, 0.9rem);
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.board__digits {
  display: flex;
  gap: 0.15rem;
}

.timer-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.flap {
  position: relative;
  width: clamp(1.65rem, 5.5vw, 2.3rem);
  height: clamp(2.3rem, 7.5vw, 3.1rem);
  font-family: var(--mono);
  font-size: clamp(1.15rem, 4vw, 1.65rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
  perspective: 300px;
  background: var(--flap-deep);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 18px rgba(24, 40, 72, 0.18);
}

.flap__top,
.flap__bottom,
.flap__hinge-top,
.flap__hinge-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  background: var(--flap-face);
}

.flap__top,
.flap__hinge-top {
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 4px 4px 0 0;
}

.flap__bottom,
.flap__hinge-bottom {
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 4px 4px;
}

.flap__top span,
.flap__bottom span,
.flap__hinge-top span,
.flap__hinge-bottom span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.flap__top span,
.flap__hinge-top span { top: 0; }

.flap__bottom span,
.flap__hinge-bottom span { bottom: 0; }

.flap__hinge-top,
.flap__hinge-bottom {
  z-index: 3;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.flap__hinge-top {
  transform-origin: bottom;
  background: linear-gradient(#2a3854, #1e2a40);
}

.flap__hinge-bottom {
  transform-origin: top;
  transform: rotateX(90deg);
  background: linear-gradient(#1a2438, #232e45);
  z-index: 2;
}

.flap.is-flipping .flap__hinge-top {
  animation: flap-top 0.4s ease-in forwards;
}

.flap.is-flipping .flap__hinge-bottom {
  animation: flap-bottom 0.4s ease-out forwards;
}

@keyframes flap-top {
  from { transform: rotateX(0deg); z-index: 4; }
  to   { transform: rotateX(-90deg); z-index: 1; }
}

@keyframes flap-bottom {
  0%   { transform: rotateX(90deg); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}

.countdown.is-done .countdown__timer {
  display: none;
}

.countdown.is-done .countdown__label {
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 1.05rem;
}

/* Interesse vormerken – klein, kein Verkaufsblock */

.interest {
  margin-top: 2.15rem;
  padding-top: 1.65rem;
  border-top: 1px solid var(--line);
}

.interest__title {
  font-family: var(--display);
  font-size: clamp(1.12rem, 3.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.interest__text {
  font-size: clamp(0.92rem, 2vw, 1.02rem);
  line-height: 1.65;
  color: var(--ink-70);
  max-width: 34rem;
  margin: 0 auto 1.15rem;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.2s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #d4620f;
}

.error-actions {
  margin-top: 1.75rem;
}

/* Footer */

.foot {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.foot__claim {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.foot__copy {
  font-size: 0.75rem;
  color: var(--ink-40);
}

.foot__legal {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.85rem;
}

.foot__legal a {
  font-size: 0.75rem;
  color: var(--ink-50);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.foot__legal a:hover,
.foot__legal a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Legal pages */

.legal-body {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(44, 148, 208, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 100%, rgba(120, 184, 52, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, var(--bg) 40%, var(--bg-soft) 100%);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 0.5rem;
}

.legal-header__brand img {
  display: block;
  width: clamp(7rem, 28vw, 9.5rem);
  height: auto;
}

.legal-header__back {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.legal-header__back:hover {
  text-decoration: underline;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: var(--ink);
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  color: var(--ink);
}

.legal h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}

.legal h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.35rem 0 0.55rem;
  color: var(--navy);
}

.legal p,
.legal li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-70);
  margin-bottom: 0.85rem;
}

.legal ul {
  margin: 0 0 1rem 1.15rem;
}

.legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__caps {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}

.legal__note {
  margin-top: 4rem;
  font-size: 0.75rem;
  color: var(--ink-50);
}

.legal__note p {
  font-size: 0.75rem;
  color: var(--ink-50);
  margin-bottom: 0.5rem;
}

.fairness {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.fairness__logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.fairness__logo {
  display: block;
  width: 90px;
  height: auto;
}

.fairness p {
  margin-bottom: 0;
  padding-top: 0.35rem;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem max(2rem, env(safe-area-inset-bottom));
}

.legal-footer a {
  font-size: 0.75rem;
  color: var(--ink-50);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--blue);
}

/* Entrance */

.anim {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.anim.is-in,
.no-js .anim {
  opacity: 1;
  transform: none;
}

.page__inner > .anim:nth-child(1) { transition-delay: 0.05s; }
.page__inner > .anim:nth-child(2) { transition-delay: 0.12s; }
.page__inner > .anim:nth-child(3) { transition-delay: 0.2s; }
.page__inner > .anim:nth-child(4) { transition-delay: 0.28s; }
.page__inner > .anim:nth-child(5) { transition-delay: 0.36s; }
.page__inner > .anim:nth-child(6) { transition-delay: 0.44s; }
.page__inner > .anim:nth-child(7) { transition-delay: 0.52s; }
.page__inner > .anim:nth-child(8) { transition-delay: 0.58s; }

@media (max-width: 30rem) {
  .brand-logo {
    width: clamp(9.5rem, 58vw, 13rem);
    margin-bottom: 1rem;
  }

  .countdown__timer {
    gap: 0.35rem;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage__orb { animation: none; }
  .anim { opacity: 1; transform: none; transition: none; }

  .flap.is-flipping .flap__hinge-top,
  .flap.is-flipping .flap__hinge-bottom {
    animation: none !important;
  }
}
