/* ═══════════════════════════════════════════════════════════════
   ai-trainer.ch Design System
   Gemeinsames Stylesheet für alle Anleitungsseiten
   Version: 1.1 · Stand: Mai 2026

   Changelog v1.1:
   - SECTIONS: h3 erhält margin-top, erstes h3 nach h2 ohne Abstand
   - PROMPT LIST: .prompt-text bricht mehrzeilige Inhalte korrekt um
   - NEU: DEFINITION LIST – generische Komponente für Glossare,
     FAQs, Befehlsreferenzen, Akronyme, Begriffsklärungen
   - RESPONSIVE: Mobile-Padding für Nav und Hero ergänzt
   ═══════════════════════════════════════════════════════════════ */


/* ── DESIGN TOKENS ── */

:root {
  --plum: #81004F;
  --aubergine: #451C3D;
  --lavender: #F2EBF3;
  --purple: #382272;
  --dark-grape: #321337;
  --near-black: #14171C;
  --silver: #CCCCDD;
  --rose: #A66690;
  --text-body: #5A5A6E;
  --text-muted: #8E8E9E;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --green: #2D8659;
  --green-light: #E8F5EE;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --red: #dc2626;
}


/* ── RESET & BASE ── */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.lucide {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.75;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20, 23, 28, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--plum);
  padding: 0 32px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.85rem;
  color: var(--lavender);
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand span { color: var(--rose); }
.nav-ch { color: var(--silver); }

/* Inhalts-Links (Mitte) */
.nav-links {
  display: flex; gap: 4px; flex-wrap: wrap;
  justify-content: center;
  flex: 1; padding: 0 16px;
}
.nav-links a {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rose); text-decoration: none;
  padding: 5px 10px; border-radius: 100px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover {
  background: rgba(129,0,79,0.2);
  color: var(--lavender);
}

/* Zurück-Button (rechts) */
.nav-back {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(129, 0, 79, 0.15);
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-back .lucide {
  width: 18px; height: 18px;
  stroke: var(--rose); stroke-width: 1.75;
}
.nav-back:hover { background: rgba(129, 0, 79, 0.3); }
.nav-back:hover .lucide { stroke: var(--lavender); }


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--near-black) 0%, var(--dark-grape) 50%, var(--aubergine) 100%);
  position: relative; overflow: hidden;
  padding: 120px 32px 80px; text-align: center;
}
.hero::before {
  content: '';
  position: absolute; top: 8%; left: 25%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(56,34,114,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 5%; right: 15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(129,0,79,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 800px; }

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--rose);
  background: rgba(166,102,144,0.15);
  display: inline-block; padding: 6px 18px;
  border-radius: 100px; margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900;
  color: var(--lavender);
  line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--plum), var(--rose));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.1rem; color: rgba(242,235,243,0.6);
  max-width: 600px; margin: 0 auto 44px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  background: var(--plum); color: var(--lavender);
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 14px 36px; border-radius: 100px;
  text-decoration: none; transition: background 0.2s;
}
.hero-cta:hover { background: #9a1066; }

/* Learn-Pills (Hero-Inhaltsliste) */
.learn-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.learn-pill {
  font-size: 0.78rem; font-weight: 500;
  color: var(--lavender);
  background: rgba(242,235,243,0.08);
  border: 1px solid rgba(242,235,243,0.12);
  padding: 8px 18px; border-radius: 100px;
}
.learn-pill .pill-icon { margin-right: 6px; }
.pill-icon .lucide { width: 14px; height: 14px; stroke: currentColor; }


/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section {
  padding: 100px 32px;
  max-width: 880px;
  margin: 0 auto;
}

/* Dark Section */
.section-dark {
  max-width: 100%;
  background: linear-gradient(135deg, var(--near-black) 0%, var(--aubergine) 100%);
  color: var(--lavender);
}
.section-dark .si,
.section-dark .section-inner {
  max-width: 880px; margin: 0 auto; padding: 100px 32px;
}

/* Accent Section */
.section-accent {
  max-width: 100%;
  background: var(--lavender);
}
.section-accent .si,
.section-accent .section-inner {
  max-width: 880px; margin: 0 auto; padding: 100px 32px;
}

/* Section Label */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--plum); margin-bottom: 12px;
}
.section-dark .section-label { color: var(--rose); }

