/* ==========================================================================
   Mike Munz Gartenbau GmbH – Stylesheet
   ========================================================================== */

:root {
  --green: #6ab42f;
  --green-light: #8dc63f;
  --green-dark: #4f8a20;
  --grey-text: #7a8188;
  --dark: #2b2f26;
  --bg-light: #f7f7f7;
  --bg-lighter: #eeeeee;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-light);
}

h1, h2, h3, h4 {
  font-family: "Open Sans Condensed", Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--dark);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-light);
}

.section-title {
  position: relative;
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 0.5em;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-light);
}

#dienstleistungen .section-title {
  color: var(--green-dark);
}

.section--testimonials .section-title::after {
  background: var(--green-light);
}

.section-subtitle {
  text-align: center;
  color: var(--grey-text);
  max-width: 640px;
  margin: 0 auto 3em;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--green-light);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(106, 180, 47, 0.3);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 138, 32, 0.35);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: var(--bg-lighter);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  color: var(--bg-lighter);
}

.topbar a:hover {
  color: var(--green-light);
}

.topbar i {
  margin-right: 6px;
  color: var(--green-light);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.logo img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Open Sans Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav li:hover > a {
  color: var(--green-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.45)),
    url("../images/header-bg1.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 140px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.2em;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2em;
  color: #f1f1f1;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 26px;
  text-align: center;
  scroll-margin-top: 90px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.service-card-img {
  width: calc(100% + 52px);
  margin: -36px -26px 20px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}

.service-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(106, 180, 47, 0.12);
  border: 1px solid rgba(106, 180, 47, 0.25);
  color: var(--green);
  font-size: 1.8rem;
  transition: background var(--transition), transform var(--transition);
}

.service-card:hover .icon {
  background: rgba(106, 180, 47, 0.2);
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.service-card p {
  color: var(--grey-text);
  font-size: 0.95rem;
}

/* ---------- About ---------- */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
}

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

.about-image img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text .lead {
  color: var(--green-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

.about-history {
  list-style: none;
  margin: 1.5em 0;
  padding: 0;
  border-left: 3px solid var(--green-light);
}

.about-history li {
  position: relative;
  padding: 0 0 1.2em 24px;
}

.about-history li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-light);
}

.about-history strong {
  color: var(--dark);
}

.team {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.team-member {
  text-align: center;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.team-member img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid rgba(106, 180, 47, 0.15);
}

.team-member h4 {
  margin-bottom: 0.2em;
  font-size: 1.15rem;
}

.team-member span {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.testimonial {
  margin: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: background var(--transition), transform var(--transition);
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.testimonial img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial cite {
  color: var(--green-light);
  font-weight: 600;
  font-style: normal;
}

/* ---------- Contact ---------- */
.contact-cards {
  margin-bottom: 40px;
}

.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.contact-map--large iframe {
  height: 620px;
}

.map-popup {
  position: absolute;
  top: 46%;
  left: 260px;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-align: center;
}

/* Kurze, feste Sprechblasen-Spitze direkt am Popup. Bewusst kurz gehalten,
   damit sie nie über den Standort-Zeiger hinausragen kann. */
.map-popup::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent var(--white);
  filter: drop-shadow(2px 1px 1px rgba(0, 0, 0, 0.15));
}

.map-popup img {
  height: 64px;
  width: auto;
  margin: 0 auto 8px;
}

.map-popup p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #23261f;
  color: #cfd3c9;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 1em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #cfd3c9;
}

.footer-grid a:hover {
  color: var(--green-light);
}

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  font-size: 0.85rem;
  color: #8b8f83;
}

.footer-bottom a {
  color: #8b8f83;
}

/* ---------- Legal page ---------- */
.legal-content h2 {
  margin-top: 1.6em;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 28px;
  }

  .nav-toggle-label {
    display: block;
  }

  .logo img {
    height: 44px;
  }

  .brand-name {
    font-size: 1.25rem;
    max-width: 40vw;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 600px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .hero {
    padding: 90px 0;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .contact-map--large iframe {
    height: 440px;
  }

  .map-popup {
    left: 4px;
    max-width: 190px;
  }
}

@media (max-width: 600px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .map-popup {
    left: 4px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    gap: 8px;
  }

  .logo img {
    height: 36px;
  }

  .brand-name {
    font-size: 1rem;
    max-width: 34vw;
  }

  .topbar a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 28px 18px;
  }

  .service-card-img {
    width: calc(100% + 36px);
    margin: -28px -18px 18px;
  }

  .about-card {
    padding: 22px;
  }

  .contact-map--large iframe {
    height: 360px;
  }
}
