/* ============================================================
   menschen.digital – Design-System
   Reines CSS, keine externen Ressourcen, keine Webfont-CDNs.
   Palette: Nachtblau / Papier / Ultramarin / Signal
   ============================================================ */

:root {
  --ink: #0e1626;
  --ink-soft: #3a4356;
  --paper: #f5f6f2;
  --paper-deep: #ecede7;
  --ultra: #2333c9;
  --ultra-deep: #161f7e;
  --tint: #e6e9f9;
  --line: #d6d9d0;
  --signal: #e7a11c;
  --white: #ffffff;

  --font-display: "Avenir Next", "Futura", "Segoe UI", -apple-system, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Consolas", "Liberation Mono", monospace;

  --max: 1160px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ultra); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--ultra);
  outline-offset: 2px;
}

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

/* ---------- Kopf ---------- */
.site-head {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 4px solid var(--ultra);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--signal); }
.brand small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #8f9ab3; margin-top: 2px;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #c6cddd; font-size: 0.82rem; font-weight: 600;
  padding: 7px 11px; border-radius: var(--radius); letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--white); background: var(--ultra); }

/* ---------- Eyebrow / Label ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ultra);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ultra); display: inline-block; }
.on-dark .eyebrow { color: var(--signal); }
.on-dark .eyebrow::before { background: var(--signal); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding: 72px 0 0;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  line-height: 1.06; letter-spacing: -0.025em;
  max-width: 17ch; margin: 20px 0 22px; color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero .lede {
  font-size: 1.12rem; color: #b8c0d3; max-width: 62ch; margin-bottom: 40px;
}
.hero .lede strong { color: var(--white); font-weight: 600; }

/* ---------- CPC-Skala (Signaturelement) ---------- */
.cpc-scale { padding: 34px 0 64px; }
.cpc-scale-title {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #7f8aa5; margin-bottom: 34px;
}
.scale-track { position: relative; height: 6px; background: #232e47; border-radius: 3px; }
.scale-track::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, #2333c9 0%, #4a5be0 55%, #e7a11c 100%);
  border-radius: 3px; opacity: 0.9;
}
.scale-axis {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; color: #7f8aa5;
}
.scale-points { position: relative; height: 120px; margin-top: -132px; margin-bottom: 8px; }
.scale-point { position: absolute; bottom: 0; transform: translateX(-50%); text-align: center; }
.scale-point .pin {
  width: 2px; height: 34px; background: #55617f; margin: 0 auto;
}
.scale-point .cap {
  width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 3px solid var(--ultra); margin: 0 auto 0;
  transition: transform 0.15s ease;
}
.scale-point.hot .cap { border-color: var(--signal); }
.scale-point .tag {
  font-family: var(--font-mono); font-size: 0.68rem; color: #aab3c9;
  white-space: nowrap; margin-bottom: 6px; display: block;
}
.scale-point .tag b { display: block; color: var(--white); font-size: 0.78rem; }
.scale-point:hover .cap { transform: scale(1.4); }
@media (max-width: 860px) {
  .scale-points { display: none; }
  .cpc-scale { padding-bottom: 40px; }
  .scale-list-mobile { display: block !important; margin-top: 26px; }
}
.scale-list-mobile { display: none; font-family: var(--font-mono); font-size: 0.78rem; color: #aab3c9; }
.scale-list-mobile li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #232e47; list-style: none; }
.scale-list-mobile b { color: var(--white); }

/* ---------- Sektionen ---------- */
.section { padding: 76px 0; }
.section.tinted { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em;
  line-height: 1.12; margin: 16px 0 18px; max-width: 26ch;
}
.section .intro { max-width: 66ch; color: var(--ink-soft); margin-bottom: 44px; }

/* ---------- Cluster-Grid (Startseite) ---------- */
.cluster-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 980px) { .cluster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cluster-grid { grid-template-columns: 1fr; } }
.cluster {
  background: var(--white); padding: 30px 26px 26px; position: relative;
  display: flex; flex-direction: column; min-height: 100%;
  transition: background 0.15s ease;
}
a.cluster { color: inherit; }
a.cluster:hover { text-decoration: none; background: var(--tint); }
.cluster .cpc {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--ultra-deep); background: var(--tint);
  display: inline-block; padding: 4px 9px; border-radius: var(--radius);
  align-self: flex-start; margin-bottom: 16px;
}
.cluster.hot .cpc { background: #fdf1d7; color: #8a5f0b; }
.cluster h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.cluster p { font-size: 0.92rem; color: var(--ink-soft); flex-grow: 1; }
.cluster .state {
  margin-top: 20px; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.cluster .state.live { color: var(--ultra); }
.cluster .state.build { color: #8a8f83; }

/* ---------- Rechen-Sektion ---------- */
.math-band { background: var(--ink); color: var(--paper); }
.math-band h2 { color: var(--white); }
.math-band .intro { color: #b8c0d3; }
.math-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2a3550; border: 1px solid #2a3550; }
@media (max-width: 900px) { .math-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .math-row { grid-template-columns: 1fr; } }
.math-cell { background: var(--ink); padding: 26px 22px; }
.math-cell .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--signal); letter-spacing: -0.02em;
}
.math-cell .lbl { font-size: 0.85rem; color: #9aa4bc; margin-top: 8px; line-height: 1.45; }

/* ---------- Artikel / Pillar ---------- */
.article-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 58px 0 46px; }
.article-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -0.025em;
  line-height: 1.08; margin: 16px 0 18px; max-width: 22ch;
}
.article-head .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 64ch; }
.meta-line {
  margin-top: 26px; font-family: var(--font-mono); font-size: 0.72rem;
  color: #7d8276; letter-spacing: 0.08em; display: flex; gap: 22px; flex-wrap: wrap;
}
.article-body { padding: 56px 0 30px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
@media (max-width: 940px) { .article-grid { grid-template-columns: 1fr; } }
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.015em; margin: 52px 0 16px; line-height: 1.2;
  padding-top: 22px; border-top: 3px solid var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin: 34px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 700; }
