/* =================================================================
   Importron — Marketingseite
   Design tokens, layout, components
   ================================================================= */

:root {
  /* Palette — neutral grays based on the app */
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f5;
  --fg: #0a0a0a;
  --fg-muted: #525252;
  --fg-subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --card: #ffffff;

  /* Accent — wird via Tweaks gesetzt */
  --accent: #2a4fde;
  --accent-hover: #1f3fbf;
  --accent-fg: #ffffff;
  --accent-subtle: color-mix(in oklab, var(--accent) 8%, var(--bg));
  --accent-border: color-mix(in oklab, var(--accent) 30%, var(--bg));

  /* Diff colors — wie in der App */
  --green-bg: #f0fdf4;
  --green-fg: #15803d;
  --green-border: #bbf7d0;
  --red-bg: #fef2f2;
  --red-fg: #b91c1c;
  --red-border: #fecaca;
  --blue-bg: #eff6ff;
  --blue-fg: #1d4ed8;
  --blue-border: #bfdbfe;
  --amber-bg: #fffbeb;
  --amber-fg: #b45309;
  --amber-border: #fde68a;
  --purple-bg: #faf5ff;
  --purple-fg: #7e22ce;
  --purple-border: #e9d5ff;
  --orange-bg: #fff7ed;
  --orange-fg: #c2410c;
  --orange-border: #fed7aa;
  --gray-bg: #f5f5f5;
  --gray-fg: #525252;
  --gray-border: #e5e5e5;

  /* Spacing & radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --container-narrow: 880px;

  /* Type */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root.dark {
  --bg: #0a0a0a;
  --bg-subtle: #111111;
  --bg-muted: #1a1a1a;
  --fg: #fafafa;
  --fg-muted: #a3a3a3;
  --fg-subtle: #737373;
  --border: #262626;
  --border-strong: #404040;
  --card: #111111;

  --accent-fg: #ffffff;
  --accent-subtle: color-mix(in oklab, var(--accent) 18%, var(--bg));
  --accent-border: color-mix(in oklab, var(--accent) 40%, var(--bg));

  --green-bg: #052e16;
  --green-fg: #86efac;
  --green-border: #166534;
  --red-bg: #2c0a0a;
  --red-fg: #fca5a5;
  --red-border: #7f1d1d;
  --blue-bg: #0c1c3a;
  --blue-fg: #93c5fd;
  --blue-border: #1e3a8a;
  --amber-bg: #2a1a06;
  --amber-fg: #fcd34d;
  --amber-border: #78350f;
  --purple-bg: #2a0a3a;
  --purple-fg: #d8b4fe;
  --purple-border: #6b21a8;
  --orange-bg: #2a1006;
  --orange-fg: #fdba74;
  --orange-border: #7c2d12;
  --gray-bg: #1f1f1f;
  --gray-fg: #a3a3a3;
  --gray-border: #303030;
}

/* =================================================================
   Base
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

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

/* =================================================================
   Layout
   ================================================================= */

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

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

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

section.hairline-top { border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* =================================================================
   Type
   ================================================================= */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.h-section {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.h-card {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

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

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); }

.num { font-variant-numeric: tabular-nums; }

/* =================================================================
   Buttons
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--fg-muted); }

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
}
.btn-ghost:hover { color: var(--fg); background: var(--bg-subtle); }

.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; border-radius: var(--radius); }

/* =================================================================
   Top Nav
   ================================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

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

.nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--fg); background: var(--bg-subtle); }

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

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* =================================================================
   Hero
   ================================================================= */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hero h1 { margin-top: 24px; }

.hero .lede { margin-top: 24px; }

.hero-ctas { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 8px 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-muted);
}

.hero-trust > * { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .check {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 10px;
}

/* =================================================================
   Sync Flow Visualization (Hero right side)
   ================================================================= */

.sync-flow {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}

.sync-flow-canvas {
  position: absolute;
  inset: 0;
}

.sync-flow .core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border-radius: 28px;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  gap: 4px;
  z-index: 5;
  box-shadow: 0 24px 60px -20px color-mix(in oklab, var(--accent) 50%, transparent),
              0 0 0 1px var(--border);
}

.sync-flow .core .core-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: .55;
}

