/* ─────────────────────────────────────────────────────────────────────────
   Prozessdeck Marketing-Site — Stylesheet
   Design-Tokens 1:1 aus der App (app/static/css/app.css), damit Marketing-
   Site und Produkt sich anfühlen wie aus einem Guss.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds & Lines */
  --bg: oklch(0.992 0.002 270);
  --bg-elev: oklch(1 0 0);
  --bg-sunken: oklch(0.975 0.003 270);
  --bg-deep: oklch(0.95 0.005 270);
  --line: oklch(0.925 0.004 270);
  --line-strong: oklch(0.86 0.006 270);

  /* Ink (Text) */
  --ink: oklch(0.18 0.014 270);
  --ink-2: oklch(0.40 0.012 270);
  --ink-3: oklch(0.58 0.010 270);
  --ink-4: oklch(0.74 0.008 270);

  /* Brand */
  --accent: #1E40AF;
  --accent-2: #2952C2;
  --accent-tint: #EEF2FF;
  --accent-ink: #1E3A8A;
  --accent-glow: rgba(30, 64, 175, 0.18);
  --accent-deep: #0F1F5C;

  /* Status */
  --ok: oklch(0.62 0.14 155);
  --ok-tint: oklch(0.96 0.035 155);
  --warn: oklch(0.70 0.15 70);
  --warn-tint: oklch(0.96 0.045 70);
  --err: oklch(0.58 0.20 22);
  --err-tint: oklch(0.96 0.035 22);

  /* Geometry */
  --r-sm: 7px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Typo */
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(17,17,27,.02), 0 1px 2px rgba(17,17,27,.04);
  --shadow-pop: 0 1px 0 rgba(17,17,27,.03), 0 12px 32px rgba(17,17,27,.10), 0 2px 6px rgba(17,17,27,.04);
  --shadow-hero: 0 30px 80px -20px rgba(30, 64, 175, 0.25), 0 8px 24px rgba(17,17,27,.08);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --section-pad: 96px;
  --section-pad-mobile: 64px;
}

/* ──────────────────────────────────────────────────
   Reset & Base
   ────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

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

/* Globaler Overflow-Schutz: lange Wörter, URLs, Mail-Adressen, Code-Tags
   brechen statt horizontal überzulaufen. Gilt für alle Pages. */
h1, h2, h3, h4, p, li, address, code {
  overflow-wrap: break-word;
}

a { color: var(--accent); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--accent-2); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 17px; font-weight: 650; }

p { margin: 0; color: var(--ink-2); }

ul { list-style: none; padding: 0; margin: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-sunken);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--ink);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ──────────────────────────────────────────────────
   Container & Sections
   ────────────────────────────────────────────────── */

.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: var(--section-pad) 0; }

/* Section-Header-Pattern */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 { margin: 0 0 14px; }
.section-head .section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.eyebrow-accent { color: var(--accent); }
.eyebrow-light { color: rgba(255,255,255,0.7); }

/* ──────────────────────────────────────────────────
   Topbar
   ────────────────────────────────────────────────── */

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

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

.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand img { height: 28px; width: auto; }

.topbar-nav { display: flex; align-items: center; gap: 32px; }
.topbar-nav a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 120ms ease;
}
.topbar-nav a:hover { color: var(--ink); }

.topbar-actions { display: flex; align-items: center; gap: 12px; }

.topbar-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--r-sm);
}
.topbar-mobile-toggle:hover { background: var(--bg-sunken); }

.topbar-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.topbar-mobile-menu a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: var(--r-sm);
}
.topbar-mobile-menu a:hover { background: var(--bg-sunken); }
.topbar-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ──────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.18), 0 4px 12px rgba(30, 64, 175, 0.12);
}
.btn-primary:hover {
  background: var(--accent-2);
  color: #fff;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25), 0 12px 24px rgba(30, 64, 175, 0.18);
  transform: translateY(-1px);
}
/* Falls der Button einen Pfeil-SVG enthält, wandert dieser beim Hover sanft nach rechts */
.btn svg { transition: transform 200ms ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--ink-4);
  color: var(--ink);
}

