/* Use JS-driven smooth scrolling; keep native anchor jumps deterministic (esp. iOS/WebKit) */
html{ scroll-behavior: auto; }

/* Demo popup (window.open) sizing
   - read by /js/main.js
   - keep here so it's one place to tweak across the site */
:root{
  --demo-popup-width: 1200px;
  --demo-popup-height: 800px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,248,252,0.72);
  border-bottom: 1px solid rgba(15,23,42,0.07);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-mark{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(10,132,255,0.25);
}
.brand-name{ font-size: 16px; }

/* Section intro text: use full container width (no early wrap) */
.section-head p{
  max-width: none;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{
  font-size:14px;
  color: var(--muted);
  text-decoration:none !important;
  font-weight: 650;
}
.nav a:hover{ color: var(--text); text-decoration:none; }
.header-cta{ display:flex; gap:10px; align-items:center; }

/* Mobile menu */
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.72);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap:5px;
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
}
.nav-toggle span{
  width:18px; height:2px;
  background: rgba(15,23,42,0.55);
  display:block;
  border-radius: 999px;
}
.mobile-nav{
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(246,248,252,0.92);
  backdrop-filter: blur(12px);
  padding: 14px 0 16px;
}
.mobile-nav a{
  display:block;
  padding: 10px 0;
  color: var(--muted);
  font-weight:700;
}
.mobile-nav a:hover{ color: var(--text); text-decoration:none; }
.mobile-nav-cta{ display:flex; gap:10px; padding-top: 10px; }

/* Hero */
.hero{ padding: 64px 0 44px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items:start;
}
.pill{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
  font-weight: 750;
  color: var(--muted);
  font-size: 13px;
}
.pill .dot{
  width:10px; height:10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(10,132,255,0.30);
}
.hero h1{
  margin: 14px 0 10px;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.accent{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead{
  margin:0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  max-width: 70ch;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 16px 0 14px;
}
.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.stat{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.stat strong{ display:block; font-size: 13px; letter-spacing:-0.01em; }
.stat span{ display:block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.hint{
  margin-top: 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  background: rgba(241,244,251,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(15,23,42,0.85);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
}

.hero-media{ position: relative; }
.shot-stack{ position: relative; }
.shot{
  margin:0;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow);
  background: #fff;
  cursor: zoom-in;
}
.shot figcaption{
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.9);
}
.shot.mini{
  position:absolute;
  right: 10px;
  bottom: -22px;
  width: min(320px, 52%);
  box-shadow: 0 16px 42px rgba(2,6,23,0.16);
}
.float{
  position:absolute;
  left: -8px;
  top: 18px;
  display:grid;
  gap:10px;
}
.float-card{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.10);
}
.float-card strong{ display:block; font-size: 13px; }
.float-card span{ display:block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Split */
.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 8px;
}
.bullets{
  display:grid;
  gap: 10px;
  margin: 16px 0 14px;
}
.bullet{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-soft);
}
.bullet strong{ font-size: 13px; }
.bullet span{ font-size: 13px; color: var(--muted); }

.inline-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.steps{
  display:grid;
  gap: 10px;
  margin: 14px 0 10px;
}
.step{
  display:flex;
  align-items:center;
  gap:10px;
}
.step-n{
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(10,132,255,0.12);
  border: 1px solid rgba(10,132,255,0.18);
}

/* CTA band */
.cta-band{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(241,244,251,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-soft);
}
.cta-band h3{ margin:0 0 6px; font-size: 18px; }
.cta-band p{ margin:0; color: var(--muted); line-height: 1.6; }
.cta-band-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Screens */
.screen-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.screen{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}
.screen img{ width:100%; height:auto; }
.screen figcaption{
  padding: 10px 12px 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Lightbox */
.lightbox{
  border: none;
  padding: 0;
  border-radius: 18px;
  max-width: min(1100px, 92vw);
  width: 92vw;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 28px 80px rgba(2,6,23,0.35);
}
.lightbox::backdrop{
  background: rgba(2,6,23,0.55);
  backdrop-filter: blur(2px);
}
.lightbox-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.78);
  cursor:pointer;
  font-size: 16px;
}
.lightbox-img{
  display:block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Pricing */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.price-card.featured{
  background: linear-gradient(180deg, rgba(10,132,255,0.10), rgba(255,255,255,0.86));
  border-color: rgba(10,132,255,0.18);
}
.ribbon{
  position:absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
  color: rgba(15,23,42,0.85);
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
}
.price-top h3{ margin:0 0 6px; font-size: 18px; }
.price-top p{ margin:0 0 12px; color: var(--muted); line-height: 1.6; }
.price-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.note{
  margin-top: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.note strong{ display:block; margin-bottom: 6px; }

/* FAQ */
.faq-list{
  display:grid;
  gap: 10px;
  width: 100%;
  max-width: none;
}
.faq-item{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary{
  cursor:pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.faq-body{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Final CTA */
.final-cta{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(241,244,251,0.70);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-soft);
}
.final-cta h3{ margin:0 0 6px; font-size: 18px; }
.final-cta p{ margin:0; color: var(--muted); }
.final-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Footer */
.site-footer{
  padding: 42px 0 22px;
  border-top: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.55);
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 16px;
  align-items:start;
}
.footer-brand{ font-weight: 900; letter-spacing:-0.02em; }
.footer-links{ display:grid; gap: 8px; }
.footer-links a{ color: var(--muted); font-weight: 700; text-decoration:none !important; }
.footer-links a:hover{ color: var(--text); }
.footer-bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.06);
  text-align: center;
}

.footer-brandcol{ display:block; }

.footer-social{
  margin-top: 12px;
  display:grid;
  gap: 10px;
  max-width: 48ch;
}

.insta-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
  color: var(--muted);
  font-weight: 750;
  font-size: 13px;
  text-decoration:none !important;
}
.insta-link:hover{
  color: var(--text);
  text-decoration:none;
}
.insta-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,23,42,0.70);
}
.insta-link:hover .insta-icon{ color: rgba(15,23,42,0.90); }