.prose .key {
  background: var(--tint); border-left: 4px solid var(--ultra);
  padding: 18px 22px; margin: 26px 0; font-size: 0.97rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 22px 0; }
.prose th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-align: left; color: var(--ink-soft);
  border-bottom: 2px solid var(--ink); padding: 10px 12px 8px;
}
.prose td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; }
.prose td.mono, .prose .mono { font-family: var(--font-mono); font-size: 0.84rem; }

/* ---------- Seitenleiste ---------- */
.rail { position: sticky; top: 24px; display: grid; gap: 20px; }
.rail-box { background: var(--white); border: 1px solid var(--line); padding: 24px 22px; }
.rail-box h4 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.rail-box ul { list-style: none; }
.rail-box li { border-bottom: 1px solid var(--line); }
.rail-box li:last-child { border-bottom: 0; }
.rail-box li a { display: block; padding: 9px 0; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.rail-box li a:hover { color: var(--ultra); text-decoration: none; }
.rail-box .cpc-mini { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ultra-deep); float: right; }

/* ---------- Rechner ---------- */
.calc {
  background: var(--ink); color: var(--paper);
  padding: 34px 30px 30px; margin: 34px 0; border-top: 4px solid var(--signal);
}
.calc h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); margin: 0 0 6px !important;
}
.calc .hint { font-size: 0.85rem; color: #9aa4bc; margin-bottom: 24px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-bottom: 26px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.calc label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #9aa4bc; margin-bottom: 8px;
}
.calc input, .calc select {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-mono);
  background: #1a2439; color: var(--white); border: 1px solid #34405e; border-radius: var(--radius);
}
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #34405e; border: 1px solid #34405e; }
@media (max-width: 640px) { .calc-out { grid-template-columns: 1fr; } }
.calc-out div { background: #111b30; padding: 20px 18px; }
.calc-out .val { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--signal); }
.calc-out .lbl { font-size: 0.8rem; color: #9aa4bc; margin-top: 6px; }
.calc .note { font-size: 0.76rem; color: #78829c; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 4px; font-weight: 700; font-size: 1rem;
  font-family: var(--font-display); list-style: none; position: relative; padding-right: 40px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 14px;
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--ultra);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 20px; color: var(--ink-soft); max-width: 66ch; }

/* ---------- Vergleichstabelle HR-Software ---------- */
.compare-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 760px; }
.compare th {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--ink); color: var(--paper);
  text-align: left; padding: 12px 14px; position: sticky; top: 0;
}
.compare td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:nth-child(even) td { background: var(--paper); }
.compare td:first-child { font-weight: 700; font-family: var(--font-display); white-space: nowrap; }
.compare .mono { font-family: var(--font-mono); font-size: 0.8rem; }
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  padding: 3px 8px; border-radius: 2px; background: var(--tint); color: var(--ultra-deep);
  margin: 2px 3px 2px 0; white-space: nowrap;
}

/* ---------- Status-Banner (in Ausbau) ---------- */
.build-banner {
  background: #fdf1d7; border: 1px solid #ecd193; color: #6d4c07;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 12px 18px; margin: 0 0 34px;
}

/* ---------- Fuß ---------- */
.site-foot { background: var(--ink); color: #9aa4bc; margin-top: 80px; }
.site-foot .wrap { padding-top: 48px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-foot h5 {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: #6f7a94; margin-bottom: 14px;
}
.site-foot p { font-size: 0.86rem; max-width: 52ch; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c6cddd; font-size: 0.86rem; }
.site-foot a:hover { color: var(--white); }
.foot-legal {
  border-top: 1px solid #2a3550; margin-top: 40px; padding-top: 22px;
  font-family: var(--font-mono); font-size: 0.7rem; color: #6f7a94;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.acquire {
  border: 1px solid #34405e; padding: 16px 18px; margin-top: 22px;
  font-size: 0.8rem; color: #9aa4bc; max-width: 52ch;
}
.acquire b { color: var(--signal); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ---------- Legal-Seiten ---------- */
.legal { max-width: 760px; padding: 56px 0 20px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.02em; margin-bottom: 30px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 36px 0 10px; }
.legal p, .legal ul { margin-bottom: 14px; color: var(--ink-soft); font-size: 0.95rem; }
.legal ul { margin-left: 22px; }
.legal .placeholder { background: #fdf1d7; padding: 0 4px; font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
