/* ──────────────────────────────────────────────────────────────────────────
   Website Quality Framework 2026
   Designsprache des KI-Hubs (angelehnt an seo-sea / eu-ai-act / ki-einfuehrung).
   Mobile first · Accessibility · keine externen Frameworks · lokale Fonts.
   ────────────────────────────────────────────────────────────────────────── */

/* ── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 104px; }

:root {
  --bg:            #0d1117;
  --surface:       #161b22;
  --panel:         #1c2128;
  --control:       #21262d;
  --border:        #30363d;
  --border-dim:    #21262d;

  --teal:          #2a9d8f;
  --teal-light:    #3dbfb0;
  --teal-dim:      #1a5e56;
  --teal-glow:     rgba(42,157,143,0.22);
  --teal-faint:    rgba(42,157,143,0.07);

  --amber:         #c9a84c;
  --amber-light:   #e4c46e;
  --amber-dim:     #7a6028;
  --amber-glow:    rgba(201,168,76,0.18);
  --amber-faint:   rgba(201,168,76,0.07);

  --orange:        #e07c3a;
  --orange-dim:    #7a3e14;
  --orange-faint:  rgba(224,124,58,0.08);

  --red:           #e05555;
  --red-dim:       #7a2020;
  --red-faint:     rgba(224,85,85,0.08);

  --green:         #3fb950;
  --green-dim:     #1f6f2c;
  --green-faint:   rgba(63,185,80,0.09);

  --violet:        #8b7cf8;
  --violet-dim:    #4b3fa0;
  --violet-faint:  rgba(139,124,248,0.08);

  --text:          #e6edf3;
  --text-muted:    #8b949e;
  --text-dim:      #484f58;

  --radius:        10px;
  --radius-lg:     18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.1;
  letter-spacing: .01em;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}
.sub-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.kicker {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.kicker--amber  { color: var(--amber); }
.kicker--violet { color: var(--violet); }
.kicker--green  { color: var(--green); }
.kicker--red    { color: var(--red); }

.wrap       { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; border-bottom: 1px solid var(--border-dim); }
section:last-of-type { border-bottom: none; }

p { font-size: 15px; color: var(--text-muted); line-height: 1.75; }
p strong { color: var(--text); }
.section-lead {
  font-size: 15px; color: var(--text-muted);
  max-width: 660px; line-height: 1.75; margin-top: 12px; margin-bottom: 36px;
}
.prose { max-width: 660px; }
.prose p + p { margin-top: 14px; }

/* ── SKIP LINK ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--teal); color: #06231f; padding: 8px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
  transition: top .18s;
}
.skip-link:focus { top: 12px; }


/* ── TOC BAR ─────────────────────────────────────────────────────── */
.toc-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
  position: sticky; top: 49px; z-index: 90;
}
.toc-bar::-webkit-scrollbar { display: none; }
.toc-bar__inner {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 24px; max-width: 1060px; margin: 0 auto; white-space: nowrap;
}
.toc-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; padding: 5px 12px;
  border-radius: 100px; border: 1px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.toc-link:hover { color: var(--text); border-color: var(--border); }
.toc-link.active { color: var(--teal); border-color: var(--teal-dim); background: var(--teal-faint); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 76px 0 68px;
  border-bottom: 1px solid var(--border-dim);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -60px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(42,157,143,.09) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -40px; left: 10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(201,168,76,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.hero__badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
  background: var(--teal-faint); border: 1px solid var(--teal-dim);
  padding: 4px 12px; border-radius: 100px;
}
.hero__badge--amber  { color: var(--amber);  background: var(--amber-faint);  border-color: var(--amber-dim); }
.hero__badge--violet { color: var(--violet); background: var(--violet-faint); border-color: var(--violet-dim); }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px); font-weight: 800;
  margin-bottom: 10px; line-height: 1.0;
}
.hero h1 span { color: var(--teal); }
.hero__sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 20px;
}
.hero__intro {
  font-size: 15px; color: var(--text-muted); max-width: 660px;
  line-height: 1.75; margin-bottom: 0;
}

/* ── PILLARS (5 Säulen) ──────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 8px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 16px;
  border-top: 3px solid var(--teal);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .18s;
}
.pillar:hover { background: var(--panel); box-shadow: 0 6px 24px rgba(42,157,143,.08); transform: translateY(-2px); }
.pillar:nth-child(2) { border-top-color: var(--amber); }
.pillar:nth-child(3) { border-top-color: var(--violet); }
.pillar:nth-child(4) { border-top-color: var(--green); }
.pillar:nth-child(5) { border-top-color: var(--orange); }
.pillar__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--text-dim); display: block; margin-bottom: 6px;
}
.pillar__icon { font-size: 24px; line-height: 1; display: block; margin-bottom: 10px; }
.pillar__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text);
  line-height: 1.15; margin-bottom: 8px;
}
.pillar__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ── INFO / TOPIC CARDS ──────────────────────────────────────────── */
.topic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 22px;
  transition: border-color .2s, background .2s;
}
.topic-card:hover { border-color: var(--teal-dim); background: var(--panel); }
.topic-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; line-height: 1.2;
  display: flex; align-items: center; gap: 8px;
}
.topic-card__row { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 7px; }
.topic-card__row:last-child { margin-bottom: 0; }
.topic-card__row b {
  color: var(--teal-light); font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: .04em; font-size: 12px;
  text-transform: uppercase; display: inline-block; min-width: 96px;
}

