/* ============================================================
   RAG-SYSTEME — ibetmax.com · KI & AI Hub
   Dunkler Hub-Look, Glassmorphism, Cyan/Blau + Amber.
   Tokens & Komponenten übernommen aus llm-kompass.css,
   ergänzt um Wissenswolke (SVG) und kompakten Max-CTA.
   Keine externen Ressourcen.
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:          #07080b;
  --bg2:         #0c111a;
  --bg3:         #0a1320;
  --cyan:        rgba(56,189,248,1);
  --cyan-dim:    rgba(56,189,248,.55);
  --cyan-faint:  rgba(56,189,248,.07);
  --cyan-glow:   rgba(56,189,248,.15);
  --blue:        rgba(59,130,246,1);
  --blue-dim:    rgba(59,130,246,.55);
  --amber:       rgba(245,200,66,1);
  --amber-dim:   rgba(245,200,66,.55);
  --amber-faint: rgba(245,200,66,.07);
  --green:       rgba(74,222,128,1);
  --green-dim:   rgba(74,222,128,.55);
  --green-faint: rgba(74,222,128,.07);
  --rose:        rgba(248,113,113,1);
  --rose-dim:    rgba(248,113,113,.55);
  --rose-faint:  rgba(248,113,113,.07);
  --text:        rgba(255,255,255,.92);
  --text-dim:    rgba(255,255,255,.56);
  --text-faint:  rgba(255,255,255,.32);
  --border:      rgba(255,255,255,.08);
  --border-c:    rgba(56,189,248,.22);
  --radius:      20px;
  --radius-sm:   12px;
  --maxw:        1040px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
               "Noto Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
p { color: var(--text-dim); overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: break-word; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04121d; font-weight: 800;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-size: 13px;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 76px 0; }

/* ── STICKY TOC ──────────────────────────────────────────── */
.toc-bar {
  position: sticky; top: 51px; z-index: 90;
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  background: rgba(8,12,18,.86);
  border-bottom: 1px solid var(--border);
}
.toc-bar__inner {
  display: flex; gap: 6px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 9px 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(56,189,248,.3) transparent;
}
.toc-bar__inner::-webkit-scrollbar { height: 5px; }
.toc-bar__inner::-webkit-scrollbar-thumb { background: rgba(56,189,248,.3); border-radius: 100px; }
.toc-link {
  flex-shrink: 0; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 5px 13px; transition: color .2s, border-color .2s, background .2s;
}
.toc-link:hover {
  color: var(--cyan); border-color: var(--border-c);
  background: var(--cyan-faint); text-decoration: none;
}
.toc-link b { color: var(--cyan); font-weight: 800; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 76px;
  background: linear-gradient(165deg, var(--bg) 50%, #0a1622 100%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black, transparent);
}
.hero__glow {
  position: absolute; pointer-events: none;
  width: 720px; height: 720px; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle,
    rgba(56,189,248,.10) 0%,
    rgba(59,130,246,.05) 40%,
    transparent 70%);
}
.hero__content { position: relative; text-align: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); background: var(--cyan-faint);
  border: 1px solid var(--border-c); border-radius: 100px;
  padding: 6px 16px; margin-bottom: 22px; max-width: 100%;
}
.hero__kicker span:last-child { overflow-wrap: break-word; }
.hero__title {
  font-size: clamp(32px, 6.4vw, 60px); font-weight: 900; line-height: 1.04;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.hero__title em { color: var(--cyan); font-style: normal; }
.hero__sub {
  font-size: clamp(16px, 2.4vw, 21px); color: var(--text);
  max-width: 640px; margin: 0 auto 18px; line-height: 1.4; font-weight: 600;
}
.hero__intro {
  font-size: 15px; color: var(--text-dim); max-width: 680px;
  margin: 0 auto 30px; line-height: 1.75;
}
.hero__claim {
  display: inline-block; max-width: 620px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--amber);
  background: var(--amber-faint); border: 1px solid rgba(245,200,66,.24);
  border-radius: 100px; padding: 9px 20px; margin-bottom: 34px; line-height: 1.4;
}
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 100px; padding: 11px 24px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s, transform .2s, box-shadow .25s;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--cyan-faint); border-color: var(--border-c); color: var(--cyan);
}
.btn--primary:hover {
  background: rgba(56,189,248,.14); border-color: var(--cyan-dim);
  color: var(--cyan); box-shadow: 0 0 22px rgba(56,189,248,.20);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text-dim);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);
  color: var(--text); transform: translateY(-2px);
}

