/* ============================================
   FONTS — Inter (lokal gehostet, CDN-frei / DSGVO)
   Variable Font, SIL Open Font License 1.1.
   latin + latin-ext (deutsche Umlaute) reichen aus.
   ============================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   GARTEN & LANDSCHAFTSBAU — Custom Theme
   Farbschema: Erdige Grüntöne + Warm Neutral
   Einfach anpassbar über CSS Custom Properties
   ============================================ */

/* --- CUSTOM PROPERTIES (hier Farben ändern wenn Logo kommt) --- */
:root {
  /* Primärfarben — aus Logo "Gartenbau" (Waldgrün) */
  --color-primary: #2B7A3D;
  --color-primary-light: #389E4E;
  --color-primary-dark: #1E5A2B;
  --color-primary-subtle: #E6F2E9;

  /* Akzentfarbe — aus Logo "Gerstenberg" (Erdbraun) */
  --color-accent: #7B4E24;
  --color-accent-light: #A06830;
  --color-accent-dark: #5E3A1A;

  /* Neutraltöne — inspiriert vom cremigen Logo-Hintergrund */
  --color-bg: #FAFAF5;
  --color-bg-alt: #F3F0E8;
  --color-bg-dark: #1C1E1A;
  --color-text: #2A2A28;
  --color-text-light: #4D4D4A;       /* WCAG AA Fix: von #636360 auf 5.5:1 Kontrast */
  --color-text-inverse: #FAF9F5;
  --color-border: #DDD8CE;

  /* Typografie — alles Inter für cleanen Look */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  /* Container */
  --container-max: 1240px;
  --container-narrow: 800px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;
  --transition-slow: 0.6s ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
}


/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  max-width: 65ch;
  color: var(--color-text-light);
}

.text-large {
  font-size: 1.15rem;
  line-height: 1.8;
}

.text-small {
  font-size: 0.875rem;
}

.text-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}


/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.section--dark p {
  color: rgba(250, 250, 247, 0.7);
}

.section--green {
  background-color: var(--color-primary-dark);  /* Gleicher Grünton wie Hero */
  color: var(--color-text-inverse);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--color-text-inverse);
}

.section--green p {
  color: rgba(250, 250, 247, 0.8);
}

.section--hero-gradient {
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 40%,
    #3A7A52 100%
  );
  color: var(--color-text-inverse);
}

.green-block {
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 40%,
    #3A7A52 100%
  );
  color: var(--color-text-inverse);
}

.section--hero-gradient--no-bg {
  background: transparent;
}

.section--compact {
  padding-top: 0;
  padding-bottom: var(--space-2xl);
}

/* Schlankes Stats-Band (14+ / 1.000+ / ...) — kompakter als eine volle Sektion */
.section.section--stats {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section--hero-gradient h2,
.section--hero-gradient h3,
.section--hero-gradient h4,
.section--hero-gradient .text-label {
  color: var(--color-text-inverse);
}

.section--hero-gradient p {
  color: rgba(250, 250, 247, 0.85);
}

.section--hero-gradient .btn--outline-dark {
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

.section--hero-gradient .btn--outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--asymmetric {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.grid--asymmetric-reverse {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
}


/* --- HEADER / NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-base);
  padding: var(--space-md) 0;
}

.header--scrolled {
  background-color: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

/* Offenes Mobile-Menue: backdrop-filter abschalten. Sonst ist der gescrollte
   Header ein Containing-Block fuer das fixed-Menue (inset:0 bezieht sich dann
   nur auf den Header-Balken -> Menue deckt nicht den ganzen Viewport). */
.header--menu-open,
.header--menu-open.header--scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: transparent;
  box-shadow: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: white;                       /* Weiß auf grünem Hero */
  z-index: 1001;
  transition: color var(--transition-fast);
}

.header--scrolled .header__logo {
  color: var(--color-primary-dark);   /* Dunkel auf hellem Hintergrund */
}

.header__logo-img {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);   /* Weiß auf grünem Hero */
  transition: filter var(--transition-fast);
}

.header--scrolled .header__logo-img {
  filter: none;                        /* Originalfarben auf weißem Header */
}

.footer__logo-img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);   /* Weiß auf dunklem Footer */
  margin-bottom: var(--space-sm);
  display: block;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);   /* Weiß auf grünem Hero */
  position: relative;
  transition: var(--transition-fast);
}

.header--scrolled .nav__link {
  color: var(--color-text);           /* Dunkel auf hellem Hintergrund */
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: white;
}

