/* =====================================================
   GARTENWERK – Haupt-Stylesheet
   ===================================================== */

/* ----- Fonts ---------------------------------------- */
@font-face {
  font-family: "Kollektif";
  src: url(../font/Kollektif.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Kollektif";
  src: url(../font/Kollektif-Bold.ttf) format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url(../font/Montserrat-Regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url(../font/Montserrat-Italic.otf) format("opentype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Montserrat";
  src: url(../font/Montserrat-SemiBold.otf) format("opentype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat";
  src: url(../font/Montserrat-Bold.otf) format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* ----- Custom Properties (Markenfarben) ------------- */
:root {
  --gruen-hell:    #b8c867;   /* Gelbgrün – Akzent */
  --gruen-mittel:  #437937;   /* Waldgrün – Primär */
  --gruen-sage:    #6b7d71;   /* Salbeigrün */
  --gruen-dunkel:  #466439;   /* Dunkelgrün */
  --gruen-tief:    #1e4411;   /* Tiefgrün – Footer/Header */
  --grau-dunkel:   #404040;   /* Anthrazit */
  --grau-hell:     #e6e7e8;   /* Hellgrau – Seitenhintergrund */
  --weiss:         #ffffff;

  --max-width: 1120px;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 4px 20px rgba(0, 0, 0, .10);
  --shadow-sm: 0 2px 8px  rgba(0, 0, 0, .07);

  --header-h: 80px;
}

/* ----- Reset ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--grau-hell);
  color: var(--grau-dunkel);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--gruen-mittel);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
address {
  font-style: normal;
}

/* ----- Layout-Helfer -------------------------------- */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ----- HEADER --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--gruen-tief);
  border-bottom: 3px solid var(--gruen-hell);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand img {
  height: 56px;
  width: auto;
  display: block;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  color: var(--grau-hell);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.nav-menu a:hover {
  background: var(--gruen-hell);
  color: var(--gruen-tief);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 2px solid var(--gruen-hell);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--grau-hell);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--gruen-tief);
    border-bottom: 3px solid var(--gruen-hell);
    padding: .75rem 1rem 1rem;
    gap: .15rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-menu a {
    font-size: 1rem;
    padding: .65rem 1rem;
  }
}

/* ----- HERO ----------------------------------------- */
.hero {
  background: var(--weiss);
  border-bottom: 4px solid var(--gruen-hell);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
/* subtiler Grünton-Verlauf rechts hinter dem Logo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 85% 55%, rgba(184,200,103,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}
@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr 1.5fr;
  }
}
/* Logo auf mobil zuerst zeigen */
.hero-logo-col  { order: -1; }
@media (min-width: 860px) {
  .hero-logo-col  { order: 1; }
}
.hero-text-col {
  max-width: 540px;
}
.tagline-chip {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--gruen-hell);
  color: var(--gruen-tief);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: "Kollektif", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw + .5rem, 3.1rem);
  line-height: 1.12;
  color: var(--gruen-tief);
  margin: 0 0 1.1rem;
}
.hero-desc {
  color: var(--gruen-sage);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 50ch;
}
.cta-group {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary {
  background: var(--gruen-mittel);
  color: var(--weiss);
  border-color: var(--gruen-mittel);
}
.btn-primary:hover {
  background: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--gruen-tief);
  border-color: var(--gruen-mittel);
}
.btn-ghost:hover {
  background: var(--gruen-hell);
  border-color: var(--gruen-hell);
  color: var(--gruen-tief);
  text-decoration: none;
}
.hero-logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-col img {
  width: clamp(240px, 48vw, 620px);
  filter: drop-shadow(0 12px 32px rgba(67,121,55,.18));
}

/* ----- Abschnitt-Grundlayout ------------------------ */
.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.section-title {
  font-family: "Kollektif", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw + .4rem, 2rem);
  color: var(--gruen-tief);
  margin: 0 0 .5rem;
}
.section-lead {
  color: var(--gruen-sage);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 0 2.5rem;
}

/* ----- LEISTUNGEN ----------------------------------- */
.section-leistungen {
  background: var(--weiss);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.service-card {
  background: var(--grau-hell);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  opacity: .75;
}
.service-card h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: var(--gruen-tief);
  margin: 0;
  line-height: 1.3;
}
.services-note {
  background: var(--grau-hell);
  border-left: 4px solid var(--gruen-hell);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1.2rem;
  color: var(--grau-dunkel);
  font-size: .95rem;
  margin: 0;
}

/* ----- À PROPOS ------------------------------------- */
.section-apropos {
  background: var(--grau-hell);
}
.apropos-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .apropos-inner {
    grid-template-columns: 1.6fr 1fr;
  }
}
.apropos-text p {
  margin: 0 0 1rem;
  color: var(--grau-dunkel);
}
.highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.highlight-item {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--gruen-hell);
  box-shadow: var(--shadow-sm);
}
.highlight-item strong {
  display: block;
  font-family: "Kollektif", Arial, sans-serif;
  font-size: 1rem;
  color: var(--gruen-tief);
  margin-bottom: .2rem;
}
.highlight-item p {
  margin: 0;
  font-size: .9rem;
  color: var(--gruen-sage);
}