/* ── SECTION HEADINGS ─────────────────────────────────────── */
.sec-header { text-align: center; margin-bottom: 46px; }
.sec-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .20em;
  text-transform: uppercase; color: var(--cyan);
  background: var(--cyan-faint); border: 1px solid rgba(56,189,248,.20);
  border-radius: 100px; padding: 4px 14px 4px 5px; margin-bottom: 14px;
}
.sec-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 100px;
  background: rgba(56,189,248,.16); color: var(--cyan);
  font-size: 10px; font-weight: 900; letter-spacing: 0;
}
.sec-title {
  font-size: clamp(24px, 4vw, 36px); font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.12;
  margin-bottom: 14px;
}
.sec-title em { color: var(--cyan); font-style: normal; }
.sec-text {
  font-size: 15px; color: var(--text-dim); max-width: 660px;
  margin: 0 auto; line-height: 1.75;
}

/* ── SECTION BACKGROUNDS ─────────────────────────────────── */
.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--dark3 {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── GENERIC CARD GRID ───────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--narrow { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.14);
  background: linear-gradient(135deg, rgba(56,189,248,.05) 0%, rgba(7,8,11,.22) 100%);
  padding: 22px 20px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .25s, box-shadow .3s;
  min-width: 0;
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, transparent, rgba(56,189,248,.75), transparent);
  transform: scaleY(0); transform-origin: center;
  transition: transform .35s ease; border-radius: 0 3px 3px 0;
}
.card:hover {
  border-color: rgba(56,189,248,.38); transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.38), 0 0 0 1px rgba(56,189,248,.06);
}
.card:hover::before { transform: scaleY(1); }
.card__badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 100px;
  background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.24);
  color: rgba(56,189,248,.85); margin-bottom: 11px;
}
.card__badge--blue {
  background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.26);
  color: rgba(99,165,255,.92);
}
.card__title {
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: rgba(255,255,255,.92); margin-bottom: 8px; line-height: 1.3;
}
.card__text {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.65; margin: 0;
}
.card__text b { color: rgba(255,255,255,.82); font-weight: 700; }

/* Icon card variant */
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 13px;
  transition: background .25s, box-shadow .25s;
}
.card:hover .card__icon {
  background: rgba(56,189,248,.18); box-shadow: 0 0 18px rgba(56,189,248,.22);
}

/* Numbered card variant */
.card--num { display: flex; gap: 15px; align-items: flex-start; }
.card--num::before { display: none; }
.card__num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: var(--cyan);
}
.card__body { flex: 1; min-width: 0; }

/* ── GLOSSARY / TERMS ────────────────────────────────────── */
.terms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.term {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  padding: 16px 18px; min-width: 0;
  transition: border-color .3s, background .3s;
}
.term:hover { border-color: rgba(56,189,248,.24); background: rgba(56,189,248,.04); }
.term__name {
  font-size: 13.5px; font-weight: 800; letter-spacing: .02em;
  color: rgba(255,255,255,.92); margin-bottom: 5px;
}
.term__name span {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: var(--cyan); margin-left: 6px; vertical-align: middle;
}
.term__def { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ── TWO-COLUMN GOOD / LIMIT ─────────────────────────────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.duo__col {
  border-radius: var(--radius);
  padding: 24px 22px; min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.duo__col--good {
  border-color: rgba(74,222,128,.22);
  background: linear-gradient(135deg, var(--green-faint) 0%, rgba(7,8,11,.22) 100%);
}
.duo__col--limit {
  border-color: rgba(245,200,66,.22);
  background: linear-gradient(135deg, var(--amber-faint) 0%, rgba(7,8,11,.22) 100%);
}
.duo__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.duo__col--good .duo__head { color: var(--green); }
.duo__col--limit .duo__head { color: var(--amber); }
.duo__icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.duo__col--good .duo__icon { background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.28); }
.duo__col--limit .duo__icon { background: rgba(245,200,66,.12); border: 1px solid rgba(245,200,66,.28); }
.duo__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.duo__list li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.55;
}
.duo__list li::before {
  position: absolute; left: 0; top: 0; font-weight: 900; font-size: 13px;
}
.duo__col--good .duo__list li::before { content: '✓'; color: var(--green); }
.duo__col--limit .duo__list li::before { content: '!'; color: var(--amber); }