.btn-on-dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* ──────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────── */

.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }

/* Sanftes Dot-Grid-Pattern als Hero-Background */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Heller Brand-Glow */
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(30, 64, 175, 0.06); }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--accent) 0%, #4f6ee0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: var(--ok); flex: none; }

.hero-visual { margin-top: 80px; position: relative; z-index: 1; }
.hero-visual-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* ──────────────────────────────────────────────────
   Mock-App (Hero-Visual ohne echten Screenshot)
   ────────────────────────────────────────────────── */

.mock-app {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  font-family: var(--font-display);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-dot:first-child { background: #FF5F57; }
.mock-dot:nth-child(2) { background: #FFBD2E; }
.mock-dot:nth-child(3) { background: #28CA42; }
.mock-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.mock-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
  background: var(--bg-sunken);
  min-height: 280px;
}

.mock-lane {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-lane-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-tint); }

.mock-lane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mock-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mock-pill-ok      { background: var(--ok-tint); color: oklch(0.42 0.14 155); }
.mock-pill-active  { background: var(--accent-tint); color: var(--accent); }
.mock-pill-pending { background: var(--bg-sunken); color: var(--ink-3); }

.mock-cps { display: flex; flex-direction: column; gap: 6px; }
.mock-cps-dim { opacity: 0.5; }

.mock-cp {
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-sunken);
  border-left: 3px solid var(--line-strong);
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-cp.done { border-left-color: var(--ok); color: var(--ink); text-decoration: line-through; opacity: 0.7; }
.mock-cp.active {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-weight: 500;
  position: relative;
  animation: mock-cp-pulse 2.6s ease-in-out infinite;
}
.mock-cp.pending { border-left-color: var(--line-strong); }
.mock-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }

@keyframes mock-cp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.10); }
}

/* Pulse auf "Aktiv"-Pill in der Mock-App */
.mock-pill-active {
  position: relative;
  padding-left: 14px;
}
.mock-pill-active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.5);
  animation: mock-dot-pulse 1.8s ease-out infinite;
}
@keyframes mock-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(30, 64, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

/* ──────────────────────────────────────────────────
   Use-Case-Strip (zwischen Hero und Problem)
   ────────────────────────────────────────────────── */

.usecase-strip {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.usecase-strip-label {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 16px;
}

.usecase-strip-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.usecase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color 160ms ease, transform 160ms ease;
}
.usecase-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.usecase-pill svg { color: var(--ink-3); flex: none; transition: color 160ms ease; }
.usecase-pill:hover svg { color: var(--accent); }

.usecase-pill-more {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--ink-3);
  font-style: italic;
}
.usecase-pill-more:hover { border-color: var(--ink-3); color: var(--ink-3); transform: none; }

/* ──────────────────────────────────────────────────
   Comparison-Section (Excel vs Prozessdeck)
   ────────────────────────────────────────────────── */

.comparison { padding: 96px 0; }

.cmp-table {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.cmp-row:last-child { border-bottom: 0; }

.cmp-head {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-strong);
}
.cmp-head > div {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.cmp-col-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent);
}

.cmp-feature {
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  background: var(--bg-sunken);
}

.cmp-old, .cmp-new {
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

.cmp-old { color: var(--ink-3); position: relative; }
.cmp-old::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  margin-right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3a3a3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 4 12 12M12 4 4 12'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.cmp-new {
  background: var(--accent-tint);
  color: var(--ink);
  font-weight: 500;
}
.cmp-new::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  margin-right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E40AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

/* Mini-Differentiator zu To-Do-Apps unterhalb der Comparison-Tabelle */
.cmp-aside {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 980px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
.cmp-aside-icon {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-tint);
  color: var(--accent);
}
.cmp-aside p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.cmp-aside p strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ──────────────────────────────────────────────────
   Problem-Section
   ────────────────────────────────────────────────── */

