/* ==========================================================================
   GreenLife Dienstleistungen GmbH & Co. KG — greenlife.gmbh
   Farben aus dem Firmenlogo: Hellgrün #52AE32, Dunkelgrün #006633
   ========================================================================== */

:root {
  --brand: #52ae32;
  --brand-dark: #006633;
  --brand-deep: #00522a;
  --brand-tint: #eef7e9;
  --ink: #17251b;
  --muted: #56665c;
  --line: #e2ece0;
  --bg: #ffffff;
  --bg-alt: #f4f9f1;
  --footer-bg: #0e1f15;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(14, 31, 21, 0.08);
  --shadow-md: 0 10px 30px rgba(14, 31, 21, 0.10);
  --shadow-lg: 0 18px 50px rgba(14, 31, 21, 0.16);
  --container: 1180px;
}

/* ---------- Reset & Basis ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 750;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

section {
  scroll-margin-top: 96px;
}

/* Skip-Link für Tastaturnutzer */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(82, 174, 50, 0.35);
}

.btn-primary:hover {
  background: #479a2b;
  color: #fff;
}

.btn-dark {
  background: var(--brand-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  height: 52px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.main-nav .btn {
  padding: 0.6rem 1.3rem;
  border-bottom: none;
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(6, 34, 18, 0.82) 0%,
    rgba(6, 34, 18, 0.55) 45%,
    rgba(6, 34, 18, 0.18) 100%
  );
}

.hero-content {
  max-width: 40rem;
  padding-block: clamp(5rem, 12vh, 8rem);
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5e58a;
  margin-bottom: 1rem;
}

/* Zusatz in der Hero-Overline, z. B. "(ehemals Rinderknecht)" — deutlich kleiner */
.kicker-sub {
  display: inline-block;
  font-size: 0.76em;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  color: #fff;
  text-wrap: balance;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- USP-Leiste ---------- */

.usp {
  background: var(--brand-dark);
  color: #fff;
  padding-block: 1.6rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem 2rem;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
}

.usp-item svg {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: #a5e58a;
}

.usp-item small {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

/* ---------- Abschnitts-Köpfe ---------- */

.section {
  padding-block: clamp(3.8rem, 8vw, 6.2rem);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head .kicker {
  color: var(--brand);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ---------- Leistungs-Karten ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.4rem, 3vw, 2rem);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  padding: 1.6rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.28rem;
  color: var(--brand-dark);
}

.card-body p {
  color: var(--muted);
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.98rem;
}

.card-body li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.card-body li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Vorsorge-Band ---------- */

.cta-band {
  background: linear-gradient(115deg, var(--brand-deep) 0%, var(--brand-dark) 55%, #1d7a3f 100%);
  color: #fff;
  padding-block: clamp(3.2rem, 7vw, 5rem);
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 38rem;
}

.cta-band .kicker {
  color: #a5e58a;
}

.cta-contact {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}

.cta-contact .phone {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin: 0.4rem 0 1rem;
}

.cta-contact .phone:hover {
  color: #a5e58a;
}

.cta-contact p {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

/* ---------- Über uns ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.about-copy p {
  color: var(--muted);
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font-weight: 550;
}

.about-points li::before {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(1px);
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.4rem, 3vw, 2rem);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card svg {
  width: 46px;
  height: 46px;
  color: var(--brand);
  margin-inline: auto;
  margin-bottom: 0.9rem;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-card a {
  font-weight: 650;
  text-decoration: none;
  color: var(--brand-dark);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--brand);
}

.contact-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2.2rem;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.8rem;
}

.footer-brand-chip {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.1rem;
}

.footer-brand-chip img {
  height: 44px;
  width: auto;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #a5e58a;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

/* Agentur-Credit in der Rechtsleiste — Link durch Unterstreichung erkennbar */
.footer-credit a {
  text-decoration: underline;
}

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.page-hero {
  background: linear-gradient(115deg, var(--brand-deep), var(--brand-dark));
  color: #fff;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.2em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 44rem;
}

.prose {
  max-width: 50rem;
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}

.prose h2 {
  font-size: 1.5rem;
  color: var(--brand-dark);
  margin-top: 2.2em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.18rem;
  margin-top: 1.8em;
}

.prose address {
  font-style: normal;
  background: var(--bg-alt);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.2em;
  line-height: 1.75;
}

.prose ul {
  color: var(--ink);
}

.prose .note {
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-size: 0.97rem;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  text-decoration: none;
  margin-bottom: 1.6rem;
}

/* ---------- Einblend-Animationen ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .card-media img,
  .contact-card {
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .cta-band-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
    max-height: 420px;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.6rem 1.2rem 1.2rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav .btn {
    margin-top: 0.9rem;
    justify-content: center;
  }

  .brand img {
    height: 42px;
  }

  .hero {
    min-height: 78vh;
  }
}

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

  .footer-legal {
    justify-content: center;
    text-align: center;
  }

  .footer-legal ul {
    justify-content: center;
  }
}

/* ---------- Druck ---------- */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .nav-toggle {
    display: none;
  }
}