.sync-flow .core .core-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.sync-flow .platform-node {
  position: absolute;
  width: var(--node-size, 76px);
  height: var(--node-size, 76px);
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  z-index: 4;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--fg);
  padding: 6px;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,.12);
  transition: border-color .3s, transform .3s;
  line-height: 1.1;
}

.sync-flow .platform-node.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle),
              0 8px 20px -6px color-mix(in oklab, var(--accent) 50%, transparent);
}

.sync-flow .platform-node small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sync-flow svg.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.sync-flow svg .conn-line {
  stroke: var(--border-strong);
  stroke-width: 1;
  fill: none;
}

.sync-flow svg .conn-flow {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 4 8;
  animation: dash 1.8s linear infinite;
}

@keyframes dash { to { stroke-dashoffset: -24; } }

/* =================================================================
   Problem (Big stats)
   ================================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat .stat-num {
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
}
.stat .stat-num .unit { color: var(--fg-subtle); font-weight: 500; font-size: 0.55em; }
.stat .stat-label {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.stat .stat-body {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* =================================================================
   Platform wall
   ================================================================= */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

@media (max-width: 960px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .platforms-grid { grid-template-columns: 1fr; } }

.platform-card {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background .15s ease;
}

.platform-card:hover { background: var(--bg-subtle); }

.platform-card .platform-wordmark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.platform-card .platform-version {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
}

.platform-card .platform-desc {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  min-height: 60px;
}

.platform-card .platform-caps {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cap-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.cap-chip.student { background: var(--blue-bg); color: var(--blue-fg); border-color: var(--blue-border); }
.cap-chip.parent { background: var(--purple-bg); color: var(--purple-fg); border-color: var(--purple-border); }
.cap-chip.teacher { background: var(--green-bg); color: var(--green-fg); border-color: var(--green-border); }
.cap-chip.device { background: var(--amber-bg); color: var(--amber-fg); border-color: var(--amber-border); }

/* =================================================================
   How it works
   ================================================================= */

.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.step h3 {
  margin-top: 12px;
  font-size: 18px;
  letter-spacing: -0.018em;
}

.step p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* =================================================================
   Diff preview card (recreated UI)
   ================================================================= */

.diff-shell {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.12);
}

.diff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.diff-toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.diff-window-dots { display: flex; gap: 6px; }
.diff-window-dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--border-strong); }

.diff-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
}
.diff-title b { color: var(--fg); font-weight: 600; }

.diff-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 12.5px;
  font-weight: 500;
}
.cat-chip.active { box-shadow: 0 0 0 2px color-mix(in oklab, currentColor 15%, transparent); }
.cat-chip .count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.cat-chip.created { background: var(--green-bg); color: var(--green-fg); border-color: var(--green-border); }
.cat-chip.changed { background: var(--blue-bg); color: var(--blue-fg); border-color: var(--blue-border); }
.cat-chip.deleted { background: var(--red-bg); color: var(--red-fg); border-color: var(--red-border); }
.cat-chip.renamed { background: var(--purple-bg); color: var(--purple-fg); border-color: var(--purple-border); }
.cat-chip.disabled { background: var(--orange-bg); color: var(--orange-fg); border-color: var(--orange-border); }
.cat-chip.unmatched { background: var(--amber-bg); color: var(--amber-fg); border-color: var(--amber-border); }
.cat-chip.unchanged { background: var(--gray-bg); color: var(--gray-fg); border-color: var(--gray-border); }

.diff-rows { padding: 8px; display: flex; flex-direction: column; gap: 8px; }

.diff-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.diff-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
}

.diff-row-head .who { display: flex; align-items: center; gap: 12px; }
.diff-row-head .who .avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--bg-muted); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
}
.diff-row-head .who .name {
  font-weight: 600;
  font-size: 14.5px;
}
.diff-row-head .who .sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-subtle);
  margin-left: 8px;
}

