/* ==========================================================================
   Liveingreen – site styles on top of Pico CSS v2 (pico.green.min.css)
   ========================================================================== */

/* --- Brand tokens / Pico overrides --------------------------------------- */
:root,
:root[data-theme="light"] {
  --lig-green: #509101;          /* original brand green (grass, bars) */
  --lig-green-dark: #3b6c00;     /* accessible text/button green */
  --lig-green-deeper: #2c5100;
  --lig-mint: #89caa1;           /* original accent */
  --lig-lime: #e8e772;           /* original slider caption */
  --lig-olive: #324710;          /* text on lime */
  --lig-bg-soft: #f6f8f2;

  --pico-font-family-sans-serif: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pico-font-size: 100%;
  --pico-color: #4a4a4a;
  --pico-h1-color: #2b2b2b;
  --pico-h2-color: #2b2b2b;
  --pico-h3-color: #2b2b2b;
  --pico-h4-color: #2b2b2b;
  --pico-primary: var(--lig-green-dark);
  --pico-primary-background: var(--lig-green-dark);
  --pico-primary-border: var(--lig-green-dark);
  --pico-primary-underline: rgba(59, 108, 0, .4);
  --pico-primary-hover: var(--lig-green-deeper);
  --pico-primary-hover-background: var(--lig-green-deeper);
  --pico-primary-hover-border: var(--lig-green-deeper);
  --pico-primary-hover-underline: var(--lig-green-deeper);
  --pico-primary-focus: rgba(80, 145, 1, .35);
  --pico-primary-inverse: #fff;
  --pico-border-radius: .375rem;
  --pico-spacing: 1rem;
  --pico-block-spacing-vertical: 2rem;
}

body {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
body > main { padding-top: 0; } /* sections set their own top spacing */

.container {
  max-width: calc(1170px + 2rem);
  padding-left: 1rem;
  padding-right: 1rem;
}

img { border-radius: var(--pico-border-radius); }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  background: #fff url(../img/header-bg.png) center bottom / 2400px 120px no-repeat;
  position: relative;
  z-index: 20;
  padding-block: 0;  /* override Pico's body>header padding: header is 120px like the original */
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 120px;
  padding-bottom: 20px; /* keep content above the "grass" */
}
.brand img { display: block; width: 146px; height: auto; border-radius: 0; }

.nav-toggle {
  display: none;
  width: auto;
  margin: 0;
  padding: .5rem .7rem;
  background: transparent;
  border: 1px solid #d6dcd0;
  color: var(--lig-green-dark);
  line-height: 1;
}
.nav-toggle svg { display: block; }

