/* Prompt Path — Global Styles */
:root {
  --bg: #FFFFFF;
  --bg-elev: #FFFFFF;
  --bg-soft: #F5F5F1;
  --line: #E7E5DE;
  --line-soft: #EFEEE8;
  --ink: #1F2022;
  --ink-2: #3A3C3F;
  --ink-3: #6B6E72;
  --ink-4: #9AA0A6;
  --accent: #2A2C2F;
  --accent-soft: #E5DBC7;
  --thread: #A07E5E;
  --thread-soft: #F0E6D4;

  /* Kompetenz pastel palette */
  --k1: #4A7FBF; --k1-bg: #E3EDF9; --k1-border: #3D6BA0; --k1-accent: #2B4F7D;
  --k2: #3FA89E; --k2-bg: #DDF0ED; --k2-border: #2E8F85; --k2-accent: #1F6B63;
  --k3: #5AA454; --k3-bg: #E1EFDF; --k3-border: #3F7A38; --k3-accent: #2E5C29;
  --k4: #C9A236; --k4-bg: #F4EBCF; --k4-border: #A08126; --k4-accent: #6E591A;
  --k5: #D98636; --k5-bg: #F6E3D0; --k5-border: #A5651F; --k5-accent: #6E4410;
  --k6: #CC5A48; --k6-bg: #F5DAD3; --k6-border: #A33E2D; --k6-accent: #7A2A1C;
  --k7: #8B5FB3; --k7-bg: #E8DEF2; --k7-border: #6B4490; --k7-accent: #4A2E68;
  --k8: #3E5B82; --k8-bg: #D8E0EC; --k8-border: #2A446E; --k8-accent: #1C304F;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(25,25,25,0.04);
  --shadow: 0 1px 3px rgba(25,25,25,0.06), 0 1px 2px rgba(25,25,25,0.04);
  --shadow-lg: 0 20px 40px rgba(25,25,25,0.10), 0 8px 20px rgba(25,25,25,0.06);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* === Copy Counter === */
.copy-counter {
  position: fixed; bottom: 10px; right: 10px; z-index: 60;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.55);
  color: var(--ink-4);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.02em;
  border: 1px solid rgba(0,0,0,0.05);
  transition: opacity .2s ease, transform .25s ease, background .2s ease;
  user-select: none; opacity: 0.55;
}
.copy-counter:hover { opacity: 0.95; }
.copy-counter-icon { opacity: 0.55; font-size: 9px; }
.copy-counter-num { font-weight: 600; color: var(--ink-3); }
.copy-counter-lbl { opacity: 0.6; }
.copy-counter.pulse { opacity: 0.95; transform: scale(1.08); background: rgba(217,134,54,0.18); }
.copy-counter.pulse .copy-counter-num { color: var(--accent, #D98636); }
.lh-bar {
  background: #FAFAF7;
  border-bottom: 1px solid var(--line-soft);
}
.lh-bar-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 32px;
  min-height: 44px;
}
.lh-bar-text {
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-3); text-transform: uppercase; font-weight: 500;
}
.lh-bar-logo {
  display: inline-flex; align-items: center;
  transition: opacity .15s ease;
}
.lh-bar-logo:hover { opacity: 0.75; }
.lh-bar-logo img {
  height: 22px; width: auto; display: block;
}

/* === Lock + Unlock === */
.pcard.locked {
  position: relative;
}
.pcard.locked::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,250,247,0.55) 0%, rgba(250,250,247,0.78) 100%);
  border-radius: inherit;
  pointer-events: none;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.pcard.locked:hover::after {
  background: linear-gradient(180deg, rgba(250,250,247,0.35) 0%, rgba(250,250,247,0.55) 100%);
}
.pcard-lock {
  position: absolute; top: 14px; right: 14px;
  z-index: 2;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 0 0 3px rgba(0,0,0,0.06);
}
.pcard.locked .pcard-pfad { opacity: 0.5; }