/* Section Typography */
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900;
  color: var(--aubergine); letter-spacing: -0.02em;
  margin-bottom: 20px; line-height: 1.15;
}
.section-dark h2 { color: var(--lavender); }

.section h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--aubergine);
  margin-top: 36px; margin-bottom: 8px;
}
.section-dark h3 { color: var(--lavender); }

/* Erstes h3 nach h2 (mit oder ohne Einleitungs-p): reduzierter Abstand */
.section h2 + h3,
.section h2 + p + h3,
.section-dark .si h2 + h3,
.section-dark .si h2 + p + h3,
.section-accent .si h2 + h3,
.section-accent .si h2 + p + h3 { margin-top: 12px; }

.section p { margin-bottom: 18px; }
.section-dark p { color: rgba(242,235,243,0.7); }


/* ═══════════════════════════════════════════════════════════════
   CONTENT BLOCKS – Analogy, Highlight, Tip
   ═══════════════════════════════════════════════════════════════ */

/* ── Analogy Box ── */
.analogy {
  background: var(--lavender);
  border-radius: 16px; padding: 28px 32px;
  margin: 28px 0; position: relative;
  border-left: 4px solid var(--purple);
}
.analogy-icon {
  position: absolute; top: -14px; left: 24px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  color: var(--white);
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.analogy-icon .lucide {
  width: 18px; height: 18px;
  stroke: var(--white); stroke-width: 2;
}
.analogy h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--purple); margin-bottom: 6px;
}
.analogy p { color: var(--aubergine); margin-bottom: 0; font-size: 0.93rem; }

.analogy-dark {
  background: rgba(56,34,114,0.15);
  border-left-color: var(--rose);
}
.analogy-dark h4 { color: var(--rose); }
.analogy-dark p { color: rgba(242,235,243,0.82); }

/* ── Highlight Box ── */
.highlight,
.highlight-box {
  background: var(--lavender);
  border-left: 4px solid var(--plum);
  border-radius: 0 12px 12px 0;
  padding: 22px 28px; margin: 24px 0;
}
.highlight p,
.highlight-box p {
  font-size: 0.92rem; color: var(--aubergine);
  font-weight: 500; margin-bottom: 0;
}
.highlight-dark,
.dark-highlight {
  background: rgba(129,0,79,0.12);
  border-left-color: var(--rose);
}
.highlight-dark p,
.dark-highlight p { color: var(--lavender); }

/* ── Tip Box ── */
.tip,
.tip-box {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 20px 0;
}
.tip p,
.tip-box p { font-size: 0.88rem; color: #1a5c3a; margin-bottom: 0; }
.tip strong,
.tip-box strong { color: var(--green); }

.tip-dark {
  background: rgba(45,134,89,0.1);
  border-left-color: #4db87a;
}
.tip-dark p { color: rgba(242,235,243,0.75); }
.tip-dark strong { color: #6fd09a; }


/* ═══════════════════════════════════════════════════════════════
   ILLUSTRATIONS (SVG)
   ═══════════════════════════════════════════════════════════════ */

.illustration { margin: 48px 0; display: flex; justify-content: center; }
.illustration svg { max-width: 100%; height: auto; }


/* ═══════════════════════════════════════════════════════════════
   CARDS – Light & Dark
   ═══════════════════════════════════════════════════════════════ */

/* ── Card Grid ── */
.card-grid { display: grid; gap: 20px; margin-top: 36px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── Light Card ── */
.card {
  background: var(--white);
  border: 1px solid rgba(204,204,221,0.5);
  border-radius: 16px; padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(69,28,61,0.09);
}
.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--aubergine));
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 14px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--aubergine); margin-bottom: 8px; }
.card p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Dark Card ── */
.dark-card {
  background: rgba(242,235,243,0.06);
  border: 1px solid rgba(242,235,243,0.1);
  border-radius: 16px; padding: 28px;
  margin-bottom: 18px; transition: border-color 0.2s;
}
.dark-card:hover { border-color: rgba(129,0,79,0.4); }
.dark-card h3 { color: var(--lavender); font-size: 1.05rem; margin-bottom: 8px; }
.dark-card p { font-size: 0.9rem; color: rgba(242,235,243,0.65); margin-bottom: 0; }