.site-nav > ul {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { list-style: none; margin: 0; padding: 0; position: relative; }
.site-nav a,
.site-nav .submenu-toggle {
  display: block;
  margin: 0;                /* reset Pico's negative nav-link margin */
  padding: .55rem .8rem;
  color: #3a3a3a;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border-radius: var(--pico-border-radius);
}
.site-nav .submenu-toggle {
  width: auto;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.site-nav .submenu-toggle::after {
  content: "";
  width: .45em; height: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}
.site-nav a:hover,
.site-nav .submenu-toggle:hover,
.site-nav [aria-current="page"],
.site-nav .is-active > .submenu-toggle { color: var(--lig-green); }

.site-nav .submenu {
  display: block;           /* Pico makes every "nav ul" a horizontal flex row */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: .4rem 0;
  margin: 0;
  background: #fff;
  border-radius: var(--pico-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  border-top: 3px solid var(--lig-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .submenu li { display: block; }
.site-nav .submenu a { border-radius: 0; font-weight: 400; padding: .5rem 1rem; }
.site-nav .submenu a:hover,
.site-nav .submenu a[aria-current="page"] { background: var(--lig-green); color: #fff; }

@media (min-width: 992px) {
  .site-nav { margin-right: 160px; } /* leave room for the tree in the header image */
  .site-nav .has-submenu:hover > .submenu,
  .site-nav .has-submenu:focus-within > .submenu,
  .site-nav .has-submenu.open > .submenu {
    opacity: 1; visibility: visible; transform: none;
  }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    padding: .5rem 1rem 1rem;
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .site-nav li { display: block; }
  .site-nav > ul > li { border-bottom: 1px solid #eef0ea; }
  .site-nav .submenu-toggle { width: 100%; justify-content: space-between; text-align: left; }
  .site-nav .submenu {
    position: static;
    box-shadow: none;
    border-top: 0;
    padding: 0 0 .5rem 1rem;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .site-nav .has-submenu.open > .submenu { display: block; }
}

/* --- Green bar (breadcrumb + language) ------------------------------------ */
.subbar {
  background: var(--lig-green);
  color: #fff;
}
.subbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0; padding: 0;
  list-style: none;
  font-size: .85rem;
}
.breadcrumb li { list-style: none; margin: 0; padding: 0; color: #fff; }
.breadcrumb li + li::before { content: "›"; margin: 0 .55rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { vertical-align: -2px; }

.lang-switch { display: flex; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.lang-switch li { list-style: none; margin: 0; padding: 0; }
.lang-switch a {
  display: block;
  padding: .15rem .6rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { background: #fff; color: var(--lig-green-dark); }

/* --- Hero slider ------------------------------------------------------------ */
/* Like the original flexslider: image 70% wide on the left, lime caption box
   on the right (same height as the image), white gap in between. */
.hero { padding-top: 1.25rem; }
.slider {
  --slide-gap: 2.25%;
  position: relative;
  background: #fff;
}
.slides {
  display: flex;
  margin: 0; padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 70% 1fr;
  column-gap: var(--slide-gap);
  list-style: none;
  margin: 0;
  scroll-snap-align: start;
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 360;
  object-fit: cover;
}
.slide-caption {
  align-self: stretch;      /* same height as the image */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.6rem;
  background: var(--lig-lime);
  color: var(--lig-olive);
  border-radius: var(--pico-border-radius);
}
.slide-caption h2 {
  color: var(--lig-olive);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.slide-caption svg { display: block; margin: 0 auto 1rem; color: var(--lig-olive); }
.slide-caption [role="button"] { width: 100%; }

.slider-dots {
  position: absolute;
  left: 1rem; bottom: 1rem;
  display: flex;
  gap: .45rem;
}
.slider-dots button {
  width: 12px; height: 12px;
  padding: 0; margin: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
}
.slider-dots button[aria-current="true"] { background: #fff; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  padding: 0; margin: 0;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.slider:hover .slider-arrow,
.slider-arrow:focus-visible { opacity: 1; }
.slider-arrow.prev { left: 1rem; }
.slider-arrow.next { right: calc(30% + 1rem); } /* right edge of the image */

/* Medium screens: narrower caption column, smaller type */
@media (max-width: 1199.98px) {
  .slide-caption { padding: 1rem 1.1rem; }
  .slide-caption h2 { font-size: 1.15rem; margin-bottom: .6rem; }
  .slide-caption svg { width: 32px; height: 32px; margin-bottom: .6rem; }
}
@media (max-width: 991.98px) {
  .slide-caption svg { display: none; }
  .slide-caption h2 { font-size: 1rem; }
  .slide-caption [role="button"] { padding: .4rem .5rem; font-size: .85rem; }
}

/* Phones: image full width, caption below */
@media (max-width: 767.98px) {
  .hero { padding-top: 1rem; }
  .slide { grid-template-columns: 1fr; row-gap: .75rem; }
  .slide-caption { padding: 1.1rem 1.25rem; }
  .slide-caption h2 { font-size: 1.2rem; margin-bottom: .75rem; }
  .slide-caption [role="button"] { padding: .6rem 1rem; font-size: 1rem; }
  .slider-arrow { display: none; }
  .slider-dots { top: .75rem; bottom: auto; left: auto; right: .75rem; }
}

/* --- Home sections ---------------------------------------------------------- */
.section-title {
  text-align: center;
  margin: 3rem 0 2rem;
  font-weight: 300;
  font-size: 2rem;
}
.section-title span { color: var(--lig-green); font-weight: 700; }

.divider {
  border: 0;
  border-top: 1px solid #e3e6dd;
  margin: 3rem 0 0;
}

.teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 0; padding: 0;
}
.teasers > li { list-style: none; margin: 0; padding: 0; }
@media (max-width: 991.98px) { .teasers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .teasers { grid-template-columns: 1fr; } }

.teaser {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.teaser:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(40, 70, 0, .15); }
.teaser figure { margin: 0; overflow: hidden; }
.teaser img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform .4s;
}
.teaser:hover img { transform: scale(1.05); }
.teaser-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.5rem;
}
.teaser h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.teaser p { font-size: .92rem; flex: 1; }
.teaser [role="button"] { align-self: flex-start; margin-top: .5rem; }

/* --- Content pages ---------------------------------------------------------- */
.page { padding-top: 1.75rem; padding-bottom: 3rem; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 991.98px) { .page-grid { grid-template-columns: 1fr; } }

.page h1 { font-size: 1.85rem; margin-bottom: 1.25rem; }
.page h1::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  margin-top: .6rem;
  background: var(--lig-green);
}
.prose { text-align: left; hyphens: auto; }
.prose ul li { margin-bottom: .25rem; }
.prose ul ul { margin-top: .35rem; }

.float-img {
  float: right;
  max-width: 250px;
  margin: 0 0 1rem 1.75rem;
}
@media (max-width: 575.98px) {
  .float-img { float: none; display: block; margin: 0 auto 1.25rem; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  clear: both;
  margin-top: 2rem;
}
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { font-size: .85rem; margin-top: .4rem; color: #666; }
@media (max-width: 575.98px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.contact-card {
  margin: 0;
  background: var(--lig-bg-soft);
  border-top: 3px solid var(--lig-green);
  box-shadow: none;
}
.contact-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-list { margin: 0; }
.contact-list dt { font-weight: 700; font-size: .85rem; color: #333; margin-top: .75rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 0; }
.contact-card address { font-style: normal; margin: 0; }

.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal h4 { font-size: 1rem; margin: 1.1rem 0 .4rem; }
.legal ol.clauses { padding-left: 0; }
.legal ol.clauses li { list-style: none; margin-bottom: .6rem; }
.legal .meta { color: #777; font-size: .9rem; }

/* --- Overview pages (Services / Produkte / Portfolio) ------------------- */
.page h1 span { color: var(--lig-green); }
.overview .lead {
  max-width: 48rem;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.overview-cta {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--lig-bg-soft);
  border-left: 4px solid var(--lig-green);
  border-radius: var(--pico-border-radius);
}

/* --- Map with consent ---------------------------------------------------- */
.map-consent {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  padding: 2rem;
  border-radius: var(--pico-border-radius);
  background:
    linear-gradient(rgba(246,248,242,.92), rgba(246,248,242,.92)),
    repeating-linear-gradient(45deg, #dfe6d4 0 2px, transparent 2px 22px);
  text-align: center;
}
.map-consent p { max-width: 32rem; font-size: .9rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--pico-border-radius); }

/* --- Footer ------------------------------------------------------------------ */
.site-footer { margin-top: 3rem; color: #e9f2df; }
.footer-main { background: var(--lig-green); padding: 2.5rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.footer-brand {
  font-weight: 300;
  letter-spacing: .3em;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: .3rem;
  text-transform: uppercase;
}
.site-footer h2 {
  color: #fff;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.site-footer p, .site-footer address { font-size: .9rem; font-style: normal; margin-bottom: .5rem; }
.site-footer ul { margin: 0; padding: 0; }
.site-footer li { list-style: none; margin: 0 0 .3rem; padding: 0; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { background: var(--lig-green-deeper); padding: 1rem 0; font-size: .82rem; }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; font-size: .82rem; }

/* --- Utilities --------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 100;
  padding: .5rem 1rem;
  background: var(--lig-green-dark);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Content column stays flat (like the original); nested <article>s render as cards */
.page article.prose {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.prose article { background: var(--lig-bg-soft); box-shadow: none; border-top: 3px solid var(--lig-green); }
.prose article h2 { font-size: 1.15rem; }
.site-footer p, .site-footer address, .site-footer li, .site-footer span { color: #eef5e6; }
.site-footer .footer-brand { color: #fff; }