/* ── COMPARE (schlecht / besser Prompt) ──────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.compare__panel {
  border-radius: var(--radius); padding: 22px 22px; min-width: 0;
  border: 1px solid var(--border);
}
.compare__panel--bad {
  border-color: rgba(248,113,113,.24);
  background: linear-gradient(135deg, var(--rose-faint) 0%, rgba(7,8,11,.22) 100%);
}
.compare__panel--good {
  border-color: rgba(74,222,128,.24);
  background: linear-gradient(135deg, var(--green-faint) 0%, rgba(7,8,11,.22) 100%);
}
.compare__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 13px;
}
.compare__panel--bad .compare__label { color: var(--rose); }
.compare__panel--good .compare__label { color: var(--green); }
.compare__quote {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.86);
  font-style: italic; margin: 0;
}

/* ── PROMPT BUILDER (nummerierte Bausteine) ──────────────── */
.builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.builder__item {
  display: flex; gap: 13px; align-items: flex-start;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56,189,248,.14); background: linear-gradient(135deg, rgba(56,189,248,.04) 0%, rgba(7,8,11,.20) 100%);
  padding: 15px 16px; min-width: 0;
  transition: border-color .3s, transform .25s;
}
.builder__item:hover { border-color: rgba(56,189,248,.34); transform: translateY(-2px); }
.builder__num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.26);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: var(--cyan);
}
.builder__body { min-width: 0; }
.builder__name {
  font-size: 13.5px; font-weight: 800; color: rgba(255,255,255,.92);
  letter-spacing: .02em; margin-bottom: 3px;
}
.builder__desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; margin: 0; }

/* ── MERKSATZ BOX ────────────────────────────────────────── */
.merksatz {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,200,66,.08) 0%, rgba(7,8,11,.30) 100%);
  border: 1px solid rgba(245,200,66,.26);
  padding: 22px 26px; margin-top: 28px;
  position: relative; overflow: hidden;
  display: flex; gap: 16px; align-items: flex-start;
}
.merksatz::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,200,66,.55), transparent);
  pointer-events: none;
}
.merksatz__icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.merksatz__label {
  font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber-dim); margin-bottom: 7px;
}
.merksatz__text {
  font-size: 15px; color: rgba(255,255,255,.84); line-height: 1.65; margin: 0; font-weight: 600;
}
.merksatz--cyan {
  background: linear-gradient(135deg, rgba(56,189,248,.08) 0%, rgba(7,8,11,.30) 100%);
  border-color: rgba(56,189,248,.28);
}
.merksatz--cyan::before {
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.55), transparent);
}
.merksatz--cyan .merksatz__label { color: var(--cyan-dim); }

