/* =========================================================
   Renaldo Zörner Gartenbau – Stylesheet
   Naturfarben, ruhige Optik, mobile-first, barrierearm
   ========================================================= */

/* ---------- Design-Tokens ---------- */
:root {
  --gruen-dunkel: #2f4a32;   /* Tannengrün */
  --gruen: #4a6b46;          /* Laubgrün */
  --gruen-hell: #e7eee2;     /* zartes Blattgrün */
  --erde: #6b5644;           /* Erdbraun */
  --sand: #f4f1ea;           /* heller Sandton */
  --weiss: #ffffff;
  --text: #2b2b28;           /* fast Schwarz, warm */
  --text-leise: #5a5a52;
  --rand: #d9d6cd;
  --fokus: #1d5a2a;

  --container: 1140px;
  --radius: 8px;
  --schatten: 0 2px 8px rgba(0, 0, 0, 0.06);
  --schatten-stark: 0 6px 20px rgba(0, 0, 0, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / Grundlagen ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gruen-dunkel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gruen);
}

:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--gruen-dunkel);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.6em;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

/* ---------- Hilfsklassen ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--gruen-dunkel);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--sand {
  background: var(--sand);
}

.section--gruen {
  background: var(--gruen-hell);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-leise);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--gruen-dunkel);
  color: #fff;
}

.btn--primary:hover {
  background: #233a26;
  color: #fff;
}

.btn--secondary {
  background: var(--weiss);
  color: var(--gruen-dunkel);
  border-color: var(--gruen-dunkel);
}

.btn--secondary:hover {
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
}

.btn-gruppe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* ---------- Kopfzeile / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rand);
  backdrop-filter: saturate(180%) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gruen-dunkel);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo span small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-leise);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gruen-dunkel);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--gruen-dunkel);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--gruen-hell);
  color: var(--gruen-dunkel);
}

/* Mobile-Navigation */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--weiss);
    border-bottom: 1px solid var(--rand);
    box-shadow: var(--schatten);
  }

  .main-nav.is-open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0.1rem;
  }

  .main-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--gruen-hell);
  }
}

@media (min-width: 821px) {
  .nav-toggle { display: none; }
  .main-nav { display: block !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--gruen-hell) 0%, var(--sand) 100%);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 18ch;
}

.hero p {
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--text-leise);
}

/* ---------- Karten / Raster ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
}

.card h3 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Leistungs-Liste auf Startseite */
.leistung-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.leistung-liste li {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--gruen);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--gruen-dunkel);
}

/* Vorteile */
.vorteil {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.vorteil .marker {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gruen-dunkel);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.vorteil h3 { margin-bottom: 0.2em; }
.vorteil p { margin: 0; color: var(--text-leise); }

/* ---------- Leistungsseite Detailabschnitte ---------- */
.leistung-block {
  border-bottom: 1px solid var(--rand);
  padding-block: 2rem;
}

.leistung-block:last-child { border-bottom: 0; }

.leistung-block h2 {
  margin-bottom: 0.4em;
}

.leistung-block p:last-child { margin-bottom: 0; }

/* ---------- Bild-Platzhalter ---------- */
.bild-platzhalter {
  background: repeating-linear-gradient(
    45deg,
    var(--gruen-hell),
    var(--gruen-hell) 12px,
    #dfe8d8 12px,
    #dfe8d8 24px
  );
  border: 1px dashed var(--gruen);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--gruen-dunkel);
  font-weight: 600;
  padding: 1rem;
}

.projekt-karte figcaption {
  padding-top: 0.75rem;
}

.projekt-karte .meta {
  color: var(--text-leise);
  font-size: 0.95rem;
  margin: 0.25rem 0 0;
}

/* ---------- Kontakt / NAP-Block ---------- */
.kontakt-raster {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 821px) {
  .kontakt-raster { grid-template-columns: 1fr 1fr; }
}

.nap address {
  font-style: normal;
  line-height: 1.8;
}

.nap a {
  font-weight: 600;
}

.kontakt-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

/* ---------- Formular ---------- */
.form-feld {
  margin-bottom: 1.1rem;
}

.form-feld label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-feld .pflicht {
  color: var(--erde);
}

.form-feld input,
.form-feld select,
.form-feld textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  min-height: 48px;
}

.form-feld textarea {
  min-height: 140px;
  resize: vertical;
}

.form-feld input:focus,
.form-feld select:focus,
.form-feld textarea:focus {
  border-color: var(--gruen);
}

.form-hinweis {
  font-size: 0.95rem;
  color: var(--text-leise);
}

.hinweis-box {
  background: var(--gruen-hell);
  border-left: 4px solid var(--gruen);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.todo {
  background: #fff7e6;
  border: 1px dashed #d9a441;
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  color: #7a5a14;
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gruen-dunkel);
  color: #e8efe5;
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.footer-unten {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #c7d4c2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Hero: Text + Logo zweispaltig ---------- */
.hero-kopf {
  display: grid;
  gap: 2rem;
}

.hero-logo {
  display: none;
}

@media (min-width: 821px) {
  .hero-kopf {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
  }

  .hero-logo {
    display: flex;
    justify-content: center;
  }

  .hero-logo img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}

/* ---------- Bilder: Hero, Projekte, Leistungen, Inhalt ---------- */
.hero-bild {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten-stark);
}

.hero-bild img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Echte Projektbilder in den Karten */
.projekt-bild {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* Bild innerhalb eines Leistungsabschnitts */
.leistung-block figure {
  margin: 0 0 1.25rem;
}

.leistung-bild {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--schatten);
}

/* Inhaltsbild (z. B. Über uns) */
.inhalt-figur {
  margin: 0 0 1.75rem;
}

.inhalt-figur img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: var(--schatten);
}

.inhalt-figur figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}

.bildunterschrift {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-leise);
}

/* ---------- Kundenstimmen ---------- */
.stimme {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--gruen);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--schatten);
}

.stimme blockquote {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.stimme figcaption {
  color: var(--text-leise);
  font-weight: 600;
  font-size: 0.95rem;
}

.sterne {
  color: #e8a317;
  font-size: 1.15rem;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stimme-kopf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stimme-foto {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid var(--gruen-hell);
}

/* ---------- Partner / Zusammenarbeit ---------- */
.partner-liste {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.partner-liste li {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

/* ---------- Honeypot (Spam-Schutz, unsichtbar) ---------- */
.honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
