/* =========================================================
   Gärtnerei Lange – main.css
   Mobile-first, vanilla CSS, keine externen Abhängigkeiten.
   Design-Tokens 1:1 aus dem Original-Theme (The7) übernommen.
   ========================================================= */

/* ---------- 0. Webfonts (selbst-gehostet) ---------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/open-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/open-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/open-sans-700.woff2') format('woff2');
}

/* ---------- 1. Design Tokens (aus Original) ---------- */
:root {
  /* Farben */
  --color-primary:        #669901;   /* Akzent / Buttons */
  --color-primary-dark:   #4a7001;
  --color-secondary:      #b2ca03;   /* Menü-Text / sekundärer Akzent */
  --color-body-bg:        #e5e1d5;   /* Beige Hintergrund */
  --color-content-bg:     #ffffff;
  --color-header-bg:      #120c0c;   /* fast schwarz */
  --color-topbar-bg:      #000000;
  --color-topbar-text:    #b3b5b6;
  --color-footer-bg:      #513700;   /* dunkles Braun */
  --color-footer-text:    #fff9f9;
  --color-text:           #676b6d;   /* warmes Mittelgrau */
  --color-text-dark:      #2c2c2c;
  --color-heading:        #2c2c2c;
  --color-border:         #d8d4c8;

  /* Typografie */
  --font-family: 'Open Sans', Helvetica, Arial, Verdana, sans-serif;
  --fs-base: 14px;
  --lh-base: 24px;
  --fs-h1: 48px;     --lh-h1: 56px;
  --fs-h2: 36px;     --lh-h2: 44px;
  --fs-h3: 24px;     --lh-h3: 32px;
  --fs-h4: 18px;     --lh-h4: 26px;
  --fs-h5: 15px;     --lh-h5: 25px;
  --fs-h6: 13px;     --lh-h6: 25px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --radius: 3px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --transition: 0.2s ease;
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: calc(var(--lh-base) / var(--fs-base));
  color: var(--color-text);
  background: var(--color-body-bg);
}
img, picture { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 var(--space-sm);
}
h1 { font-size: clamp(28px, 4vw + 8px, var(--fs-h1)); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw + 8px, var(--fs-h2)); line-height: 1.22; }
h3 { font-size: clamp(18px, 1.5vw + 12px, var(--fs-h3)); line-height: 1.33; }
h4 { font-size: var(--fs-h4); line-height: calc(var(--lh-h4) / var(--fs-h4)); }
h5 { font-size: var(--fs-h5); line-height: calc(var(--lh-h5) / var(--fs-h5)); }
h6 { font-size: var(--fs-h6); line-height: calc(var(--lh-h6) / var(--fs-h6)); }

p  { margin: 0 0 var(--space-sm); }
a  { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--color-primary-dark); text-decoration: underline; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-sm); }
li { margin-bottom: 0.25rem; }
strong { font-weight: 600; color: var(--color-text-dark); }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-primary); color: #fff;
  padding: var(--space-xs) var(--space-sm); z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- 4. Top Bar ---------- */
.top-bar {
  background: var(--color-topbar-bg);
  color: var(--color-topbar-text);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: var(--color-secondary); }
.top-bar a:hover { color: #fff; }
.top-bar__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs);
}
.top-bar__inner > * { margin: 0; }

/* Grass strip (topbar.jpg repeats horizontally) - ganz oben */
.grass-strip {
  height: 74px;
  background-image: url('/assets/img/logo/topbar.jpg');
  background-repeat: repeat-x;
  background-position: center top;
  background-size: auto 100%;
}

/* ---------- 5. Header ---------- */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-secondary);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
}
.brand {
  display: block;
  text-decoration: none; color: inherit;
  flex: 1 1 100%;
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 100%;
  max-width: 590px;
  height: auto;
  display: block;
}
.site-header__info { flex: 0 1 auto; }
@media (min-width: 900px) {
  .brand { flex: 0 1 auto; max-width: 590px; }
}

