/* ─── LOCAL FONTS (Open Sans – nur für Bootstrap-Buttons) ───── */
@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/OpenSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('fonts/OpenSans-SemiBold.ttf') format('truetype');
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --green:        #1a4731;
  --green-mid:    #2e7d52;
  --green-lt:     #4caf7d;
  --green-pale:   #c8e6d5;
  --green-mist:   #edf7f1;
  --green-dark:   #0f2a1c;
  --white:        #ffffff;
  --off-white:    #f7faf8;
  --charcoal:     #0c1a12;
  --gray:         #4b5e54;
  --gray-lt:      #8fa49a;
  --line:         rgba(26,71,49,.1);

  --nav-h:        68px;
  --px:           20px;
  --px-lg:        clamp(24px, 6vw, 96px);
  --sec-y:        96px;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    24px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.05);
  --shadow-md:    0 8px 28px rgba(0,0,0,.09);
  --shadow-lg:    0 24px 64px rgba(0,0,0,.13);
  --shadow-green: 0 8px 32px rgba(26,71,49,.28);

  --transition:   180ms ease;
  --transition-sl: 300ms ease;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-lt); outline-offset: 3px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #fff;
}
h1 em { font-style: normal; color: var(--green-pale); }

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--charcoal);
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--charcoal);
}

/* ─── EYEBROW ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--green-mid);
  flex-shrink: 0;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  height: var(--nav-h);
  padding-top: env(safe-area-inset-top);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--px-lg);
  padding-right: var(--px-lg);
  transition: height var(--transition-sl), box-shadow var(--transition-sl);
}
.nav.compact {
  height: 54px;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--charcoal);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.nav-logo-text span { color: var(--green); }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--charcoal); }
.nav-link:hover::after { transform: scaleX(1); }

/* CTA pill */
.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-size: .75rem !important;
  font-weight: 600 !important;
  letter-spacing: .03em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--green-mid) !important;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .26s ease, opacity .18s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 350;
  background: var(--white);
  flex-direction: column;
  padding: 2rem var(--px) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.drawer.open { display: flex; }
.drawer a {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.drawer a:active { color: var(--green); }
.drawer .d-cta {
  margin-top: 1.6rem;
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
  border: none;
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.stagger > *.in { opacity: 1; transform: none; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--green-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(12,26,18,.90) 0%,
    rgba(12,26,18,.72) 55%,
    rgba(12,26,18,.38) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px var(--px-lg) 72px;
  max-width: 780px;
}

/* Trust badge */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.88);
  font-size: .68rem;
  font-weight: 600;
  padding: .38rem .95rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  animation: fade-up .7s ease both .05s;
}
.trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Hero eyebrow */
.hero-eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: 1.1rem;
  animation: fade-up .7s ease both .18s;
}

/* Hero headline */
.hero h1 {
  margin-bottom: 1.4rem;
  animation: fade-up .8s ease both .3s;
}

/* Hero desc */
.hero-desc {
  font-size: clamp(.92rem, 1.3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.78;
  color: rgba(255,255,255,.72);
  max-width: 500px;
  margin-bottom: 2.4rem;
  animation: fade-up .7s ease both .44s;
}

/* Hero buttons */
.hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fade-up .7s ease both .56s;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-mid);
  color: var(--white);
  padding: .95rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: -.01em;
  box-shadow: 0 8px 32px rgba(46,125,82,.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #37a367;
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(46,125,82,.42);
  color: var(--white);
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,.3);
  padding: .92rem 1.7rem;
  border-radius: 50px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn-ghost-light:hover {
  border-color: rgba(255,255,255,.7);
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Hero trust strip */
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  animation: fade-up .7s ease both .68s;
}
.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
}
.trust-strip-item svg {
  width: 14px; height: 14px;
  stroke: var(--green-lt);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── HERO RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-bg {
    object-position: center center;
  }
  .hero-overlay {
    background: linear-gradient(
      175deg,
      rgba(12,26,18,.88) 0%,
      rgba(12,26,18,.70) 55%,
      rgba(12,26,18,.50) 100%
    );
  }
  .hero-content {
    padding: 48px var(--px) 56px;
  }
  .hero-trust-strip {
    gap: .4rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 100svh;
    align-items: flex-end;
  }
  .hero-bg {
    object-position: center 40%;
  }
  .hero-overlay {
    background: linear-gradient(
      to top,
      rgba(12,26,18,.95) 0%,
      rgba(12,26,18,.80) 45%,
      rgba(12,26,18,.40) 75%,
      rgba(12,26,18,.15) 100%
    );
  }
  .hero-content {
    padding: 0 var(--px) 44px;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.8rem);
    margin-bottom: 1rem;
  }
  .hero-desc {
    font-size: .9rem;
    margin-bottom: 1.6rem;
    max-width: 100%;
  }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: 1.8rem;
  }
  .btn-primary,
  .btn-ghost-light {
    justify-content: center;
    min-height: 52px;
    text-align: center;
  }
  .hero-trust-badge { font-size: .62rem; margin-bottom: 1rem; }
  .hero-eyebrow     { font-size: .62rem; margin-bottom: .75rem; }
  .hero-trust-strip { padding-top: 1.4rem; gap: .4rem .9rem; }
  .trust-strip-item { font-size: .72rem; }
}
