/* ============================================================
   SECTIONS · Section-spezifisches Layout
   Hero, Stats, Audience, Location, Features, Layout-Park, CTA
   ============================================================ */

/* --- HERO --- */
.hero {
  position: relative;
  padding: 130px 0 80px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -200px -50vw 0; z-index: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(15, 23, 42, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 163, 67, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 520px; /* Stabilisiert die Höhe über alle Sprachen hinweg auf Desktop */
}
.hero-content {
  flex: 1;
  max-width: 680px;
  position: relative;
  z-index: 10;
  min-width: 0;
}
.hero-image {
  flex: 1;
  max-width: 500px;
  position: relative;
  perspective: 1200px;
  z-index: 1;
}
.hero-image::before {
  content: ""; position: absolute; inset: -50px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.15) 0%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero-image::after {
  content: ""; position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  z-index: 0; pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  display: block;
  position: relative;
  z-index: 1;
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-image:hover img {
  transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 40px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- STATS --- */
.stats {
  padding: 60px 0;
  background: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  margin-top: -60px; /* Overlapping layout */
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.02);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat { display: flex; align-items: flex-start; gap: 18px; }
.stat-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.2);
  display: grid; place-items: center;
  color: var(--accent);
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 14px; }

/* --- AUDIENCE --- */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

/* --- LOCATION --- */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 48px;
}
.location-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}
.map-card {
  position: relative; min-height: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--map-bg);
  border: 1px solid var(--line);
}
.map-svg { display: block; width: 100%; height: 100%; min-height: 380px; }

/* --- FEATURES (Park) --- */
.features {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.features::before {
  content: ""; position: absolute; inset: -100px -50vw; z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* --- ROADMAP --- */
.roadmap-section {
  margin-top: 64px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.rm-card {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--r-xl);
  background: #FFFFFF;
  border: 1px solid var(--line);
  transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.rm-card::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.03) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.rm-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.rm-card:hover::before {
  opacity: 1;
}
.rm-card.active {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.rm-card.active::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}
.rm-phase {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
  transition: all .3s;
}
.rm-card.active .rm-phase {
  color: var(--accent);
  border-color: rgba(0, 200, 83, 0.3);
  background: rgba(0, 200, 83, 0.08);
}
.rm-content h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 14px;
}
.rm-content p {
  color: var(--muted);
  font-size: 15px; line-height: 1.65;
}

/* --- LAYOUT-SVG --- */
.layout-card {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid var(--dark-line);
}
.layout-svg { display: block; width: 100%; height: auto; }

/* --- CTA --- */
.cta {
  position: relative;
  padding: 80px 56px;
  border-radius: var(--r-2xl);
  background: var(--dark-bg); /* Pitch-black background anchor */
  border: 1px solid var(--dark-line);
  overflow: hidden;
  color: var(--dark-text);
  transition: border-color .3s, box-shadow .3s;
}
.cta:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 64px rgba(13, 13, 18, 0.2);
}
.cta::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; }
.cta h2 { color: #ffffff !important; }
.cta .section-text { color: var(--dark-muted) !important; }

/* --- Scroll-Reveal (via assets/js/reveal.js) ---
   JS markiert die Section beim Laden mit .reveal-target → opacity:0.
   Sobald die Section in den Viewport scrollt: .is-visible → fade-in. */
.reveal-target {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal-target.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-target {
    opacity: 1; transform: none; transition: none;
  }
}

/* ============================================================
   404 · Not Found
   ============================================================ */
.notfound {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 50% 40%, rgba(15, 23, 42, 0.02) 0%, transparent 55%);
  pointer-events: none;
}
.notfound-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 640px;
}
.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 200, 83, 0.3) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.notfound-body {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.notfound-back { margin: 0; }
@media (max-width: 600px) {
  .notfound { padding: 120px 0 60px; }
}

/* ============================================================
   LEGAL · Impressum + Datenschutzerklärung
   Editorial-Layout · Passt sich dem Seitendesign an
   ============================================================ */

.legal {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

/* Dezenter Hintergrund-Glow wie bei Hero/CTA */
.legal::before {
  content: "";
  position: absolute;
  inset: -200px -100px 0;
  z-index: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(15, 23, 42, 0.02) 0%, transparent 45%);
  pointer-events: none;
}

.legal-header {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto 48px;
}

.legal-header .kicker {
  margin-bottom: 20px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.legal-intro {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
}
.legal-intro p { margin-bottom: 12px; }
.legal-intro p:last-child { margin-bottom: 0; }

/* --- Das «Blatt» --- */
.legal-sheet {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px 64px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section:first-child {
  padding-top: 0;
}
.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-body h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: normal;
}
.legal-body h3:first-child { margin-top: 0; }

.legal-body p {
  margin-bottom: 1.1em;
}
.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin: 16px 0 20px;
}
.legal-body li {
  margin-bottom: 8px;
  padding-left: 0;
  position: static;
}
.legal-body li::before {
  content: none;
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 200, 83, 0.4);
  border-bottom: none;
  transition: text-decoration-color .15s;
}
.legal-body a:hover {
  text-decoration-color: var(--accent);
}