/* ── PIPELINE FLOW ───────────────────────────────────────── */
.flow {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: 10px; justify-content: center; margin-top: 8px;
}
.flow__step {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
  background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.22);
  border-radius: 100px; padding: 10px 18px;
}
.flow__step--blue {
  background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.26);
}
.flow__step--blue .flow__num { background: rgba(59,130,246,.16); color: rgba(120,170,255,1); }
.flow__num {
  font-size: 11px; font-weight: 900; color: var(--cyan);
  background: rgba(56,189,248,.14); border-radius: 100px;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flow__arrow { display: inline-flex; align-items: center; color: var(--cyan-dim); }

/* ── PROCESS STEPS ───────────────────────────────────────── */
.proc {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.proc__item {
  display: flex; gap: 13px; align-items: flex-start;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  padding: 16px 18px; min-width: 0;
  transition: border-color .3s, background .3s;
}
.proc__item:hover { border-color: rgba(56,189,248,.24); background: rgba(56,189,248,.04); }
.proc__num {
  flex-shrink: 0; font-size: 13px; font-weight: 900; color: var(--cyan);
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(56,189,248,.10); border: 1px solid rgba(56,189,248,.22);
  display: flex; align-items: center; justify-content: center;
}
.proc__text { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; margin: 0; }
.proc__text b { color: rgba(255,255,255,.86); font-weight: 700; }

/* ── CODE BLOCK (Markdown-Beispiele) ─────────────────────── */
.codeblock {
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.18);
  background: linear-gradient(135deg, rgba(10,19,32,.9) 0%, rgba(7,8,11,.92) 100%);
  overflow: hidden; margin-top: 8px;
}
.codeblock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: rgba(56,189,248,.05);
}
.codeblock__dot { width: 10px; height: 10px; border-radius: 100px; background: rgba(255,255,255,.14); }
.codeblock__name {
  margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-dim); font-family: 'Roboto Mono', ui-monospace, "Courier Prime", monospace;
}
.codeblock pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.codeblock code {
  font-family: 'Roboto Mono', ui-monospace, "Courier Prime", "Courier New", monospace;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82);
  white-space: pre;
}
.codeblock .c-h { color: var(--cyan); font-weight: 700; }   /* Überschrift */
.codeblock .c-b { color: var(--amber); }                    /* Bullet */
.codeblock .c-m { color: var(--text-faint); }               /* Meta/Kommentar */

/* Inline-Code */
code.inline {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: .9em; background: rgba(56,189,248,.10);
  border: 1px solid rgba(56,189,248,.20); border-radius: 6px;
  padding: 1px 6px; color: rgba(190,230,255,.95);
}

/* ── COMPARISON TABLE (Tool-Kompass) ─────────────────────── */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.16);
}
table.dtable {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: linear-gradient(135deg, rgba(56,189,248,.04) 0%, rgba(7,8,11,.22) 100%);
}
.dtable th, .dtable td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.dtable thead th {
  font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); background: rgba(56,189,248,.06);
  border-bottom: 1px solid rgba(56,189,248,.20);
}
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody tr { transition: background .2s; }
.dtable tbody tr:hover { background: rgba(56,189,248,.05); }
.dtable td:first-child {
  font-weight: 800; color: rgba(255,255,255,.90); letter-spacing: .02em; white-space: nowrap;
}
.dtable td { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.table-hint {
  font-size: 11px; color: var(--text-faint); text-align: center;
  margin-top: 12px; letter-spacing: .04em;
}

/* ── NOTE / CHECKLISTE ───────────────────────────────────── */
.note {
  margin-top: 26px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 20px 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.note__icon { font-size: 24px; flex-shrink: 0; line-height: 1; }
.note__title {
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.86); margin-bottom: 6px;
}
.note__text { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; margin: 0; }

.checklist {
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.16);
  background: linear-gradient(135deg, rgba(56,189,248,.05) 0%, rgba(7,8,11,.22) 100%);
  padding: 24px 26px; margin-top: 8px;
}
.checklist__title {
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.90); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.checklist__title span { color: var(--cyan); }
.checklist ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 11px; }
.checklist li {
  position: relative; padding-left: 28px;
  font-size: 13.5px; color: var(--text-dim); line-height: 1.55;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--cyan-dim); background: rgba(56,189,248,.08);
}
.checklist li::after {
  content: '✓'; position: absolute; left: 3px; top: 1px;
  font-size: 11px; font-weight: 900; color: var(--cyan);
}

/* ── CLOSING ─────────────────────────────────────────────── */
.closing {
  text-align: center; padding: 88px 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.closing__quote {
  font-size: clamp(22px, 3.6vw, 34px); font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.90); margin-bottom: 18px; line-height: 1.18;
}
.closing__quote em { color: var(--cyan); font-style: normal; }
.closing__text {
  font-size: 15px; color: var(--text-dim); max-width: 640px;
  margin: 0 auto 22px; line-height: 1.80;
}
.closing__claim {
  display: inline-block; max-width: 620px;
  font-size: 13px; font-weight: 700; color: var(--amber);
  background: var(--amber-faint); border: 1px solid rgba(245,200,66,.24);
  border-radius: 100px; padding: 9px 22px; margin-bottom: 34px; line-height: 1.4;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.85);
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .08em; color: var(--text-faint);
}
.footer-row a { color: var(--text-faint); transition: color .2s; }
.footer-row a:hover { color: var(--cyan); text-decoration: none; }

