:root {
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --deep: #13381F;
  --accent: #2E7D32;
  --accent-soft: #6DAF66;
  --muted: #6B6B6B;
  --text: #0E2016;
  --cream: #F2EFE7;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(7,12,8,0.08);
  --max-width: 1200px;
  font-family: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html { scroll-behavior: smooth; }

.container {
  width: calc(100% - 2rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.86));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow .25s ease, transform .18s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 18px rgba(7,12,8,0.06);
  transform: translateY(-2px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--deep);
  font-size: 20px;
  font-family: "Lucida Handwriting", system-ui, sans-serif;
  letter-spacing: 0.2px;
}
.logo {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow);
  display: block;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  padding: .6rem .8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--deep);
  font-weight: 600;
  transition: background 0.22s ease, color 0.22s ease, transform .18s ease;
  position: relative;
  display: inline-block;
}
.nav-list a:hover,
.nav-list a.active {
  background: rgba(46,125,50,0.08);
  color: var(--accent);
  transform: translateY(-2px);
}
/* underline animation */
.nav-list a::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,var(--accent-soft),var(--accent));
  transition: width .28s cubic-bezier(.2,.9,.2,1);
}
.nav-list a:hover::after, .nav-list a.active::after { width: 60%; }

/* ========== Mobile Navigation ========== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .26s ease;
}
.mobile-nav.show {
  opacity: 1;
}
.mobile-nav-inner {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  width: 320px;
  max-width: 92%;
  transform: translateX(18px) scale(.995);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.9,.2,1), opacity .32s ease;
  will-change: transform, opacity;
}
.mobile-nav-inner.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.mobile-nav-inner nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-inner a {
  text-decoration: none;
  color: var(--deep);
  font-weight: 700;
  font-size: 1.05rem;
  transition: color .22s ease, transform .18s ease;
}
.mobile-nav-inner a:hover { color: var(--accent); transform: translateX(6px); }

.mobile-close {
  display: block;
  margin-left: auto;
  margin-bottom: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--deep);
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 8px;
}
.mobile-close:focus { outline: 2px solid rgba(46,125,50,0.18); }

/* Dropdowns im mobilen Menü */
.has-dropdown > a { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.has-dropdown .dropdown {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: 1rem;
  transition: max-height .28s ease;
  overflow: hidden;
}
.has-dropdown.open .dropdown {
  display: flex;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep);
  margin: 4px 0;
  border-radius: 2px;
  transition: all .32s cubic-bezier(.2,.9,.2,1);
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  padding: 2rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 2rem;
  align-items: center;
}
.hero-card h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: .6rem;
  color: var(--deep);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 25px;
}
.lead { color: var(--muted); margin-bottom: 1rem; font-size: 1rem; opacity: 1; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-features { list-style: none; padding: 0; margin: 0; display: flex; gap: 1rem; color: var(--muted); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(.2,.9,.2,1);
  box-shadow: none;
  border: none;
}
.btn.primary {
  background: var(--deep);
  color: white;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(19,56,31,0.12);
  color: var(--deep);
}
.btn.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(7,12,8,0.06);
}

/* ========== Media & Product Cards ========== */
.media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .9s cubic-bezier(.2,.9,.2,1);
  will-change: transform;
}
.media-frame:hover img { transform: scale(1.04); }
.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--accent);
  color: #fff;
  padding: .4rem .6rem;
  border-radius: 8px;
  font-weight: 700;
  animation: float 3.6s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }

.weide-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.section { padding: 2rem 0; }
.section-head { margin-bottom: 1rem; }
.section-head .muted { color: var(--muted); }

.grid-2, .grid-3, .product-grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.grid-2-fixed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.36s cubic-bezier(.2,.9,.2,1), box-shadow .36s ease;
  transform-origin: center;
}
.product-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 36px rgba(7,12,8,0.08); }
.product-card img { width: 100%; height: 190px; object-fit: cover; display:block; }

.pc-inner { padding: 1rem; }
.price { color: var(--accent); font-weight: 800; }

.image-card img { width: 100%; height: auto; object-fit: cover; border-radius: 10px; transition: transform .8s ease; }
.image-card:hover img { transform: scale(1.04); }

/* Testimonials */
.testimonials blockquote {
  background: var(--surface);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.testimonials cite {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
  font-weight: 600;
}

/* Parallax */
.parallax {
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}
.parallax-inner {
  background-image: url('Bilder/Weite.jpg');
  background-size: cover;
  background-position: center center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-position 0.16s linear, background-size 0.36s ease;
}
.parallax-inner.scrolled { background-size: 110%; }
.parallax-text {
  background: rgba(0,0,0,0.28);
  padding: 1rem 1.8rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  backdrop-filter: blur(2px);
}

/* Footer */
.site-footer { margin-top: 2rem; padding: 2rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--muted); transition: color .18s ease; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.socials a { margin-left: .5rem; text-decoration: none; color: var(--muted); font-weight: 700; }

/* Forms */
.form label { display: block; margin-bottom: .6rem; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  padding: .7rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.07);
  margin-top: .3rem;
  transition: box-shadow .16s ease, border-color .16s ease;
}
.form input:focus, .form textarea:focus { outline: none; box-shadow: 0 6px 18px rgba(46,125,50,0.08); border-color: var(--accent); }

/* Timeline */
.timeline { display: grid; gap: 1rem; margin-top: 1rem; }
.timeline-item { background: var(--surface); padding: 1rem; border-left: 4px solid var(--accent); border-radius: 8px; box-shadow: var(--shadow); }

/* Map placeholder */
.map-placeholder { background: var(--cream); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); font-style: italic; }

/* Responsive tweaks */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 680px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .hero-features { flex-direction: column; }
  .cta-row { flex-direction: column; }
  .grid-2-fixed { grid-template-columns: 1fr; }
  .muted { grid-template-columns: 1fr; }
}

/* ========== Scroll-Reveal Animationen (überarbeitet) ========== */
/* ========== Scroll-Reveal Animationen – ruhig & natürlich ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variante für leichtes Seitwärts-Erscheinen (optional) */
.reveal.fade-left {
  transform: translateX(-30px);
}
.reveal.fade-right {
  transform: translateX(30px);
}
.reveal.visible.fade-left,
.reveal.visible.fade-right {
  transform: translateX(0);
}

.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

.video-bild-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.video-column {
  flex: 1 1 400px;
  max-width: 600px;
}

.video-column video {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  object-fit: cover;
}

.bild-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  flex: 1 1 300px;
  max-width: 400px;
}

.bild-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile: Stapeln untereinander */
@media (max-width: 768px) {
  .video-bild-block {
    flex-direction: column;
    align-items: center;
  }

  .bild-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}


@media (min-width: 1024px) {
  .map-responsive {
    max-width: 600px;
    height: 400px;
    margin:auto;
  }
}