.diff-row-head .tag-changed {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 3px 10px;
  background: var(--blue-bg); color: var(--blue-fg); border: 1px solid var(--blue-border);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

.diff-row-head .tag-created {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 3px 10px;
  background: var(--green-bg); color: var(--green-fg); border: 1px solid var(--green-border);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

.diff-row-head .tag-deleted {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 3px 10px;
  background: var(--red-bg); color: var(--red-fg); border: 1px solid var(--red-border);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

.diff-table {
  font-family: var(--font-mono);
  font-size: 12px;
}

.diff-table .diff-table-head {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  padding: 8px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 11px;
}

.diff-table .diff-table-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.diff-table .diff-table-row:last-child { border-bottom: 0; }

.diff-table .key {
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  color: var(--fg);
  font-weight: 500;
}
.diff-table .before {
  padding: 10px 16px;
  background: var(--red-bg);
  color: var(--red-fg);
  border-right: 1px solid var(--border);
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklab, var(--red-fg) 50%, transparent);
}
.diff-table .after {
  padding: 10px 16px;
  background: var(--green-bg);
  color: var(--green-fg);
}
.diff-table .diff-table-row.unchanged .before { background: transparent; color: var(--fg-muted); text-decoration: none; }
.diff-table .diff-table-row.unchanged .after { background: transparent; color: var(--fg-muted); }

/* For "created" rows — only one value column */
.diff-table.single .diff-table-row,
.diff-table.single .diff-table-head { grid-template-columns: 140px 1fr; }
.diff-table.single .key { background: var(--green-bg); color: var(--green-fg); border-color: var(--green-border); }
.diff-table.single .value {
  padding: 10px 16px;
  background: var(--green-bg);
  color: var(--green-fg);
}

@media (max-width: 640px) {
  .diff-table .diff-table-head,
  .diff-table .diff-table-row { grid-template-columns: 100px 1fr 1fr; font-size: 11px; }
  .diff-table .key, .diff-table .before, .diff-table .after { padding: 8px 12px; }
}

/* =================================================================
   Attribute table (Beispiel-Aufgabe in Funktionsweise)
   ================================================================= */

.attr-table {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.attr-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.6fr;
  align-items: center;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
}
.attr-row:last-child { border-bottom: 0; }

.attr-row.attr-head {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 20px;
}

.attr-key {
  color: var(--fg);
  font-weight: 500;
}

.attr-muted { color: var(--fg-subtle); }

.src-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.src-chip.alt {
  background: var(--bg-subtle);
  color: var(--fg-muted);
  border-color: var(--border);
}
.src-chip.neutral {
  background: var(--bg-muted);
  color: var(--fg);
  border-color: var(--border);
}

@media (max-width: 720px) {
  .attr-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .attr-row.attr-head { display: none; }
  .attr-row > span:nth-child(2)::before { content: "Quelle: "; color: var(--fg-subtle); }
  .attr-row > span:nth-child(3)::before { content: "Fallback: "; color: var(--fg-subtle); }
}

/* END attribute table */

/* =================================================================
   Account & Password strategy cards
   ================================================================= */

.strategy-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.strategy-row.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.strategy-row.active .strategy-desc { color: color-mix(in oklab, var(--bg) 70%, transparent); }

.strategy-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.strategy-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.strategy-preview {
  border-top: 1px solid var(--border);
}

.strategy-prev-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  padding: 9px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

.strategy-prev-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.strategy-prev-row:last-child { border-bottom: 0; }
.strategy-prev-row > span:first-child {
  display: flex; flex-direction: column;
}
.strategy-prev-row .strategy-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.strategy-prev-row > span:last-child {
  color: var(--fg);
  font-weight: 600;
  font-size: 13.5px;
}

.pw-strategy {
  flex: 1 1 calc(33.33% - 7px);
  min-width: 120px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  display: flex; flex-direction: column;
  gap: 2px;
}
.pw-strategy.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.pw-strategy.active .pw-strategy-desc { color: color-mix(in oklab, var(--bg) 70%, transparent); }

.pw-strategy-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pw-strategy-desc {
  font-size: 12px;
  color: var(--fg-muted);
}

.liquid-editor {
  display: grid;
  grid-template-columns: 28px 1fr;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
}
.liquid-ln {
  padding: 10px 0;
  text-align: center;
  background: var(--bg-muted);
  border-right: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 12px;
}
.liquid-code {
  padding: 10px 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.liquid-tag {
  color: var(--accent);
  font-weight: 500;
}
.liquid-pipe { color: var(--fg-subtle); }
.liquid-num { color: var(--green-fg); }

.liquid-var {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-weight: 500;
}

@media (max-width: 980px) {
  section#accounts > div.container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* END account strategy cards */

/* =================================================================
   Eltern-Portal / Geräte (Feature sections)
   ================================================================= */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.feature.reverse > div:first-child { order: 2; }

@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse > div:first-child { order: 0; }
}

.feature-points {
  margin-top: 28px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
}

.feature-points li b { color: var(--fg); font-weight: 600; }

.feature-points li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent-subtle);
  display: block;
  margin-top: 3px;
  background-image: radial-gradient(circle, var(--accent) 30%, transparent 32%);
}

/* Eltern mail mock */

.mail-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.12);
}

