/* =====================================================================
   Stoff-Wechsel-Analyse - Statische Webseite
   Farbpalette an Original (Avada-Theme) orientiert:
   - Primärgrün dunkel: #006633
   - Akzentgrün hell:   #3aaa35
   - Akzent Pastell:    #aad75b
   - Text dunkel:       #595f6b / #747474
   - Hintergrund:       #ffffff / #f7f9f7
   ===================================================================== */

:root {
  --primary: #006633;
  --primary-dark: #004d26;
  --accent: #3aaa35;
  --accent-light: #aad75b;
  --accent-soft: #cce890;
  --text: #4a4a4a;
  --text-soft: #747474;
  --text-heading: #595f6b;
  --bg: #ffffff;
  --bg-alt: #f7f9f7;
  --bg-soft: #f4f4f4;
  --border: #e0dede;
  --border-light: #eae9e9;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  --transition: all 0.25s ease;
  --container: 1170px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'PT Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Sans', 'Open Sans', sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  margin: 0 0 0.6em;
  line-height: 1.25;
}
h1 { font-size: 2.6rem; color: var(--primary); }
h2 { font-size: 1.9rem; color: var(--primary); }
h3 { font-size: 1.5rem; color: var(--accent); }
h4 { font-size: 1.15rem; color: var(--text-heading); }
h5 { font-size: 1.05rem; color: var(--text-heading); font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top Bar (Suche / Header oben) ---------- */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
.topbar a { color: #fff; opacity: 0.9; }
.topbar a:hover { opacity: 1; color: var(--accent-soft); }

/* ---------- Header (Logo zentriert wie Original "Middle Logo") ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-left, .nav-right {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-left li a, .nav-right li a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-heading);
  padding: 10px 4px;
  position: relative;
  display: inline-block;
}
.nav-left li a:hover, .nav-right li a:hover,
.nav-left li a.active, .nav-right li a.active {
  color: var(--primary);
}
.nav-left li a::after, .nav-right li a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-left li a:hover::after, .nav-right li a:hover::after,
.nav-left li a.active::after, .nav-right li a.active::after {
  transform: scaleX(1);
}

.logo {
  text-align: center;
}
.logo img {
  max-height: 90px;
  width: auto;
  margin: 0 auto;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  color: var(--primary);
  padding: 8px;
}
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border-light);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav li a {
  display: block;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}
.mobile-nav li a:hover { background: var(--bg-alt); color: var(--primary); }
.mobile-nav.open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 80px 24px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.78);
}
.hero-content {
  position: relative;
  max-width: 980px;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  color: var(--primary);
  margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.hero h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--accent);
  font-weight: 400;
  margin: 0;
}

/* ---------- Page Title Banner ---------- */
.page-title {
  background: var(--bg-alt);
  padding: 60px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.page-title h1 {
  margin: 0;
  font-size: 2.4rem;
  color: var(--primary);
}
.page-title .breadcrumb {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------- Section ---------- */
section { padding: 60px 0; }
.section-light { background: #fff; }
.section-alt { background: var(--bg-alt); }
.section-soft { background: var(--bg-soft); }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
}
.section-title h5 {
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ---------- Two-Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.two-col .text h2 { color: var(--primary); margin-top: 0; }
.two-col .text h3 { color: var(--accent); }

/* ---------- Feature Boxes / Vorteile ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 50px;
}
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  flex: 0 0 50px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(58, 170, 53, 0.25);
}
.feature h4 {
  margin: 4px 0 8px;
  color: var(--text-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.feature p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 20px 4px;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--accent); }
.faq-question .icon {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text);
}
.faq-answer-inner {
  padding: 0 4px 22px;
  color: var(--text-soft);
}
.faq-item.open .faq-answer { max-height: 1000px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* ---------- Quote / Testimonial ---------- */
.quote-section {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 100px 24px;
}
.quote-section::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 102, 51, 0.78);
}
.quote-section .container { position: relative; z-index: 1; }
.quote {
  font-family: 'PT Sans', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  max-width: 900px;
  margin: 0 auto 14px;
  line-height: 1.5;
}
.quote-author {
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--accent);
  background-image: linear-gradient(to top, var(--accent-light), var(--accent));
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(58, 170, 53, 0.3);
}
.btn:hover {
  background-image: linear-gradient(to top, var(--accent), var(--primary));
  color: #fff !important;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  background-image: none;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary);
  background-image: none;
  color: #fff !important;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.card .cover {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 { font-size: 1.2rem; color: var(--primary); margin: 0 0 10px; }
.card-body p { color: var(--text-soft); flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 14px; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.team-member {
  text-align: center;
}
.team-member img {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.team-member h3 { color: var(--primary); margin: 6px 0 4px; }
.team-member .role {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info p {
  font-size: 1.05rem;
  margin: 8px 0;
}
.contact-info .label {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-top: 18px;
  display: block;
}
.contact-info a { color: var(--primary); font-weight: 700; }
.map-wrap {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ---------- Legal pages (Datenschutz/Impressum/Disclaimer) ---------- */
.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 24px;
}
.legal h1 { color: var(--primary); margin-bottom: 30px; }
.legal h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--border-light);
}
.legal h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-top: 24px;
}
.legal h4 {
  font-size: 1.02rem;
  color: var(--text-heading);
  margin-top: 18px;
}
.legal p, .legal li {
  color: var(--text-soft);
  line-height: 1.75;
}
.legal ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f1f1f;
  color: #c8c8c8;
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}
.site-footer a {
  color: #fff;
  margin: 0 10px;
}
.site-footer a:hover { color: var(--accent-light); }
.site-footer .sep { color: #555; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .nav-left, .nav-right { display: none; }
  .logo { text-align: left; }
  .logo img { max-height: 60px; }
  .mobile-toggle { display: inline-block; justify-self: end; }

  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col img { max-width: 100%; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .quote-section { background-attachment: scroll; padding: 70px 24px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .team-member img { width: 180px; height: 180px; }
  .page-title { padding: 40px 24px 24px; }
  section { padding: 40px 0; }
}
