/* ==========================================================
   LeanVoice – Styles
   Lokale Fonts: DM Sans (Body) + Playfair Display (Headings)
   ========================================================== */

/* ── Lokale Fonts ────────────────────────────────────────── */
/* DM Sans – Regular 400 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-400.woff2') format('woff2');
}
/* DM Sans – Medium 500 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-500.woff2') format('woff2');
}
/* DM Sans – SemiBold 600 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/dm-sans-600.woff2') format('woff2');
}
/* DM Sans – Bold 700 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-700.woff2') format('woff2');
}

/* Playfair Display – SemiBold 600 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
}
/* Playfair Display – Bold 700 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-700.woff2') format('woff2');
}
/* Playfair Display – ExtraBold 800 */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/playfair-display-800.woff2') format('woff2');
}

/* ── Basis-Typografie ───────────────────────────────────── */
* { font-family: 'DM Sans', sans-serif; }
h1, h2, h3, .font-display { font-family: 'Playfair Display', serif; }

/* ── Grain Texture Overlay ─────────────────────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── Smooth Scroll ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* Offset, damit Anker nicht unter der fixen Navbar landen */
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Custom Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #14b89a; border-radius: 4px; }

/* ── Animationen ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes wave {
  0% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.5); }
}
.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ── Reveal on Scroll ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation (solid beim Scrollen) ──────────────────── */
.nav-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

/* ── Feature Card Hover ─────────────────────────────────── */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 184, 154, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 1.25rem;
}
.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* ── Slider (horizontal Scroll, Scrollbar verstecken) ──── */
#slider-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#slider-container::-webkit-scrollbar {
  display: none;
}

/* ── Audio Wave Animation ───────────────────────────────── */
.audio-bar {
  transition: transform 0.2s ease;
}
.playing .audio-bar {
  animation: wave 1.2s ease-in-out infinite;
}

/* ── Mega Menu ──────────────────────────────────────────── */
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Legal Pages (Impressum, Datenschutz) ───────────────── */
.legal-content {
  color: #334155;
  line-height: 1.75;
}
.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #0f172a;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
}
.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
  font-family: 'DM Sans', sans-serif;
}
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a {
  color: #0d9480;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: #115e54; }
.legal-content strong { color: #0f172a; }

/* ── Button States ──────────────────────────────────────── */
.btn-primary {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(20, 184, 154, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:focus-visible {
  outline: 2px solid #14b89a;
  outline-offset: 2px;
}
