/* kareu — Marketing-Website
   Design-System aus dem Briefing: Tannengrün #1F5F4E, Inter, viel Weißraum. */

:root {
  --green: #1F5F4E;
  --green-dark: #194D40;
  --soft: #E8F0ED;
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --border: #E4E4E0;
  --warm: #C2410C;
  --success: #15803D;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(25, 77, 64, .04), 0 8px 28px rgba(25, 77, 64, .07);
  --shadow-lg: 0 20px 60px rgba(25, 77, 64, .14);
  --maxw: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

svg.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }
.trust-line svg.icon { width: 17px; height: 17px; }
.checklist svg.icon { width: 20px; height: 20px; }
.plan li svg.icon { width: 18px; height: 18px; }
.phone-mic svg.icon { width: 30px; height: 30px; }

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

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

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--soft);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); background: var(--soft); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color:#fff; }
.btn-light { background:#fff; color: var(--green-dark); }
.btn-light:hover { background: var(--soft); color: var(--green-dark); }
.btn-sm { padding: .55rem 1.05rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--green); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--text); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--green); text-decoration: none; }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 24px; gap: 1rem;
  }
  .site-header.open .header-cta {
    display: flex; flex-direction: column; position: absolute; top: calc(68px + 0px); left: 0; right: 0;
    background: var(--bg); padding: 0 24px 1.2rem; gap: .6rem; transform: translateY(calc(100% * 0));
  }
  .site-header.open .nav { padding-bottom: .4rem; }
  .site-header.open .header-cta { position: static; padding: 0 24px 1.2rem; }
  .site-header.open .header-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Sections base ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.bg-soft { background: var(--soft); }
.bg-white { background: var(--card); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(31,95,78,.10) 0%, rgba(31,95,78,0) 55%),
    var(--bg);
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.22rem; color: #2c3a35; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.trust-line { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.trust-line svg { color: var(--success); flex: none; }

.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9/18.5; background: var(--card);
  border-radius: 38px; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 16px; position: relative;
}
.phone::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 6px; background: var(--border); border-radius: 999px;
}
.phone-screen { height: 100%; background: var(--bg); border-radius: 26px; padding: 26px 16px 16px; overflow: hidden; }
.phone-row { height: 12px; background: var(--soft); border-radius: 6px; margin: 0 0 12px; }
.phone-row.short { width: 55%; }
.phone-row.tall { height: 46px; border-radius: 10px; }
.phone-mic {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(31,95,78,.4);
}
.phone-mic::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(31,95,78,.25); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .trust-line { justify-content: center; }
  .hero-visual { order: -1; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .4rem; }
.card p { color: var(--muted); margin: 0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem;
}

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.feature + .feature { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.feature.media-left .feature-text { order: 2; }
.feature-media {
  background: linear-gradient(160deg, var(--soft), #fff);
  border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--green);
  box-shadow: var(--shadow); overflow: hidden;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media .placeholder { display:flex; flex-direction: column; align-items:center; gap:.6rem; color: var(--green); opacity: .65; }
.feature-media .placeholder svg { width: 46px; height: 46px; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature p { font-size: 1.08rem; color: #3a443f; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.media-left .feature-text { order: 0; }
  .feature-media { order: -1; }
}

/* ---------- Use cases ---------- */
.usecase { border-top: 3px solid var(--green); }

/* ---------- Security ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist svg { color: var(--success); flex: none; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; margin-bottom: .8rem;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--green); box-shadow: var(--shadow-lg); position: relative; }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green); color:#fff; font-size: .78rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 999px;
}
.plan .price { font-size: 1.9rem; font-weight: 700; color: var(--green-dark); margin: .3rem 0; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan .plan-desc { color: var(--muted); margin-bottom: 1.2rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .65rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; }
.plan li svg { color: var(--success); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; }
.prose p { white-space: pre-line; color: #3a443f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--gap); align-items: start; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--soft); }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-consent input { width: auto; margin-top: 4px; }
.contact-aside { background: var(--soft); border-radius: var(--radius); padding: 1.8rem; }
.contact-aside dt { font-weight: 600; margin-top: 1rem; }
.contact-aside dd { margin: .1rem 0 0; }
.flash { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }
.flash-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.78); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--gap); }
.site-footer .logo { color: #fff; }
.site-footer p { color: rgba(255,255,255,.7); max-width: 38ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem;
}
.footer-bottom a { color: rgba(255,255,255,.78); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Responsive grids ---------- */
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (progressive enhancement) ----------
   Content is visible by default. Only elements below the initial
   viewport get hidden (.pre) by JS, then animate in on scroll. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; }
  .reveal { transition: none; }
  .phone-mic::after { animation: none; }
  html { scroll-behavior: auto; }
}