.header--scrolled .nav__link:hover {
  color: var(--color-primary);
}

.header--scrolled .nav__link::after {
  background-color: var(--color-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background-color: rgba(255, 255, 255, 0.2);   /* Transparent-weiß auf Hero */
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.nav__cta:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-1px);
}

.header--scrolled .nav__cta {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.header--scrolled .nav__cta:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;       /* WCAG Fix: min 44px Touch-Target */
  height: 44px;
  padding: 10px 8px;
  position: relative; /* noetig, damit z-index greift (sonst wirkungslos) */
  z-index: 1002;      /* ueber dem geoeffneten Menue (1001) */
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: white;            /* Weiß auf Hero */
  transition: var(--transition-base);
  transform-origin: center;
}

.header--scrolled .nav__toggle span {
  background-color: var(--color-text); /* Dunkel auf hellem Hintergrund */
}

/* Geoeffnetes X: immer weiss (auch bei header--scrolled), sonst dunkel auf
   gruenem Menue-Hintergrund und damit unsichtbar */
.nav__toggle--open span,
.header--scrolled .nav__toggle--open span {
  background-color: #fff;
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* --- HERO --- */
.hero-wrap {
  position: relative;
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 40%,
    #3A7A52 100%
  );
  overflow: hidden;
}

.hero-wrap .hero__bg.placeholder-img--hero {
  background: transparent;
}

.hero {
  display: flex;
  align-items: flex-start;             /* Inhalt von oben positionieren, nicht zentrieren */
  position: relative;
  padding-top: 140px;                  /* 80px Header + 60px Atemraum auf Desktop */
  padding-bottom: var(--space-xl);
  background-color: transparent;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__content h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.hero__content p {
  color: rgba(250, 250, 247, 0.85);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.85rem;
  color: rgba(250, 250, 247, 0.9);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero - Innenseiten */
.hero--inner {
  min-height: 50vh;
  padding-top: 120px;
  padding-bottom: var(--space-xl);
}

.hero--inner .hero__content {
  max-width: 600px;
}


/* --- HERO GRID LAYOUT --- */
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__grid .hero__content {
  max-width: none;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 36, 0.82) 0%,
    rgba(30, 90, 43, 0.75) 50%,
    rgba(43, 122, 61, 0.65) 100%
  );
}


/* --- HERO SLIDER (rechte Seite) --- */
.hero-slider {
  position: relative;
}

.hero-slider__window {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slider__slide--active {
  opacity: 1;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__placeholder span {
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  text-align: center;
}


/* Slider Dots (unter dem Slider-Fenster) */
.hero-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-top: var(--space-sm);
}

.hero-slider__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0;
  position: relative;
}

.hero-slider__dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: transparent;
  transition: var(--transition-base);
}

.hero-slider__dot--active::after {
  background: white;
  border-color: white;
  transform: translate(-50%, -50%) scale(1.2);
}

.hero-slider__dot:hover::after {
  border-color: white;
}

/* Progress Bar (am unteren Rand des Slider-Fensters) */
.hero-slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 5;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.hero-slider__progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.6);
  width: 0%;
  transition: width 0.1s linear;
}


/* Hero Grid — Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;                /* 70px Header + 50px Atemraum auf Mobile */
    padding-bottom: var(--space-xl);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-slider__window {
    aspect-ratio: 16/10;
  }
}


/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: white;
}

.btn--primary:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--color-text-inverse);
}

