@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  --primary-green: #1b3d2b;
  --accent-green: #7ab25c;
  --accent-brown: #6e513a;
  --bg-light: #eef2ee;
  --text: #222b26;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(27, 61, 43, 0.10);
  --shadow-hover: 0 8px 24px rgba(27, 61, 43, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--primary-green); }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; }

a { color: var(--primary-green); }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; }
.icon--green { color: var(--accent-green); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn--accent { background: var(--accent-green); color: var(--white); }
.btn--accent:hover, .btn--accent:focus-visible {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  background: #6aa04e;
}
.btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { transform: scale(1.05); background: rgba(255, 255, 255, 0.15); }

/* Top-Bar */
.topbar { background: var(--primary-green); color: var(--white); font-size: 0.875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 0.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--white); text-decoration: none; }
.topbar__item:hover { color: var(--accent-green); }
.topbar__hint { margin-left: auto; font-weight: 600; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.header__logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.header__brand { color: var(--primary-green); font-weight: 400; }
.header__brand strong { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav > a:not(.btn) { text-decoration: none; font-weight: 600; }
.nav > a:not(.btn):hover { color: var(--accent-green); }
.nav__cta { padding: 0.5rem 1.1rem; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.burger span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--primary-green); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; }
.hero__box {
  max-width: 560px;
  background: rgba(27, 61, 43, 0.82);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  margin-block: 4rem;
}
.hero__box h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 1rem; }
.hero__box p { margin-bottom: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Warum wir */
.why { background: var(--bg-light); }
.why__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: center; }
.why__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.why-card { padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.why-card:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.why-card .icon--green { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.why-card h3 { margin-bottom: 0.4rem; }
.why__about { padding: 1.5rem; }
.why__about h2 { margin-bottom: 0.75rem; }
.flag { display: inline-flex; width: 42px; height: 28px; border-radius: 4px; overflow: hidden; margin-bottom: 0.75rem; box-shadow: var(--shadow); }
.flag span { flex: 1; }
.flag span:nth-child(1), .flag span:nth-child(3) { background: #ed2939; }
.flag span:nth-child(2) { background: var(--white); }

/* Zweispaltiger Hauptbereich */
.main-grid { background: var(--white); }
.main-grid__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-card { overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-card:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.service-card img { width: 100%; height: auto; object-fit: cover; }
.service-card h3, .service-card p, .service-card details { padding-inline: 1.25rem; }
.service-card h3 { padding-top: 1rem; }
.service-card__short { color: #5a6a60; font-size: 0.9rem; margin-block: 0.35rem 0.5rem; }
.service-card details { padding-bottom: 1.25rem; }
.service-card summary {
  cursor: pointer; font-weight: 600; color: var(--primary-green);
  list-style: none; display: inline-flex; align-items: center; gap: 0.3rem;
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card details[open] summary span { transform: rotate(90deg); }
.service-card details p { margin-top: 0.5rem; padding-inline: 0; }

/* Galerie */
.gallery { margin-top: 3rem; }
.gallery > p { margin-bottom: 1.25rem; }
.gallery__main { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; display: block; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.gallery__thumbs button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.gallery__thumbs img, .gallery__main img { width: 100%; height: auto; object-fit: cover; transition: transform 0.2s ease; }
.gallery__thumbs button:hover img, .gallery__main:hover img { transform: scale(1.05); }

/* Rechte Spalte */
.col-side { display: flex; flex-direction: column; gap: 2.5rem; }
.prices { padding: 1.75rem; }
.prices > p { margin-bottom: 1rem; }
.prices__list { list-style: none; }
.prices__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.6rem; border-bottom: 1px solid #e3e9e3;
}
.prices__list li:last-child { border-bottom: 0; }
.prices__list strong { color: var(--primary-green); white-space: nowrap; }

.faq__item { background: var(--bg-light); border-radius: var(--radius); margin-bottom: 0.75rem; }
.faq__item summary {
  cursor: pointer; font-weight: 600; color: var(--primary-green);
  padding: 1rem 1.25rem; list-style: none; position: relative; padding-right: 2.5rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%); font-weight: 700; color: var(--accent-green);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 1.25rem 1rem; }

/* Kontakt */
.contact { background: var(--primary-green); color: var(--white); border-radius: var(--radius); padding: 1.75rem; }
.contact h2 { color: var(--white); }
.contact > p { margin-bottom: 1.25rem; }
.contact a { color: #cfe3c2; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.3rem; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"], .form-row textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 2px solid #3a5c48;
  border-radius: 6px; background: rgba(255, 255, 255, 0.95); color: var(--text);
  font: inherit; transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent-green); }
.form-row--check { display: flex; gap: 0.5rem; align-items: flex-start; }
.form-row--check label { font-weight: 400; margin-bottom: 0; }
.form-row--check input { margin-top: 0.3rem; accent-color: var(--accent-green); }
.form-status { margin-top: 0.75rem; font-size: 0.875rem; min-height: 1.2em; }
.form-status.is-success { color: var(--accent-green); font-weight: 600; }
.form-status.is-error { color: #ffb3a7; font-weight: 600; }

.contact__info { margin-top: 1.5rem; }
.contact__info address { font-style: normal; margin-bottom: 1rem; }
.contact__map { display: block; border-radius: var(--radius); overflow: hidden; }
.contact__map img { width: 100%; height: auto; object-fit: cover; transition: transform 0.2s ease; }
.contact__map:hover img { transform: scale(1.05); }

/* Footer */
.footer { background: var(--primary-green); color: var(--white); padding-block: 1.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }
.footer a { color: #cfe3c2; margin-left: 1.25rem; }
.footer a:hover { color: var(--white); }

/* Unterseiten (Impressum / Datenschutz) */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { margin-bottom: 0.75rem; }
.legal__note { font-size: 0.875rem; color: #5a6a60; font-style: italic; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 25, 19, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 85vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white);
  font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 1rem;
}
.lightbox__close { top: 0.5rem; right: 0.5rem; }
.lightbox__prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Mobil */
@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
  .main-grid__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar__hint { margin-left: 0; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); box-shadow: var(--shadow-hover);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 0.75rem 0; border-bottom: 1px solid #e3e9e3; }
  .nav__cta { margin-top: 1rem; text-align: center; }
  .why__cards, .services { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
  .hero__box { margin-block: 2rem; padding: 1.5rem; }
  .hero__box h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
}

/* Barrierefreiheit: Motion reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