.topbar-unlock {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 8px;
  background: var(--ink); color: #fff;
  border: 1.5px solid var(--ink);
  font-size: 13px; font-weight: 600;
  margin-left: 8px;
  transition: all .15s ease;
}
.topbar-unlock:hover { background: #000; }
.topbar-unlocked {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: #DDF0ED; color: #1F6B63;
  border: 1px solid #2E8F85;
  font-size: 12px; font-weight: 600;
  margin-left: 8px;
}

/* Unlock modal */
.unlock-modal {
  background: var(--bg-elev);
  border-radius: 16px;
  max-width: 480px; width: 100%;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  text-align: left;
}
.unlock-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
}
.unlock-modal h2 {
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.15;
  margin: 6px 0 14px; font-weight: 600;
}
.unlock-lede {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 24px;
}
.unlock-form { display: flex; flex-direction: column; gap: 10px; }
.unlock-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.unlock-input {
  padding: 13px 16px; border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 15px; font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: border-color .15s ease;
}
.unlock-input:focus {
  outline: none; border-color: #D98636;
  box-shadow: 0 0 0 3px rgba(217, 134, 54, 0.15);
}
.unlock-input.error {
  border-color: #CC5A48;
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.unlock-error {
  font-size: 13px; color: #A33E2D; font-weight: 500;
}
.unlock-submit {
  margin-top: 6px;
  padding: 13px 20px; border-radius: 9px;
  background: #D98636; color: #fff;
  border: 1.5px solid #D98636;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(217, 134, 54, 0.25);
  transition: all .15s ease;
}
.unlock-submit:hover { background: #C07420; border-color: #C07420; }
.unlock-hint {
  margin: 20px 0 0; font-size: 12.5px; color: var(--ink-3);
}
.unlock-hint a { color: #D98636; text-decoration: underline; }

/* === Top bar === */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 18px;
  font-weight: 600; letter-spacing: -0.015em; font-size: 32px;
}
.brand-mark {
  width: 50px; height: 50px; border-radius: 11px;
  background:
    linear-gradient(135deg, var(--k1) 0%, var(--k7) 50%, var(--k6) 100%);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 2.5px solid rgba(255,255,255,0.88); border-radius: 4px;
}
.brand-sub { color: var(--ink-3); font-weight: 400; font-size: 17px; margin-left: 4px; letter-spacing: -0.005em; }

.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a {
  text-decoration: none; color: var(--ink-3); font-size: 14px;
  padding: 6px 12px; border-radius: 7px;
  transition: all .15s ease;
}
.topbar-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.topbar-nav a.active { color: var(--ink); background: var(--bg-soft); }

.topbar-cta {
  font-size: 14px; padding: 8px 14px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 8px;
  font-weight: 500; letter-spacing: -0.005em;
}
.topbar-cta:hover { background: #000; }

/* Roter Faden journey bar under topbar */
.thread-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.thread-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.thread-inner::-webkit-scrollbar { display: none; }
.thread-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  white-space: nowrap; padding-right: 8px;
  border-right: 1px solid var(--line);
}
.thread-steps { display: flex; align-items: center; gap: 4px; flex: 1; }
.thread-step {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 13px; white-space: nowrap;
  transition: all .15s ease;
}
.thread-step:hover { background: var(--bg-soft); color: var(--ink); }
.thread-step.active { background: var(--thread-soft); color: var(--thread); }
.thread-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-4);
}
.thread-step.active .thread-dot { background: var(--thread); }
.thread-arrow { color: var(--ink-4); font-size: 11px; }

/* === Compact Hero === */
.hero-compact {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg) 0%, #F4EBCF33 100%);
}
.hero-compact-inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.hero-compact-lede {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
  max-width: 680px; margin: 20px 0 0;
}
.hero-compact h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 1.05; margin: 10px 0 0; text-wrap: balance;
}
.hero-compact h1 em {
  font-style: normal; font-weight: 600;
  background: linear-gradient(120deg, #8B5FB3, #4A7FBF 60%, #3FA89E);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 20px; border-radius: 9px; font-size: 14px; font-weight: 600;
  background: #D98636; color: #fff; border: 1.5px solid #D98636;
  box-shadow: 0 2px 8px rgba(217, 134, 54, 0.25);
  transition: all .15s ease;
}
.btn-primary:hover { background: #C07420; border-color: #C07420; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217, 134, 54, 0.35); }
.btn-secondary {
  padding: 12px 20px; border-radius: 9px; font-size: 14px; font-weight: 500;
  background: var(--bg-elev); color: var(--ink); border: 1.5px solid var(--line);
  transition: all .15s ease;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Galerie head */
.sec-galerie { padding: 56px 0 96px; }
.galerie-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 32px; flex-wrap: wrap;
}
.galerie-head h2 {
  font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.025em;
  line-height: 1.1; margin: 10px 0 0; font-weight: 700;
}
.galerie-hint {
  margin: 14px 0 0; max-width: 60ch;
  color: var(--ink-3); font-size: 15px; line-height: 1.55;
}
.galerie-head-meta {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 18px; background: var(--bg-soft); border-radius: 10px;
}
.galerie-meta-num { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: #D98636; }
.galerie-meta-label { font-size: 12px; color: var(--ink-3); line-height: 1.2; }

/* legacy hero (unused, kept) */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: none;
}
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, var(--k7-bg) 0%, transparent 60%);
  opacity: 0.6; pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 72px;
  align-items: start;
  position: relative;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--ink-4);
}

.hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; font-weight: 500;
  background: linear-gradient(120deg, var(--k7-accent), var(--k1-accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-2);
  max-width: 560px; margin: 0 0 36px;
}

.hero-meta {
  display: flex; gap: 32px; align-items: flex-start;
  padding-top: 28px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.meta-item { font-size: 13px; color: var(--ink-3); }
.meta-item strong { display: block; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 2px; font-family: var(--font-sans); }

/* Hero right — test starter card */
.test-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.test-card-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--k7-accent); font-weight: 600;
  margin-bottom: 18px;
}
.test-card-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--k7); border-radius: 50%; }
.test-card h3 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 10px; line-height: 1.25;
}
.test-card p { color: var(--ink-3); font-size: 14px; margin: 0 0 24px; }
.test-card-steps {
  display: grid; gap: 10px; margin-bottom: 28px;
  font-size: 13px; color: var(--ink-2);
}
.test-card-step { display: flex; gap: 10px; align-items: baseline; }
.test-card-step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-4); min-width: 18px;
}
.test-start-btn {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: all .15s ease;
}
.test-start-btn:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow); }
.test-start-btn .arrow { transition: transform .2s ease; }
.test-start-btn:hover .arrow { transform: translateX(4px); }

/* === Section chrome === */
section.sec { padding: 96px 0; border-bottom: 1px solid var(--line-soft); }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.sec-head h2 {
  font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.15; margin: 12px 0 16px;
  text-wrap: balance;
}
.sec-head .eyebrow { margin-bottom: 0; }
.sec-head p { font-size: 17px; color: var(--ink-2); margin: 0; max-width: 620px; line-height: 1.55; }

/* === Pfade === */
.pfade {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 820px) { .pfade { grid-template-columns: 1fr; } }
.pfad-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all .2s ease;
}
.pfad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--ink-4); }
.pfad-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pfad-card.basis::before  { background: linear-gradient(90deg, var(--k1), var(--k2)); }
.pfad-card.praxis::before { background: linear-gradient(90deg, var(--k5), var(--k6)); }
.pfad-card.profi::before  { background: linear-gradient(90deg, var(--k7), var(--k8)); }

.pfad-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-3); margin-bottom: 16px;
}
.pfad-card h3 {
  font-size: 28px; font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pfad-kurz { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; font-weight: 500; }
.pfad-desc { font-size: 14px; color: var(--ink-3); margin: 0 0 24px; line-height: 1.6; }
.pfad-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.pfad-stat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }

/* === Kompetenzen === */
.k-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 980px) { .k-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .k-grid { grid-template-columns: 1fr; } }
.k-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  cursor: pointer;
  transition: all .18s ease;
  min-height: 150px;
  display: flex; flex-direction: column;
}
.k-card:hover { border-color: var(--k-c); background: var(--k-bg); transform: translateY(-2px); }
.k-card.active { background: var(--k-bg); border-color: var(--k-c); }
.k-card .k-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.k-card .k-id {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.25;
}
.k-card .k-swatch {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--k-c);
  box-shadow: 0 0 0 1.5px var(--k-b);
}
.k-card h4 {
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 6px; line-height: 1.3;
}
.k-card p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.45; }
.k-card .k-count {
  margin-top: auto; padding-top: 14px;
  font-size: 11.5px; color: var(--ink-4); font-family: var(--font-mono);
}

/* === Wie funktioniert === */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; gap: 24px; } }
.how-step {
  padding: 0 8px;
  position: relative;
}
.how-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.05em; margin-bottom: 20px; display: block;
}
.how-step h4 {
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 12px; line-height: 1.3;
}
.how-step p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.6; }
.how-visual {
  height: 140px;
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--bg-elev);
  position: relative; overflow: hidden;
}

