/* ============================================================
   LocalSystems.li — Stylesheet
   Keine externen Fonts, keine externen Ressourcen.
   ============================================================ */

:root {
  --bg: #0a0f14;
  --bg-soft: #0d141b;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6edf3;
  --muted: #93a4b3;
  /* Theme — Blau (Default) */
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-line: rgba(56, 189, 248, 0.4);
  --accent-line-soft: rgba(56, 189, 248, 0.35);
  --accent-glow: rgba(56, 189, 248, 0.16);
  --accent-2: #7aa2ff;
  --warn: #ffb454;
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code",
    Menlo, Consolas, monospace;
  --header-h: 68px;
}

/* ---------- Weitere Themes (Theme-Picker) ---------- */
[data-theme="gruen"] {
  --accent: #2dd4a7;
  --accent-soft: rgba(45, 212, 167, 0.14);
  --accent-line: rgba(45, 212, 167, 0.4);
  --accent-line-soft: rgba(45, 212, 167, 0.35);
  --accent-glow: rgba(45, 212, 167, 0.16);
}

[data-theme="cyan"] {
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-line: rgba(56, 189, 248, 0.4);
  --accent-line-soft: rgba(56, 189, 248, 0.35);
  --accent-glow: rgba(56, 189, 248, 0.16);
}

[data-theme="bernstein"] {
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --accent-line: rgba(251, 191, 36, 0.42);
  --accent-line-soft: rgba(251, 191, 36, 0.36);
  --accent-glow: rgba(251, 191, 36, 0.14);
}

[data-theme="violett"] {
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-line: rgba(167, 139, 250, 0.42);
  --accent-line-soft: rgba(167, 139, 250, 0.36);
  --accent-glow: rgba(167, 139, 250, 0.16);
}

[data-theme="mono"] {
  --accent: #dfe9f2;
  --accent-soft: rgba(223, 233, 242, 0.08);
  --accent-line: rgba(223, 233, 242, 0.42);
  --accent-line-soft: rgba(223, 233, 242, 0.34);
  --accent-glow: rgba(223, 233, 242, 0.1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 650;
  color: var(--text);
}

/* ---------- Utilities ---------- */
.container {
  width: min(1360px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow,
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

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

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.06rem;
  margin-bottom: 44px;
}

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

.fineprint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand-tld {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: filter 0.15s ease;
}

.nav-cta:hover {
  filter: brightness(1.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 88px) 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, black 25%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  filter: blur(50px);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .lede {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.13rem;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}

.stat dd {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px 26px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
}

.card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.check-list-warn li::before {
  content: "!";
  color: var(--warn);
}

.check-list-warn li {
  color: var(--muted);
}

.two-col-list {
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 36px;
}

/* ---------- Architecture flow ---------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 56px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  flex-wrap: wrap;
}

.flow-node {
  flex: 1 1 160px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.flow-node-accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.flow-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.98rem;
}

.flow-node-accent .flow-label {
  color: var(--accent);
}

.flow-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.flow-note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

/* ---------- Two column + box ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin: 40px 0;
  align-items: start;
}

.prose p {
  color: var(--muted);
  margin-bottom: 16px;
}

.prose p strong {
  color: var(--text);
}

.prose p em {
  color: var(--warn);
  font-style: normal;
}

.prose-box {
  border: 1px solid var(--accent-line-soft);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 28px 26px;
}

.prose-box h3 {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.prose-box p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---------- Prompt-Pfad-Illustration ---------- */
.path-card {
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 30px 28px;
}

.path-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.path-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
}

.path-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  height: calc(100% - 34px);
  width: 1px;
  background: var(--border-strong);
}

.path-step:last-child {
  padding-bottom: 0;
}

.path-step:last-child::before {
  display: none;
}

.path-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.path-name {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  padding-top: 3px;
}

.path-desc {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.path-badge {
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line-soft);
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-badge svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- Routen-Vergleich ---------- */
.routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.route {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px;
}

.route h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.route-warn {
  border-color: rgba(255, 180, 84, 0.3);
}

.route-warn h3 {
  color: var(--warn);
}

.route-ok {
  border-color: var(--accent-line-soft);
}

.route-ok h3 {
  color: var(--accent);
}

.route-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.route-node {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  white-space: nowrap;
}

.route-node-warn {
  border-color: rgba(255, 180, 84, 0.5);
  color: var(--warn);
  background: rgba(255, 180, 84, 0.08);
}

.route-node-ok {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.route-arrow {
  color: var(--muted);
  font-size: 0.95rem;
}

.route-facts {
  list-style: none;
  display: grid;
  gap: 8px;
}

.route-facts li {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}

.route-warn .route-facts li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--warn);
  font-weight: 700;
}

.route-ok .route-facts li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
}

.compare thead th:nth-child(3) {
  color: var(--accent);
}

.compare tbody th[scope="row"] {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.compare td {
  color: var(--muted);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

/* ---------- License grid ---------- */
.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.license-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.license-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}

.license-role {
  color: var(--muted);
  font-size: 0.83rem;
}

.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.brand-footer .brand-name {
  font-size: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-note {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.83rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Theme-Picker ---------- */
.theme-picker {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: scale(1.06);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-panel {
  display: none;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(10, 15, 20, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.theme-panel.open {
  display: flex;
}

.theme-panel-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.theme-swatches {
  display: flex;
  gap: 9px;
}

.theme-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.theme-swatch:hover {
  transform: scale(1.14);
}

.theme-swatch.active {
  border-color: var(--text);
}

.theme-swatch-gruen { background: #2dd4a7; }
.theme-swatch-cyan { background: #38bdf8; }
.theme-swatch-bernstein { background: #fbbf24; }
.theme-swatch-violett { background: #a78bfa; }
.theme-swatch-mono { background: #dfe9f2; }

.theme-picker-note {
  font-size: 0.66rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards,
  .license-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 72px;
  }

  .cards,
  .license-grid,
  .two-col-list,
  .routes {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
    align-items: center;
  }

  .flow-node {
    width: 100%;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 15, 20, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 13px 4px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 12px;
  }

  .nav-toggle {
    display: flex;
  }
}
