/* ============================================
   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: 6rem;
  --space-3xl: 8rem;

  /* 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);
}

.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);
}

.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: 40px;
  width: auto;
}

.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);
}

.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;
  z-index: 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 */
}

.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background-color: var(--color-primary-dark); /* Fallback verhindert weißen Blitz */
}

.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: linear-gradient(
    135deg,
    rgba(30, 63, 43, 0.85) 0%,
    rgba(45, 90, 61, 0.6) 50%,
    rgba(30, 63, 43, 0.4) 100%
  );
}

.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__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-xl) 0;
}

.stat {
  text-align: center;
}

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

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}


/* --- 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;
}

.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 --- */
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  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);
  text-decoration: none;
  transition: var(--transition-base);
}

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

.google-badge__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.google-badge__rating {
  display: flex;
  flex-direction: column;
}

.google-badge__score {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.google-badge__number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text);
  line-height: 1;
}

.google-badge__stars {
  display: flex;
  gap: 1px;
  color: #FBBC04;
}

.google-badge__stars svg {
  width: 16px;
  height: 16px;
}

.google-badge__count {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.google-badge--large {
  padding: var(--space-lg) var(--space-xl);
}

.google-badge--large .google-badge__logo {
  width: 44px;
  height: 44px;
}

.google-badge--large .google-badge__number {
  font-size: 2rem;
}

.google-badge--large .google-badge__stars svg {
  width: 20px;
  height: 20px;
}

.google-badge--large .google-badge__count {
  font-size: 0.9rem;
}

/* Google source label on testimonial cards */
.testimonial-card__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.testimonial-card__source svg {
  width: 16px;
  height: 16px;
}

.testimonial-card__time {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* 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-color: var(--color-primary);
  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%;
}

.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;
}

.footer__links a {
  font-size: 0.9rem;
  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;
}

.google-badge:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* 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%
  );
}


/* --- 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);
}

@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;
  }
}


/* --- 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-color: var(--color-bg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 1000;
  }

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

  .nav__link {
    font-size: 1.2rem;
  }

  /* 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;
  }

  .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;
  }

  .hero__actions {
    flex-direction: column;
  }

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