/* ===========================================================================
 * landing.css — openbilanz.de
 * Landing Page + Rechtsseiten (Impressum / Datenschutz / Haftungsausschluss).
 * Eigenständig, ohne externe Ressourcen (keine Fremd-Fonts, kein CDN) — damit
 * beim Besuch der Seite keinerlei Daten an Dritte abfließen.
 * Marken-Tonalität: präzise, institutionell — „amtliches Dokument trifft Werkzeug".
 * ========================================================================= */

:root {
  --navy:        #134276;   /* Markenblau */
  --navy-700:    #0e3460;
  --navy-900:    #0a2240;
  --teal:        #1e9f87;   /* Markengrün */
  --teal-600:    #15806c;
  --ink:         #10202b;
  --paper:       #f7f6f1;   /* warmes Bilanzpapier */
  --paper-2:     #efede4;
  --card:        #ffffff;
  --line:        #e4e2d6;
  --line-strong: #d2cfbe;
  --text:        #1b2832;
  --text-soft:   #57636d;
  --text-dim:    #8b8c80;
  --gut:         #1f7a4d;
  --warn:        #b4790e;

  --grad: linear-gradient(135deg, #134276 0%, #1e9f87 100%);

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1140px;
  --r: 14px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* feine Buchungslinien wie auf Kontopapier */
  background-image:
    linear-gradient(to bottom, transparent 31px, rgba(19,66,118,.045) 32px);
  background-size: 100% 32px;
}

::selection { background: var(--teal); color: #fff; }

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

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

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

/* ---- Eyebrow / Kicker -------------------------------------------------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
}

/* ===========================================================================
 * KOPFZEILE
 * ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,241,.86);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.site-head .brand { display: flex; align-items: center; gap: 0; }
.site-head .brand img { height: 30px; width: auto; }
.site-head nav { display: flex; align-items: center; gap: 6px; }
.site-head nav a {
  font-size: 14px; color: var(--text-soft); padding: 8px 12px;
  border-radius: 8px; font-weight: 500;
}
.site-head nav a:hover { color: var(--navy); background: var(--paper-2); text-decoration: none; }
.site-head nav a.nav-cta {
  color: #fff; background: var(--navy); font-weight: 600;
}
.site-head nav a.nav-cta:hover { background: var(--navy-700); color: #fff; }
.nav-mobile-hide { }
@media (max-width: 720px) {
  .nav-mobile-hide { display: none; }
  .site-head .wrap { padding: 0 18px; }
}

/* ===========================================================================
 * HERO
 * ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* dezenter Verlaufsschein in Markenfarben */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 380px at 88% -8%, rgba(30,159,135,.16), transparent 70%),
    radial-gradient(620px 420px at 6% 8%, rgba(19,66,118,.10), transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding: 78px 28px 64px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card);
  color: var(--text-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.wip { color: var(--warn); border-color: #e6d3a3; background: #fbf4e0; }
.badge.wip .dot { background: var(--warn); }
.badge.oss .dot { background: var(--teal); }
.badge.local .dot { background: var(--navy); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.018em;
  color: var(--ink);
  max-width: 16ch;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal);
}
.hero .lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.9vw, 21px);
  color: var(--text-soft);
  max-width: 56ch;
}

.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 15px 26px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #fff; background: var(--navy);
  box-shadow: 0 10px 26px -10px rgba(19,66,118,.7);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-primary .arrow { transition: transform .15s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  color: var(--navy); background: var(--card); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-lg { font-size: 18px; padding: 18px 34px; }

.hero-note {
  margin-top: 16px; font-size: 13.5px; color: var(--text-dim);
  font-family: var(--mono);
}

/* ===========================================================================
 * GENERISCHE SEKTION
 * ========================================================================= */
section { position: relative; }
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.015em; line-height: 1.14; color: var(--ink);
  margin-top: 12px;
}
.section-head p { margin-top: 14px; color: var(--text-soft); font-size: 18px; }

