/* ===== RESET & BASIS ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ANPASSUNG C: Globaler Fix gegen weisse Ränder und fehlerhafte Margins */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: #f9f9f9; /* Gleiche Farbe wie Body, um Lücken zu kaschieren */
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.centered { text-align: center; margin-top: 40px; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: top 0.4s ease, opacity 0.4s ease;
}
header.hidden {
  top: -100px;
  opacity: 0;
}
header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

/* ===== DESKTOP NAV ===== */
@media (min-width: 769px) {
  .main-nav { display: block; }
  .main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
}
.main-nav ul li a {
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.3s;
}
.main-nav ul li a.active,
.main-nav ul li a:hover {
  color: #007bff;
}

/* ============================================================
   BURGER ICON
   ============================================================ */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1102;
  position: relative;
}
.burger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 70%;
    display: block; 
    z-index: 1001;
    overflow: hidden; /* ANPASSUNG C */
  }

  .burger {
    display: flex;
  }

  .main-nav ul {
    position: fixed !important;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding-top: 5rem;
    list-style: none;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1100 !important;
  }
  .main-nav ul.show {
    transform: translateX(0);
  }

  .main-nav ul li {
    text-align: center;
  }

  .main-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
  }
  .main-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================================
   HERO (ANPASSUNG B: Stabileres Layout für Mobile)
   ============================================================ */
.hero {
  min-height: 50vh; /* Mindesthöhe statt fixer Höhe */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
  margin-top: 0; /* Margin entfernt */
  padding: 120px 0 60px; /* Padding oben für Header-Platz */
  background: url('../img/hero.jpg') center/cover no-repeat;
}
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .btn-small {
  background: #007bff;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn:hover, .btn-small:hover {
  background: #0056b3;
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION STYLES (ANPASSUNG C: Overflow hidden gegen Lücken)
   ============================================================ */
section { 
  padding: 80px 0; 
  overflow: hidden; 
  position: relative;
}
h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid-cards, .features-grid, .reviews-grid, .how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card, .feature-card, .review-card, .how-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ... (Deine restlichen Card-Details bleiben gleich) ... */
.card { display: flex; flex-direction: column; align-items: center; padding: 1rem; text-align: center; }
.card img { border-radius: 8px; margin-bottom: 1rem; height: 180px; object-fit: contain; }
.card ul { list-style: none; margin: 1rem 0; padding-left: 0; text-align: left; color: #555; width: 100%; }
.card .price { color: #007bff; font-weight: 700; margin: 1rem 0; }
.blue-check { color: #007bff; }

.feature-card { padding: 1.5rem; text-align: center; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2rem; color: #007bff; margin-bottom: 1rem; }

.review-card { padding: 1.5rem 2rem; font-style: italic; color: #444; min-height: 180px; }
.reviewer { margin-top: 1rem; text-align: right; font-weight: 600; font-style: normal; }

.how-card { padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s ease; }
.how-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.how-card i { font-size: 3rem; color: #007bff; margin-bottom: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #222;
  color: #eee;
  padding: 2rem 0 1.5rem;
  font-size: 0.95rem;
}
.footer-flex { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1100px; margin: 0 auto 1rem; }
.footer-contact, .footer-links { flex: 1 1 220px; margin: 0 1rem; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 1rem; color: #aaa; }

/* ============================================================
   FADE IN & COOKIE (ANPASSUNG A: Mobile Sicherheit)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback für Mobile: Animationen erzwingen, falls JS hakt */
@media (max-width: 768px) {
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(34,34,34,0.95);
  color: #eee;
  padding: 1.5rem;
  z-index: 2000;
  display: none;
}
.cookie-banner.show { display: block; }

/* FORM */
.anfrage-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.anfrage-form input, .anfrage-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.4rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}