/* ============================================================
   ZEROvia.ai — Werkstatt-Landingpage
   Design DNA aus zerovia.ch (Cal Sans + Karla, #0C2B4A + #95C11F)
   Für .ai: Dunkelblau dominant, Grün als seltener Akzent.
   ============================================================ */

@font-face {
  font-family: "Cal Sans";
  src: url("fonts/CalSans-SemiBold.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marken-Farben */
  --blue-900: #071e35;
  --blue-800: #0c2b4a;   /* Primär */
  --blue-700: #143a63;
  --blue-600: #1b4a7d;
  --blue-050: #f4f7fb;

  --green-500: #95c11f; /* Akzent aus .ch */
  --green-600: #7ea410;

  --ink: #0f1a26;
  --body: #404040;
  --muted: #6b7684;
  --line: #e5e7eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #ffffff;
  --paper-2: #f6f8fb;

  /* Type */
  --font-display: "Cal Sans", "Karla", system-ui, sans-serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(12,43,74,0.06);
  --shadow-md: 0 12px 32px -12px rgba(12,43,74,0.18);
  --container: 1200px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.lede.light { color: rgba(255,255,255,0.75); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--blue-800);
  margin-bottom: 20px;
}
.eyebrow.light {
  color: #ffffff !important;
  background: rgba(149,193,31,0.16);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(149,193,31,0.45);
}
.eyebrow.light .eyebrow-dot { background: #95c11f; box-shadow: 0 0 0 3px rgba(149,193,31,0.25); }
.eyebrow-dot { width: 8px; height: 8px; background: var(--blue-800); border-radius: 50%; display: inline-block; }
.eyebrow-dot.green { background: var(--green-500); box-shadow: 0 0 0 4px rgba(149,193,31,.18); }

.accent { color: var(--green-500); }
.accent-green { color: var(--green-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 4px;
  color: var(--blue-800);
}
.brand-logo { height: 26px; width: auto; }
.brand-suffix {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-800);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-suffix.light { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--blue-800);
  transition: right .3s var(--ease);
}
.nav a:hover { color: var(--blue-800); }
.nav a:hover::after { right: 0; }
.nav-external { color: var(--muted); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-800); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.mobile-nav.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .2s var(--ease), border-color .18s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-primary {
  background: var(--blue-800);
  color: #fff;
  border-color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: rgba(12,43,74,0.2);
}
.btn-ghost:hover { border-color: var(--blue-800); background: rgba(12,43,74,0.04); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: #fff;
  padding: 96px 0 120px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(149,193,31,0.10), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(27,74,125,0.55), transparent 60%);
  pointer-events: none;
}
.blueprint {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { color: #fff; margin-bottom: 12px; }
.hero-sub {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  font-size: 0.62em;
  letter-spacing: -0.005em;
}
.hero-copy .lede { color: rgba(255,255,255,0.78); max-width: 48ch; font-size: 1.2rem; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.hero-cta .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero-marks {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 0; margin: 0; list-style: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.hero-marks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-marks li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
  display: inline-block;
}
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 60px rgba(0,0,0,0.35)); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin: 0 auto 56px; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.section-dark {
  background: var(--blue-800);
  color: #fff;
  overflow: hidden;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .blueprint-dark { opacity: 0.6; }

.section-blue {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-800));
  color: #fff;
  position: relative; overflow: hidden;
}
.section-blue::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  pointer-events: none;
}
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }

/* ---------- Cards (Probleme) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(12,43,74,0.25);
  box-shadow: var(--shadow-md);
}
.card-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--green-500);
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); margin: 0; }

/* ---------- Usecases ---------- */
.usecase {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.usecase:hover {
  transform: translateY(-3px);
  border-color: rgba(149,193,31,0.5);
  background: rgba(255,255,255,0.05);
}
.usecase-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-500);
  padding: 5px 10px;
  border: 1px solid rgba(149,193,31,0.45);
  border-radius: 999px;
  margin-bottom: 18px;
}
.usecase p { color: rgba(255,255,255,0.78); }
.usecase-list { list-style: none; padding: 0; margin: 20px 0 0; }
.usecase-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  border-top: 1px dashed rgba(255,255,255,0.14);
}
.usecase-list li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 14px; height: 2px; background: var(--green-500);
}

/* ---------- Governance ---------- */
.governance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: start;
}
.principles { list-style: none; padding: 0; margin: 0; }
.principles li {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.p-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue-800);
  line-height: 1;
}
.principles h4 { margin-bottom: 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Offers ---------- */
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  position: relative; z-index: 1;
}
.offer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #fff;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.offer:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.35); }
.offer.highlight {
  background: linear-gradient(180deg, rgba(149,193,31,0.10), rgba(149,193,31,0.02));
  border-color: rgba(149,193,31,0.45);
}
.offer-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
}
.offer.highlight .offer-tag { border-color: rgba(149,193,31,0.6); color: var(--green-500); }
.offer h3 { font-size: 1.9rem; margin-bottom: 12px; }
.offer-lede { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.offer-list { list-style: none; padding: 0; margin: 22px 0 28px; }
.offer-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px dashed rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
}
.offer-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--green-500);
  font-weight: 700;
}
.offer .btn-primary {
  background: #fff;
  color: var(--blue-800);
  border-color: #fff;
}
.offer .btn-primary:hover { background: var(--green-500); border-color: var(--green-500); color: var(--blue-900); }

/* ---------- Offer Price ---------- */
.offer-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 8px 0 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--green-500);
  border-radius: 4px;
}
.offer-price-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.offer-price-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  list-style: none;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-800); }
.faq-icon {
  position: relative;
  width: 18px; height: 18px; flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--blue-800);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item p {
  padding: 0 4px 22px;
  color: var(--body);
  max-width: 72ch;
  margin: 0;
}

/* ---------- Closing ---------- */
.closing {
  padding: 120px 0;
  text-align: center;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.closing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.closing-h {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  margin-bottom: 24px;
}
.closing p { max-width: 60ch; margin: 0 auto 32px; color: var(--body); font-size: 1.1rem; }
/* Inline-Links im Closing dezent unterstreichen, aber Buttons NICHT überschreiben */
.closing p a[href] { color: var(--blue-800); border-bottom: 1px solid rgba(12,43,74,0.3); }
.closing p a[href]:hover { border-bottom-color: var(--blue-800); }
.closing .btn-primary { color: #fff; }
.closing .btn-primary:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h5 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-nav a, .footer-nav span {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--green-500); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .governance-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .closing { padding: 80px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
}

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