/* ChatDecoder – shared stylesheet */

:root{
  --green: #1DA851;
  --green-dark: #14803D;
  --green-light: #E4F8EC;
  --green-pale: #F2FBF6;
  --amber: #F2A93B;
  --bg: #FDFBF7;
  --bg-alt: #F6F2E9;
  --surface: #FFFFFF;
  --text: #23281F;
  --text-muted: #5B6357;
  --text-faint: #838C7E;
  --border: #E7E1D3;
  --border-strong: #D7CFBA;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(30,40,25,.06);
  --shadow: 0 8px 24px rgba(30,40,25,.08);
  --shadow-lg: 0 16px 48px rgba(30,40,25,.14);
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark){
  :root{
    --green: #34D171;
    --green-dark: #24A857;
    --green-light: #123321;
    --green-pale: #0E1A13;
    --amber: #F2A93B;
    --bg: #14170F;
    --bg-alt: #1B1E15;
    --surface: #1E2218;
    --text: #EDEEE6;
    --text-muted: #AEB6A2;
    --text-faint: #7C8571;
    --border: #2C3123;
    --border-strong: #3A4130;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
h1,h2,h3,h4{ line-height:1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p{ margin: 0 0 1em; color: var(--text-muted); }
ul{ margin:0; padding:0; list-style:none; }

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

.eyebrow{
  display:inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.section-head{ max-width: 680px; margin: 0 auto 48px; text-align:center; }
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p{ font-size: 1.08rem; }
.bg-alt{ background: var(--bg-alt); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight: 700;
  font-size: .96rem;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary{ background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(29,168,81,.28); }
.btn-primary:hover{ background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary{ background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover{ border-color: var(--green); color: var(--green-dark); }
.btn-ghost{ background: transparent; color: var(--text); }
.btn-ghost:hover{ color: var(--green-dark); }
.btn-lg{ padding: 15px 30px; font-size: 1.02rem; }
.btn-block{ width:100%; }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  max-width: var(--maxw); margin:0 auto;
  gap: 20px;
}
.brand{ display:flex; align-items:center; gap:9px; font-weight:800; font-size:1.2rem; text-decoration:none; color:var(--text); flex-shrink:0; }
.brand-mark{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.1rem; box-shadow: var(--shadow-sm);
}
.brand small{ display:block; font-size:.62rem; font-weight:600; color: var(--text-faint); letter-spacing:.03em; }

.nav-links{ display:flex; align-items:center; gap:4px; flex:1; justify-content:center; }
.nav-links > li{ position:relative; }
.nav-links a.nav-link{
  display:block; padding:10px 14px; border-radius: 100px; font-weight:600; font-size:.93rem;
  text-decoration:none; color: var(--text-muted);
}
.nav-links a.nav-link:hover{ background: var(--bg-alt); color: var(--text); }
.nav-links a.nav-link.active{ color: var(--green-dark); background: var(--green-light); }

.has-dropdown > .nav-link::after{ content:"▾"; margin-left:5px; font-size:.7em; }
.dropdown{
  position:absolute; top: calc(100% + 6px); left:0;
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 240px;
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: all .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ opacity:1; visibility:visible; transform: translateY(0); }
.dropdown a{
  display:flex; flex-direction:column; gap:2px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  text-decoration:none; color: var(--text);
  font-weight:600; font-size:.9rem;
}
.dropdown a span{ font-weight:500; font-size:.78rem; color: var(--text-faint); }
.dropdown a:hover{ background: var(--green-pale); color: var(--green-dark); }

.nav-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-toggle{ display:none; background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--text); }

@media (max-width: 940px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .nav-actions .btn-secondary{ display:none; }
  .site-header.nav-open .nav-links{
    display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0;
    background: var(--surface); border-bottom:1px solid var(--border); padding: 10px; box-shadow: var(--shadow);
    align-items:stretch; gap:2px;
  }
  .site-header.nav-open .dropdown{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none; display:none; margin-left:10px;
  }
  .site-header.nav-open .has-dropdown.open .dropdown{ display:flex; flex-direction:column; }
}

/* Hero */
.hero{ padding: 64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center; }
.hero h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.hero .lead{ font-size: 1.15rem; max-width: 540px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin: 28px 0 18px; }
.hero-note{ font-size:.85rem; color: var(--text-faint); }

/* Mock dashboard visual */
.mock{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px; position:relative;
}
.mock-topbar{ display:flex; gap:6px; margin-bottom:14px; }
.mock-dot{ width:10px; height:10px; border-radius:50%; background: var(--border-strong); }
.mock-chat{ background: var(--bg-alt); border-radius: var(--radius); padding:14px; display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.bubble{ max-width:78%; padding:8px 12px; border-radius: 14px; font-size:.83rem; }
.bubble.in{ background: var(--surface); border:1px solid var(--border); align-self:flex-start; border-bottom-left-radius:4px; }
.bubble.out{ background: var(--green-light); color: var(--green-dark); align-self:flex-end; border-bottom-right-radius:4px; font-weight:600; }
.bubble.voice{ display:flex; align-items:center; gap:8px; }
.mock-stats{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.mock-stat{ background: var(--bg-alt); border-radius: var(--radius-sm); padding:10px 12px; }
.mock-stat .num{ font-size:1.25rem; font-weight:800; color: var(--green-dark); }
.mock-stat .lbl{ font-size:.72rem; color: var(--text-faint); font-weight:600; }
.mock-bar{ height:6px; border-radius:4px; background: var(--border); overflow:hidden; margin-top:6px; }
.mock-bar > i{ display:block; height:100%; background: var(--green); }
.mock-badge{
  position:absolute; top:-14px; right:22px; background: var(--amber); color:#3a2a05;
  font-size:.72rem; font-weight:800; padding:6px 12px; border-radius:100px; box-shadow: var(--shadow);
}

@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

/* Hero photo accent */
.hero-photo{
  position:absolute; left:-28px; top:-28px; width:118px; z-index:2;
  border-radius: var(--radius); border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg); overflow:hidden; background: var(--surface);
  transform: rotate(-4deg);
}
.hero-photo img{ display:block; width:100%; height:88px; object-fit:cover; }
@media (max-width: 640px){ .hero-photo{ display:none; } }

/* Trust strip */
.trust-strip{ padding: 30px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--bg-alt); }
.trust-items{ display:flex; flex-wrap:wrap; justify-content:center; gap: 14px 34px; }
.trust-item{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:.92rem; color: var(--text-muted); }
.trust-item .ic{ font-size:1.2rem; }

/* Feature grid */
.grid-4{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2,1fr); } .grid-3{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.card:hover{ box-shadow: var(--shadow); }
.card .ic{
  width:46px; height:46px; border-radius:12px; background: var(--green-light);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:14px;
}
.card h3{ font-size:1.08rem; margin-bottom:8px; }
.card p{ font-size:.93rem; margin-bottom:0; }

/* Photo cards (use cases) */
.card-photo{ padding:0; overflow:hidden; }
.card-photo .photo{ position:relative; height:150px; }
.card-photo .photo img{ width:100%; height:100%; object-fit:cover; }
.card-photo .ic{
  position:absolute; left:16px; bottom:-18px; margin:0;
  border:3px solid var(--surface); box-shadow: var(--shadow-sm);
}
.card-photo .body{ padding: 26px 22px 22px; }

/* Use case tabs */
.usecase-nav{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom: 40px; }
.usecase-nav a{
  padding: 9px 18px; border-radius:100px; border:1px solid var(--border-strong);
  text-decoration:none; font-weight:700; font-size:.88rem; color: var(--text-muted); background: var(--surface);
}
.usecase-nav a:hover{ border-color: var(--green); color: var(--green-dark); }

.usecase-photo{ border-radius: var(--radius-lg); overflow:hidden; margin-bottom:28px; box-shadow: var(--shadow); }
.usecase-photo img{ width:100%; height:260px; object-fit:cover; display:block; }
@media (max-width: 700px){ .usecase-photo img{ height:170px; } }

.usecase-block{ padding: 60px 0; border-top:1px solid var(--border); }
.usecase-block:first-of-type{ border-top:none; }
.usecase-head{ display:flex; gap:16px; align-items:flex-start; margin-bottom: 28px; }
.usecase-head .ic{ font-size:2.2rem; flex-shrink:0; }
.usecase-head h2{ font-size:1.5rem; margin-bottom:4px; }
.usecase-head .who{ font-size:.85rem; font-weight:700; color: var(--green-dark); text-transform:uppercase; letter-spacing:.03em; }

.case-study{
  background: var(--green-pale); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 30px; margin-top: 22px;
}
.case-study .tag{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; color: var(--green-dark); }
.case-study h4{ font-size:1.1rem; margin: 6px 0 14px; }
.case-study dl{ display:grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin:0; }
.case-study dt{ font-weight:700; font-size:.85rem; color: var(--text); }
.case-study dd{ margin:0; font-size:.92rem; color: var(--text-muted); }

/* Pricing */
.pricing-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items:stretch; }
@media (max-width: 900px){ .pricing-grid{ grid-template-columns: 1fr; } }
.price-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display:flex; flex-direction:column; box-shadow: var(--shadow-sm);
  position:relative;
}
.price-card.featured{ border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card .badge-top{
  position:absolute; top:-13px; left:26px; background: var(--green); color:#fff;
  font-size:.7rem; font-weight:800; padding:5px 12px; border-radius:100px;
}
.price-card h3{ font-size:1.1rem; margin-bottom:2px; }
.price-card .price{ font-size:2.2rem; font-weight:800; margin: 8px 0 4px; }
.price-card .price span{ font-size:1rem; font-weight:600; color: var(--text-faint); }
.price-card .desc{ font-size:.88rem; color: var(--text-muted); margin-bottom:18px; }
.price-card ul{ display:flex; flex-direction:column; gap:9px; margin-bottom: 22px; flex:1; }
.price-card li{ display:flex; gap:8px; font-size:.9rem; align-items:flex-start; }
.price-card li::before{ content:"✓"; color: var(--green-dark); font-weight:800; }

.credit-table{ width:100%; border-collapse:collapse; margin-top: 30px; background:var(--surface); border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); }
.credit-table th, .credit-table td{ text-align:left; padding: 13px 18px; font-size:.9rem; border-bottom:1px solid var(--border); }
.credit-table th{ background: var(--bg-alt); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color: var(--text-faint); }
.credit-table tr:last-child td{ border-bottom:none; }

/* Security */
.security-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width:800px){ .security-list{ grid-template-columns:1fr; } }
.security-item{ display:flex; gap:16px; }
.security-item .ic{ width:44px; height:44px; border-radius:12px; background: var(--green-light); display:flex; align-items:center; justify-content:center; font-size:1.3rem; flex-shrink:0; }
.security-item h4{ font-size:1rem; margin-bottom:4px; }
.security-item p{ font-size:.9rem; margin:0; }

/* Demo sandbox */
.demo-box{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow:hidden; }
.demo-grid{ display:grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px){ .demo-grid{ grid-template-columns:1fr; } }
.demo-chat{ padding: 24px; border-right:1px solid var(--border); }
@media (max-width: 860px){ .demo-chat{ border-right:none; border-bottom:1px solid var(--border); } }
.demo-chat h4, .demo-result h4{ font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; color: var(--text-faint); margin-bottom:14px; }
.demo-result{ padding: 24px; background: var(--bg-alt); }
.demo-result .placeholder{ font-size:.9rem; color: var(--text-faint); }
.demo-result .result-item{ margin-bottom:16px; }
.demo-result .result-item .lbl{ font-size:.78rem; font-weight:700; color: var(--text-muted); margin-bottom:6px; }
.demo-progress{ height:8px; background: var(--border); border-radius:5px; overflow:hidden; margin-bottom: 16px; display:none; }
.demo-progress > i{ display:block; height:100%; width:0%; background: var(--green); transition: width 1.1s ease; }

/* FAQ */
.faq-list{ max-width: 780px; margin: 0 auto; display:flex; flex-direction:column; gap: 12px; }
.faq-item{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; }
.faq-item summary{
  cursor:pointer; padding: 18px 22px; font-weight:700; font-size:.98rem;
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.3rem; color: var(--green-dark); flex-shrink:0; }
.faq-item[open] summary::after{ content:"–"; }
.faq-item .faq-a{ padding: 0 22px 20px; font-size:.93rem; color: var(--text-muted); }

/* Steps (Anleitungen) */
.steps{ counter-reset: step; display:flex; flex-direction:column; gap:18px; max-width: 720px; margin: 0 auto; }
.step{ display:flex; gap:18px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.step::before{
  counter-increment: step; content: counter(step);
  width:34px; height:34px; border-radius:50%; background: var(--green); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; flex-shrink:0;
}
.step h4{ margin:0 0 4px; font-size:1rem; }
.step p{ margin:0; font-size:.9rem; }

/* CTA band */
.cta-band{
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg); padding: 52px 40px; text-align:center; color:#fff;
}
.cta-band h2{ color:#fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p{ color: rgba(255,255,255,.9); max-width:560px; margin: 0 auto 24px; }
.cta-band .hero-cta{ justify-content:center; }
.cta-band .btn-secondary{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color:#fff; }
.cta-band .btn-secondary:hover{ background: rgba(255,255,255,.22); }
.cta-band .btn-primary{ background:#fff; color: var(--green-dark); box-shadow:none; }
.cta-band .btn-primary:hover{ background: #f2f2f2; }

/* Footer */
.site-footer{ background: var(--bg-alt); border-top:1px solid var(--border); padding: 56px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h5{ font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; color: var(--text-faint); margin-bottom: 14px; }
.footer-grid ul{ display:flex; flex-direction:column; gap:9px; }
.footer-grid a{ text-decoration:none; color: var(--text-muted); font-size:.9rem; }
.footer-grid a:hover{ color: var(--green-dark); }
.footer-about p{ font-size:.88rem; max-width: 320px; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; padding-top:22px; border-top:1px solid var(--border); font-size:.82rem; color: var(--text-faint); }

/* Page hero (sub-pages) */
.page-hero{ padding: 56px 0 20px; text-align:center; }
.page-hero h1{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-hero p{ max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* Legal pages */
.legal{ max-width: 780px; margin: 0 auto; }
.legal h2{ font-size:1.25rem; margin-top: 36px; }
.legal h3{ font-size:1.05rem; margin-top: 22px; }
.legal p, .legal li{ font-size: .95rem; color: var(--text-muted); }
.legal ul{ list-style: disc; padding-left: 22px; display:block; }
.legal li{ margin-bottom:6px; }
.legal table{ width:100%; border-collapse:collapse; margin: 16px 0; }
.legal td, .legal th{ text-align:left; padding:8px 10px; border-bottom:1px solid var(--border); font-size:.9rem; }

.badge-inline{ display:inline-block; background: var(--green-light); color: var(--green-dark); font-size:.75rem; font-weight:700; padding:3px 10px; border-radius:100px; margin-left:8px; vertical-align:middle; }