.dark-card-icon {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.dark-card-icon .lucide {
  width: 20px; height: 20px;
  stroke: var(--rose); flex-shrink: 0; stroke-width: 1.75;
}
.dark-card-icon h3 { margin-bottom: 0; }

/* ── Step Card ── */
.step-grid { display: grid; gap: 20px; margin-top: 36px; }
.step-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.step-card {
  background: var(--white);
  border: 1px solid rgba(204,204,221,0.5);
  border-radius: 16px; padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(69,28,61,0.08);
}
.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--aubergine));
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ── Security Card Grid ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 32px;
}
.security-card {
  background: rgba(242,235,243,0.06);
  border: 1px solid rgba(242,235,243,0.1);
  border-radius: 14px; padding: 24px;
  text-align: center; transition: border-color 0.2s;
}
.security-card:hover { border-color: rgba(129,0,79,0.4); }
.security-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.security-icon .lucide { width: 22px; height: 22px; stroke: var(--white); }
.security-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--lavender); margin-bottom: 6px; }
.security-card p { font-size: 0.82rem; color: rgba(242,235,243,0.55); margin-bottom: 0; }

/* ── Use Case Grid ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; margin-top: 32px;
}
.usecase {
  background: var(--white);
  border: 1px solid rgba(204,204,221,0.5);
  border-radius: 12px; padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: transform 0.2s;
}
.usecase:hover { transform: translateY(-2px); }
.usecase-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--lavender);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.usecase-icon .lucide { width: 20px; height: 20px; stroke: var(--plum); }
.usecase h4 { font-size: 0.85rem; font-weight: 700; color: var(--aubergine); margin-bottom: 3px; }
.usecase p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; margin-top: 40px;
}


/* ═══════════════════════════════════════════════════════════════
   TYPE PILLS (Konzept-Übersichten)
   ═══════════════════════════════════════════════════════════════ */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 32px 0;
}
.type-pill {
  background: var(--white);
  border: 1.5px solid rgba(204,204,221,0.6);
  border-radius: 12px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.type-pill:hover {
  border-color: var(--plum);
  box-shadow: 0 4px 16px rgba(129,0,79,0.08);
}
.type-pill-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.type-pill-icon .lucide { width: 20px; height: 20px; stroke-width: 1.75; }
.type-pill h4 { font-size: 0.88rem; font-weight: 700; color: var(--aubergine); margin-bottom: 2px; }
.type-pill p { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.4; }

/* ── Concept Pills (Docker-Variante) ── */
.concept-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.concept-pill {
  background: var(--white);
  border: 1.5px solid rgba(204,204,221,0.6);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.concept-pill:hover { border-color: var(--plum); box-shadow: 0 4px 16px rgba(129,0,79,0.08); }
.concept-pill-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.concept-pill-icon .lucide { width: 18px; height: 18px; stroke-width: 1.75; }
.concept-pill h4 { font-size: 0.85rem; font-weight: 700; color: var(--aubergine); margin-bottom: 2px; }
.concept-pill p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.4; }


/* ═══════════════════════════════════════════════════════════════
   PROMPT LIST (Prompt-Beispiele)
   ═══════════════════════════════════════════════════════════════ */

.prompt-list { margin-top: 28px; }

.prompt-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(204,204,221,0.3);
}
.prompt-item:last-child { border-bottom: none; }

.prompt-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.prompt-icon .lucide { width: 20px; height: 20px; stroke: var(--white); stroke-width: 2; }

.prompt-content h4 { font-size: 0.92rem; font-weight: 700; color: var(--aubergine); margin-bottom: 4px; }
.prompt-content p { font-size: 0.85rem; margin-bottom: 0; color: var(--text-muted); }

.prompt-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  background: rgba(129,0,79,0.06); color: var(--plum);
  padding: 8px 14px; border-radius: 8px;
  margin-top: 8px;
  display: inline-block; max-width: 100%;
  line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}

/* Dark Variants */
.prompt-item-dark { border-bottom-color: rgba(242,235,243,0.08); }
.prompt-item-dark .prompt-content h4 { color: var(--lavender); }
.prompt-item-dark .prompt-content p { color: rgba(242,235,243,0.5); }
.prompt-text-dark { background: rgba(242,235,243,0.08); color: var(--rose); }


/* ═══════════════════════════════════════════════════════════════
   DEFINITION LIST – Begriff + Erklärung, vertikal gestapelt
   Für: Glossare, FAQs, Befehlsreferenzen, Akronyme,
   API-Endpoints, Begriffsklärungen
   ═══════════════════════════════════════════════════════════════ */