.problem { background: var(--bg-sunken); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.problem-card h3 { margin: 0 0 10px; }
.problem-card p { font-size: 15px; line-height: 1.6; }

.problem-icon {
  width: 56px; height: 56px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--err-tint);
  color: var(--err);
}
.problem-icon-loop { background: var(--warn-tint); color: oklch(0.50 0.15 60); }
.problem-icon-blackbox { background: var(--bg-deep); color: var(--ink-3); }

/* ──────────────────────────────────────────────────
   Features-Section
   ────────────────────────────────────────────────── */

.features { padding: 120px 0; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row-flip .feature-text { order: 2; }
.feature-row-flip .feature-visual { order: 1; }

.feature-text { max-width: 480px; }
.feature-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.feature-text h3 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 32px); }
.feature-text > p { font-size: 17px; line-height: 1.6; margin-bottom: 22px; }

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.feature-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E40AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8 2.5 2.5L12 5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.feature-visual {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Feature-Visual-Specifics */
.visual-deck-to-run {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vdr-deck, .vdr-runs { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.vdr-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.vdr-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.vdr-runs .vdr-card { border-left-color: var(--ok); }
.vdr-arrow { color: var(--accent); flex: none; }

.visual-sla { display: flex; flex-direction: column; gap: 14px; }
.sla-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr 0.7fr;
  gap: 12px;
  align-items: center;
}
.sla-label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.sla-bar {
  height: 8px;
  background: var(--bg-sunken);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.sla-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}
/* Wenn die Feature-Row ins Viewport scrollt, animieren die Bars von 0 auf
   ihren Soll-Wert (--sla-fill als CSS-Variable im Inline-Style gesetzt). */
.feature-row.is-visible .sla-fill { width: var(--sla-fill); }
.sla-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.sla-overdue { color: var(--err); font-weight: 600; }

.visual-audit { display: flex; flex-direction: column; gap: 6px; }
.audit-row {
  display: grid;
  grid-template-columns: 56px 100px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-sunken);
  border-radius: var(--r-sm);
  font-size: 12.5px;
}
.audit-row-dim { opacity: 0.55; }
.audit-time { font-family: var(--font-mono); color: var(--ink-3); font-size: 11.5px; }
.audit-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  text-align: center;
  white-space: nowrap;
}
.audit-pill-ok   { background: var(--ok-tint); color: oklch(0.42 0.14 155); }
.audit-pill-blue { background: var(--accent-tint); color: var(--accent); }
.audit-pill-warn { background: var(--warn-tint); color: oklch(0.45 0.15 65); }
.audit-text { color: var(--ink); font-weight: 500; }

.visual-subprocess { font-size: 13.5px; }
.sub-main { display: flex; flex-direction: column; gap: 8px; }
.sub-step {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 500;
}
.sub-step-active {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-ink);
}
.sub-step-pending {
  border-left-color: var(--line-strong);
  color: var(--ink-3);
  opacity: 0.7;
}
.sub-nested {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-left: 16px;
  border-left: 2px dashed var(--accent);
}
.sub-nested-step {
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--r-sm);
  color: var(--accent-ink);
  border: 1px solid var(--accent-tint);
}

/* ──────────────────────────────────────────────────
   Use-Cases-Section
   ────────────────────────────────────────────────── */

.use-cases { background: var(--bg-sunken); }

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.usecase-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
  color: var(--ink);
}
.usecase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  border-color: var(--line-strong);
  color: var(--ink);
}

.usecase-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.usecase-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.usecase-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.usecase-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 160ms ease;
}
.usecase-card:hover .usecase-cta { gap: 8px; }

/* ──────────────────────────────────────────────────
   Sicherheit-Section
   ────────────────────────────────────────────────── */

