/* ============================================================
   ClaimWing – Marketing Website
   Sage Forest + warme Creme (Palette aus apps/app/tailwind.config.js)
   Keine externen Fonts (DSGVO-sauber, kein Google-Fonts-Request).
   ============================================================ */

:root {
  /* Brand – Sage Forest */
  --brand-50:  #E8F3EC;
  --brand-100: #D4E8D4;
  --brand-200: #A8D5A8;
  --brand-300: #84B59F;
  --brand-400: #6B9E7A;
  --brand-500: #4A7C59;
  --brand-600: #3A6A47;
  --brand-700: #2C5F2D;
  --brand-800: #1E4220;
  --brand-900: #1A2E22;

  /* Creme / Surfaces */
  --cream-50:  #FFFFFF;
  --cream-100: #FAFAFA;
  --cream-200: #F5F1E8;
  --cream-300: #E8E3D8;
  --cream-400: #D4CEBE;

  /* Ink */
  --ink-900: #1A2E22;
  --ink-700: #2C2C2C;
  --ink-500: #666666;
  --ink-300: #9CA3AF;

  /* Status (Mock) */
  --status-open: #C44536;
  --status-work: #7A5921;
  --status-done: #4A7C59;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 3px rgba(26,46,34,.08), 0 1px 2px rgba(26,46,34,.04);
  --shadow-elev: 0 10px 30px rgba(26,46,34,.12), 0 4px 8px rgba(26,46,34,.06);

  --maxw: 1140px;
  --maxw-narrow: 760px;

  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--cream-50);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink-900); line-height: 1.15; font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand-700); color: #fff; }
.btn--primary:hover { background: var(--brand-800); transform: translateY(-1px); box-shadow: var(--shadow-elev); }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-300); }
.btn--ghost:hover { background: var(--brand-50); border-color: var(--brand-500); }
.btn--dark { background: var(--brand-900); color: #fff; }
.btn--dark:hover { background: #11201a; transform: translateY(-1px); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--cream-300); box-shadow: 0 1px 0 rgba(26,46,34,.04); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-700); }
.brand__mark { color: var(--brand-500); flex: none; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 21px; color: var(--ink-900); letter-spacing: -.01em; }
.brand__accent { color: var(--brand-500); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__accent { color: var(--brand-200); }

.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 15px; color: var(--ink-700); font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: var(--brand-700); }
.nav__cta { display: flex; gap: 10px; align-items: center; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: .2s; }

.nav__mobile { display: none; flex-direction: column; padding: 12px 24px 22px; border-top: 1px solid var(--cream-300); background: #fff; }
.nav__mobile a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--cream-200); }
.nav__mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--brand-200); }
.display {
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.display__accent { color: var(--brand-500); font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--brand-50), transparent 60%),
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.lede { font-size: 19px; color: var(--ink-500); max-width: 540px; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero__trust li { font-size: 15px; color: var(--ink-700); }

/* Hero mock */
.hero__visual { display: flex; justify-content: center; }
.mock {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elev);
  border: 1px solid var(--cream-300);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock__bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--cream-200); border-bottom: 1px solid var(--cream-300); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--cream-400); }