/* ---- Drei Kernversprechen --------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px 26px;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad);
}
.pillar .p-ico {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(19,66,118,.1), rgba(30,159,135,.14));
  color: var(--navy);
}
.pillar .p-ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pillar p { margin-top: 8px; font-size: 15px; color: var(--text-soft); line-height: 1.6; }

/* ---- Funktionsraster --------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; }
.feat { background: var(--card); padding: 24px 22px; }
.feat .f-num {
  font-family: var(--mono); font-size: 12px; color: var(--teal-600);
  font-weight: 700; letter-spacing: .05em;
}
.feat h4 { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.feat p { margin-top: 6px; font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ---- Zielgruppe -------------------------------------------------------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); padding: 30px 28px;
}
.aud-card .kicker { margin-bottom: 10px; }
.aud-card h3 { font-family: var(--serif); font-size: 23px; color: var(--ink); font-weight: 700; }
.aud-card p { margin-top: 10px; color: var(--text-soft); font-size: 15.5px; }
.aud-card ul { margin-top: 14px; list-style: none; }
.aud-card li {
  font-size: 14.5px; color: var(--text); padding: 5px 0 5px 24px; position: relative;
}
.aud-card li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 11px; height: 7px; border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}

/* ---- Ablauf ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: #fff; background: var(--navy);
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h4 { font-size: 16px; font-weight: 700; color: var(--ink); }
.step p { margin-top: 6px; font-size: 14px; color: var(--text-soft); }

/* ---- Privatsphäre-Banner ---------------------------------------------- */
.privacy {
  background: var(--ink); color: #d9e2ea;
  border-radius: 18px; padding: 48px 44px;
  position: relative; overflow: hidden;
}
.privacy::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,159,135,.28), transparent 65%);
}
.privacy .kicker { color: var(--teal); }
.privacy h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); color: #fff;
  letter-spacing: -.015em; margin-top: 12px; max-width: 22ch;
}
.privacy p { margin-top: 16px; max-width: 64ch; color: #aeb9c3; font-size: 16.5px; }
.privacy .pv-points {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 26px;
  position: relative;
}
.privacy .pv-points div {
  font-size: 14px; color: #c6d0d9;
  padding-left: 26px; position: relative; max-width: 30ch;
}
.privacy .pv-points div::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--teal);
}

/* ---- Open Source ------------------------------------------------------- */
.oss-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.oss-band .oss-copy h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px,3.2vw,36px); color: var(--ink); letter-spacing: -.015em;
}
.oss-band .oss-copy p { margin-top: 14px; color: var(--text-soft); }
.oss-band .oss-copy .btn { margin-top: 22px; }
.oss-facts { display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.oss-facts div { background: var(--card); padding: 16px 20px; display: flex;
  justify-content: space-between; align-items: baseline; gap: 16px; }
.oss-facts dt { font-size: 14px; color: var(--text-soft); }
.oss-facts dd { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--navy); text-align: right; }