.security {
  background: linear-gradient(165deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #fff;
}

.security .section-head h2 { color: #fff; }
.security .section-head .section-sub { color: rgba(255,255,255,0.78); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: background 200ms ease, border-color 200ms ease;
}
.security-item:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.security-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.security-item h4 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.security-item p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────
   Pricing-Section
   ────────────────────────────────────────────────── */

/* Toggle Monatlich / Jährlich */
.pricing-toggle {
  display: inline-flex;
  margin: 0 auto 40px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}
.pricing-toggle-btn:hover { color: var(--ink-2); }
.pricing-toggle-btn.is-active {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17,17,27,.04), 0 2px 6px rgba(17,17,27,.04);
}
.pricing-toggle-save {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-currency {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}

.price-num {
  display: inline-block;
  transition: opacity 160ms ease, transform 160ms ease;
}
.price-num.is-changing {
  opacity: 0;
  transform: translateY(-6px);
}

.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.pricing-card-popular {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(30,64,175,0.12);
  transform: scale(1.02);
}
.pricing-card-popular:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 32px rgba(30,64,175,0.18);
}

.pricing-card-self {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-sunken));
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-head { margin-bottom: 20px; }
.pricing-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}
.pricing-tag {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 0;
}

.pricing-price { margin-bottom: 24px; }
.price-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-unit {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 500;
}
.price-extra {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E40AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.pricing-note strong { color: var(--accent); font-weight: 600; }

/* ──────────────────────────────────────────────────
   FAQ-Section
   ────────────────────────────────────────────────── */

.faq { background: var(--bg-sunken); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-sunken); }

.faq-toggle {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink-3);
  border-radius: 1px;
  transition: transform 200ms ease;
}
.faq-toggle::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-toggle::after  { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item[open] .faq-toggle::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 20px 20px;
}
.faq-body p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────────
   Final-CTA-Banner
   ────────────────────────────────────────────────── */

.cta-final {
  background: linear-gradient(165deg, var(--accent-deep) 0%, var(--accent) 50%, #4F6EE0 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
}

.cta-final-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 42px);
}
.cta-final p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(15px, 1.4vw, 18px);
  margin-bottom: 28px;
}

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

.cta-final .btn-primary {
  background: #fff;
  color: var(--accent);
}
.cta-final .btn-primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--accent-deep);
}

/* ──────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────── */

.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand { max-width: 320px; }
.footer-logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 12px;
}
.footer-made {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 500;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--ink-2);
  font-size: 14px;
  transition: color 120ms ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.footer-version { font-family: var(--font-mono); font-size: 12px; }

/* ──────────────────────────────────────────────────
   Animations on Scroll (.reveal)
   ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────
   Mobile (≤768px)
   ────────────────────────────────────────────────── */