.mail-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.mail-head .from { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-subtle); }
.mail-head .from b { color: var(--fg); }
.mail-head .subject {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mail-body {
  padding: 24px 24px 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}
.mail-body p { margin: 0 0 12px; }
.mail-body p:last-child { margin-bottom: 0; }
.mail-body .pill-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
}

/* MDM mock */

.mdm-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 20px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.12);
}

.mdm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.mdm-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.mdm-row:last-child { border-bottom: 0; }
.mdm-row .ico {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-muted); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 12px; color: var(--fg-muted);
}
.mdm-row .serial { color: var(--fg); font-weight: 500; }
.mdm-row .owner { color: var(--fg-muted); font-size: 12px; }
.mdm-row .status {
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-fg); border: 1px solid var(--green-border);
}
.mdm-row .status.new { background: var(--blue-bg); color: var(--blue-fg); border-color: var(--blue-border); }

/* =================================================================
   On-Prem / Security
   ================================================================= */

.security-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .security-grid { grid-template-columns: 1fr; } }

.sec-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.sec-card .ico-box {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}

.sec-card h3 { font-size: 17px; letter-spacing: -0.015em; }
.sec-card p { margin: 8px 0 0; color: var(--fg-muted); font-size: 14px; line-height: 1.55; }

/* Code block */

.code {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--border-strong); }
.code-head .filename { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.code pre {
  margin: 0; padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg);
  overflow-x: auto;
}
.code .k { color: var(--accent); }
.code .s { color: var(--green-fg); }
.code .c { color: var(--fg-subtle); }

/* =================================================================
   Pilots
   ================================================================= */

.pilots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 880px) { .pilots { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .pilots { grid-template-columns: repeat(2, 1fr); } }

.pilot {
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  min-height: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.3;
}

.pilot-name {
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: none;
}

/* =================================================================
   Pricing
   ================================================================= */

.pricing-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-wrap { grid-template-columns: 1fr; } }

.price-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.price-card .price-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-card.featured .price-name { color: color-mix(in oklab, var(--accent) 60%, var(--bg)); }

.price-card .price-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-card .price-amount {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price-card .price-amount sup { font-size: 0.45em; font-weight: 500; vertical-align: top; }
.price-card .price-unit {
  font-size: 14px;
  color: var(--fg-muted);
}
.price-card.featured .price-unit { color: color-mix(in oklab, var(--bg) 70%, transparent); }

.price-includes {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14.5px; line-height: 1.5;
}
.price-includes li { display: flex; gap: 10px; }
.price-includes li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
}
.price-card.featured .price-includes li::before { color: color-mix(in oklab, var(--accent) 50%, var(--bg)); }