/* ---- Hinweisband ganz oben (WIP + Haftungsausschluss) ----------------- */
.topnotice { background: #fbf4e0; border-bottom: 1px solid #e6d3a3; }
.topnotice .wrap {
  display: flex; align-items: flex-start; gap: 15px; padding: 13px 28px;
}
.topnotice .tn-tag {
  flex-shrink: 0; margin-top: 1px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .03em; white-space: nowrap;
  color: #6b4a07; background: #f3e3b8;
  border: 1px solid #e0cd96; border-radius: 999px; padding: 5px 12px;
}
.topnotice p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #6b5526; }
.topnotice strong { color: #5a3d06; }
.topnotice a {
  color: #6b4a07; font-weight: 700; text-decoration: underline; white-space: nowrap;
}
@media (max-width: 620px) {
  .topnotice .wrap { flex-direction: column; gap: 8px; padding: 12px 22px; }
}

/* ---- Haftungs-Hinweis -------------------------------------------------- */
.disclaimer {
  border: 1px solid #e6d3a3; background: #fbf4e0;
  border-radius: var(--r); padding: 28px 30px;
  display: flex; gap: 20px; align-items: flex-start;
}
.disclaimer .d-mark {
  font-size: 26px; line-height: 1; flex-shrink: 0;
}
.disclaimer h3 { font-size: 17px; color: #6b4a07; font-weight: 700; }
.disclaimer p { margin-top: 8px; font-size: 14.5px; color: #6b5526; }
.disclaimer a { color: #6b4a07; font-weight: 600; text-decoration: underline; }

/* ---- Schluss-CTA ------------------------------------------------------- */
.final-cta {
  text-align: center; padding: 90px 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(30,159,135,.14), transparent 70%);
}
.final-cta h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px,4vw,46px); color: var(--ink);
  letter-spacing: -.018em; max-width: 20ch; margin: 0 auto;
}
.final-cta p { margin: 16px auto 0; color: var(--text-soft); max-width: 50ch; }
.final-cta .hero-cta { justify-content: center; }

/* ===========================================================================
 * FUSSZEILE
 * ========================================================================= */
.site-foot {
  background: var(--ink); color: #93a0ab;
  padding: 56px 0 30px; font-size: 14.5px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-brand img { height: 30px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.foot-brand p { max-width: 38ch; color: #828f9a; font-size: 14px; }
.foot-brand .by {
  margin-top: 16px; font-family: var(--mono); font-size: 12.5px;
  color: #aeb9c3; letter-spacing: .02em;
}
.foot-brand .by strong { color: #fff; font-weight: 600; }
.foot-col h5 {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.foot-col a { display: block; color: #aeb9c3; padding: 5px 0; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-base {
  padding-top: 26px; display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  font-size: 12.5px; color: #6f7c87; font-family: var(--mono);
}
.foot-base a { color: #93a0ab; }
.foot-base a:hover { color: #fff; }

/* ===========================================================================
 * RECHTSSEITEN  (Impressum / Datenschutz / Haftungsausschluss)
 * ========================================================================= */
.legal-hero { border-bottom: 1px solid var(--line); }
.legal-hero .wrap { padding: 54px 28px 40px; }
.crumb {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-dim);
  margin-bottom: 14px;
}
.crumb a { color: var(--text-soft); }
.crumb .sep { margin: 0 8px; }
.legal-hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.018em;
  color: var(--ink); line-height: 1.08;
}
.legal-hero .lead { margin-top: 14px; color: var(--text-soft); max-width: 62ch; font-size: 17px; }

.legal-body { padding: 50px 0 70px; }
.legal-body .wrap { max-width: 820px; }
.legal-body h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em;
  margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-family: var(--sans); font-size: 17px; font-weight: 700;
  color: var(--navy); margin: 26px 0 8px;
}
.legal-body h4 {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--teal-600); margin: 22px 0 6px;
}
.legal-body p { margin: 0 0 14px; color: var(--text); font-size: 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 26px; }
.legal-body li { margin-bottom: 7px; color: var(--text); font-size: 16px; }
.legal-body a { color: var(--navy); text-decoration: underline; }
.legal-body strong { color: var(--ink); }

.addr-box {
  font-style: normal; line-height: 1.9; font-size: 16px;
  border: 1px solid var(--line-strong); background: var(--card);
  border-left: 3px solid var(--teal);
  border-radius: 10px; padding: 18px 22px; margin: 6px 0 20px;
}
.addr-box strong { color: var(--ink); font-weight: 700; }

.legal-note {
  margin-top: 36px; padding: 16px 20px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 10px; font-size: 13.5px; color: var(--text-soft);
}
.doc-meta {
  margin-top: 30px; font-family: var(--mono); font-size: 12px;
  color: var(--text-dim); letter-spacing: .03em;
}

/* ===========================================================================
 * LADE-ANIMATION (gestaffelt, dezent)
 * ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .14s; }
  .reveal.d3 { animation-delay: .22s; }
  .reveal.d4 { animation-delay: .30s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ===========================================================================
 * RESPONSIV
 * ========================================================================= */
@media (max-width: 900px) {
  .pillars, .features, .steps { grid-template-columns: 1fr 1fr; }
  .audience, .oss-band { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .privacy { padding: 36px 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .pillars, .features, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .wrap { padding: 52px 22px 48px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 22px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
