/* ========== LOCAL FONT ========== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter.woff2') format('woff2');
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --header-height: 64px;
}

/* ========== GLOBAL LINK STYLING ========== */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/* ========== SCROLL OFFSET ========== */
html {
  scroll-padding-top: var(--header-height);
}

/* ========== REVEAL ANIMATIONS ========== */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  transition-delay: var(--delay, 0s);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MOBILE MENU (CSS-only, sofort, kein JS nötig) ========== */
#menu-cb {
  display: none;
}

#mobile-menu {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.3s;
}

#menu-cb:checked ~ #mobile-menu {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 0s;
}

#menu-cb:checked ~ #back-to-top,
#menu-cb:checked ~ #cookie-float {
  opacity: 0 !important;
  pointer-events: none !important;
}

#menu-toggle {
  position: relative;
  z-index: 70;
  cursor: pointer;
}

/* Hamburger → X Animation */
#menu-cb:checked ~ #header .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-cb:checked ~ #header .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-cb:checked ~ #header .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop fade */
.menu-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

#menu-cb:checked ~ #mobile-menu .menu-backdrop {
  opacity: 1;
}

/* Panel slide from right */
.menu-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

#menu-cb:checked ~ #mobile-menu .menu-panel {
  transform: translateX(0);
}

/* ========== FEATURE GRID COLLAPSE ========== */
@media (min-width: 640px) {
  .feature-extra {
    display: none;
  }
  .features-expanded .feature-extra {
    display: block;
  }
}

/* ========== CARD STACK ========== */
.stack-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.stack-card.active .stack-body {
  max-height: 200px;
}

.stack-card.active {
  z-index: 20 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: scale(1.02);
}

.stack-card.active .stack-arrow {
  transform: rotate(180deg);
}

/* ========== HEADER SHRINK ========== */
.header-scrolled #header-inner {
  height: 56px;
}

/* ========== FAQ ACCORDION ========== */
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ========== SLIDER ========== */
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
  background: #2563EB;
  transform: scale(1.3);
}

/* ========== ACTIVE NAV LINK ========== */
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: #2563EB;
  border-radius: 1px;
  margin-top: 2px;
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== COUNT-UP PLACEHOLDER ========== */
[data-count-target] {
  font-variant-numeric: tabular-nums;
}

/* ========== SCREENSHOT GALLERY SCROLL ========== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ========== VIDEO PLAY BUTTON ========== */
.video-play-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}

.video-play-btn:hover div {
  transform: scale(1.1);
}

/* ========== FLOATING BUTTONS ========== */
#back-to-top.visible,
#cookie-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========== MOBILE DOWNLOAD BAR ========== */
#mobile-download-bar.visible {
  transform: translateY(0);
}

/* ========== PRINT STYLES ========== */
@media print {
  header,
  #mobile-download-bar,
  #cookie-banner,
  .appstore-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  section {
    break-inside: avoid;
    padding: 1rem 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
