/* DerKassenDoc – Coming Soon
   Navy #07264a · Teal #1399a8 */

:root {
  --navy:      #07264a;
  --navy-deep: #030f1c;
  --teal:      #1399a8;
  --teal-soft: rgba(19, 153, 168, 0.15);
  --teal-dim:  rgba(19, 153, 168, 0.65);
  --white:     #ffffff;
  --white-85:  rgba(255, 255, 255, 0.85);
  --white-70:  rgba(255, 255, 255, 0.7);
  --white-50:  rgba(255, 255, 255, 0.5);
  --white-40:  rgba(255, 255, 255, 0.4);
  --white-15:  rgba(255, 255, 255, 0.12);
  --white-08:  rgba(255, 255, 255, 0.06);
  --overlay:   linear-gradient(165deg, rgba(3, 15, 28, 0.82) 0%, rgba(7, 38, 74, 0.76) 100%);
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hintergrund */

.glitch-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
  pointer-events: none;
}

/* Slides */

.slides {
  position: relative;
  z-index: 2;
  height: 100dvh;
  height: 100svh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slide {
  min-height: 100dvh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(2.75rem, env(safe-area-inset-right));
}

.slide--hero {
  padding-top: max(3rem, env(safe-area-inset-top));
}

.slide__content {
  width: 100%;
  max-width: 50rem;
  text-align: center;
}

.slide__content--narrow {
  max-width: 34rem;
}

/* Hero */

.hero-logo {
  display: block;
  width: clamp(7.5rem, 24vw, 12rem);
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.96;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.hero-rotate {
  position: relative;
  min-height: clamp(6.5rem, 20vw, 10rem);
  margin-bottom: 2.25rem;
}

.mega {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.875rem, 6.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}

.mega--active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mega__line {
  display: block;
}

.mega__line--accent {
  color: var(--teal);
}

.soon {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white-85);
  line-height: 1.1;
  margin-bottom: 0.625rem;
}

.soon-brand {
  display: inline-block;
  font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--white-15);
}

.soon-sub {
  font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
  font-weight: 400;
  color: var(--white-70);
  line-height: 1.7;
  max-width: 30em;
  margin: 0 auto;
}

/* Scroll-Hinweis */

.scroll-hint {
  display: inline-flex;
  margin-top: 3rem;
  text-decoration: none;
}

.scroll-hint__line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal-dim), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.5); opacity: 0.25; transform-origin: top; }
  50%       { transform: scaleY(1); opacity: 0.8; }
}

/* Inhalts-Slides */

.heading {
  font-size: clamp(1.625rem, 4.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 1.75rem;
  color: var(--white-85);
  text-wrap: balance;
}

.body {
  font-size: clamp(0.9375rem, 1.8vw, 1.03125rem);
  font-weight: 400;
  color: var(--white-70);
  line-height: 1.75;
  margin-bottom: 1.125rem;
  text-wrap: pretty;
}

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

/* Countdown */

.countdown {
  margin-top: 2.25rem;
}

.countdown__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 1.125rem;
}

.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
}

.countdown__unit {
  min-width: 3.5rem;
}

.countdown__n {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--white-85);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.countdown__u {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
}

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

.countdown.is-done .countdown__label {
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--teal);
}

/* Werte */

.values {
  list-style: none;
  margin-top: 2.25rem;
  text-align: left;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

.values li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.2rem 1rem;
  padding: 1.25rem 0;
}

.values__n {
  grid-row: 1 / 3;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal-dim);
  padding-top: 0.2rem;
}

.values__t {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white-85);
}

.values__d {
  font-size: 0.875rem;
  color: var(--white-70);
  line-height: 1.6;
}

/* Footer */

.foot {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--white-15);
}

.foot__claim {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 0.625rem;
}

.foot__tag {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--white-70);
  margin-bottom: 1.125rem;
}

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

/* Live-Besucher */

.live-widget {
  position: fixed;
  bottom: max(1.125rem, env(safe-area-inset-bottom));
  left: max(1.25rem, env(safe-area-inset-left));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem 0.5rem 0.625rem;
  background: rgba(3, 15, 28, 0.75);
  border: 1px solid var(--white-15);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

.live-widget.is-loaded {
  animation: live-fade-in 0.6s var(--ease);
}

@keyframes live-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.live-widget__dot {
  position: relative;
  width: 0.625rem;
  height: 0.625rem;
  flex-shrink: 0;
}

.live-widget__core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
}

.live-widget__ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.55);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50%       { transform: scale(1.35); opacity: 0; }
}

.live-widget__body {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}

.live-widget__label {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white-50);
}

.live-widget__count {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white-85);
}

.live-widget__count.is-tick {
  color: #34d399;
  transition: color 0.35s var(--ease);
}

/* Dot-Navigation */

.dots {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.dots__btn {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--white-40);
  cursor: pointer;
  padding: 0;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), height 0.35s var(--ease), border-radius 0.35s var(--ease);
}

.dots__btn:hover {
  background: var(--teal-dim);
}

.dots__btn.is-active {
  background: var(--teal);
  height: 1.375rem;
  border-radius: 3px;
}

/* Einstieg */

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

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

.no-js .anim,
.no-js .mega {
  opacity: 1;
  transform: none;
  position: static;
}

.no-js .mega:not(:first-child) {
  display: none;
}

/* Desktop */

@media (min-width: 48rem) {
  .slide {
    padding: 5rem 3.5rem 3.5rem;
  }

  .slide--hero {
    padding-top: max(4rem, env(safe-area-inset-top));
  }

  .values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5rem;
    max-width: none;
    text-align: left;
  }

  .values li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    padding: 0 0 0 1.25rem;
    border-left: 2px solid var(--teal-soft);
  }

  .values li + li {
    border-left: 2px solid var(--teal-soft);
    padding-left: 1.25rem;
  }

  .values__n {
    grid-row: auto;
  }
}

@media (max-width: 30rem) {
  .hero-logo {
    width: clamp(6.5rem, 30vw, 9rem);
    margin-bottom: 1.75rem;
  }

  .dots {
    right: 0.75rem;
    gap: 0.5rem;
  }

  .dots__btn {
    width: 5px;
    height: 5px;
  }

  .dots__btn.is-active {
    height: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .anim, .mega { opacity: 1; transform: none; }
  .glitch-bg { display: none; }
}
