@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Manrope-Light.woff2") format("woff2"),
       url("../fonts/Manrope-Light.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Manrope-Regular.woff2") format("woff2"),
       url("../fonts/Manrope-Regular.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Manrope-Medium.woff2") format("woff2"),
       url("../fonts/Manrope-Medium.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Manrope-SemiBold.woff2") format("woff2"),
       url("../fonts/Manrope-SemiBold.woff") format("woff");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Manrope-Bold.woff2") format("woff2"),
       url("../fonts/Manrope-Bold.woff") format("woff");
}

:root {
  color-scheme: light dark;
  --bg: #fbfaf5;
  --bg-card: #ffffff;
  --bg-deep: #14201a;
  --bg-soft: #f3f1e9;
  --header-bg: rgba(251, 250, 245, 0.85);
  --primary: #2f7a3e;
  --primary-dark: #1f5a2c;
  --accent: #7bb04a;
  --text: #1a2419;
  --text-soft: #4a544b;
  --muted: #7a8079;
  --border: #e6e3d8;
  --btn-primary-bg: #1a2419;
  --btn-primary-fg: #fbfaf5;
  --btn-primary-bg-hover: #1f5a2c;
  --btn-primary-fg-hover: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, 0.04), 0 4px 14px rgba(20, 32, 26, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 32, 26, 0.08);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1612;
    --bg-card: #1a221c;
    --bg-deep: #0a110d;
    --bg-soft: #151c17;
    --header-bg: rgba(15, 22, 18, 0.78);
    --primary: #6fc97a;
    --primary-dark: #92d99c;
    --accent: #9fd068;
    --text: #ebe9df;
    --text-soft: #b0b6ad;
    --muted: #858b83;
    --border: #2a352e;
    --btn-primary-bg: #6fc97a;
    --btn-primary-fg: #0f1612;
    --btn-primary-bg-hover: #9fd068;
    --btn-primary-fg-hover: #0f1612;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--primary-dark); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.05;
}
h1 em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header.scrolled .nav {
  padding-top: 11px;
  padding-bottom: 11px;
}
.site-header.scrolled .brand-logo { transform: scale(0.92); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.35s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.brand-name {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 0 clamp(70px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(123, 176, 74, 0.18) 0%, transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(47, 122, 62, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero-image {
  position: absolute;
  top: 50%;
  right: clamp(0px, 4vw, 80px);
  width: clamp(240px, 38%, 460px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 860px) {
  .hero-image { display: none; }
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  max-width: 640px;
  margin-top: 24px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(70px, 9vw, 110px) 0;
}
section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--bg-soft); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-lead {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 122, 62, 0.3);
  box-shadow: var(--shadow-md);
}
.feature-card:hover .feature-icon {
  transform: scale(1.06);
  background: rgba(123, 176, 74, 0.22);
}
.feature-card:hover .btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(123, 176, 74, 0.14);
  color: var(--primary);
  margin-bottom: 22px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p {
  flex: 1;
  color: var(--text-soft);
  margin: 0;
  font-size: 0.97rem;
}
.feature-card .btn {
  align-self: flex-start;
  margin-top: 24px;
}

/* ---------- About / Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #2f7a3e 0%, #14201a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.split-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 70% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(123, 176, 74, 0.35) 0%, transparent 60%);
}
.split-figure img {
  position: relative;
  width: 56%;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s var(--ease);
}
.split-figure:hover img { transform: scale(1.04); }
.split-content h2 { margin-bottom: 20px; }
.split-content p {
  color: var(--text-soft);
  font-size: 1.02rem;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--bg-deep);
  color: #e8e6dc;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 100% 0%, rgba(123, 176, 74, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.contact-card h2 { color: #fdfcf5; }
.contact-card p { color: #c8ccc1; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(123, 176, 74, 0.4);
}
.contact-list a {
  color: #fdfcf5;
  font-weight: 500;
}
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(123, 176, 74, 0.18);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-list li:hover .contact-icon { transform: scale(1.08); }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa195;
  display: block;
  margin-bottom: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Legal page ---------- */
.legal {
  padding: clamp(60px, 9vw, 110px) 0;
}
.legal-content {
  max-width: 760px;
}
.legal-content h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 48px;
  margin-bottom: 14px;
}
.legal-content p,
.legal-content address {
  color: var(--text-soft);
  font-style: normal;
}
.legal-content address { margin-bottom: 1em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
  color: var(--primary);
  font-weight: 500;
}
.back-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.back-link:hover .back-arrow { transform: translateX(-4px); }

/* ---------- Unterseiten ---------- */
.page-hero {
  position: relative;
  padding: clamp(44px, 6vw, 78px) 0 clamp(40px, 5vw, 66px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 55% at 85% 0%, rgba(123, 176, 74, 0.16) 0%, transparent 60%),
    radial-gradient(45% 40% at 0% 100%, rgba(47, 122, 62, 0.09) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-top: 0;
}
.page-hero .lead {
  margin-top: 20px;
  margin-bottom: 32px;
}

/* ---------- Ablauf ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
  flex-shrink: 0;
}
.step-list h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step-list p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Reveal animation ---------- */
@keyframes fa-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Gruppen treten gestaffelt auf: der Container selbst bleibt stehen,
   seine Kinder steigen nacheinander ein. Fill-Mode ist bewusst
   "backwards" — nach dem Lauf gibt die Animation transform wieder frei,
   sonst blieben Hover-Effekte der Kinder wirkungslos. */
.reveal.stagger {
  opacity: 1;
  transform: none;
}
.reveal.stagger > * { opacity: 0; }
.reveal.stagger.in > * {
  opacity: 1;
  animation: fa-rise 0.7s var(--ease) backwards;
}
.reveal.stagger.in > *:nth-child(2) { animation-delay: 0.08s; }
.reveal.stagger.in > *:nth-child(3) { animation-delay: 0.16s; }
.reveal.stagger.in > *:nth-child(4) { animation-delay: 0.24s; }
.reveal.stagger.in > *:nth-child(5) { animation-delay: 0.32s; }
.reveal.stagger.in > *:nth-child(6) { animation-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .split-figure {
    aspect-ratio: 5 / 4;
    max-width: 420px;
    margin: 0 auto;
  }
  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stat-row { gap: 14px; }
  .stat-num { font-size: 1.7rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 28px 22px;
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
    animation: fa-rise 0.28s var(--ease);
  }
  .nav-toggle { display: inline-flex; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > :last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal.stagger > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