.price-fine {
  font-size: 12.5px;
  color: var(--fg-subtle);
  line-height: 1.5;
  margin-top: auto;
}
.price-card.featured .price-fine { color: color-mix(in oklab, var(--bg) 55%, transparent); }

/* Calculator */

.calc {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.calc h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}
.calc-sub { font-size: 13.5px; color: var(--fg-muted); margin: 6px 0 24px; }

.calc-control {
  margin-bottom: 22px;
}
.calc-control .ctl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.calc-control .ctl-label { font-size: 13.5px; font-weight: 500; color: var(--fg); }
.calc-control .ctl-value { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }

.calc input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.calc input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 999px;
  margin-top: -6px;
  box-shadow: 0 0 0 2px var(--bg);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--bg);
}

.calc-breakdown {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.calc-breakdown .line {
  display: flex; justify-content: space-between;
  padding: 5px 0; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.calc-breakdown .line span:last-child { font-family: var(--font-mono); color: var(--fg); }
.calc-breakdown .total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; margin-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 18px; font-weight: 600; color: var(--fg);
}
.calc-breakdown .total .amt { font-family: var(--font-mono); font-size: 28px; letter-spacing: -0.02em; }

/* =================================================================
   FAQ
   ================================================================= */

.faq-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.faq-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* =================================================================
   Final CTA + Footer
   ================================================================= */

.final-cta {
  text-align: center;
  padding: 120px 0;
}

.final-cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }

.final-cta .lede { margin: 20px auto 32px; text-align: center; }

.final-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
}

.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } }

.foot-brand { max-width: 280px; }
.foot-brand p { color: var(--fg-muted); font-size: 13.5px; line-height: 1.6; margin: 14px 0 0; }

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  margin-bottom: 12px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 4px 0;
}
.foot-col a:hover { color: var(--fg); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--fg-subtle);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom .legal { display: flex; gap: 20px; }

/* =================================================================
   Misc utilities
   ================================================================= */

.muted { color: var(--fg-muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 18px; }
.mt-6 { margin-top: 28px; }
.mt-8 { margin-top: 40px; }

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--fg-muted);
}

/* Hero rotating headline — one-line typewriter slot.
   Sized so the longest slogan fits on a single line at typical viewport widths. */
.hero .h-display {
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-top: 0;
}

/* Eyebrow now sits between the headline and the supporting content */
.hero .hero-eyebrow {
  margin-top: 28px;
}

/* Hero grid follows the eyebrow */
.hero .hero-grid { margin-top: 24px; }

.cube-stage {
  display: block;
  position: relative;
  width: 100%;
  /* Two-line slot — slogans wrap to a second line on narrow viewports
     without pushing the rest of the page around. */
  height: calc(2 * 1.1em);
}
.cube-rotor {
  display: contents;
}
.cube-face {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Natural greedy wrapping — words land left-to-right and stay put.
     No balancing or pretty-wrap (which would shift earlier words when
     a new word triggers a wrap). */
  text-wrap: wrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cube-face.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Blinking caret on the active face */
.cube-face.is-active::after {
  content: '';
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  background: var(--accent);
  margin-left: 0.12em;
  vertical-align: -0.1em;
  border-radius: 1px;
  animation: caretBlink 1.05s steps(1) infinite;
}
.cube-face.is-active.is-typing::after,
.cube-face.is-active.is-erasing::after {
  animation: none;
  opacity: 1;
}
@keyframes caretBlink {
  0%, 50%        { opacity: 1; }
  50.01%, 100%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cube-face.is-active::after { animation: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cube-face {
    transition: opacity 200ms linear;
    transform: none !important;
    filter: none !important;
  }
}

/* Tonalität-Tweak: "direkt" Modus */
.tonality-direkt .h-display { letter-spacing: -0.042em; }

/* GitHub icon vert. align */
.icon-inline { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