.def-list { margin-top: 32px; }

.def-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(204,204,221,0.3);
}
.def-item:last-child { border-bottom: none; }

.def-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  color: var(--plum);
  display: block; margin-bottom: 6px;
}

.def-item p {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 0; line-height: 1.65;
}

/* Dark Variant (automatisch in .section-dark) */
.section-dark .def-item { border-bottom-color: rgba(242,235,243,0.08); }
.section-dark .def-term { color: var(--rose); }
.section-dark .def-item p { color: rgba(242,235,243,0.78); }
.section-dark .def-item p strong { color: var(--lavender); }


/* ═══════════════════════════════════════════════════════════════
   TABLES – Compare, Settings, Cheatsheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Compare Table (Light) ── */
.compare-wrap { overflow-x: auto; margin: 36px 0; }

.compare-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(204,204,221,0.5);
  font-size: 0.88rem;
}
.compare-table th {
  background: var(--aubergine); color: var(--lavender);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 14px 18px; text-align: left;
}
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(204,204,221,0.15);
  vertical-align: top; color: var(--text-body);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--lavender); }
.compare-table .feat { font-weight: 700; color: var(--aubergine); white-space: nowrap; }
.compare-table .provider-name { font-weight: 700; color: var(--aubergine); white-space: nowrap; }
.compare-table a { color: var(--plum); text-decoration: none; font-weight: 700; }
.compare-table a:hover { text-decoration: underline; }

/* Compare Table inside Dark Sections */
.section-dark .compare-table {
  border-color: rgba(242,235,243,0.12);
}
.section-dark .compare-table th {
  background: rgba(129,0,79,0.3);
}
.section-dark .compare-table td {
  border-bottom-color: rgba(242,235,243,0.08);
  color: rgba(242,235,243,0.75);
}
.section-dark .compare-table tr:nth-child(even) td {
  background: rgba(242,235,243,0.03);
}
.section-dark .compare-table .provider-name { color: var(--lavender); }

/* ── Settings Table ── */
.settings-table {
  width: 100%; margin-top: 28px;
  border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(204,204,221,0.5);
}
.settings-table th {
  background: var(--aubergine); color: var(--lavender);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 14px 20px; text-align: left;
}
.settings-table td {
  padding: 14px 20px; font-size: 0.9rem;
  border-bottom: 1px solid rgba(204,204,221,0.3);
  vertical-align: top;
}
.settings-table tr:last-child td { border-bottom: none; }
.settings-table tr:nth-child(even) td { background: var(--lavender); }
.setting-name { font-weight: 700; color: var(--aubergine); white-space: nowrap; }

/* ── Cheatsheet Table (Dark) ── */
.cheat-table {
  width: 100%; margin-top: 28px;
  border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(242,235,243,0.1);
  font-size: 0.85rem;
}
.cheat-table th {
  background: rgba(129,0,79,0.28); color: var(--lavender);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 14px 18px; text-align: left;
}
.cheat-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(242,235,243,0.07);
  color: rgba(242,235,243,0.75); vertical-align: middle;
}
.cheat-table tr:last-child td { border-bottom: none; }
.cheat-table tr:nth-child(even) td { background: rgba(242,235,243,0.03); }
.cheat-table .cmd-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--rose);
}


/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge-yes,
.badge-no,
.badge-on,
.badge-rec {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 100px;
}
.badge-yes { background: var(--green); color: var(--white); }
.badge-no { background: var(--silver); color: var(--white); }
.badge-on { background: var(--plum); color: var(--white); padding: 3px 10px; letter-spacing: 0.1em; }
.badge-rec { background: var(--plum); color: var(--white); margin-left: 6px; vertical-align: middle; }


/* ═══════════════════════════════════════════════════════════════
   CODE – Inline, Blocks, File Trees
   ═══════════════════════════════════════════════════════════════ */

/* ── Inline Code ── */
.cmd,
.ic {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  background: rgba(129,0,79,0.08); color: var(--plum);
  padding: 2px 8px; border-radius: 4px;
}
.section-dark .cmd,
.section-dark .ic {
  background: rgba(242,235,243,0.1); color: var(--rose);
}