/* Tablet (769–1024px): 4 Pricing-Cards passen nicht mehr nebeneinander */
@media (min-width: 769px) and (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pricing-card-popular { transform: none; }   /* vermeidet Overlap im 2x2-Raster */
  .pricing-card-popular:hover { transform: translateY(-2px); }
}

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

  .topbar-inner { height: 60px; padding: 0 18px; }
  .topbar-nav { display: none; }
  .topbar-mobile-toggle { display: inline-flex; }
  .topbar-actions .btn-ghost { display: none; }
  .topbar-actions .btn-primary { display: none; }
  .topbar-mobile-menu.is-open { display: flex; }

  .section-head { margin-bottom: 40px; }

  .hero { padding: 56px 0 72px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-visual { margin-top: 48px; }
  .hero-trust { gap: 12px; font-size: 12px; }

  .mock-body {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 14px;
  }

  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .problem-card { padding: 22px; }

  .features { padding: 72px 0; }
  .feature-list { gap: 64px; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row-flip .feature-text { order: 1; }
  .feature-row-flip .feature-visual { order: 2; }
  .feature-text { max-width: 100%; }
  .feature-visual { padding: 22px; }

  .usecase-grid { grid-template-columns: 1fr; gap: 12px; }
  .usecase-card { padding: 22px; }

  .security-grid { grid-template-columns: 1fr; gap: 12px; }

  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-card-popular { transform: none; }
  .pricing-card-popular:hover { transform: translateY(-2px); }
  .pricing-toggle { margin-bottom: 28px; }
  .pricing-toggle-btn { padding: 0 14px; font-size: 13px; }

  /* Comparison auf Mobile: jede Frage ist eine eigene Card mit klarer
     "Excel-Schmerz → Prozessdeck-Lösung"-Hierarchie. Excel-Zeile gedämpft,
     Prozessdeck-Zeile mit Akzent-Background, beide deutlich voneinander
     abgesetzt. */
  .comparison { padding: 64px 0; }
  .cmp-table {
    box-shadow: none;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .cmp-head { display: none; }
  .cmp-row {
    grid-template-columns: 1fr;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  }
  .cmp-feature {
    padding: 14px 16px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--line);
  }
  .cmp-old {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ink-3);
    background: transparent;
    border-bottom: 1px solid var(--line);
    text-decoration: line-through;
    text-decoration-color: var(--ink-4);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .cmp-old::before {
    width: 16px; height: 16px;
    margin: 1px 0 0 0;
    flex-shrink: 0;
    /* X bleibt nicht durchgestrichen, nur der Text */
    text-decoration: none;
  }
  .cmp-new {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    background: var(--accent-tint);
    border-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .cmp-new::before {
    width: 16px; height: 16px;
    margin: 1px 0 0 0;
    flex-shrink: 0;
  }

  .cmp-aside { padding: 16px 18px; gap: 12px; }
  .cmp-aside-icon { width: 28px; height: 28px; }
  .cmp-aside p { font-size: 14px; }

  /* Use-Case-Strip mobile */
  .usecase-strip { padding: 22px 0 28px; }
  .usecase-strip-pills { gap: 6px; }
  .usecase-pill { padding: 6px 12px; font-size: 12.5px; }

  .faq-item summary { font-size: 15px; padding: 16px; }
  .faq-body { padding: 0 16px 18px; }

  .cta-final-buttons { flex-direction: column; align-items: stretch; }
  .cta-final-buttons .btn { width: 100%; }

  .footer { padding: 48px 0 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container, .container-narrow, .topbar-inner { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Pricing-Cards auf sehr schmalen Phones kompakter — padding-left bleibt
     erhalten (24px) damit das Häkchen-Icon nicht den Text überdeckt. */
  .pricing-card { padding: 22px 20px; }
  .pricing-features li { padding: 5px 0 5px 24px; font-size: 13.5px; }

  /* Pricing-included Pills: breaking auf neue Zeile statt overflow */
  .pricing-included { margin-top: 40px; }
  .pricing-included-list li { font-size: 12.5px; padding: 6px 12px 6px 10px; }

  /* Trial-Form padding kürzen */
  .trial { padding: 56px 0; }
  .trial-form { padding: 22px 18px; }

  /* Login-Modal — Modal-Card schmaler + weniger Padding */
  .login-modal { padding: 16px; }
  .login-modal-card { padding: 28px 22px; }

  /* Whitepaper-Card weniger padding */
  .whitepaper-card { padding: 28px 22px; }

  /* Pricing-Toggle schlanker — height bleibt 36px, save-Hint wird kleiner */
  .pricing-toggle-save { font-size: 10px; }
}

/* Sehr kleine Phones (< 380px) — letzter Fallback */
@media (max-width: 380px) {
  .pricing-included-list { gap: 6px; }
  .trial-suffix { font-size: 12px; padding: 0 10px; }
  h1 { font-size: 30px !important; }
}

/* ─── Trial-Signup ─── */
.trial {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-sunken) 100%);
}
.trial-form {
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(30,64,175,0.05);
}
.trial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.trial-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trial-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.trial-field input[type="text"],
.trial-field input[type="email"],
.trial-field input[type="password"] {
  font-family: inherit;
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid var(--ink-4);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  width: 100%;
  box-sizing: border-box;
}
.trial-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.trial-subdomain {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink-4);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.trial-subdomain:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.trial-subdomain input {
  flex: 1;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.trial-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--bg-sunken);
  border-left: 1px solid var(--ink-4);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  color: var(--ink-3);
}
.trial-hint {
  font-size: 12px;
  color: var(--ink-3);
  min-height: 16px;
}
.trial-hint-checking { color: var(--ink-3); }
.trial-hint-ok      { color: #047857; }
.trial-hint-error   { color: #b91c1c; }
.trial-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.trial-checkbox input { margin-top: 3px; flex-shrink: 0; }
.trial-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.trial-notice {
  background: oklch(0.96 0.04 150);
  border: 1px solid oklch(0.85 0.08 150);
  color: oklch(0.32 0.10 150);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.trial-form button[type="submit"] { margin-top: 4px; }
.trial-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.trial-foot {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin: 4px 0 0;
}

.trial-success {
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 16px;
  padding: 48px 32px;
  margin-top: 32px;
  text-align: center;
}
.trial-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.trial-success h3 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--ink);
}
.trial-success p { margin: 4px 0; }
.trial-success-url {
  margin-top: 20px !important;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 15px;
}
.trial-success-meta {
  margin-top: 16px !important;
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .trial { padding: 64px 0; }
  .trial-form { padding: 24px 20px; }
  .trial-row { grid-template-columns: 1fr; }
}

.trial-success-user {
  margin-top: 8px !important;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  color: var(--ink-2);
}

/* ─── Login-Modal ─── */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-modal[hidden] { display: none; }
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.login-modal-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 14px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  animation: login-pop 180ms ease-out;
}
@keyframes login-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}
.login-modal-close:hover { background: var(--bg-sunken); color: var(--ink); }
.login-modal-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}
.login-modal-card p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-modal-hint {
  font-size: 13px !important;
  color: var(--ink-3);
  margin: 0 !important;
  text-align: center;
}
.login-modal-hint a { font-weight: 500; }