/* ── WISSENSWOLKE ────────────────────────────────────────── */
.wolke {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(56,189,248,.18);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(56,189,248,.06) 0%, transparent 60%),
    linear-gradient(165deg, rgba(10,19,32,.92) 0%, rgba(7,8,11,.94) 100%);
  overflow: hidden;
  margin-top: 8px;
}
.wolke svg { display: block; width: 100%; height: auto; }

.wolke .wedge {
  stroke: rgba(56,189,248,.14); stroke-width: 1; fill: none;
  transition: stroke .6s, stroke-width .6s;
}
.wolke .wedge.is-hot { stroke: rgba(56,189,248,.65); stroke-width: 1.6; }

.wolke .wnode { transition: opacity .6s; }
.wolke .wnode circle {
  fill: rgba(13,25,40,.92);
  stroke: rgba(56,189,248,.30); stroke-width: 1.2;
  transition: stroke .6s, fill .6s, r .6s;
}
.wolke .wnode text {
  fill: rgba(255,255,255,.72);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  text-anchor: middle; dominant-baseline: middle;
  transition: fill .6s;
}
.wolke .wnode.is-hot circle {
  stroke: rgba(56,189,248,.95); fill: rgba(21,48,72,.96);
  filter: drop-shadow(0 0 9px rgba(56,189,248,.55));
}
.wolke .wnode.is-hot text { fill: rgba(255,255,255,.98); }
.wolke .wnode.is-dim { opacity: .38; }

/* sanftes Schweben – nur auf Gruppenebene, GPU-freundlich */
@keyframes wolkeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.wolke.is-animating .wnode--float   { animation: wolkeFloat 7s ease-in-out infinite; }
.wolke.is-animating .wnode--float2  { animation: wolkeFloat 9s ease-in-out infinite reverse; }

/* Frage- und Antwortkästen */
.wolke .wquery rect {
  fill: rgba(245,200,66,.10); stroke: rgba(245,200,66,.55); stroke-width: 1.2;
  transition: opacity .5s;
}
.wolke .wquery text {
  fill: rgba(245,220,140,.95);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: middle;
}
.wolke .wanswer rect {
  fill: rgba(74,222,128,.08); stroke: rgba(74,222,128,.40); stroke-width: 1.2;
  transition: stroke .6s, fill .6s;
}
.wolke .wanswer.is-hot rect {
  fill: rgba(74,222,128,.14); stroke: rgba(74,222,128,.85);
  filter: drop-shadow(0 0 10px rgba(74,222,128,.35));
}
.wolke .wanswer text {
  fill: rgba(190,245,205,.92);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px; font-weight: 700; text-anchor: middle; dominant-baseline: middle;
}

/* Impulsring von der Frage aus */
.wolke .wpulse {
  fill: none; stroke: rgba(245,200,66,.5); stroke-width: 1.6; opacity: 0;
}
@keyframes wolkePulse {
  0%   { opacity: .8; transform: scale(.1); }
  100% { opacity: 0;  transform: scale(1);  }
}
.wolke.is-animating .wpulse.is-live {
  animation: wolkePulse 1.6s ease-out 1 forwards;
  transform-origin: center; transform-box: fill-box;
}

/* wandernde Wissens-Punkte Richtung Antwort */
.wolke .wtravel {
  fill: rgba(56,189,248,.95); opacity: 0;
  filter: drop-shadow(0 0 5px rgba(56,189,248,.8));
  transition: transform 1.4s cubic-bezier(.4,.1,.3,1), opacity .4s;
  transform-box: fill-box;
}
.wolke .wtravel.is-live { opacity: 1; }

