/* ============================================================
   entwickler.css - Seiten-Styles fuer /dev/entwickler.html
   "Von Entwickler fuer Entwickler" - technischer Look, aber
   strikt im Garbit-CD (Tokens, Gruen-Akzent, Dark/Light).
   Nutzt die Basis-Styles der Seite (section-space, eyebrow,
   section-title, hero, toc-bar, footer) und ergaenzt nur die
   technischen Komponenten.
   ============================================================ */

:root { --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace; }

/* Monospace-Eyebrow / Inline-Code */
.mono { font-family: var(--font-mono); }
.eyebrow.mono, .dev-eyebrow { font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: none; }
code.inline {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; color: var(--text-head);
}

/* Feiner Code-Grid-Hintergrund (dezent, optional je Sektion) */
.dev-grid-bg { position: relative; }
.dev-grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.25;
  -webkit-mask-image: radial-gradient(circle at 80% 0%, #000, transparent 60%);
  mask-image: radial-gradient(circle at 80% 0%, #000, transparent 60%);
}
.dev-grid-bg > .container { position: relative; z-index: 1; }

/* ----------------------------- SPEKTRUM (4 Stufen) ----------------------------- */
.lvl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 980px) { .lvl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lvl-grid { grid-template-columns: 1fr; } }
.lvl-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px 22px; overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
}
.lvl-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(51,204,63,0.10); }
.lvl-card__num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--green-dark);
  letter-spacing: 0.08em;
}
[data-theme="dark"] .lvl-card__num { color: var(--green); }
.lvl-card__title { font-size: 16px; font-weight: 700; color: var(--text-head); letter-spacing: -0.01em; }
.lvl-card__desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.lvl-card__tag {
  margin-top: auto; align-self: flex-start; font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--green-dark); background: var(--green-tint); border-radius: 5px; padding: 3px 8px;
}
[data-theme="dark"] .lvl-card__tag { color: var(--green); background: rgba(51,204,63,0.14); }

/* ----------------------------- API / FEATURE-LISTE (aus produkt.css) ----------------------------- */
.api-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; margin-top: 48px; align-items: start; }
@media (max-width: 1000px) { .api-layout { grid-template-columns: 1fr; } }
.api-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.api-list-item { display: flex; gap: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.api-list-item__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .api-list-item__icon { background: rgba(51,204,63,0.14); }
.api-list-item__title { font-size: 14.5px; font-weight: 700; color: var(--text-head); margin-bottom: 4px; }
.api-list-item__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

/* ----------------------------- CODE-WINDOW (aus produkt.css) ----------------------------- */
.code-window { background: linear-gradient(180deg, #0a0a0a 0%, #000 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0,0,0,0.5); font-family: var(--font-mono); font-size: 13px; }
.code-window + .code-window { margin-top: 18px; }
.code-window__chrome { background: rgba(255,255,255,0.03); padding: 10px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code-window__chrome-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-window__chrome-dot.r { background: #ff5f57; }
.code-window__chrome-dot.y { background: #febc2e; }
.code-window__chrome-dot.g { background: #28c840; }
.code-window__chrome-title { margin-left: 14px; flex: 1; font-size: 11.5px; color: #888; font-weight: 600; }
.code-window__chrome-lang { font-size: 10px; font-weight: 700; color: var(--green); background: rgba(51,204,63,0.12); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.code-window__body { margin: 0; padding: 22px 24px; color: #e8e8e8; line-height: 1.75; overflow-x: auto; }
.code-window__body .c-comment { color: #6a737d; font-style: italic; }
.code-window__body .c-keyword { color: #ff8b6b; font-weight: 700; }
.code-window__body .c-string { color: #57d364; }
.code-window__body .c-num { color: #f1c40f; }
.code-window__body .c-fn { color: #6bd6ff; }
.code-window__body .c-method { color: #d2a8ff; }
.code-window__body .c-prop { color: #79c0ff; }
.code-window__body .c-type { color: #6bd6ff; }
.code-window__body .c-prompt { color: #57d364; user-select: none; }

/* ----------------------------- HOOK-LIFECYCLE (9 Eingriffspunkte) ----------------------------- */
.hooks { margin-top: 44px; display: flex; flex-direction: column; gap: 0; }
.hook-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.hook-step:last-child { border-bottom: none; }
.hook-step__idx {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--green-dark); background: var(--green-tint);
  width: 56px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .hook-step__idx { color: var(--green); background: rgba(51,204,63,0.14); }
.hook-step__name { font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; color: var(--text-head); }
.hook-step__desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 3px; }

/* ----------------------------- ENDPOINT / METHODEN-TABELLE ----------------------------- */
.endpoint-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 13.5px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.endpoint-table thead th { text-align: left; background: var(--bg-alt); color: var(--text-head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.endpoint-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
.endpoint-table tr:last-child td { border-bottom: none; }
.endpoint-table td.m { font-family: var(--font-mono); color: var(--text-head); font-weight: 600; white-space: nowrap; }
.endpoint-table tbody tr:hover { background: var(--bg-alt); }

/* ----------------------------- ARCHITEKTUR-DIAGRAMM ----------------------------- */
.arch { margin-top: 44px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
@media (max-width: 900px) { .arch { grid-template-columns: 1fr; } .arch__arrow { transform: rotate(90deg); justify-self: center; } }
.arch__col { display: flex; flex-direction: column; gap: 12px; }
.arch__node {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; text-align: center;
}
.arch__node--stations { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.arch__node-title { font-size: 13.5px; font-weight: 700; color: var(--text-head); }
.arch__node-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.arch__arrow { color: var(--green); display: flex; align-items: center; justify-content: center; }
.arch__cap { text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 18px; }
.arch__cap strong { color: var(--text-head); }

/* ----------------------------- CALLOUT / HINWEIS ----------------------------- */
.callout {
  margin-top: 28px; background: var(--green-tint); border: 1px solid var(--green);
  border-left-width: 4px; border-radius: 10px; padding: 16px 20px;
  font-size: 14px; color: var(--text-head); line-height: 1.6;
}
[data-theme="dark"] .callout { background: rgba(51,204,63,0.10); }
.callout strong { font-weight: 700; }
.callout__label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); display: block; margin-bottom: 4px; }
[data-theme="dark"] .callout__label { color: var(--green); }

/* ----------------------------- STAT-CHIPS (Hero) ----------------------------- */
.dev-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.dev-stat__num { font-size: 1.7rem; font-weight: 800; color: var(--green); line-height: 1; }
.dev-stat__label { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; font-weight: 500; }
