/* KlarDocs – klardocs.de
   Design-System: warme Erdtöne (Creme/Espresso), Akzent-Rot,
   Editorial-Typografie: Serifen-Akzent + Sans + Mono-Labels */

:root {
  --espresso: #210C02;
  --cream: #FAF7F1;
  --cream-deep: #F6F1EA;
  --accent: #C42121;
  --accent-dark: #A01B1B;
  --neutral: #E5E2DA;
  --muted: #7B6556;
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--cream); }

h1, h2, h3 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }

a { color: inherit; }

/* ---------- Layout-Helfer ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--cream-deep); }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.section-label::before { content: ""; width: 34px; height: 1px; background: var(--muted); }

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  max-width: 18ch;
  margin-bottom: 24px;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196, 33, 33, 0.28); }
.btn--ghost { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--espresso); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav--scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--neutral);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 34px; justify-self: center; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s, color 0.3s;
}
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.nav-cta { justify-self: end; }
.nav-cta .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-burger {
  display: none;
  justify-self: end;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  position: relative; z-index: 120;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--espresso);
  margin: 5px auto;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav--open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-burger span:nth-child(2) { opacity: 0; }
.nav--open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--cream);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.nav--open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 28px; font-weight: 700; text-decoration: none; padding: 10px;
  letter-spacing: -0.02em;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 74px;
  overflow: hidden;
}
.hero-inner { width: 100%; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.hero-kicker::before { content: ""; width: 44px; height: 1.5px; background: var(--accent); }

.hero h1 {
  font-size: clamp(44px, 8.2vw, 108px);
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.hero-sub {
  margin-top: 30px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--muted);
  max-width: 54ch;
}
.hero-ctas { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust {
  margin-top: clamp(48px, 7vh, 84px);
  padding-top: 28px;
  border-top: 1px solid var(--neutral);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-trust div {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hero-trust div::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero-Dekor: schwebende Dokumentkarten (SVG) */
.hero-docs { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: -1; }
.hero-docs svg { display: block; }

/* ---------- Feature-Blöcke ---------- */

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.feature-block {
  background: #fff;
  border: 1px solid var(--neutral);
  border-radius: 20px;
  padding: clamp(28px, 3.4vw, 48px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feature-block:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(33, 12, 2, 0.09); }
.feature-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
.feature-block h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
.feature-block p { color: var(--muted); margin-bottom: 22px; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--neutral);
  position: relative;
  font-size: 15.5px;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 2px; top: 19px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Modul-Roadmap ---------- */

.module-list { margin-top: 48px; border-top: 1px solid var(--neutral); }
.module-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 2fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--neutral);
  transition: background 0.3s, padding-left 0.4s var(--ease);
}
.module-row:hover { background: rgba(255,255,255,0.6); padding-left: 20px; }
.module-row .m-num { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.15em; }
.module-row .m-name { font-weight: 700; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.01em; }
.module-row .m-desc { color: var(--muted); font-size: 15.5px; }
.module-row .m-tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.m-tag--now { background: var(--espresso); color: var(--cream); }
.m-tag--soon { background: transparent; border: 1px solid var(--muted); color: var(--muted); }
.m-tag--later { background: var(--neutral); color: var(--espresso); }

/* ---------- Rote Vollbreite-Sektion (E-Rechnung) ---------- */

.break-section { background: var(--accent); color: var(--cream); }
.break-section .section-label { color: rgba(250,247,241,0.75); }
.break-section .section-label::before { background: rgba(250,247,241,0.75); }
.break-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.break-section h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.025em; }
.break-section h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; }
.break-section p { color: rgba(250,247,241,0.88); margin: 22px 0 32px; max-width: 56ch; }
.break-facts { display: grid; gap: 0; border-top: 1px solid rgba(250,247,241,0.3); }
.break-facts div {
  padding: 20px 0;
  border-bottom: 1px solid rgba(250,247,241,0.3);
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
}
.break-facts .bf-year { font-family: var(--serif); font-style: italic; font-size: 26px; }
.break-facts .bf-text { font-size: 14.5px; text-align: right; color: rgba(250,247,241,0.85); max-width: 26ch; }

/* ---------- Sicherheit ---------- */

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 52px; }
.security-item { border-top: 2px solid var(--espresso); padding-top: 22px; }
.security-item .s-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.security-item h3 { font-size: 20px; margin-bottom: 10px; }
.security-item p { font-size: 15px; color: var(--muted); }

/* ---------- CTA / Early Access ---------- */

.cta-section { text-align: center; }
.cta-section .section-title { margin-left: auto; margin-right: auto; max-width: 16ch; }
.cta-section .lead { margin: 0 auto 40px; }
.cta-note { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

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

.faq { margin-top: 48px; border-top: 1px solid var(--neutral); }
.faq-item { border-bottom: 1px solid var(--neutral); }
.faq-q {
  width: 100%;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  text-align: left;
  padding: 26px 8px;
  font-family: var(--sans);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--espresso);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1.5px solid var(--espresso);
  border-radius: 50%;
  position: relative;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor;
  transition: background 0.3s;
}
.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-a-inner { padding: 0 8px 28px; color: var(--muted); max-width: 72ch; }

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

.footer { background: var(--espresso); color: var(--cream); padding: clamp(48px, 7vw, 88px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(250,247,241,0.18); }
.footer .logo { color: var(--cream); font-size: 26px; }
.footer-tagline { margin-top: 14px; color: rgba(250,247,241,0.65); font-size: 15px; max-width: 34ch; }
.footer h4 {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250,247,241,0.55); margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(250,247,241,0.85); text-decoration: none; font-size: 15px; transition: color 0.3s; }
.footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(250,247,241,0.55);
}
.footer-bottom a { color: rgba(250,247,241,0.85); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Rechtliche Unterseiten ---------- */

.legal-hero { padding: 150px 0 40px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.03em; }
.legal-hero .lead { margin-top: 16px; }
.legal-body { padding: 24px 0 110px; max-width: 780px; }
.legal-body h2 { font-size: 23px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.legal-body h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: #3d2b1e; font-size: 15.5px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 10px 0; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent); }
.legal-body address { font-style: normal; line-height: 1.8; margin: 12px 0; }
.legal-meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

/* ---------- Scroll-Reveal ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 1020px) {
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .break-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .module-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 4px; }
  .module-row .m-num { order: -1; }
  .module-row .m-tag { justify-self: start; margin-top: 6px; }
  .security-grid { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; }
  .break-facts div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .break-facts .bf-text { text-align: left; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-docs { display: none; }
}