.btn--outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn--outline-dark {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline-dark:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--large {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn--icon-right svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn--icon-right:hover svg {
  transform: translateX(3px);
}


/* --- SECTION HEADERS --- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin: var(--space-sm) auto 0;
}

.section-header .text-label {
  margin-bottom: var(--space-xs);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}


/* --- FEATURE / SERVICE CARDS --- */
.service-card {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: 0.95rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.6rem;
}


/* --- IMAGE / TEXT SECTIONS --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.content-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-block__image--accent::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 40%;
  height: 40%;
  background-color: var(--color-primary-subtle);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.content-block__text h2 {
  margin-bottom: var(--space-sm);
}

.content-block__text p {
  margin-bottom: var(--space-md);
}


/* --- STATS --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(250, 250, 247, 0.75);
}


/* --- FILTER BAR (Projekte) --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.filter-pill {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-light);
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  transition: var(--transition-fast);
  text-decoration: none;
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-pill--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.filter-pill--active:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}


/* --- GALLERY / PROJEKTE --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Startseiten-Galerie: 1 grosses Bild links (2x2) + 4 kleine rechts, lueckenlos */
.gallery-grid--home {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}

.gallery-grid--home .gallery-item {
  aspect-ratio: auto;
}

.gallery-grid--home .gallery-item--large {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,63,43,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.gallery-item__overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}


/* --- TESTIMONIALS --- */
.testimonial-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.testimonial-card__text {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  max-width: none;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-card__location {
  font-size: 0.8rem;
  color: var(--color-text-light);
}


/* --- GOOGLE REVIEWS BADGE --- */
.rating-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: var(--space-md) var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.rating-badge__score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-badge__number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.rating-badge__stars {
  display: flex;
  gap: 1px;
  color: #F5A623;
}

.rating-badge__stars svg {
  width: 18px;
  height: 18px;
}

.rating-badge__count {
  font-size: 0.8rem;
  color: var(--color-text-light);
}


/* Reviews section header with badge */
.reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.reviews-header .section-header {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 40%,
    #3A7A52 100%
  );
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  z-index: 0;                          /* Kreis liegt hinter dem Button */
}

.cta-banner .btn {
  position: relative;
  z-index: 1;                          /* Button liegt über dem Kreis */
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(250, 250, 247, 0.8);
}

.cta-banner .btn--primary {
  background-color: var(--color-accent);
  flex-shrink: 0;
}


/* --- CONTACT FORM --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: white;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}


/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer__brand p {
  color: rgba(250, 250, 247, 0.75);  /* WCAG Fix: von 0.6 auf 0.75 */
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  max-width: 280px;
}

.footer__heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: rgba(250, 250, 247, 0.5);
}

.footer__links li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 247, 0.82);
}

.footer__links a {
  font-size: inherit;
  color: rgba(250, 250, 247, 0.82);  /* WCAG Fix: von 0.7 auf 0.82 */
  transition: var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent-light);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: rgba(250, 250, 247, 0.7);
  transition: var(--transition-fast);
}

.footer__social a:hover {
  background-color: var(--color-primary);
  color: white;
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(250, 250, 247, 0.6);  /* WCAG Fix: von 0.4 auf 0.6 */
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal a {
  color: rgba(250, 250, 247, 0.6);  /* WCAG Fix */
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: rgba(250, 250, 247, 0.7);
}


/* --- FOCUS STATES (Accessibility) --- */
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.nav__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.nav__cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.footer__links a:focus-visible,
.footer__legal a:focus-visible,
.footer__social a:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.service-card:focus-within {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
}

.service-card__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Screenreader-only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox--open {
  display: flex;
  opacity: 1;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2001;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  text-align: center;
  max-width: 600px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav--prev {
  left: var(--space-md);
}

.lightbox__nav--next {
  right: var(--space-md);
}

@media (max-width: 768px) {
  .lightbox__nav--prev {
    left: var(--space-xs);
  }
  .lightbox__nav--next {
    right: var(--space-xs);
  }
}


/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }


/* --- PLACEHOLDER IMAGES (bis echte Fotos kommen) --- */
.placeholder-img {
  background: linear-gradient(135deg, var(--color-primary-subtle) 0%, var(--color-bg-alt) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-md);
}

.placeholder-img--hero {
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 40%,
    #3A7A52 100%
  );
}

/* Hero mit Foto-Hintergrund (Unterseiten). Bild kommt per inline
   background-image auf .hero__bg--photo; dunkler Overlay sichert Lesbarkeit. */
.hero__bg--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__bg--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(18, 38, 27, 0.92) 0%,
    rgba(18, 38, 27, 0.80) 45%,
    rgba(18, 38, 27, 0.62) 100%
  );
}

/* Homepage-Hero: Hochformat-Foto, Motiv (Gärtner + Hecke) sitzt rechts,
   deshalb Bild nach rechts schieben. Verlauf rechts deutlich heller,
   damit das Motiv rauskommt, links dunkel genug für den Text. */
/* Hochformat-Foto rechts, oben bündig: cover füllt die Höhe, oben startet
   der Himmel/Kopf, der Reisig-Busch unten wird unter der Hero-Kante
   abgeschnitten. Sichtbar bleibt Himmel → Füße auf der Leiter. */
.hero__bg--home {
  background-size: cover;
  background-position: right 12%;
}

