:root {
  --green: #00a859;
  --dark: #1c1c1c;
  --muted: #6b6b6b;
  --max-width: 1200px;
  font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
}

/* === Grundlayout === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--dark);
  background: #f7f9fb;
  line-height: 1.6;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* === Header & Navigation === */
header {
  background: #fff;
  border-bottom: 1px solid #e9eef2;
  position: relative;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1000;
}

nav a {
  font-weight: 600;
  color: var(--dark);
  position: relative;
  transition: color 0.25s ease;
}

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

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* === Call-To-Action === */
.cta {
  background: var(--green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  background: #00b86b;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.3);
}

/* === Sprachumschalter === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch button {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}

.lang-switch button:hover {
  background: #00b86b15;
}

.lang-switch button.active {
  background: var(--green);
  color: #fff;
}
/* === Sicherstellen, dass der Menü-Button (☰) immer klickbar bleibt === */
.lang-switch {
  position: relative;
  z-index: 1300;
}

/* === Hamburger Button === */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  position: relative;
  z-index: 1100;
}

/* === Hero Section === */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  padding: 56px 0;
}

.hero-left h1 {
  font-size: 36px;
  margin: 0 0 12px;
}

.slogan {
  color: var(--muted);
  margin-bottom: 18px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid var(--green);
  font-weight: 700;
  color: var(--green);
  background: transparent;
  transition: all 0.25s ease;
}

.btn:hover {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.25);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover {
  background: #00b86b;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.25);
}

/* === Karten & Services === */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.04);
}

.card h3 {
  margin-top: 0;
}

/* === Footer === */
footer {
  background: #0f1720;
  color: #fff;
  padding: 28px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === Formular === */
form {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e1e7ee;
  width: 100%;
}

button[type=submit] {
  background: var(--green);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

button[type=submit]:hover {
  background: #00b86b;
  box-shadow: 0 4px 10px rgba(0, 168, 89, 0.3);
}

/* === Typografie === */
.small {
  font-size: 14px;
  color: var(--muted);
}

/* === Mobile Navigation === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  /* --- Hamburger sichtbar --- */
  .nav-toggle {
    display: block;
  }

  /* --- Mobile Menü Overlay --- */
  nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* --- Sichtbarer Zustand --- */
  nav.open {
    display: flex;
  }

  /* --- Menü-Links größer für Touch --- */
  nav a {
    font-size: 20px;
  }

  /* --- CTA im Menü --- */
  nav .cta {
    background: var(--green);
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
  }

  /* --- Sprachumschalter bleibt sichtbar --- */
  .lang-switch {
    flex-direction: row;
    gap: 6px;
  }

  /* --- Layoutanpassungen für Mobile --- */
  .services {
    grid-template-columns: 1fr;
  }

  main {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 950; /* unter nav */
  }

  .card {
    margin-bottom: 16px;
  }

  /* --- Body Scroll-Lock bei offenem Menü --- */
  body.menu-open {
    overflow: hidden;
  }
} /* ✅ <-- das schließt korrekt */

/* --- Video-Vorschau-Karte --- */
.video-card {
  text-align: center;
}

.video-thumbnail {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.video-thumbnail:hover {
  transform: scale(1.02);
}

/* --- Play-Button Overlay --- */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.video-thumbnail:hover .play-overlay {
  background: rgba(0, 0, 0, 0.7);
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
}

.modal video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* --- Schließen-Button --- */
.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Responsive Anpassungen --- */
@media (max-width: 600px) {
  .play-overlay {
    font-size: 40px;
    width: 60px;
    height: 60px;
  }

  .modal-inner {
    max-width: 100%;
  }

  .modal .close {
    font-size: 20px;
    width: 30px;
    height: 30px;
  }
}
/* === Kontaktformular Sicherstellen === */
form[name="contact"] input,
form[name="contact"] textarea,
form[name="contact"] button {
  position: relative;
  z-index: 1;
}