/* ── TABLES (semantic) ───────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.data-table {
  width: 100%; border-collapse: collapse; min-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  font-size: 13.5px;
}
.data-table caption { text-align: left; font-size: 12px; color: var(--text-dim); padding: 0 0 10px; }
.data-table th, .data-table td {
  text-align: left; padding: 12px 15px; vertical-align: top;
  border-bottom: 1px solid var(--border-dim);
}
.data-table thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .05em;
  color: var(--text); background: var(--panel);
  position: sticky; top: 0;
}
.data-table tbody th {
  font-weight: 600; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 13px;
  white-space: nowrap;
}
.data-table tbody td { color: var(--text-muted); line-height: 1.5; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td, .data-table tbody tr:hover th { background: var(--panel); }
.data-table--matrix { min-width: 680px; }

/* Priorität / Aufwand / Nutzen Pills in Tabellen */
.tag-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .04em;
  padding: 2px 9px; border-radius: 100px; white-space: nowrap;
}
.tag-pill--high   { color: var(--green);  background: var(--green-faint);  border: 1px solid var(--green-dim); }
.tag-pill--mid    { color: var(--amber);  background: var(--amber-faint);  border: 1px solid var(--amber-dim); }
.tag-pill--low    { color: var(--text-muted); background: var(--control); border: 1px solid var(--border); }

/* Status-Dot Legende (🟢 🟡 ⚪) */
.legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 28px;
  padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.legend__item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.legend__item b { color: var(--text); font-weight: 600; }

/* ── HISTORY CARDS (08) ──────────────────────────────────────────── */
.hist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .hist-grid { grid-template-columns: 1fr; } }
.hist-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 20px;
  transition: border-color .2s, background .2s;
}
.hist-card:hover { border-color: var(--border); background: var(--panel); }
.hist-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hist-card__status { font-size: 16px; line-height: 1; }
.hist-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.hist-card__row { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 7px; }
.hist-card__row:last-child { margin-bottom: 0; }
.hist-card__row b {
  color: var(--text); font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: .03em; font-size: 11.5px;
  text-transform: uppercase; display: block; margin-bottom: 2px;
}

/* ── CALLOUT ─────────────────────────────────────────────────────── */
.callout {
  margin-top: 32px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); border-left: 3px solid var(--teal);
}
.callout--amber { border-left-color: var(--amber); }
.callout--violet { border-left-color: var(--violet); }
.callout__label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal);
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.callout--amber .callout__label { color: var(--amber); }
.callout--violet .callout__label { color: var(--violet); }
.callout__body { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.callout__body strong { color: var(--text); }

/* ── BEFORE / AFTER (Praxis) ─────────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px;
}
.compare-card--before { border-color: var(--red-dim); }
.compare-card--after  { border-color: var(--green-dim); }
.compare-card__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-dim);
}
.compare-card__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.compare-card--before .compare-card__icon { background: var(--red-faint); }
.compare-card--after  .compare-card__icon { background: var(--green-faint); }
.compare-card__name { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ba-list li { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; padding-left: 24px; position: relative; }
.ba-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ba-list--before li::before { content: '✕'; color: var(--red); }
.ba-list--after  li::before { content: '✓'; color: var(--green); }

/* ── CHECK LIST (Quick Audit) ────────────────────────────────────── */
.check-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.check-item:hover { border-color: var(--teal-dim); background: var(--panel); }
.check-item__box {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-faint); border: 1px solid var(--teal-dim);
  color: var(--teal-light); font-size: 13px; font-weight: 700; margin-top: 1px;
}
.check-item__title {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.check-item__hint { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }

/* ── FACTS (Fazit) ───────────────────────────────────────────────── */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fact-pill {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .06em; color: var(--teal);
  background: var(--teal-faint); border: 1px solid var(--teal-dim);
  padding: 7px 16px; border-radius: 100px;
}

/* ── CTA / FOOTER ────────────────────────────────────────────────── */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); text-decoration: none;
  padding: 11px 24px; border: 1.5px solid var(--teal-dim);
  border-radius: 100px; background: var(--teal-faint);
  transition: background .2s, border-color .2s, color .2s;
}
.cta-link:hover { background: rgba(42,157,143,.15); border-color: var(--teal); color: var(--teal-light); }
.cta-link--secondary { color: var(--text-muted); border-color: var(--border); background: transparent; }
.cta-link--secondary:hover { color: var(--text); border-color: var(--teal-dim); background: var(--teal-faint); }

.site-footer { padding: 28px 0; border-top: 1px solid var(--border-dim); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; max-width: 1060px; margin: 0 auto; padding: 0 24px;
}
.site-footer__copy { font-size: 12px; color: var(--text-dim); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .10em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.site-footer__link:hover { color: var(--teal); }

/* ── FOCUS STATES ────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ── RESPONSIVE & MOTION ─────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 52px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