.hero__bg--home::after {
  background: linear-gradient(
    100deg,
    rgba(18, 38, 27, 0.96) 0%,
    rgba(18, 38, 27, 0.88) 30%,
    rgba(18, 38, 27, 0.55) 55%,
    rgba(18, 38, 27, 0.12) 82%,
    rgba(18, 38, 27, 0.0) 100%
  );
}

/* Homepage-Hero-Höhe: Ausschnitt Himmel → Füße auf der Leiter */
.hero--home {
  min-height: 68vh;
  align-items: center;
  padding-top: 140px;
  padding-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .hero--home {
    min-height: 0;
    align-items: flex-start;
  }
  /* Auf Mobile das Motiv mittiger halten, sonst ist nur Hecke zu sehen */
  .hero__bg--home {
    background-position: 72% center;
  }
  .hero__bg--home::after {
    background: linear-gradient(
      160deg,
      rgba(18, 38, 27, 0.92) 0%,
      rgba(18, 38, 27, 0.82) 45%,
      rgba(18, 38, 27, 0.60) 100%
    );
  }
}


/* --- ABOUT PAGE SPECIFIC --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  overflow: hidden;
  border: 3px solid var(--color-primary-subtle);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.2rem;
}

.team-card p {
  margin: 0 auto;
}


/* --- LEISTUNGEN PAGE --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.service-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__content .text-label {
  margin-bottom: var(--space-xs);
}

.service-detail__content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-detail__list {
  margin: var(--space-md) 0;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.service-detail__list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}


/* --- KONTAKT PAGE --- */

/* Kontaktinfo 4er-Grid (Tiles) */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.contact-info-tile {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.contact-info-tile:hover {
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-info-tile__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-subtle);
  border-radius: 50%;
  color: var(--color-primary);
  margin: 0 auto var(--space-sm);
}

.contact-info-tile__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info-tile h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-info-tile p {
  font-size: 0.9rem;
  margin: 0 auto;
}

.contact-info-tile a {
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.contact-info-tile a:hover {
  color: var(--color-primary-dark);
}

/* Kontakt Split: Formular links, Infos rechts */
.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-split__info {
  position: sticky;
  top: 100px;
}

/* 2x2 Tiles innerhalb der rechten Spalte */
.contact-tiles-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Kontakt-Sektion auf der Startseite: Buttons im CTA-Banner + 4er-Tile-Reihe */
.cta-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .contact-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .contact-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .contact-split__info {
    position: static;
  }

  .contact-tiles-2x2 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .contact-tiles-2x2 {
    grid-template-columns: 1fr;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* --- JOBS / STELLENANGEBOTE --- */

/* Stellen-Karte auf jobs.html */
.job-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.job-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-subtle);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
}

.job-card h3 {
  margin-bottom: var(--space-xs);
}

.job-card p {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

/* Zurueck-Link im Hero der Detailseite */
.job-back {
  display: inline-block;
  color: var(--color-text-inverse);
  opacity: 0.85;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  transition: opacity var(--transition-base);
}

.job-back:hover {
  opacity: 1;
}

/* Detailseite: 2-Spalten-Layout (Inhalt + Sticky-Sidebar) */
.job-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

.job-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

/* Einzelner Inhalts-Block (Aufgaben / Profil / Angebot) */
.job-block {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.job-block h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
}

.job-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.job-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.job-list li strong {
  color: var(--color-text);
}

.job-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 2px;
}

/* Sticky-Sidebar mit Eckdaten + Bewerbung */
.job-sidebar {
  position: sticky;
  top: 100px;
}

.job-sidebar__card {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.job-sidebar__card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
}

.job-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.job-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.job-facts svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  margin-top: 2px;
}

.job-facts li div {
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.4;
}

.job-facts__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 1px;
}

.job-sidebar__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

.job-sidebar__lead {
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.job-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.job-sidebar__actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .job-layout {
    grid-template-columns: 1fr;
  }

  .job-sidebar {
    position: static;
  }
}


/* --- LEGAL PAGES (Impressum, Datenschutz) --- */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-xs);
}

.legal-content p {
  margin-bottom: var(--space-sm);
  max-width: none;
}

.legal-content ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-md);
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}


/* --- MOBILE NAV OVERLAY --- */
.nav__overlay {
  display: none;
}


