/* =========================================================
   Buddy's Vision — Styles
   Design-Sprache: warmes Salbei-Papier, Tinte-Dunkelgrün,
   Lime-Akzent. Fonts lokal (fonts/fonts.css). Mobile first.
   ========================================================= */

:root {
  --paper: #ece8da;
  --paper-soft: #e3dfcf;
  --paper-deep: #d8d4c2;
  --ink: #16281f;
  --ink-soft: #3c4c41;
  --ink-faint: #6b7a6e;
  --lime: #c6f24e;
  --lime-deep: #a8d834;
  --line: rgba(22, 40, 31, 0.14);
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(22, 40, 31, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(198, 242, 78, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(168, 181, 160, 0.22), transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--ink); }

a { color: inherit; }

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

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink); box-shadow: 0 0 0 4px var(--lime); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--lime); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .brand-dot { color: var(--lime-deep); }

.main-nav { display: none; gap: 1.4rem; }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  padding: 0.35em 0.9em;
  cursor: pointer;
  font: inherit;
}
.lang-btn.is-active { background: var(--ink); color: var(--lime); }

@media (min-width: 820px) {
  .main-nav { display: flex; }
}

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

.hero { padding: 4rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .hero { padding: 6.5rem 0 5.5rem; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: "● "; color: var(--lime-deep); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  display: inline-block;
  background: var(--lime);
  padding: 0.02em 0.18em;
  border-radius: 0.18em;
  transform: rotate(-1.2deg);
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-hint {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* Voice console */
.console {
  background: var(--ink);
  color: #dfe8db;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1.1deg);
}
.console-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(223, 232, 219, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(223, 232, 219, 0.55);
}
.console-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(223, 232, 219, 0.25); }
.console-dot:first-child { background: var(--lime); }
.console-body {
  padding: 1.1rem 1.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  min-height: 15rem;
  max-height: 15rem;
  overflow: hidden;
}
.console-line { margin-bottom: 0.75rem; animation: fadeUp 0.4s ease both; }
.console-you { color: #f3f6ef; }
.console-agent { color: var(--lime); }
.console-prefix { opacity: 0.7; }
.console-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  padding: 0 1.2rem 1rem;
}
.console-wave span {
  width: 4px;
  border-radius: 2px;
  background: var(--lime);
  height: 30%;
  animation: wave 1.1s ease-in-out infinite;
}
.console-wave span:nth-child(2n) { animation-delay: 0.15s; height: 70%; }
.console-wave span:nth-child(3n) { animation-delay: 0.3s; height: 45%; }
.console-wave span:nth-child(5n) { animation-delay: 0.45s; height: 90%; }

@keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Slogan band ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.band-track {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  animation: marquee 28s linear infinite;
}
.band-track .lime { color: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
}

/* ---------- Pillars ---------- */

.pillars-intro { padding: 4.5rem 0 1rem; text-align: center; }
.pillars-intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}
.pillars-intro p { max-width: 62ch; margin: 1rem auto 0; color: var(--ink-soft); }

.pillar { padding: 4rem 0; }
.pillar + .pillar { border-top: 1px dashed var(--line); }
.pillar-grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 940px) {
  .pillar-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .pillar:nth-of-type(even) .pillar-copy { order: 2; }
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
}
.pillar h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0.3rem 0 1rem;
}
.pillar h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.45rem;
  border-radius: 3px;
  background: var(--lime);
  margin-top: 0.6rem;
}
.pillar-copy p { color: var(--ink-soft); max-width: 52ch; }
.pillar-actions { margin-top: 1.6rem; }
.pillar-meta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* Video placeholder (16:9, Querformat) */
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(22, 40, 31, 0.045) 14px 28px),
    var(--paper-soft);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.video-frame video { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.video-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin: 0 auto 0.8rem;
}
.video-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Funnel overlay ---------- */

.funnel-overlay[hidden] { display: none; }
.funnel-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(22, 40, 31, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.funnel-card {
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 2rem;
  position: relative;
}
@media (min-width: 640px) { .funnel-card { padding: 2.2rem 2.4rem 2.4rem; } }

.funnel-head { display: flex; justify-content: space-between; align-items: center; }
.funnel-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.funnel-close {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.funnel-close:hover { background: var(--paper-deep); }

.funnel-bar {
  height: 5px;
  border-radius: 3px;
  background: var(--paper-deep);
  margin: 0.8rem 0 1.6rem;
  overflow: hidden;
}
.funnel-bar-fill { height: 100%; background: var(--lime-deep); border-radius: 3px; transition: width 0.3s ease; }

.funnel-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.funnel-sub { color: var(--ink-soft); font-size: 0.95rem; margin: -0.6rem 0 1.4rem; }

.funnel-options { display: grid; gap: 0.65rem; }
.option {
  font: inherit;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--paper) 60%, white 10%);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
  color: var(--ink);
  line-height: 1.4;
}
.option:hover { border-color: var(--ink); transform: translateX(3px); }
.option.is-selected { border-color: var(--ink); background: var(--lime); }
.funnel-options-multi { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.option-multi { text-align: center; }

.funnel-textarea, .funnel-input {
  width: 100%;
  font: inherit;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  resize: vertical;
}
.funnel-textarea:focus, .funnel-input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--lime); }

.funnel-next { margin-top: 1.3rem; width: 100%; }
.funnel-back {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.3rem 0.2rem;
}
.funnel-back:hover { color: var(--ink); }
.funnel-error { color: #a03325; font-size: 0.88rem; margin: 0.5rem 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.funnel-result-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0.4rem 0 1.2rem;
}

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

.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: rgba(236, 232, 218, 0.85);
  padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--paper);
}
.footer-tagline { margin-top: 0.6rem; color: var(--lime); font-size: 0.95rem; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(236, 232, 218, 0.5);
  margin-bottom: 0.8rem;
}
.site-footer p, .site-footer a { font-size: 0.92rem; line-height: 1.7; }
.site-footer a { color: rgba(236, 232, 218, 0.85); }
.site-footer a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(236, 232, 218, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(236, 232, 218, 0.45);
}