/* === Galerie / Filters === */
.gallery-controls {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 22px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  position: sticky; top: 118px; z-index: 10;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; margin-right: 8px; min-width: 68px;
}
.chip {
  font-size: 13px; padding: 6px 12px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-2);
  cursor: pointer; transition: all .15s ease;
  font-family: var(--font-sans);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.k-chip.active { color: #fff; }
.chip .swatch {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  background: var(--k-c, var(--ink-4));
  box-shadow: 0 0 0 1px var(--k-b, var(--line));
}
.filter-row-search {
  display: flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.search-input {
  flex: 1; border: none; background: transparent;
  font-size: 14px; color: var(--ink); padding: 6px 0;
  outline: none; font-family: var(--font-sans);
}
.search-input::placeholder { color: var(--ink-4); }
.sort-toggle {
  display: flex; gap: 2px; background: var(--bg-soft); padding: 3px;
  border-radius: 8px;
}
.sort-toggle button {
  border: none; background: transparent;
  padding: 6px 12px; font-size: 12px; border-radius: 6px;
  color: var(--ink-3);
}
.sort-toggle button.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }

.filter-result {
  font-size: 12px; color: var(--ink-3); font-family: var(--font-mono);
}

/* Prompt Cards */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.pcard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 200px;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--k-c); }
.pcard.recommended {
  box-shadow: 0 0 0 1.5px var(--k-c), var(--shadow);
  border-color: transparent;
  background: linear-gradient(180deg, var(--k-bg) 0%, var(--bg-elev) 70%);
}
.pcard.dim { opacity: 0.55; }
.pcard.dim:hover { opacity: 1; }
.pcard-strip {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px; background: var(--k-c);
  border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius);
}
.pcard-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; gap: 10px;
}
.pcard-num {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--k-a); letter-spacing: 0.03em; font-weight: 600;
  background: var(--k-bg);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--k-b);
}
.pcard-pfad {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-3);
}
.pcard-pfad.Basis { background: #E3EDF9; color: #2B4F7D; }
.pcard-pfad.Praxis { background: #F6E3D0; color: #6E4410; }
.pcard-pfad.Profi { background: #E8DEF2; color: #4A2E68; }
.pcard h4 {
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  margin: 0 0 10px; line-height: 1.3;
  text-wrap: balance;
}
.pcard-ziel {
  font-size: 13px; color: var(--ink-2); margin: 0 0 16px;
  line-height: 1.5; flex: 1;
}
.pcard-ziel::before { content: "→ "; color: var(--k-a); font-weight: 600; }
.pcard-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.pcard-tag {
  font-family: var(--font-sans); font-size: 10.5px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--k-bg); color: var(--k-a);
  font-weight: 500;
}
.pcard-util {
  font-size: 11px; color: var(--ink-3);
  padding: 2px 6px; background: var(--bg-soft); border-radius: 4px;
}
.pcard-af {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; padding: 2px 6px;
  border-radius: 4px;
  background: var(--thread-soft); color: var(--thread);
}

/* === Detail overlay === */
.overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,22,0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 60px 24px;
  overflow-y: auto;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.detail {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  max-width: 760px; width: 100%;
  padding: 44px 48px 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) { .detail { padding: 32px 24px 28px; } }
.detail-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none;
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--ink-3); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.detail-close:hover { background: var(--bg-soft); color: var(--ink); }
.detail-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px; font-weight: 600;
}
.detail-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-c); }
.detail h2 {
  font-size: 30px; font-weight: 500; letter-spacing: -0.02em;
  margin: 0 0 18px; line-height: 1.2;
  text-wrap: balance;
}
.detail-ziel {
  background: var(--k-bg);
  border-left: 3px solid var(--k-c);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.detail-ziel strong { color: var(--k-a); font-weight: 600; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
}
.detail-meta .chip-static {
  font-size: 11px; padding: 3px 9px; border-radius: 4px;
  background: var(--bg-soft); color: var(--ink-3);
  font-family: var(--font-mono);
}
.detail-prompt-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; margin-bottom: 8px;
}
.detail-prompt-hint { letter-spacing: 0; text-transform: none; color: #D98636; font-weight: 500; font-size: 11.5px; }
.detail-prompt-wrap { position: relative; margin-bottom: 28px; }
.detail-prompt {
  background: #1F2022;
  color: #F5F3EE;
  border-radius: 10px;
  padding: 22px 24px 68px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.copy-btn {
  position: absolute; bottom: 14px; right: 14px;
  background: #D98636;
  color: #fff;
  border: 1.5px solid #D98636;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  font-family: var(--font-sans);
  display: flex; align-items: center; gap: 8px;
  transition: all .15s ease;
  box-shadow: 0 2px 8px rgba(217, 134, 54, 0.3), 0 0 0 3px rgba(217, 134, 54, 0.15);
  letter-spacing: -0.005em;
}
.copy-btn:hover { background: #C07420; border-color: #C07420; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217, 134, 54, 0.4), 0 0 0 3px rgba(217, 134, 54, 0.2); }
.copy-btn:active { transform: translateY(0); }
.copy-btn.copied { background: #3FA89E; border-color: #3FA89E; box-shadow: 0 2px 8px rgba(63, 168, 158, 0.3), 0 0 0 3px rgba(63, 168, 158, 0.15); }
.detail-section { margin-bottom: 24px; }
.detail-section-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600; margin-bottom: 8px;
}
.detail-erklaerung {
  font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0;
}
.detail-leitfragen {
  background: var(--bg-soft);
  border-radius: 8px; padding: 16px 18px;
  font-size: 13.5px;
}
.detail-leitfragen ul {
  margin: 6px 0 0; padding-left: 18px; color: var(--ink-2);
}
.detail-leitfragen li { margin-bottom: 4px; }

/* === Test Overlay === */
.test-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200; overflow-y: auto;
  display: flex; flex-direction: column;
}
.test-bar {
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  position: sticky; top: 0; z-index: 5;
}
.test-progress {
  flex: 1; max-width: 400px; margin: 0 24px;
  height: 3px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.test-progress-fill { height: 100%; background: var(--thread); transition: width .3s ease; }
.test-bar-meta { font-size: 12px; color: var(--ink-3); font-family: var(--font-mono); }

.test-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.test-question {
  max-width: 640px; width: 100%;
}
.test-q-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 20px;
}
.test-q-eyebrow .k-dot { width: 8px; height: 8px; border-radius: 50%; }
.test-q-text {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.015em;
  line-height: 1.3; margin: 0 0 32px;
  text-wrap: balance;
}
.test-options { display: flex; flex-direction: column; gap: 10px; }
.test-option {
  text-align: left; width: 100%;
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 18px 22px; border-radius: 10px;
  font-size: 15px; color: var(--ink-2); line-height: 1.5;
  transition: all .15s ease;
  display: flex; gap: 14px; align-items: flex-start;
  font-family: var(--font-sans);
}
.test-option:hover { border-color: var(--ink); background: var(--bg-soft); }
.test-option.selected { border-color: var(--thread); background: var(--thread-soft); color: var(--ink); }
.test-option-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-4); min-width: 20px; padding-top: 2px;
}
.test-option.selected .test-option-num { color: var(--thread); }