/* ── Code Block (Dark) ── */
.cmd-block {
  background: rgba(20,23,28,0.95);
  border: 1px solid rgba(242,235,243,0.08);
  border-radius: 12px; padding: 20px 24px;
  margin: 16px 0; overflow-x: auto; position: relative;
}
.cmd-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem; line-height: 1.8;
  color: var(--lavender); margin: 0;
  white-space: pre-wrap; word-break: break-all;
}
.cmd-block .c,
.cmd-block .cmd-comment { color: var(--text-muted); }
.cmd-block .h,
.cmd-block .cmd-highlight { color: var(--rose); }
.cmd-block .s { color: #7ec8a4; }

.cmd-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 8px; display: block;
}

/* ── Code Block (Light) ── */
.cmd-light,
.cmd-block-light {
  background: var(--white);
  border-color: rgba(204,204,221,0.5);
}
.cmd-light pre,
.cmd-block-light pre { color: var(--near-black); }
.cmd-light .c,
.cmd-block-light .cmd-comment { color: var(--text-muted); }
.cmd-light .h,
.cmd-block-light .cmd-highlight { color: var(--plum); }
.cmd-light .s { color: var(--green); }

/* ── File Tree / Code Block (ki-arbeit) ── */
.code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: var(--near-black); color: var(--lavender);
  padding: 22px 26px; border-radius: 12px;
  margin: 24px 0; overflow-x: auto;
  line-height: 1.7;
  border: 1px solid rgba(129,0,79,0.2);
}
.code-block .comment { color: var(--rose); opacity: 0.7; }
.code-block .folder { color: var(--rose); }
.code-block .file { color: var(--lavender); opacity: 0.85; }
.code-block .arrow { color: var(--silver); opacity: 0.5; }


/* ═══════════════════════════════════════════════════════════════
   PROCESS STEPS (nummerierte Listen)
   ═══════════════════════════════════════════════════════════════ */

.process-steps { margin-top: 32px; counter-reset: process; }

.process-step {
  display: flex; gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(204,204,221,0.3);
  counter-increment: process;
}
.process-step:last-child { border-bottom: none; }

.process-num,
.pnum {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; font-weight: 700; color: var(--white);
}
.pnum-icon .lucide { width: 20px; height: 20px; stroke: var(--white); stroke-width: 2; }

.process-content h4,
.pcontent h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--aubergine); margin-bottom: 4px;
}
.process-content p,
.pcontent p { font-size: 0.88rem; margin-bottom: 0; }

/* Dark variant */
.process-step-dark { border-bottom-color: rgba(242,235,243,0.1); }
.process-step-dark .process-content h4,
.process-step-dark .pcontent h4 { color: var(--lavender); }
.process-step-dark .process-content p,
.process-step-dark .pcontent p { color: rgba(242,235,243,0.65); }

/* ── Step List (ki-arbeit Variante) ── */
.step-list { counter-reset: steps; margin: 32px 0; }
.step-item {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(204,204,221,0.2);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  counter-increment: steps;
  flex-shrink: 0; width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--aubergine); margin-bottom: 4px; }
.step-content p { font-size: 0.88rem; margin-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════
   EXAMPLE BOXES (Prompten – Gut/Schlecht)
   ═══════════════════════════════════════════════════════════════ */

.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin: 32px 0;
}

.example-box { border-radius: 16px; padding: 24px 28px; position: relative; }
.example-box p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.6; }

/* Light */
.example-box-bad { background: rgba(220,38,38,0.04); border: 1.5px solid rgba(220,38,38,0.2); }
.example-box-good { background: rgba(45,134,89,0.04); border: 1.5px solid rgba(45,134,89,0.25); }
.example-box-bad p,
.example-box-good p { color: var(--text-body); }

/* Dark */
.example-box-bad-dark { background: rgba(220,38,38,0.08); border: 1.5px solid rgba(220,38,38,0.25); }
.example-box-good-dark { background: rgba(45,134,89,0.08); border: 1.5px solid rgba(45,134,89,0.3); }
.example-box-bad-dark p { color: rgba(242,235,243,0.65); }
.example-box-good-dark p { color: rgba(242,235,243,0.75); }