/* Statuszeile unter der Grafik */
.wolke__status {
  border-top: 1px solid rgba(56,189,248,.14);
  background: rgba(56,189,248,.04);
  padding: 10px 18px;
  font-size: 12.5px; color: var(--text-dim); text-align: center;
  min-height: 40px; display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.wolke__status b { color: var(--cyan); font-weight: 700; }
.wolke__caption {
  font-size: 12px; color: var(--text-faint); text-align: center;
  margin-top: 12px; line-height: 1.6;
}

/* ── ÄHNLICHKEITS-SKALA (Cosine Similarity) ──────────────── */
.simscale { display: grid; gap: 12px; margin-top: 8px; }
.simrow {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  padding: 13px 16px; min-width: 0;
}
.simrow__val {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 16px; font-weight: 800; color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.simrow__bar {
  position: relative; height: 8px; border-radius: 100px;
  background: rgba(255,255,255,.06); overflow: hidden; margin-bottom: 7px;
}
.simrow__fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 100px;
  background: linear-gradient(90deg, rgba(59,130,246,.7), rgba(56,189,248,.95));
}
.simrow__label { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.simrow__label b { color: rgba(255,255,255,.86); }

/* ── MAX-CTA (kompakte Figur + Link zu /max/) ────────────── */
.rag-max-cta {
  position: relative; display: flex; align-items: center; gap: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(18,197,188,.26);
  background:
    radial-gradient(130% 150% at 88% 50%, rgba(18,197,188,.12) 0%, transparent 56%),
    linear-gradient(135deg, rgba(9,22,30,.6) 0%, rgba(7,8,11,.4) 100%);
  padding: 24px 28px;
  text-decoration: none; color: inherit;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.rag-max-cta:hover, .rag-max-cta:focus-visible {
  border-color: rgba(18,197,188,.55);
  box-shadow: 0 16px 44px rgba(0,0,0,.4), 0 0 30px rgba(18,197,188,.14);
  transform: translateY(-2px);
  text-decoration: none; outline: none;
}
.rag-max-cta:focus-visible { outline: 2px solid #12c5bc; outline-offset: 3px; }
.rag-max-cta__fig { flex: 0 0 auto; width: 108px; }
.rag-max-cta__body { flex: 1 1 auto; min-width: 0; }
.rag-max-cta__hi {
  font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; letter-spacing: -.01em;
  color: rgba(255,255,255,.94); line-height: 1.2; margin: 0 0 6px;
}
.rag-max-cta__text {
  font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 12px;
}
.rag-max-cta__link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #7de8e2; border: 1px solid rgba(18,197,188,.45); border-radius: 100px;
  background: rgba(18,197,188,.08);
  transition: background .25s, border-color .25s, color .25s;
}
.rag-max-cta:hover .rag-max-cta__link,
.rag-max-cta:focus-visible .rag-max-cta__link {
  background: rgba(18,197,188,.16); border-color: rgba(18,197,188,.75); color: #a9f4ef;
}
.rag-max-cta__arrow { transition: transform .25s; }
.rag-max-cta:hover .rag-max-cta__arrow,
.rag-max-cta:focus-visible .rag-max-cta__arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .rag-max-cta { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
  .rag-max-cta__fig { width: 96px; }
  .rag-max-cta__link { justify-content: center; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .rag-max-cta:hover, .rag-max-cta:focus-visible { transform: none; }
}

/* Wissenswolke auf sehr schmalen Screens: kompaktere Schrift */
@media (max-width: 480px) {
  .wolke .wnode text { font-size: 15px; }
  .wolke .wquery text, .wolke .wanswer text { font-size: 15px; }
  .wolke__status { font-size: 11.5px; padding: 9px 12px; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .duo, .compare { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  section { padding: 54px 0; }
  .hero { padding: 66px 0 56px; }
  .sec-header { margin-bottom: 32px; }
  .grid, .grid--wide, .grid--narrow { grid-template-columns: 1fr; }
  .proc, .builder, .terms { grid-template-columns: 1fr; }
  .checklist ul { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .toc-bar__inner { padding: 8px 16px; }
  .merksatz { padding: 18px 18px; }
  .flow__step { font-size: 12px; padding: 9px 14px; }
  .duo__col, .compare__panel { padding: 18px 16px; }
  .codeblock pre { padding: 14px 14px; }
}