/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
  }

  /* Mobile Navigation */
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(
      135deg,
      #1E3F2B 0%,
      #2D5A3D 40%,
      #3A7A52 100%
    );
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1001;             /* ueber dem Header (1000), sonst legt sich der
                                  gescrollte deckende Header oben drueber */
  }

  .nav__list--open {
    transform: translateX(0);
  }

  .nav__list .nav__link,
  .header--scrolled .nav__list .nav__link {
    font-size: 1.3rem;
    color: #fff;
  }

  .nav__list .nav__cta,
  .header--scrolled .nav__list .nav__cta {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
  }

  .nav__list .nav__cta:hover,
  .header--scrolled .nav__list .nav__cta:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #fff;
  }

  /* Layouts */
  .grid--2,
  .grid--3,
  .grid--asymmetric,
  .grid--asymmetric-reverse {
    grid-template-columns: 1fr;
  }

  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .content-block--reverse {
    direction: ltr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }

  /* Startseiten-Galerie mobil: 2 Spalten, grosses Bild volle Breite */
  .gallery-grid--home {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .gallery-grid--home .gallery-item {
    aspect-ratio: 4/3;
  }

  .gallery-grid--home .gallery-item--large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16/9;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large {
    grid-column: span 1;
  }

  /* Startseiten-Galerie bleibt auch auf kleinen Phones 2-spaltig (kleine Bilder nebeneinander) */
  .gallery-grid--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid--home .gallery-item--large {
    grid-column: 1 / -1;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== PARTNER / MARKEN ========== */
.partners {
  background-color: transparent;
  color: var(--color-text-inverse);
  padding: 0 0 var(--space-xl);
}

.partners__label {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-md);
}

.partners__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
  align-items: center;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;                /* zentriert auch mehrzeilige Namen (z.B. Vogt Geo-Injector) */
  height: 72px;
  padding: 0 var(--space-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.partners__item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

/* Standalone (auf hellem Seiten-Hintergrund, unter den Leistungen).
   Dunkle Schrift statt weiß, sonst unsichtbar. */
.partners--standalone {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.partners--standalone .partners__label {
  color: var(--color-text-light);
}

.partners--standalone .partners__item {
  border-color: var(--color-border);
  background-color: var(--color-bg-alt);
  color: var(--color-text-light);
}

.partners--standalone .partners__item:hover {
  background-color: var(--color-primary-subtle);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .partners__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .partners__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== FLYER TEASER ========== */
.flyer-teaser {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.flyer-teaser__text p {
  margin-bottom: var(--space-lg);
}

.flyer-teaser__preview {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.flyer-teaser__preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flyer-teaser__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.flyer-teaser__badge {
  position: absolute;
  left: var(--space-sm);
  bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background-color: rgba(30, 63, 43, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .flyer-teaser {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .flyer-teaser__preview {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* ========== KONTAKT (Split: Ansprache links, Info-Karte rechts) ========== */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
  background: linear-gradient(
    135deg,
    #1E3F2B 0%,
    #2D5A3D 45%,
    #3A7A52 100%
  );
  color: var(--color-text-inverse);
}

.contact-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* --- Linke Spalte --- */
.contact-lead__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-sm);
}

.contact-lead h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.contact-lead p {
  color: rgba(250, 250, 247, 0.78);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 30rem;
  margin-bottom: var(--space-lg);
}

.contact-lead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 30rem;
}

.contact-cta {
  flex: 1 1 0;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.contact-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-cta:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Zweiter CTA: gleiche Groesse, aber Outline statt Vollton */
.contact-cta--outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text-inverse);
}

.contact-cta--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Rechte Spalte: Info-Karte --- */
.contact-panel {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-panel__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-panel__row + .contact-panel__row {
  margin-top: var(--space-lg);
}

.contact-panel__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-text-inverse);
}

.contact-panel__grow {
  width: 100%;
}

.contact-panel h3 {
  font-size: 1.05rem;
  color: var(--color-text-inverse);
  margin-bottom: 0.25rem;
}

.contact-panel__link {
  display: inline-block;
  color: rgba(250, 250, 247, 0.8);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.contact-panel__link:hover {
  color: var(--color-accent-light);
}

.contact-panel__note {
  font-size: 0.78rem;
  color: rgba(250, 250, 247, 0.45);
  margin-top: 0.25rem;
}

.contact-panel__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 250, 247, 0.75);
  margin-top: 0.25rem;
}

.contact-hours {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: rgba(250, 250, 247, 0.78);
  padding: 0.2rem 0;
}

@media (max-width: 768px) {
  .contact-home {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-cta {
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }
}
