/* ==== EcoScan — Base ==== */

:root{
  /* Farben */
  --bg: #ffffff;
  --bg-alt: #f5f7f6;
  --bg-deep: #0a1410;
  --surface: #ffffff;
  --border: #e5e9e7;
  --border-strong: #c9d2cd;

  --text: #0b1410;
  --text-muted: #5a6760;
  --text-subtle: #8a958f;
  --text-inverse: #ffffff;

  --brand: #1fbf6b;
  --brand-dark: #118a4c;
  --brand-deep: #0d2b1f;
  --brand-soft: #e6f7ee;
  --accent: #0d2b1f;

  --shadow-sm: 0 1px 2px rgba(11,20,16,.04), 0 1px 3px rgba(11,20,16,.06);
  --shadow-md: 0 4px 16px rgba(11,20,16,.06), 0 2px 6px rgba(11,20,16,.04);
  --shadow-lg: 0 24px 60px -20px rgba(11,20,16,.18), 0 8px 24px -12px rgba(11,20,16,.10);
  --shadow-glow: 0 20px 60px -20px rgba(31,191,107,.35);

  /* Typo */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1200px;
  --max-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  /* Spacing-Skala */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Easings */
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

button, a, .btn, .choice, .range-btn, .header-cta, .chat-fab {
  touch-action: manipulation;
}

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

a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s var(--ease-soft);
}
a:hover { color: var(--brand-dark); }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

p { margin: 0 0 var(--s-4); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; }

ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
li { margin-bottom: var(--s-1); }

/* Layout-Container */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: var(--max-narrow); }

section { padding: clamp(56px, 8vw, 120px) 0; position: relative; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }
.bg-alt { background: var(--bg-alt); }
.bg-deep {
  background: var(--bg-deep);
  color: var(--text-inverse);
}
.bg-deep h1, .bg-deep h2, .bg-deep h3 { color: var(--text-inverse); }
.bg-deep p { color: rgba(255,255,255,.78); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--brand);
}
.bg-deep .eyebrow { color: var(--brand); }
.bg-deep .eyebrow::before { background: var(--brand); }

.lead {
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  color: var(--text-muted);
  max-width: 64ch;
  line-height: 1.6;
}

/* Visually hidden für a11y */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip Link */
.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--text); color: var(--text-inverse);
  padding: 8px 14px; border-radius: 6px;
  z-index: 9999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--text-inverse); }

/* Reveal-on-Scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
