/* Kaliba24 — shared design system for the public marketing pages
   (index.html, haendler.html, impressum.html, datenschutz.html) */

/* Self-hosted (no requests to Google's servers — see Datenschutzerklärung §5). */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/instrument-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/instrument-sans-700.woff2') format('woff2'); }

:root {
  --navy: #0A1D3B;
  --navy-soft: #14294C;
  --white: #FFFFFF;
  --accent: #D8552F;
  --accent-dark: #C24E1E;
  --accent-light: #F0A184;

  --text-body: #33455E;
  --text-muted: #46586F;
  --text-faint: #6B7C93;
  --text-faint-2: #7C8CA3;
  --text-faint-3: #5B6B82;

  --border: #E2E8F0;
  --border-2: #DCE3EC;
  --border-3: #D9E1EC;
  --border-4: #CFD9E6;
  --border-5: #C9D5E4;
  --border-6: #E7ECF3;

  --bg-soft: #F4F7FA;

  --on-navy-1: #FFFFFF;
  --on-navy-2: #D3DDEC;
  --on-navy-3: #C7D3E6;
  --on-navy-4: #9FB4D4;
  --on-navy-5: #8899B2;
  --on-navy-6: #93A5BE;
  --on-navy-7: #A9B8CD;

  --error-bg: #FCEDE7;
  --error-border: #F3CFC1;
  --error-text: #B3401C;

  --font: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img, video { max-width: 100%; }

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

.dot { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border-5);
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-nav {
  background: var(--accent);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.btn-nav:hover { background: var(--accent-dark); color: var(--white); }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-nav-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-body); }
.nav-link:hover { color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--bg-soft);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 17px; font-weight: 700; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--navy); }

/* ---------- Section scaffolding ---------- */

.section { padding: 96px 24px; border-bottom: 1px solid var(--border); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-relative { position: relative; overflow: hidden; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.bg-decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.rule {
  width: 64px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 120px 24px 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.hero-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-media { min-height: 380px; display: flex; }
.hero-media video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: block;
}

/* ---------- Ablauf (3-step, landing) ---------- */

.steps { display: flex; flex-direction: column; gap: 48px; }
.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}
.step-row.reverse { direction: rtl; }
.step-row.reverse > * { direction: ltr; }
.step-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--accent-dark);
}
.step-row h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.step-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.step-media { min-height: 240px; display: flex; }
.step-media video {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: block;
}

/* ---------- Gebote ---------- */

.gebote-grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  align-items: center;
}
.gebote-grid h2 { margin: 0 0 16px; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; }
.gebote-grid > div > p.lead {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 46ch;
  text-wrap: pretty;
}
.gebote-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--border-2);
  padding-top: 28px;
  max-width: 46ch;
}
.gebote-points p.t { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.gebote-points p.d { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.gebote-video {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: contain;
  display: block;
}
/* ---------- Für Händler (dark) ---------- */

.haendler-header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.9);
}
.haendler-header .eyebrow { color: var(--accent-light); margin: 0; letter-spacing: 0.11em; }
.haendler-header .note { margin: 0; font-size: 13px; letter-spacing: 0.06em; color: var(--on-navy-5); }

.strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 6px; color: var(--on-navy-6); }

.haendler-lead-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 80px;
  align-items: end;
}
.haendler-lead-grid p { margin: 0; font-size: 18px; line-height: 1.65; color: #C9D5E4; max-width: 42ch; text-wrap: pretty; }

.haendler-points {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 56px;
}
.haendler-points > div { border-top: 2px solid var(--accent); padding-top: 22px; }
.haendler-points .nr { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--on-navy-5); }
.haendler-points h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); text-wrap: pretty; }
.haendler-points p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--on-navy-7); text-wrap: pretty; }

/* ---------- FAQ ---------- */

.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-wrap h2 { margin: 0 0 40px; font-size: 34px; font-weight: 700; letter-spacing: -0.025em; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--navy); text-align: left;
}
.faq-q .sym { font-size: 20px; color: var(--accent); flex-shrink: 0; line-height: 1; }
.faq-a { margin: 0; padding: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--text-body); max-width: 62ch; display: none; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA / waitlist card ---------- */

.cta-card {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: 14px;
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: center;
}
.cta-card h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; color: var(--white); text-wrap: pretty; }
.cta-card > div:first-child > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-navy-2); max-width: 44ch; text-wrap: pretty; }

.form-card {
  position: relative;
  background: var(--white); border-radius: 12px; padding: 26px;
  min-height: 396px; box-sizing: border-box;
}
.form-card.result { display: flex; flex-direction: column; justify-content: center; }
.role-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-body); }
.role-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.role-btn {
  height: 42px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border-4);
  background: var(--white); color: var(--text-muted); font-family: var(--font);
}
.role-btn.active { border-color: var(--accent); background: #FDF6F2; color: var(--error-text); }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field-grid label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--text-body);
}
.field-grid input {
  height: 44px; padding: 0 13px; border: 1px solid var(--border-4); border-radius: 8px;
  font-size: 15px; color: var(--navy); outline: none; font-family: var(--font);
}
.field-grid input:focus { border-color: var(--accent); }

.form-error {
  margin: 16px 0 0; font-size: 13px; color: var(--error-text);
  background: var(--error-bg); border: 1px solid var(--error-border); border-radius: 8px; padding: 10px 12px;
  display: none;
}
.form-error.show { display: block; }

.form-actions { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-actions .foot { margin: 0; font-size: 13px; color: #6B7C93; }

.wl-result-title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.wl-result-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,29,59,0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px; overflow: auto;
}
.modal-overlay.open { display: flex; }
.modal-box { width: 100%; max-width: 520px; background: var(--white); border-radius: 14px; padding: 30px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0 0 5px; font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.modal-head p { margin: 0; font-size: 14px; color: var(--text-faint-3); }
.modal-close {
  border: none; background: transparent; font-size: 20px; line-height: 1; color: #8A99AD; cursor: pointer; padding: 2px 4px;
}
.modal-close:hover { color: var(--navy); }
.modal-submit {
  margin-top: 20px; width: 100%; border: none; background: var(--accent); color: var(--white);
  height: 48px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.modal-submit:hover { background: var(--accent-dark); }
.modal-close-btn {
  width: 100%; border: 1px solid var(--border-4); background: var(--white); color: var(--text-body);
  height: 46px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font);
}
.modal-close-btn:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding: 132px 24px 48px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.legal-hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.legal-hero h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.legal-hero p.lead { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-body); max-width: 56ch; }
.legal-hero p.stand { margin: 20px 0 0; font-size: 14px; color: var(--text-faint-3); }

.legal-main { padding: 64px 24px 96px; }
.legal-body { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.legal-body h2 { margin: 0 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.legal-body h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.legal-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.75; color: var(--text-body); }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.legal-num { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent-dark); }
.legal-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.legal-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
  border: 1px solid var(--border); border-radius: 12px; padding: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .section { padding: 64px 20px; }
  .hero { padding: 104px 20px 48px; }
}