.site-header__info {
  display: none;          /* Auf Mobile ausgeblendet – Telefon-Link ist in der Aufklapp-Nav verfügbar */
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  color: var(--color-secondary);
  font-weight: 600;
}
@media (min-width: 900px) {
  .site-header__info { display: block; }
}
.site-header__info p { margin: 0; }
.site-header__info strong { color: var(--color-secondary); font-weight: 700; }
.site-header__info a { color: var(--color-secondary); text-decoration: none; }
.site-header__info a:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  cursor: pointer; gap: 5px;
  align-self: center;
}
.nav-toggle__bar {
  display: block; height: 3px; background: var(--color-primary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Primary Nav ---------- */
.primary-nav {
  background: var(--color-header-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.primary-nav.is-open { max-height: 600px; }
.primary-nav__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.primary-nav__list a {
  display: block;
  padding: 12px var(--space-sm);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition), color var(--transition);
}
.primary-nav__list a:hover,
.primary-nav__list a:focus,
.primary-nav__list a.is-active {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---------- 7. Main Content ---------- */
.main {
  background: var(--color-body-bg);
  padding: var(--space-md) 0 var(--space-lg);
}
.breadcrumb {
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding: 6px 12px;
  background: var(--color-body-bg);
  border-radius: var(--radius);
  display: inline-block;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 0.4em; opacity: 0.6; }

.hero { margin-bottom: var(--space-md); }
.hero .lead { font-size: 17px; color: var(--color-text-dark); line-height: 1.6; }

.services { margin-bottom: var(--space-md); }
.services__list { columns: 1; }

.seasonal-notice {
  background: #f5f8e8;
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md);
  border-radius: var(--radius);
  margin: var(--space-md) 0;
}
.seasonal-notice h2 { margin-top: 0; color: var(--color-primary-dark); }
.seasonal-notice p { margin: 0.25rem 0; }

.contact-info {
  background: var(--color-body-bg);
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  border-left: 4px solid var(--color-primary);
}
.contact-info p { margin: 0.25rem 0; }

/* ---------- 7a. Zwei-Spalten-Layout ---------- */
.layout-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: start;
}
@media (min-width: 800px) {
  .layout-two { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

/* Aufzählungen mit grünem Pfeil-Bullet */
.list-arrow {
  list-style: none;
  padding-left: 0;
}
.list-arrow li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.65rem;
  color: var(--color-primary);
}
.list-arrow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ---------- 7b. Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
/* Galerien im Original-Stil: dichte 3-Spalten-Anordnung, kleiner Gap */
.gallery--orig {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 500px) {
  .gallery--orig { grid-template-columns: repeat(2, 1fr); }
}
.gallery a, .gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery a:hover img,
.gallery a:focus img {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.hero-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-gallery > :first-child img { aspect-ratio: 16 / 7; }
@media (min-width: 700px) {
  .hero-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero-gallery > :first-child {
    grid-column: 1 / -1;
  }
}
.figure-single {
  margin: var(--space-md) 0;
}
.figure-single img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- 7c. Lightbox ---------- */
.gallery img { cursor: zoom-in; }
.gallery img:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

body.is-locked { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox[aria-hidden="false"] { display: flex; }

.lightbox__stage {
  margin: 0;
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: lb-fade 0.18s ease-out;
}
@keyframes lb-fade {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox__caption {
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.85;
  max-width: 90vw;
}
.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.85;
  pointer-events: none;
}
.lightbox__btn {
  position: absolute;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(0, 0, 0, 0.75);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__prev:focus-visible { transform: translateY(-50%) scale(1.05); }
.lightbox__next:hover, .lightbox__next:focus-visible { transform: translateY(-50%) scale(1.05); }

@media (max-width: 500px) {
  .lightbox__btn { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
}

/* ---------- 8. Map ---------- */
.map-embed { margin: var(--space-md) 0; }
.map-embed iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); }

/* ---------- 9. Form ---------- */
.contact-form { display: grid; gap: var(--space-sm); max-width: 640px; margin-top: var(--space-md); }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; color: var(--color-text-dark); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary);
}
.form-row--checkbox { flex-direction: row; align-items: flex-start; gap: 0.5rem; }
.form-row--checkbox label { font-weight: 400; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[type="submit"] {
  background: var(--color-primary); color: #fff; border: 0;
  padding: 12px 24px; font: inherit; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
button[type="submit"]:hover, button[type="submit"]:focus { background: var(--color-primary-dark); }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--color-footer-bg) url('/assets/img/bg/subtle_grunge.png') repeat-x center top;
  color: var(--color-footer-text);
  padding: var(--space-lg) 0 var(--space-sm);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
}
.site-footer a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer a:hover, .site-footer a:focus { color: #fff; text-decoration: underline; }

.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer__nav li { margin: 0; }
.site-footer__nav li + li::before {
  content: "·";
  color: rgba(255,249,249,0.3);
  padding: 0 0.75rem;
}
.site-footer__nav a {
  font-weight: 600;
  padding: 0.25rem 0;
  display: inline-block;
}

.site-footer__note {
  color: rgba(255,249,249,0.55);
  font-size: 12px;
  max-width: 640px;
  margin: 0 auto;
  font-style: italic;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,249,249,0.12);
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}
.site-footer__copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255,249,249,0.7);
}
.site-footer__top { margin: 0; }
.site-footer__top a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px;
  color: var(--color-footer-text);
}
.site-footer__top a:hover { background: rgba(255,255,255,0.16); color: #fff; text-decoration: none; }

@media (min-width: 700px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- 11. Responsive ---------- */
@media (min-width: 600px) {
  .services__list { columns: 2; gap: var(--space-md); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { max-height: none; overflow: visible; }
  .primary-nav__list { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .primary-nav__list a {
    border-bottom: 0;
    padding: 14px 22px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .main { padding: var(--space-lg) 0; }
}
@media (min-width: 1200px) {
  :root { --fs-base: 15px; }
}

/* ---------- 12. Print ---------- */
@media print {
  .top-bar, .site-header, .site-footer, .nav-toggle, .primary-nav { display: none; }
  a { color: inherit; text-decoration: none; }
  body { background: #fff; }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