/* ─── Whitepaper-Block ─── */
.whitepaper-block {
  padding: 96px 0;
  background: var(--bg-sunken);
}
.whitepaper-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 56px;
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 18px;
  padding: 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 32px rgba(30,64,175,0.06);
}
.whitepaper-text .eyebrow { font-size: 12px; }
.whitepaper-text h2 { font-size: 32px; margin: 12px 0 16px; }
.whitepaper-text p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 56ch;
}
.whitepaper-text .btn { display: inline-flex; align-items: center; gap: 8px; }
.whitepaper-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}
.whitepaper-doc {
  width: 220px;
  aspect-ratio: 8.5 / 11;
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 6px;
  padding: 24px 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18),
              0 2px 6px rgba(15, 23, 42, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-3deg);
  transition: transform 240ms ease;
}
.whitepaper-doc:hover { transform: rotate(0deg) scale(1.02); }
.whitepaper-doc-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--accent);
  border-radius: 6px 6px 0 0;
}
.whitepaper-doc-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.whitepaper-doc-line {
  height: 4px;
  border-radius: 2px;
  background: var(--ink-4);
  width: 100%;
}
.whitepaper-doc-line.short { width: 60%; }

@media (max-width: 720px) {
  .whitepaper-block { padding: 64px 0; }
  .whitepaper-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; text-align: center; }
  .whitepaper-text p { margin-left: auto; margin-right: auto; }
  .whitepaper-doc { transform: none; margin: 0 auto; width: 180px; }
}

/* "In jedem Plan enthalten" — Pill-Row unter den Pricing-Cards.
   Bewusst KEIN Container-Background — soll als luftige Feature-Strip
   visuell zwischen Cards und Footer atmen. */
.pricing-included {
  margin: 64px auto 0;
  max-width: 1080px;
  text-align: center;
}
.pricing-included-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.pricing-included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.pricing-included-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--ink-4);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 120ms, color 120ms;
}
.pricing-included-list li:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.pricing-included-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E40AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8 7 12 13 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── Self-Hosted-Bestellseite (/self-hosted.html) ─── */
.sh-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 36px;
  align-items: stretch;
}
.sh-card {
  position: relative;
  background: #ffffff;
  border: 1px solid oklch(0.85 0.008 270);
  border-radius: 14px;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
}
.sh-card-optional {
  background: oklch(0.985 0.003 270);
  border-style: dashed;
}
/* Eyebrow-Tag oben in beiden Cards — strukturell identisch (gleiche Höhe,
   gleiches Padding) damit die Heading-Zeilen darunter auf gleicher Linie
   sitzen, unabhängig von Pillen-Text-Länge. */
