/* ============================================================
   Solar-Agents — Marketing-Website
   Markenfarben identisch zur App (resources/css/app.css):
   Azur #00a4ef → Tiefblau #0b539b, Gelb #ffc107, Grün #3cc261.
   Reines statisches CSS, kein Build-Step. Mobile-first.
   ============================================================ */

:root {
  --sa-primary:      #00a4ef;
  --sa-primary-dark: #0b539b;
  --sa-accent:       #ffc107;
  --sa-success:      #3cc261;
  --sa-danger:       #e52427;

  --bg:        #f7fafc;
  --surface:   #ffffff;
  --text:      #16212b;
  --muted:     #5a6b7b;
  --border:    #e6edf3;

  --gradient:  linear-gradient(135deg, var(--sa-primary) 0%, var(--sa-primary-dark) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,164,239,.08), rgba(11,83,155,.08));

  --shadow-sm: 0 1px 2px rgba(16,33,43,.06), 0 2px 6px rgba(16,33,43,.05);
  --shadow-md: 0 8px 24px rgba(11,83,155,.10);
  --shadow-lg: 0 20px 50px rgba(11,83,155,.18);

  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      1180px;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sa-primary-dark); text-decoration: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sa-primary-dark);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  padding: .4rem .85rem; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sa-accent); }

.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

.section-head { max-width: 64ch; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--sa-accent); color: #2b2300; box-shadow: 0 8px 24px rgba(255,193,7,.35); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: var(--surface); color: var(--sa-primary-dark); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--gradient);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand b { color: var(--sa-primary-dark); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--sa-primary-dark); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1100px 600px at 80% -10%, rgba(255,193,7,.25), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(60,194,97,.22), transparent 55%),
              var(--gradient);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 .5H40M.5 0V40' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.hero .eyebrow { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.25rem; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.75rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem .75rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust span::before { content: "✓"; color: var(--sa-accent); font-weight: 800; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2rem; font-weight: 800; color: var(--sa-primary-dark); }
.stat .lbl { color: var(--muted); font-size: .95rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,164,239,.35); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gradient-soft); color: var(--sa-primary-dark); margin-bottom: 1rem;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Highlight (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split + .split { margin-top: clamp(2.5rem, 6vw, 5rem); }
.split .media {
  border-radius: var(--radius-lg); padding: 2rem; min-height: 320px;
  background: var(--gradient); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.split .media.alt { background: linear-gradient(135deg, #1b2a36, #0b539b); }
.badge-pill { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--sa-accent); color: #2b2300; padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.chatbubble { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: .85rem 1rem; margin: .5rem 0; font-size: .95rem; }
.chatbubble.me { background: rgba(255,255,255,.92); color: var(--text); margin-left: 2.5rem; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: .7rem; color: var(--text); }
.check-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sa-success); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; margin-top: .15rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.plan.featured { border: 2px solid var(--sa-primary); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan.top { background: linear-gradient(180deg, #0b1c2b, #0b539b); color: #fff; border: none; }
.plan.top .plan-price small, .plan.top .plan-name { color: rgba(255,255,255,.85); }
.plan.top .plan-feats li { color: rgba(255,255,255,.92); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sa-accent); color: #2b2300; font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.plan-name { font-weight: 800; font-size: 1.05rem; color: var(--sa-primary-dark); letter-spacing: .02em; }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 2.8em; margin: .25rem 0 1rem; }
.plan.top .plan-desc { color: rgba(255,255,255,.8); }
.plan-price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .25rem; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { color: var(--muted); font-size: .95rem; font-weight: 600; }
.plan-billing { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.plan.top .plan-billing { color: rgba(255,255,255,.7); }
.plan-feats { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.plan-feats li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .65rem; font-size: .95rem; }
.plan-feats li::before { content: "✓"; flex: none; color: var(--sa-success); font-weight: 800; }
.plan.top .plan-feats li::before { color: var(--sa-accent); }
.plan-feats li.muted { color: var(--muted); }
.plan-feats li.muted::before { content: "–"; color: var(--muted); }
.price-note { text-align: center; color: var(--muted); margin-top: 1.5rem; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--sa-primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.25rem; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }
/* Längeren Fließtext breiter laufen lassen (etwa Überschriftenbreite) statt schmal zentriert. */
.cta-band--wide p { max-width: 68ch; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1620; color: #b9c6d2; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #b9c6d2; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; color: #8597a6; }

/* ---------- Reveal-on-scroll (FOUC-safe: ohne JS bleibt alles sichtbar) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured, .plan.top { transform: none; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn--outline { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1.25rem; box-shadow: var(--shadow-md); }
  .nav.open .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
