/* LIBERYX Landingpage — kohärentes Raster, ein mutiger blauer Korpus-Block als
   Wow-Moment, Karten mit Tiefe. Markenpalette (verbindlich, helles Theme):
   ink/blue/gold/paper. Inter als Stimme, JetBrains Mono nur für die juristische
   Vernakular-Ebene (Marker, Fundstellen, Kennzahlen, Labels). */

:root {
  --ink: #0a0a0a;
  --blue: #0069e1;
  --blue-700: #0056bd;
  --blue-900: #06337a;
  --gold: #d2b482;
  --paper: #f5f6f8;
  --white: #ffffff;
  --muted: #54585f;
  --faint: #7a7f87;
  --line: #e6e8ec;
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(10, 12, 20, 0.05);
  --shadow-lift: 0 22px 48px -22px rgba(0, 105, 225, 0.28), 0 6px 16px rgba(10, 12, 20, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

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

/* Mono-Vernakular */
.kicker, .demo-search, .demo-ref, .demo-foot, .demo-ok, .stat-num, .stat-label,
.stats-sub, .graph-cap, .head-nav a:not(.btn), .tagline, .foot-links,
.principle-no, .cta-eyebrow, .hero-note {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 8px;
  padding: 0.66rem 1.15rem;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.95rem 1.65rem; font-size: 1.02rem; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(0, 105, 225, 0.7);
}
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 14px 28px -10px rgba(0, 105, 225, 0.75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ── Kopf ────────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--gutter);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; }
.head-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.head-nav a:not(.btn) {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.head-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.head-nav .btn-primary { color: var(--white); }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 5.5rem) var(--gutter) clamp(2.6rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: 46%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(0, 105, 225, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.kicker-gold { color: var(--gold); }
.kicker-gold::before { background: var(--gold); }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 1.4rem;
}
.u-gold {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.16em;
}
.dot-blue { color: var(--blue); }
.lede {
  max-width: 38ch;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--muted);
}
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.7rem;
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Demo-Karte: Suche → Fundstelle */
.demo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.demo-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink);
}
.demo-mag { width: 17px; height: 17px; color: var(--blue); flex: none; }
.demo-typed { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-caret {
  width: 2px; height: 1.05em; background: var(--blue); flex: none;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-hit { padding: 1.15rem 1.15rem 1.2rem; }
.demo-ref {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 500; color: var(--blue);
}
.demo-ok { margin-left: auto; font-size: 0.68rem; letter-spacing: 0.03em; color: #1a7f37; }
.demo-title { margin: 0.55rem 0 0.5rem; font-size: 1.18rem; font-weight: 600; }
.demo-quote { margin: 0 0 1rem; font-size: 0.93rem; line-height: 1.55; color: var(--muted); }
.demo-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  padding-top: 0.85rem; border-top: 1px solid var(--line);
  font-size: 0.7rem; color: var(--faint);
}
.demo-foot a { color: var(--blue); font-weight: 500; }

.node { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.node-blue { background: var(--blue); }
.node-gold { background: var(--gold); }
.node-light { background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset; }

/* ── Standard-Bänder ─────────────────────────────────────────────── */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

.sec-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.sec-head .kicker { margin-bottom: 0.9rem; }
.sec-lede { margin: 1rem 0 0; font-size: clamp(1.02rem, 1.8vw, 1.16rem); color: var(--muted); }
.sec-lede-dark { color: var(--muted); }

/* ── Karten ──────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.55rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0, 105, 225, 0.32);
}
.card-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.05rem;
  color: var(--blue);
  background: rgba(0, 105, 225, 0.08);
  border-radius: 11px;
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ── Korpus: blauer Wow-Block ────────────────────────────────────── */
.corpus {
  background:
    radial-gradient(120% 90% at 85% 0%, var(--blue) 0%, var(--blue-900) 100%);
  color: #eaf2ff;
}
.corpus-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) var(--gutter);
}
.sec-head-invert .sec-title { color: var(--white); }
.sec-head-invert .sec-lede { color: rgba(234, 242, 255, 0.82); }
.corpus-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
}
.stat {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem 1.3rem;
}
.stat-num {
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(234, 242, 255, 0.7);
}
.corpus-graph {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.corpus-graph canvas {
  display: block;
  width: 100%;
  flex: 1;
  min-height: clamp(230px, 30vw, 340px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.graph-cap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(234, 242, 255, 0.72);
}
.graph-cap .node { margin-right: 0.1rem; }
.cap-sep { opacity: 0.5; }
.stats-sub {
  margin: 1.6rem 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(234, 242, 255, 0.72);
}
.stats-sub strong { color: var(--white); font-weight: 700; }
.stats-sub .sep { margin: 0 0.55rem; color: rgba(255, 255, 255, 0.3); }
.stats-stand { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Grundsätze ──────────────────────────────────────────────────── */
.principles { list-style: none; margin: 0; padding: 0; }
.principle {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.principle:first-child { border-top: 0; }
.principle-no { font-size: 1.05rem; font-weight: 700; color: var(--gold); padding-top: 0.1rem; }
.principle h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.45rem; }
.principle p { margin: 0; color: var(--muted); font-size: 0.99rem; max-width: 64ch; }

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: clamp(3.6rem, 8vw, 6rem) var(--gutter);
  background: var(--ink);
  color: var(--white);
}
.cta-eyebrow { margin: 0 0 1.1rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: 0.8rem; }
.cta-lede { max-width: 48ch; margin: 0 auto 2rem; color: #c4c8d0; }

/* ── Fuß ─────────────────────────────────────────────────────────── */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 0.9rem; }
.tagline { font-size: 0.66rem; letter-spacing: 0.15em; color: var(--faint); }
.foot-links { display: flex; align-items: center; gap: 0.7rem; color: var(--faint); font-size: 0.72rem; }
.foot-links a { color: var(--ink); }

/* ── Page-Load: ruhiges Aufsteigen des Hero ──────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-lede > *, .demo { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-lede > *:nth-child(1) { animation-delay: 0.02s; }
  .hero-lede > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-lede > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-lede > *:nth-child(4) { animation-delay: 0.20s; }
  .hero-lede > *:nth-child(5) { animation-delay: 0.26s; }
  .demo { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .corpus-split { grid-template-columns: 1fr; }
  .corpus-graph canvas { min-height: 260px; }
}
@media (max-width: 560px) {
  .head-nav a:not(.btn) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