/* Labels */
.example-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 14px;
}
.example-label-bad { color: var(--red); background: rgba(220,38,38,0.08); }
.example-label-good { color: var(--green); background: rgba(45,134,89,0.1); }
.example-label-bad-dark { color: #f87171; background: rgba(220,38,38,0.15); }
.example-label-good-dark { color: #6fd09a; background: rgba(45,134,89,0.15); }

/* Copy Button */
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: none;
  border: 1px solid rgba(204,204,221,0.4);
  border-radius: 8px; padding: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--text-muted);
}
.copy-btn:hover { border-color: var(--plum); color: var(--plum); background: rgba(129,0,79,0.04); }
.copy-btn .lucide { width: 16px; height: 16px; stroke-width: 2; }
.copy-btn.copied { border-color: var(--green); color: var(--green); }


/* ═══════════════════════════════════════════════════════════════
   TIP LIST (Onboarding-Style)
   ═══════════════════════════════════════════════════════════════ */

.tip-list { margin-top: 32px; }
.tip-item {
  display: flex; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(242,235,243,0.1);
}
.tip-item:last-child { border-bottom: none; }
.tip-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--plum));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.tip-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--lavender); margin-bottom: 4px; }
.tip-content p { font-size: 0.88rem; color: rgba(242,235,243,0.6); margin-bottom: 0; }

/* Inline Tip Icon */
.tip-icon-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tip-icon-inline .lucide { width: 15px; height: 15px; stroke: var(--green); }
.tip-dark .tip-icon-inline .lucide { stroke: #6fd09a; }


/* ═══════════════════════════════════════════════════════════════
   SPEC BOX (Server-Konfiguration)
   ═══════════════════════════════════════════════════════════════ */

.spec-box {
  background: var(--white);
  border: 2px solid var(--plum);
  border-radius: 14px; padding: 28px;
  margin: 28px 0; text-align: center;
}
.spec-box h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--plum); margin-bottom: 12px;
}
.spec-row {
  display: flex; justify-content: center;
  gap: 32px; flex-wrap: wrap; margin-bottom: 10px;
}
.spec-item { text-align: center; }
.spec-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem; font-weight: 700;
  color: var(--aubergine);
}
.spec-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.spec-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; font-weight: 700;
  color: var(--plum); background: var(--lavender);
  display: inline-block; padding: 6px 18px;
  border-radius: 100px; margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   PROGRESS NAV (seitliche Dots)
   ═══════════════════════════════════════════════════════════════ */

.progress-nav {
  position: fixed; right: 24px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 90;
}

/* Unterstützt beide Namenskonventionen */
.pdot,
.progress-dot {
  width: 10px; height: 10px;
  background: var(--silver); border-radius: 50%;
  transition: all 0.3s; cursor: pointer;
  border: none; padding: 0;
}
.pdot.active,
.progress-dot.active {
  background: var(--plum);
  box-shadow: 0 0 0 4px rgba(129,0,79,0.2);
}
.pdot:hover,
.progress-dot:hover { background: var(--rose); }


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
  background: var(--near-black);
  border-top: 3px solid var(--plum);
  padding: 48px 32px; text-align: center;
}
.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 1rem;
  color: var(--lavender); margin-bottom: 8px;
}
.footer-brand span { color: var(--rose); }

/* Unterstützt beide Namenskonventionen */
.footer-tag,
.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.08em;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Nav: Padding reduzieren, Links verstecken, Zurück-Button bleibt */
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-back { display: flex; }

  /* Hero */
  .hero { padding: 100px 20px 60px; }

  /* Sections */
  .section { padding: 64px 20px; }
  .section-dark .si,
  .section-dark .section-inner,
  .section-accent .si,
  .section-accent .section-inner { padding: 64px 20px; }

  /* Grids */
  .card-grid-2,
  .card-grid-3,
  .feature-grid,
  .step-grid-2,
  .security-grid,
  .usecase-grid { grid-template-columns: 1fr; }

  .type-grid { grid-template-columns: 1fr 1fr; }
  .example-grid { grid-template-columns: 1fr; }

  /* Progress Nav */
  .progress-nav { display: none; }

  /* Tables */
  .compare-table,
  .cheat-table { font-size: 0.78rem; }
  .compare-table td,
  .compare-table th,
  .cheat-table td,
  .cheat-table th { padding: 10px 12px; }
  .settings-table { font-size: 0.82rem; }
  .settings-table td,
  .settings-table th { padding: 10px 14px; }

  /* Spec Box */
  .spec-row { gap: 20px; }

  /* Process Steps */
  .process-step { gap: 14px; }

  /* Code */
  .code-block { font-size: 0.72rem; padding: 16px 18px; }
}
