/* ============================================================
   Hallo Mustermann – globales statisches CSS
   Farbwerte kommen ausschließlich aus den CSS-Variablen, die in
   App.razor pro Tenant (White-Label) berechnet werden.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('/assets/ttf/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/ttf/Inter-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

html {
  scroll-padding-top: 5.5rem; /* Anker landen nicht unter dem Sticky-Header */
}

/* ---------- Dunkle Sektionen (Hero, CTA-Bänder, Footer) ---------- */

.section-dark {
  position: relative;
  background-color: var(--c-ink-deep);
  color: var(--c-base);
  overflow: hidden;
  isolation: isolate;
}

.section-dark::before,
.section-dark::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
}

.section-dark::before {
  width: 44rem;
  height: 44rem;
  top: -22rem;
  right: -12rem;
  background: radial-gradient(closest-side, var(--glow-primary-strong), transparent 70%);
}

.section-dark::after {
  width: 36rem;
  height: 36rem;
  bottom: -20rem;
  left: -10rem;
  background: radial-gradient(closest-side, var(--glow-accent-strong), transparent 70%);
}

/* dezente Punktraster-Textur auf dunklen Flächen */
.dark-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Scroll-Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Ohne JS (oder bei reduzierter Bewegung) bleibt alles sichtbar */
html:not(.fx-ready) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Header-Zustand beim Scrollen ---------- */

.site-header {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.25);
}

/* ---------- Live-Call-Mockup im Hero ---------- */

.call-mockup {
  animation: mockup-float 7s ease-in-out infinite;
}

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

.call-bubble {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  animation: bubble-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bubble-in {
  to { opacity: 1; transform: none; }
}

/* animierte Wellenform aus Balken */
.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 1.6rem;
}

.wave-bars i {
  width: 3px;
  border-radius: 99px;
  background: var(--wave-color, var(--c-accent));
  height: 30%;
  animation: wave-bounce 1.1s ease-in-out infinite;
}

.wave-bars i:nth-child(2n) { animation-delay: 0.15s; height: 75%; }
.wave-bars i:nth-child(3n) { animation-delay: 0.3s; height: 50%; }
.wave-bars i:nth-child(4n) { animation-delay: 0.45s; height: 90%; }
.wave-bars i:nth-child(5n) { animation-delay: 0.6s; height: 40%; }

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* pulsierender Live-Punkt */
.live-dot {
  position: relative;
  display: inline-flex;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: #22c55e;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(34, 197, 94, 0.5);
  animation: live-ping 1.6s ease-out infinite;
}

@keyframes live-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Karten & Interaktionen ---------- */

.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.22);
}

/* FAQ-Akkordeon: Chevron dreht, Inhalt blendet weich ein */
details.faq-item > summary { list-style: none; }
details.faq-item > summary::-webkit-details-marker { display: none; }

details.faq-item .faq-chevron {
  transition: transform 0.3s ease;
}

details.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}

details.faq-item[open] .faq-body {
  animation: faq-open 0.35s ease both;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Tab-Pills (Anwendungsfälle): horizontales Scrollen auf Mobil */
.tab-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tab-strip::-webkit-scrollbar { display: none; }
.tab-strip > * { scroll-snap-align: start; flex-shrink: 0; }

/* ---------- Reduzierte Bewegung ---------- */

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .call-mockup,
  .call-bubble,
  .wave-bars i,
  .live-dot::after {
    animation: none !important;
  }

  .call-bubble { opacity: 1; transform: none; }
}