.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text);
}

/* --- Back button --- */
.legal-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .legal { padding: 140px 0 100px; }
  .legal-sheet { padding: 44px 48px; }
}

@media (max-width: 600px) {
  .legal { padding: 120px 0 80px; }
  .legal-header { margin-bottom: 32px; }
  .legal-sheet { padding: 32px 24px; border-radius: var(--r-lg); }
  .legal-section { padding: 32px 0; }
  .legal-section h2 { font-size: 18px; }
  .legal-back { margin-top: 36px; padding-top: 24px; }
}

/* --- SVG-Map Animationen --- */
@keyframes mapPulse {
  0%, 100% { r: 6;  opacity: 1;   }
  50%      { r: 10; opacity: 0.7; }
}
@keyframes mapHalo {
  0%   { r: 12; opacity: 0.6; }
  100% { r: 32; opacity: 0;   }
}
.map-pin-core { animation: mapPulse 2.2s ease-in-out infinite; }
.map-pin-halo { animation: mapHalo 2.2s ease-out infinite; }

/* --- Layout flow arrows --- */
@keyframes flowDash { to { stroke-dashoffset: -24; } }
.flow-anim { stroke-dasharray: 8 8; animation: flowDash 2.4s linear infinite; }

/* ============================================================
   FAQ ACCORDION SECTION (Fastned/Electra Standard)
   ============================================================ */
.faq-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.faq-accordion {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Glassmorphism FAQ Card */
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: border-color, background-color, box-shadow, transform;
}

.faq-item:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item[open] {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: var(--shadow-lg);
}

/* Summary Trigger styling */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none; /* Hide default arrow */
}

.faq-item:hover .faq-question {
  color: var(--text);
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

/* Arrow Icon and rotation */
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  will-change: transform, color, border-color;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item:hover .faq-icon {
  border-color: rgba(0, 200, 83, 0.3);
  color: var(--accent);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: rgba(0, 200, 83, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Answer content */
.faq-answer {
  padding: 24px 32px 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  animation: slideDown 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer p {
  margin: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustment for Mobile */
@media (max-width: 600px) {
  .faq-section {
    padding: 80px 0;
  }
  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }
  .faq-answer {
    padding: 16px 20px 20px;
    font-size: 15px;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
  .audience { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; gap: 32px; }
  .location-features { grid-template-columns: 1fr; }
  .map-card { min-height: 320px; }
  .map-svg { min-height: 320px; }
  .features { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner { flex-direction: column; text-align: left; align-items: stretch; min-height: auto; }
  .hero-image { max-width: 100%; margin-top: 60px; margin-bottom: 40px; }
  .stats { margin-top: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .stat { align-items: center; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 0 32px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 24px; font-size: 15px; }
  .hero-image { margin-top: 16px; margin-bottom: 24px; }
  .hero-image::after { inset: 10px -10px -10px 10px; }
  .hero-image::before { inset: -20px; }
  .cta { padding: 48px 28px; border-radius: var(--r-xl); }
  .layout-card { padding: 18px; }
  
  /* Make buttons full width on small mobile screens */
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .magnetic-wrap { display: block; width: 100%; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
