/* ==========================================
   MyLocalSafe Website - Stylesheet
   ========================================== */

:root {
  /* App-Farben (aus den Screenshots) */
  --midnight: #0E1D2F;
  --midnight-darker: #081525;
  --midnight-lighter: #152940;
  --gold: #D4AF37;
  --gold-hover: #E4BE47;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-border: rgba(212, 175, 55, 0.3);

  /* Textfarben */
  --text-light: #f5f5f0;
  --text-muted: #9ca7b3;
  --text-dark: #1a1a1a;

  /* Hintergründe */
  --bg-card: #152940;
  --bg-card-hover: #1c3251;
  --bg-summary: rgba(212, 175, 55, 0.08);

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Schatten */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--midnight);
  overflow-x: hidden;
}

/* ==========================================
   Navigation / Header
   ========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 29, 47, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo .nav-logo-text {
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  background: var(--gold-soft);
  color: var(--gold);
}

.nav-menu a.active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================
   Main Content
   ========================================== */

main {
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 32px;
}

.hero-logo img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--gold-border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ==========================================
   Features Grid
   ========================================== */

.section {
  padding: 80px 24px;
}

.section-narrow {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text-light);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.section-title .accent {
  color: var(--gold);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   CTA Banner
   ========================================== */

.cta-banner {
  background: linear-gradient(
    135deg,
    var(--midnight-lighter) 0%,
    var(--midnight-darker) 100%
  );
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 16px;
  color: var(--text-light);
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Content Pages (Legal etc)
   ========================================== */

.page-header {
  text-align: center;
  padding: 64px 24px 40px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 40px;
}

.page-header .app-name {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.page-header h1 {
  color: var(--text-light);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  margin-bottom: 8px;
}

.page-header .stand {
  color: var(--text-muted);
  font-size: 14px;
}

.summary {
  background: var(--bg-summary);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  margin-bottom: 40px;
}

.summary h2 {
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.summary p {
  color: var(--text-light);
  font-size: 16px;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.content-section:hover {
  border-color: var(--gold-border);
}

.content-section h2 {
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-border);
}

.content-section h3 {
  color: var(--text-light);
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.content-section p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: var(--text-light);
}

.content-section ul {
  margin: 8px 0 14px 20px;
  color: var(--text-muted);
}

.content-section ul li {
  margin-bottom: 6px;
}

.content-section a,
.content-section .link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold-border);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.content-section a:hover {
  color: var(--gold-hover);
  text-decoration-color: var(--gold);
}

.address {
  font-style: normal;
  line-height: 1.9;
  color: var(--text-light);
}

/* ==========================================
   FAQ Section
   ========================================== */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text-light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

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

.faq-item[open] summary {
  color: var(--gold);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================
   Download Section
   ========================================== */

.download-section {
  text-align: center;
  padding: 40px 24px;
}

.download-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.download-badge:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.download-badge .badge-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-badge .badge-label small {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-badge .badge-label span {
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================
   Screenshots Slider
   ========================================== */

.screenshots {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 48px 0;
}

.screenshot {
  position: relative;
  width: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.screenshot:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Footer
   ========================================== */

.site-footer {
  background: var(--midnight-darker);
  border-top: 1px solid var(--gold-border);
  padding: 48px 24px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--gold-border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--midnight);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--gold-border);
    gap: 4px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .section {
    padding: 48px 16px;
  }

  .content-section {
    padding: 24px 20px;
  }

  .content-section h2 {
    font-size: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .screenshot {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .hero-logo img {
    max-width: 240px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================
   Language Switch (i18n)
   ========================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  background: rgba(212, 175, 55, 0.06);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-switch a:hover {
  color: var(--gold);
}

.lang-switch a.lang-active {
  background: var(--gold);
  color: var(--midnight);
}

.lang-switch a.lang-active:hover {
  color: var(--midnight);
}

/* Switch sits next to the nav menu on desktop */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .nav-right {
    gap: 12px;
  }
  /* Keep the switch visible in the header bar on mobile,
     the hamburger only toggles the page links */
  .lang-switch a {
    min-width: 34px;
    padding: 5px 8px;
  }
}

/* ==========================================
   Phone gallery (animated app screens)
   ========================================== */

.phone-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 32px 18px;
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.phone-shot {
  flex: 0 0 auto;
  width: 230px;
  margin: 0;
  will-change: transform, opacity;
}
/* Hidden only when JS is present to reveal them again.
   If script.js does not run, phones stay visible (just no animation). */
.phone-shot.pre-reveal {
  opacity: 0;
}

.phone-shot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s ease;
}

.phone-shot:hover img {
  transform: translateY(-14px) scale(1.04);
}

/* Reveal: the IntersectionObserver in script.js adds .animate-in.
   Direction comes from .from-left / .from-right on each figure. */
.phone-shot.animate-in {
  animation: 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.phone-shot.from-left.animate-in  { animation-name: phoneInLeft; }
.phone-shot.from-right.animate-in { animation-name: phoneInRight; }

/* gentle staggered cascade */
.phone-shot:nth-child(1) { animation-delay: 0.00s; }
.phone-shot:nth-child(2) { animation-delay: 0.08s; }
.phone-shot:nth-child(3) { animation-delay: 0.16s; }
.phone-shot:nth-child(4) { animation-delay: 0.24s; }
.phone-shot:nth-child(5) { animation-delay: 0.32s; }
.phone-shot:nth-child(6) { animation-delay: 0.40s; }
.phone-shot:nth-child(7) { animation-delay: 0.48s; }

@keyframes phoneInLeft {
  from { opacity: 0; transform: translateX(-90px) translateY(34px) rotate(-5deg) scale(0.84); }
  to   { opacity: 1; transform: none; }
}
@keyframes phoneInRight {
  from { opacity: 0; transform: translateX(90px) translateY(34px) rotate(5deg) scale(0.84); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .phone-gallery { gap: 24px 12px; }
  .phone-shot { width: 43%; }
}

/* respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .phone-shot { opacity: 1 !important; animation: none !important; }
  .phone-shot img { transition: none; }
}

/* ==========================================
   "Coming soon" button state (pre-launch)
   ========================================== */

.btn-soon {
  cursor: default;
  opacity: 0.92;
}
.btn-soon:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   Phone gallery — wave baseline (zigzag) so the
   row isn't a flat line; echoes the bottom scape.
   ========================================== */
.phone-shot:nth-child(odd) { margin-bottom: 46px; }
@media (max-width: 768px) {
  .phone-shot:nth-child(odd) { margin-bottom: 18px; }
}

/* ==========================================
   Bottom scape — decorative wave that emerges
   from the page background and meets the footer.
   ========================================== */
.bottom-scape {
  width: 100%;
  height: clamp(200px, 26vw, 380px);
  margin-top: 48px;
  background: url(bg_bottom.jpg) center bottom / cover no-repeat;
  position: relative;
}
.bottom-scape::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--midnight) 0%,
    rgba(14, 29, 47, 0.35) 28%,
    rgba(14, 29, 47, 0.08) 55%,
    var(--midnight-darker) 100%
  );
}
/* sit the footer flush on top of the scape */
.bottom-scape + .site-footer {
  margin-top: 0;
  border-top: none;
}

/* ==========================================
   Fixed ambient wave backdrop — content glides over it on scroll
   ========================================== */
html { background: var(--midnight); }
body { background: transparent; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url(bg_bottom.jpg) center center / cover no-repeat;
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* dark veil keeps text readable over the wave */
  background: linear-gradient(
    to bottom,
    rgba(14, 29, 47, 0.90) 0%,
    rgba(14, 29, 47, 0.80) 45%,
    rgba(8, 21, 37, 0.92) 100%
  );
}

/* ==========================================
   Phone marquee — two auto-scrolling rows,
   opposite directions, different speeds.
   ========================================== */
.phone-marquee {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: hidden;
}
.marquee-row {
  overflow: hidden;
  padding: 78px 0;
  /* fade phones softly into the background at both edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track--a { animation: marqueeL 60s linear infinite; }
.marquee-track--b { animation: marqueeR 46s linear infinite; }
/* pause to look — without implying the screens are clickable */
.marquee-row:hover .marquee-track { animation-play-state: paused; }

.pshot {
  flex: 0 0 auto;
  width: 260px;
  margin: 0 28px 0 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* dock-style magnify: hovered phone grows a lot, neighbours grow a little */
.pshot:hover { transform: scale(1.3); z-index: 3; }
.pshot:hover + .pshot,
.pshot:has(+ .pshot:hover) { transform: scale(1.12); z-index: 2; }
.pshot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

@keyframes marqueeL {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 768px) {
  .phone-marquee { gap: 16px; }
  .pshot { width: 190px; margin: 0 18px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; }
}

/* ==========================================
   Feature cards: staggered, decelerating fly-in
   ========================================== */
.feature-card.pre-reveal { opacity: 0; }
.feature-card.animate-in {
  animation: cardInUp 0.7s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.00s; }
.feature-card:nth-child(2) { animation-delay: 0.09s; }
.feature-card:nth-child(3) { animation-delay: 0.18s; }
.feature-card:nth-child(4) { animation-delay: 0.27s; }
.feature-card:nth-child(5) { animation-delay: 0.36s; }
.feature-card:nth-child(6) { animation-delay: 0.45s; }

@keyframes cardInUp {
  from { opacity: 0; transform: translateY(36px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card.pre-reveal { opacity: 1; }
  .feature-card.animate-in { animation: none; }
}

/* ==========================================
   Lightbox — click a phone to view it large, navigate prev/next
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 14, 24, 0.92);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-height: 84vh;
  max-width: min(92vw, 460px);
  width: auto;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6));
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.open .lightbox__img { transform: scale(1); }

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  background: rgba(14, 29, 47, 0.7);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__btn:hover { background: var(--gold-soft); }
.lightbox__btn:active { transform: scale(0.94); }

.lightbox__btn--prev,
.lightbox__btn--next {
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.lightbox__btn--prev { left: max(16px, 4vw); }
.lightbox__btn--next { right: max(16px, 4vw); }
.lightbox__btn--prev:active,
.lightbox__btn--next:active { transform: translateY(-50%) scale(0.94); }

.lightbox__close {
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.4px;
}

@media (max-width: 768px) {
  .lightbox__btn--prev { left: 10px; }
  .lightbox__btn--next { right: 10px; }
  .lightbox__btn--prev,
  .lightbox__btn--next { width: 46px; height: 46px; }
}

/* ==========================================
   Language dropdown (built by i18n.js)
   ========================================== */
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-dropdown__btn:hover { background: var(--gold-soft); }
.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 164px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--midnight-darker, #081525);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  max-height: 64vh;
  overflow: auto;
}
.lang-dropdown.open .lang-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #f5f5f0;
  text-decoration: none;
  font-size: 14px;
}
.lang-dropdown__menu a:hover { background: var(--gold-soft); color: var(--gold); }
.lang-dropdown__menu a.is-current { color: var(--gold); font-weight: 600; }

/* === Funktionen-Seite: seitliche Handy-Screenshots (nur Desktop) === */
.content-section { position: relative; }
.feature-shot {
  position: absolute;
  top: 50%;
  width: clamp(280px, 25vw, 360px);
  pointer-events: none;
  z-index: 1;
  transform: translateY(-50%);
  will-change: transform;
}
.feature-shot.shot-right { left: calc(100% + 40px); }
.feature-shot.shot-left  { right: calc(100% + 40px); }
.feature-shot__inner {
  opacity: 0;
  filter: drop-shadow(0 26px 55px rgba(0, 0, 0, 0.6));
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}
.feature-shot.shot-right .feature-shot__inner { transform: translateX(34px); }
.feature-shot.shot-left  .feature-shot__inner { transform: translateX(-34px); }
.feature-shot.shot-right.in .feature-shot__inner { opacity: 1; transform: translateX(0); }
.feature-shot.shot-left.in  .feature-shot__inner { opacity: 1; transform: translateX(0); }

/* Unter 1180px verschwinden die Gutter -> Screenshots ausblenden (Mobile/Tablet unverändert) */
@media (max-width: 1180px) {
  .feature-shot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-shot__inner { transition: none; }
}

/* ==========================================
   QR-Code Download (CTA-Banner) — scan to open Play Store
   ========================================== */
.qr-download {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  max-width: 440px;
}
.qr-download-img {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  flex-shrink: 0;
}
.qr-download-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.qr-download-text strong {
  font-size: 1.05rem;
  color: var(--gold);
}
.qr-download-text span {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .qr-download {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .qr-download-text { text-align: center; }
}
