/* === ecoPulse Network – Visitenkarte === */

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

:root {
  --primary: #29b9c5;
  --primary-dark: #144f55;
  --primary-light: #3dd4e0;
  --bg: #ffffff;
  --bg-alt: #f0fafb;
  --text: #3a3a3a;
  --text-light: #6b7b7d;
  --white: #ffffff;
  --glow: rgba(41, 185, 197, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Sprachumschalter --- */

.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 900;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  color: var(--white);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: background 0.3s, border-color 0.3s;
}

.lang-current:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255,255,255,0.3);
}

.lang-arrow {
  transition: transform 0.3s;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  min-width: 160px;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 700;
}

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* --- Animationen --- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- Hero --- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0d3a3f 0%, var(--primary-dark) 30%, #1a6b73 60%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Netzwerk-SVG Hintergrund */
.hero-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  animation: network-float 25s ease-in-out infinite alternate;
}

@keyframes network-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20px, 10px) scale(1.05); }
  100% { transform: translate(10px, -15px) scale(1.02); }
}

/* Partikel */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float-particle linear infinite;
}

.p1 { width: 120px; height: 120px; top: 10%; left: 5%; animation-duration: 18s; }
.p2 { width: 80px; height: 80px; top: 60%; left: 80%; animation-duration: 22s; animation-delay: -5s; }
.p3 { width: 150px; height: 150px; top: 70%; left: 15%; animation-duration: 25s; animation-delay: -8s; }
.p4 { width: 60px; height: 60px; top: 20%; left: 70%; animation-duration: 15s; animation-delay: -3s; background: rgba(61,212,224,0.05); }
.p5 { width: 200px; height: 200px; top: 40%; left: 45%; animation-duration: 30s; animation-delay: -12s; background: rgba(255,255,255,0.03); }
.p6 { width: 40px; height: 40px; top: 80%; left: 55%; animation-duration: 12s; animation-delay: -2s; background: rgba(61,212,224,0.06); }

@keyframes float-particle {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(-60px, -120px) scale(0.6); opacity: 0; }
}

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

.hero-logo {
  width: 140px;
  margin: 0 auto 2.5rem;
  animation: logo-in 1.2s ease-out both;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

@keyframes logo-in {
  0%   { opacity: 0; transform: scale(0.6) translateY(30px); }
  60%  { transform: scale(1.05) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  animation: fade-up 1s ease-out 0.4s both;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero h1 strong {
  font-weight: 700;
  display: block;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 540px;
  margin: 0 auto;
  animation: fade-up 1s ease-out 0.7s both;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Scroll-Indikator */

.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fade-up 1s ease-out 1.2s both;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}

/* --- Über uns --- */

.about {
  background: var(--bg);
  padding-bottom: 0;
  overflow: hidden;
}

.about-decoration {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 300px;
  height: 300px;
  opacity: 0.5;
  animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1.5rem;
  position: relative;
}

.about h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin-top: 0.8rem;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.pulse-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(41,185,197,0.06) 0%, transparent 70%);
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  opacity: 0.3;
  animation: pulse 3s ease-out infinite;
}

.pulse-ring::before {
  width: 100%;
  height: 100%;
}

.pulse-ring::after {
  width: 100%;
  height: 100%;
  animation-delay: 1.5s;
}

@keyframes pulse {
  0%   { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pulse-ring img {
  width: 100px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 15px rgba(41,185,197,0.2));
}

/* Mission */
.about-mission {
  text-align: center;
  margin: 3.5rem 0;
}

.about-mission blockquote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--primary-dark);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--primary);
  background: linear-gradient(90deg, rgba(41,185,197,0.04) 0%, transparent 100%);
  border-radius: 0 12px 12px 0;
}

/* Statistiken */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: var(--bg-alt);
  transition: transform 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.stat-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* Werte-Cards */
.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.value-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 35px var(--glow);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: background 0.3s;
}

.value-card:hover .value-icon {
  background: rgba(41,185,197,0.1);
}

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

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Sektions-Übergänge */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* --- ZNAX --- */

.znax {
  background: var(--bg-alt);
  padding-bottom: 8rem;
  position: relative;
}

.znax::before {
  content: '';
  position: absolute;
  top: 80px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,185,197,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.znax-header {
  text-align: center;
  margin: 0 auto 3rem;
}

.znax-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1rem;
}

.znax-intro-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.znax-logo {
  height: 50px;
  width: auto;
  margin: 0 auto 0.8rem;
}

.znax h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.znax-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.8rem;
  box-shadow: 0 4px 15px rgba(41,185,197,0.3);
}

.znax-text {
  color: var(--text-light);
  font-size: 1.05rem;
}

.znax-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.znax-feature {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.znax-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--glow);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.znax-feature:hover .feature-icon-wrap {
  background: rgba(41,185,197,0.1);
}

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

.znax-feature h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.znax-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* ZNAX Illustration */
.znax-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.znax-image {
  max-width: 100%;
  filter: drop-shadow(0 20px 40px rgba(41,185,197,0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* --- Footer --- */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-logo {
  width: 100px;
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-email {
  margin-bottom: 0.8rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.5;
  text-align: center;
}

/* Stripe */
.stripe-logo {
  margin-bottom: 0.6rem;
}

.footer-stripe-desc {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.payment-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.payment-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 48px;
  transition: background 0.3s;
}

.payment-icon:hover {
  background: rgba(255,255,255,0.18);
}

.payment-icon svg {
  height: 18px;
  width: auto;
}

/* --- Modal --- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,0.25);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  margin: 1rem 1rem 0 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  padding: 0 2.5rem 2.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-alt);
}

.modal-body h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.8rem;
  color: var(--primary-dark);
}

.modal-body h4 {
  font-size: 1rem;
  margin: 1.2rem 0 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.modal-body p {
  margin-bottom: 0.7rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

.modal-body address {
  font-style: normal;
  line-height: 1.8;
  margin: 0.5rem 0 1rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

.modal-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-light);
  font-size: 0.92rem;
}

.modal-body li {
  margin-bottom: 0.3rem;
}

.modal-body a {
  color: var(--primary);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 960px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }

  .znax-features {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .about h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .about-visual {
    order: -1;
  }

  .pulse-ring {
    width: 200px;
    height: 200px;
  }

  .pulse-ring img {
    width: 70px;
  }

  .about-decoration {
    display: none;
  }

  .znax-intro {
    grid-template-columns: 1fr;
  }

  .znax-visual {
    order: -1;
  }

  .znax-image {
    max-width: 260px;
  }

  .znax-logo {
    height: 40px;
  }

  .znax {
    padding-bottom: 6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    justify-content: center;
  }

  .payment-icons {
    justify-content: center;
  }

  .hero-network {
    opacity: 0.6;
  }

  .modal {
    max-height: 90vh;
    border-radius: 16px;
  }

  .modal-body {
    padding: 0 1.5rem 1.5rem;
  }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    width: 100px;
  }

  .znax-features {
    grid-template-columns: 1fr;
  }

  .znax-image {
    max-width: 220px;
  }

  .container {
    padding: 0 1rem;
  }

  .modal {
    border-radius: 12px;
  }

  .modal-body {
    padding: 0 1rem 1.5rem;
  }
}
