/* ===== Custom Properties ===== */
:root {
  --green-dark: #2d6a4f;
  --green-mid: #40916c;
  --green-light: #52b788;
  --green-pale: #d8f3dc;
  --white: #fefefe;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --transition: .2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ===== Utility ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--gray-600); }
.section-subtitle { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-mid); margin-bottom: 0.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-mid); }
.btn-outline { border: 2px solid var(--green-dark); color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,254,254,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 56px;
  width: auto;
}
.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green-mid);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-dark); }
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; }
.nav-links .btn-primary.active { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--green-pale) 0%, var(--white) 60%);
}
.hero-content { max-width: 640px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 strong { color: var(--green-dark); }
.hero p { font-size: 1.125rem; margin-bottom: 2rem; color: var(--gray-600); line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.0625rem; }

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9375rem; }

/* ===== Features / Trust ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-item { text-align: center; }
.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.feature-item h3 { margin-bottom: 0.25rem; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--green-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.0625rem; }
.cta-banner .btn-primary { background: #fff; color: var(--green-dark); }
.cta-banner .btn-primary:hover { background: var(--green-pale); }

/* ===== About page ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/3;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}
.value-card h3 { margin-bottom: 0.5rem; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 0.125rem; }
.contact-item p { font-size: 0.9375rem; }
.map-placeholder {
  aspect-ratio: 16/10;
  background: var(--gray-50);
  border: 2px dashed var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* ===== Service Detail (Leistungen) ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
img.service-detail-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-detail-text h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-detail-text p { margin-bottom: 1rem; }
.service-detail-text ul { margin-bottom: 1rem; }
.service-detail-text li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
}
.service-detail-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
}

/* ===== Legal pages ===== */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal-content p { margin-bottom: 0.75rem; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-content li { color: var(--gray-600); margin-bottom: 0.25rem; list-style: disc; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.875rem; padding: 0.25rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--green-light); }

/* ===== Page Header (Unterseiten) ===== */
.page-header {
  padding: 3rem 0;
  background: linear-gradient(160deg, var(--green-pale) 0%, var(--white) 60%);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { font-size: 1.0625rem; max-width: 560px; }

/* ===== Gewerbe Section ===== */
.gewerbe-banner {
  background: linear-gradient(160deg, var(--gray-900) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 4rem 0;
}
.gewerbe-banner .section-subtitle { color: var(--green-light); }
.gewerbe-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.gewerbe-banner > .container > p { color: rgba(255,255,255,.75); margin-bottom: 2.5rem; font-size: 1.0625rem; }
.gewerbe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.gewerbe-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.gewerbe-item h3 { color: #fff; font-size: 1rem; margin-bottom: 0.375rem; }
.gewerbe-item p { color: rgba(255,255,255,.7); font-size: 0.9375rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.25rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .hero { padding: 3rem 0; }
  .about-content,
  .contact-grid,
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