.sh-card-eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: oklch(0.94 0.02 250);
  color: oklch(0.40 0.10 255);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sh-card-eyebrow-optional {
  background: oklch(0.94 0.005 270);
  color: oklch(0.45 0.012 270);
}
.sh-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sh-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.sh-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.sh-card-amount {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sh-card-unit {
  font-size: 12.5px;
  color: var(--ink-3);
}
.sh-card-tag {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.sh-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  flex: 1;
}
.sh-card-features li {
  position: relative;
  padding: 5px 0 5px 22px;
  line-height: 1.5;
}
.sh-card-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231E40AF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.sh-form-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .sh-packages { grid-template-columns: 1fr; gap: 14px; }
  .sh-card { padding: 20px 18px 20px; }
  .sh-card-eyebrow { margin-bottom: 12px; }
  .sh-card-head h3 { font-size: 16px; }
  .sh-card-amount { font-size: 22px; }
}

/* ─── Customer-Portal (/self-hosted-portal.html) ─── */
.portal-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-3);
  font-size: 14px;
}
.portal-card {
  background: #ffffff;
  border: 1px solid oklch(0.88 0.008 270);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 16px 0;
}
.portal-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.portal-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.portal-version {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  color: var(--ink-2);
  background: oklch(0.96 0.005 270);
  padding: 3px 10px;
  border-radius: 6px;
}
.portal-card-tag {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 4px 0 16px;
  line-height: 1.55;
}
.portal-kv {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 6px 16px;
  font-size: 14px;
}
.portal-kv dt {
  color: var(--ink-3);
  font-weight: 500;
}
.portal-kv dd {
  margin: 0;
  color: var(--ink);
}
.portal-mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  word-break: break-all;       /* lange Lizenzkeys umbrechen statt overflow */
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 4px;
}
.portal-table th,
.portal-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid oklch(0.93 0.005 270);
}
.portal-table th {
  font-weight: 600;
  color: var(--ink-2);
  background: oklch(0.985 0.003 270);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-table tr:last-child td { border-bottom: none; }
.portal-empty {
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 8px 0;
  font-style: italic;
}

@media (max-width: 720px) {
  .portal-card { padding: 18px 16px; }
  .portal-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .portal-card-head h3 { font-size: 15px; }
  .portal-version { font-size: 12.5px; }

  /* dl als block-stack — dt klein über dd, klare Trennung */
  .portal-kv {
    display: block;
    margin: 4px 0 0;
  }
  .portal-kv dt {
    margin-top: 14px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-3);
  }
  .portal-kv dt:first-of-type { margin-top: 0; }
  .portal-kv dd {
    margin: 4px 0 0;
    font-size: 14px;
  }

  /* Tabelle scrollt horizontal wenn nötig statt overflow */
  .portal-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .portal-table th, .portal-table td { padding: 7px 10px; font-size: 12.5px; }

  /* Download-Button + Stripe-Button full-width auf mobile */
  .portal-card .btn { width: 100%; box-sizing: border-box; }
}

/* ─── Cookie-Banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: #ffffff;
  border-top: 1px solid oklch(0.85 0.008 270);
  box-shadow: 0 -8px 24px -10px rgba(0,0,0,0.12);
  animation: cookie-slide-up 280ms ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner.is-leaving {
  animation: cookie-slide-down 240ms ease-in forwards;
}
@keyframes cookie-slide-down {
  to { transform: translateY(100%); opacity: 0; }
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 360px;
  min-width: 280px;
}
.cookie-banner-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cookie-banner-text a { color: #2563eb; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner-actions .btn { white-space: nowrap; }

@media (max-width: 720px) {
  .cookie-banner-inner { padding: 14px 16px; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}