/* ----- REFERENZEN ----------------------------------- */
.section-referenzen {
  background: var(--weiss);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--grau-hell);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Platzhalter falls noch keine echten Fotos vorhanden */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--grau-hell);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gruen-sage);
  color: var(--gruen-sage);
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
}

/* ----- KONTAKT -------------------------------------- */
.section-kontakt {
  background: var(--gruen-dunkel);
}
.section-kontakt .section-title {
  color: var(--weiss);
}
.section-kontakt .section-lead {
  color: #a8c8a0;
}
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gruen-hell);
  margin-bottom: 2rem;
  transition: color .15s;
}
.tel-link:hover {
  color: #cad878;
  text-decoration: none;
}
.tel-link::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--gruen-hell);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.5 11.5 0 003.6.57 1 1 0 011 1V21a1 1 0 01-1 1A17 17 0 013 5a1 1 0 011-1h3.5a1 1 0 011 1 11.5 11.5 0 00.57 3.6 1 1 0 01-.25 1.01l-2.2 2.18z'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

/* Kontaktformular */
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.form-field {
  display: grid;
  gap: .35rem;
}
.form-label {
  font-weight: 700;
  font-size: .9rem;
  color: #c8d8bc;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: var(--weiss);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  transition: border-color .15s, background .15s;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255,255,255,.35);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gruen-hell);
  background: rgba(255,255,255,.12);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-hint {
  font-size: .85rem;
  color: #a8c8a0;
  margin: 0;
}
.form-submit {
  justify-self: start;
  margin-top: .25rem;
}

/* ----- FOOTER --------------------------------------- */
.site-footer {
  background: var(--gruen-tief);
  border-top: 3px solid var(--gruen-hell);
  padding-block: 2.5rem 3rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: .75rem;
}
.footer-legal {
  color: var(--gruen-sage);
  font-size: .85rem;
  margin: .5rem 0 0;
}
.footer-col strong {
  display: block;
  color: var(--gruen-hell);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.footer-col a,
.footer-col p {
  display: block;
  color: #c8d8bc;
  font-size: .9rem;
  margin: 0 0 .3rem;
}
.footer-col a:hover {
  color: var(--weiss);
}
.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem !important;
  transition: color .15s, gap .15s;
}
.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.social-link:hover {
  color: var(--weiss) !important;
  gap: .7rem;
}

/* =====================================================
   MOBILE / RESPONSIVE – Smartphone-Optimierungen
   ===================================================== */

/* Kleine Smartphones (< 480px) */
@media (max-width: 480px) {
  :root { --header-h: 68px; }

  /* Hero: Logo kompakter, weniger Innenabstand */
  .hero { padding-block: 2rem 2.5rem; }
  .hero-logo-col img { width: min(80vw, 300px); }
  .hero h1 { font-size: 1.65rem; }
  .hero-desc { font-size: .97rem; }

  /* Buttons nebeneinander wenn möglich, sonst übereinander */
  .cta-group { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }

  /* Leistungen: 2 Spalten auf sehr kleinen Screens */
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .service-card { padding: 1.25rem .75rem 1.1rem; }
  .service-card img { width: 60px; height: 60px; }
  .service-card h3 { font-size: .82rem; }

  /* Galerie: 1 Spalte */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Kontaktformular */
  .contact-form { max-width: 100%; }
  .form-input, .form-textarea { font-size: .95rem; }

  /* Footer: übereinander */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Mittlere Smartphones (480px – 720px) */
@media (min-width: 480px) and (max-width: 720px) {
  .hero-logo-col img { width: min(70vw, 380px); }

  /* Leistungen: 3 Spalten */
  .service-grid { grid-template-columns: repeat(3, 1fr); }

  /* Galerie: 2 Spalten */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (720px – 860px) */
@media (min-width: 720px) and (max-width: 860px) {
  /* Hero noch einspaltiger Bereich – Logo zentriert, nicht zu groß */
  .hero-inner { gap: 2rem; }
  .hero-logo-col img { width: min(55vw, 420px); }

  /* Leistungen: 4 Spalten */
  .service-grid { grid-template-columns: repeat(4, 1fr); }

  /* À propos: einspaltiger Block */
  .apropos-inner { grid-template-columns: 1fr; }
  .highlights { flex-direction: row; flex-wrap: wrap; }
  .highlight-item { flex: 1 1 200px; }
}