/* Sticky CTA */
.sticky-cta{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display:none;
  gap:10px;
  background: rgba(246,248,252,0.88);
  border: 1px solid rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.sticky-cta .btn{ flex:1; }

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 40px; }
  .stats{ grid-template-columns: 1fr; }
  .float{ position: static; margin-top: 12px; }
  .shot.mini{ position: static; width: 100%; margin-top: 12px; }
  .split{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .screen-grid{ grid-template-columns: 1fr 1fr; }
  .pricing-grid{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction: column; align-items:flex-start; }
  .final-cta{ flex-direction: column; align-items:flex-start; }
  .footer-inner{ grid-template-columns: 1fr; }
  .sticky-cta{ display:flex; }
}
@media (max-width: 520px){
  .container{ width: min(var(--max), calc(100vw - 28px)); }
  /* Mobile only: reduce the visual gap below the sticky header without affecting anchors or checkout flow */
  .hero{ padding: 18px 0 36px; }
  .hero h1{ font-size: 34px; }
  .screen-grid{ grid-template-columns: 1fr; }
}

.impressum-card p{ margin: 0 0 10px; color: var(--muted); }
.impressum-card strong{ color: var(--text); }


/* --- Mobile robustness + language toggle (2026-02-09 v3) ------------------ */

/* JS sets this to the real sticky header height; fallback keeps anchor jumps usable. */
:root{
  --header-h: 68px;
  --anchor-gap: 12px;
}

/* Sticky header offset for hash navigation (e.g. #faq / #cart) */
html{
  scroll-padding-top: calc(var(--header-h) + var(--anchor-gap));
}

/* Ensure section anchors don't land "under" the sticky header */
:where(section[id], main[id], div[id]){
  scroll-margin-top: calc(var(--header-h) + var(--anchor-gap));
}

/* Language toggle button (inserted by /js/main.js) */
.lang-toggle{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 24px rgba(2,6,23,0.06);
  color: rgba(15,23,42,0.75);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none !important;
  user-select: none;
}
.lang-toggle:hover{
  color: rgba(15,23,42,0.92);
  text-decoration: none;
}
.lang-toggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(10,132,255,0.20), 0 10px 24px rgba(2,6,23,0.06);
  border-color: rgba(10,132,255,0.45);
}

/* Overlay for mobile menu (inserted by /js/main.js) */
.nav-overlay{
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  bottom: 0;

  /* Keep the page visible (no "blackout"), but block interactions behind the menu */
  background: rgba(2,6,23,0.22);

  z-index: 74;
  opacity: 1;
  transition: opacity .18s ease;
}
.nav-overlay.is-closing{
  opacity: 0;
}

/* Short click-guard after closing (prevents iOS "ghost tap" on elements behind the menu) */
.menu-guard main,
.menu-guard .sticky-cta{
  pointer-events: none;
}

/* Burger -> X animation */
.nav-toggle span{
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px){
  .site-header{ z-index: 75; }
  /* Mobile menu as a drop-down (full width, limited height), iOS Safari safe */
  .mobile-nav{
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    bottom: auto;

    z-index: 75; /* above overlay */
    background: rgba(246,248,252,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 60px rgba(2,6,23,0.16);

    border: none;
    border-bottom: 1px solid rgba(15,23,42,0.10);
    border-radius: 0 0 16px 16px;

    padding: 10px 0 calc(14px + env(safe-area-inset-bottom));

    height: auto;
    max-height: min(
      72dvh,
      calc(100dvh - var(--header-h) - 14px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
    );

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Add comfortable side padding inside the drop-down */
  .mobile-nav .container{
    width: min(var(--max), calc(100vw - 28px));
    margin: 0 auto;
  }

  .mobile-nav a{
    padding: 11px 12px;
    border-radius: 12px;
  }
  .mobile-nav a:active{
    background: rgba(15,23,42,0.06);
    text-decoration: none;
  }

  .mobile-nav-cta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
  }
  .mobile-nav-cta .btn{
    width: auto;
    flex: 1 1 160px;
    justify-content: center;
  }

  /* While menu is open: hide sticky CTA (prevents overlap/conflicts) */
  .menu-open .sticky-cta{ display: none !important; }
}

@media (max-width: 520px){
  /* Keep sticky CTA above iPhone safe area */
  .sticky-cta{
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}