.mock__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mock__row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--cream-200); border-radius: var(--radius); }
.mock__badge { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.mock__badge--open { background: #fbeeec; color: var(--status-open); }
.mock__badge--work { background: #faf5eb; color: var(--status-work); }
.mock__badge--done { background: var(--brand-50); color: var(--status-done); }
.mock__lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.mock__lines i { height: 8px; border-radius: 4px; background: var(--cream-300); display: block; }
.mock__ai { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.mock__ai-dot { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--brand-500); position: relative; }
.mock__ai-dot::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 15px; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--cream-300); border-bottom: 1px solid var(--cream-300); background: var(--cream-100); }
.trustbar__inner { padding: 26px 24px; text-align: center; }
.trustbar__label { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-300); margin: 0 0 10px; }
.trustbar__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-weight: 600; color: var(--brand-700); }
.trustbar__items .dot { color: var(--cream-400); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--cream { background: var(--cream-100); }
.section--dark { background: var(--brand-900); color: var(--cream-200); }
.section--dark p { color: rgba(255,255,255,.78); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; letter-spacing: -.015em; }
.section__head--light h2 { color: #fff; }
.section__sub { font-size: 18px; color: var(--ink-500); margin: 0; }
.section--dark .section__sub { color: rgba(255,255,255,.75); }

/* ---------- Problem grid ---------- */
.problemgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.problemcard { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 26px; }
.problemcard h3 { font-size: 19px; margin: 0 0 10px; }
.problemcard p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-elev); border-color: var(--brand-200); }
.feature__icon { font-size: 30px; width: 58px; height: 58px; display: grid; place-items: center; background: var(--brand-50); border-radius: 14px; margin-bottom: 20px; }
.feature h3 { font-size: 21px; margin: 0 0 10px; }
.feature p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Branchen ---------- */
.branchen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.branche { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 28px; }
.branche__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-200); background: rgba(168,213,168,.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.branche h3 { color: #fff; font-size: 22px; margin: 0 0 10px; }
.branche p { font-size: 15px; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius-lg); padding: 30px 26px; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-700); color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin: 0 0 8px; }
.step p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 28px; background: var(--cream-200); border: 1px solid var(--cream-300); padding: 5px; border-radius: 999px; }
.billing-toggle__btn { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ink-500); cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle__btn.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-card); }
.billing-toggle__save { font-size: 12px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 2px 8px; border-radius: 999px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.plan--featured { border: 2px solid var(--brand-500); box-shadow: var(--shadow-elev); transform: translateY(-10px); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand-700); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; letter-spacing: .03em; }
.plan__name { font-size: 24px; margin: 0 0 6px; }
.plan__desc { font-size: 15px; color: var(--ink-500); margin: 0 0 22px; min-height: 44px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-serif); font-size: 44px; font-weight: 700; color: var(--ink-900); }
.plan__period { font-size: 15px; color: var(--ink-500); }
.plan__hint { font-size: 13px; color: var(--ink-300); margin: 6px 0 24px; }
.plan__feats { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan__feats li { font-size: 15px; padding-left: 28px; position: relative; color: var(--ink-700); }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-500); font-weight: 700; }

.enterprise {
  margin-top: 32px;
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.enterprise__copy h3 { font-size: 22px; margin: 0 0 8px; }
.enterprise__copy p { font-size: 15px; color: var(--ink-500); margin: 0; max-width: 640px; }

/* ---------- Security grid ---------- */
.securitygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.securitycard { background: #fff; border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 26px; }
.securitycard h3 { font-size: 18px; margin: 0 0 10px; }
.securitycard p { font-size: 15px; color: var(--ink-500); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--cream-300); border-radius: var(--radius); background: #fff; padding: 4px 22px; }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--ink-900); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; color: var(--brand-500); font-weight: 400; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 20px; color: var(--ink-500); font-size: 16px; }

/* ---------- Contact form ---------- */
.contact { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.95);
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-300); outline-offset: 1px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 11px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.field--check span { font-size: 14px; color: rgba(255,255,255,.8); }
.field--check a { color: var(--brand-200); text-decoration: underline; }
.contact__hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: #11201a; color: rgba(255,255,255,.7); padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__slogan { font-style: italic; color: var(--brand-200); margin: 14px 0 0; font-family: var(--font-serif); }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__cols h4 { color: #fff; font-family: var(--font-sans); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; }
.footer__cols a { display: block; font-size: 15px; padding: 5px 0; color: rgba(255,255,255,.7); transition: color .15s; }
.footer__cols a:hover { color: var(--brand-200); }
.footer__legal { display: flex; justify-content: space-between; padding-top: 24px; font-size: 14px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 12px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; }
.legal__meta { color: var(--ink-300); font-size: 14px; margin: 0 0 36px; }
.legal h2 { font-size: 23px; margin: 40px 0 12px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-700); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal address { font-style: normal; line-height: 1.7; }
.legal a { color: var(--brand-600); text-decoration: underline; }
.legal__note {
  margin: 36px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--warning-50, #FAF5EB);
  border: 1px solid var(--cream-400);
  color: var(--ink-500);
  font-size: 14px;
}
.legal__toc { background: var(--cream-100); border: 1px solid var(--cream-300); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px; }
.legal__toc strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin-bottom: 10px; }
.legal__toc ol { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .mock { max-width: 380px; }
  .problemgrid, .features, .branchen, .steps, .securitygrid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .enterprise { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: none; }
  .nav__mobile.is-open { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .contact__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .problemgrid, .features, .branchen, .steps, .securitygrid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