.test-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 32px;
}
.test-btn {
  padding: 11px 22px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink);
  font-weight: 500; transition: all .15s ease;
}
.test-btn:hover:not(:disabled) { border-color: var(--ink); }
.test-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.test-btn.primary:hover { background: #000; }
.test-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Result screen */
.result-wrap {
  max-width: 880px; margin: 0 auto; padding: 56px 32px 80px;
}
.result-wrap h1 {
  font-size: clamp(32px, 4vw, 46px); font-weight: 500; letter-spacing: -0.025em;
  margin: 0 0 14px; line-height: 1.1;
}
.result-wrap > .eyebrow { margin-bottom: 0; }
.result-lede { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 16px 0 48px; }
.result-profile {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .result-profile { grid-template-columns: 1fr; } }
.result-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.result-card.strengths { border-top: 3px solid var(--k3); }
.result-card.risks { border-top: 3px solid var(--k6); }
.result-card.next { border-top: 3px solid var(--k7); }
.result-card-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 14px;
}
.result-card h3 {
  font-size: 20px; font-weight: 500; letter-spacing: -0.015em;
  margin: 0 0 12px; line-height: 1.3;
}
.result-card ul {
  margin: 0; padding-left: 0; list-style: none;
  font-size: 14px; color: var(--ink-2); line-height: 1.6;
}
.result-card li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: flex-start; }
.result-card li:last-child { border-bottom: none; }
.result-card li .k-dot { min-width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }

.result-bars {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  margin-bottom: 48px;
}
.result-bars h3 { font-size: 17px; font-weight: 500; margin: 0 0 20px; letter-spacing: -0.01em; }
.k-bar-row { display: grid; grid-template-columns: 200px 1fr 40px; gap: 16px; align-items: center; padding: 8px 0; }
.k-bar-name { font-size: 13px; display: flex; align-items: center; gap: 10px; }
.k-bar-track { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.k-bar-fill { height: 100%; border-radius: 999px; transition: width .6s ease; }
.k-bar-val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }

.result-next {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.result-next h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 6px; }
.result-next p { color: var(--ink-3); margin: 0; font-size: 14px; }

/* === Footer === */
footer {
  padding: 56px 0 64px;
  color: var(--ink-3); font-size: 13px;
}
.foot {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.foot p { margin: 0; max-width: 420px; line-height: 1.6; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* Misc */
.noscroll { overflow: hidden; }
