/* Schnittkiste – helles, aufgeräumtes UI im "alten Google"/Material-Stil.
   Lokale Systemschriften (kein CDN); Icons kommen als Inline-SVG (_icons.html). */

:root {
  --bg: #f8f9fa;          /* Google Grey 50  */
  --surface: #ffffff;
  --card: #ffffff;
  --border: #dadce0;      /* Google Grey 300 */
  --text: #202124;        /* Google Grey 900 */
  --muted: #5f6368;       /* Google Grey 700 */
  --accent: #1a73e8;      /* Google Blue     */
  --accent-hover: #1765cc;
  --accent-soft: #e8f0fe; /* Blue tonal      */
  --ok: #188038;
  --ok-soft: #e6f4ea;
  --err: #d93025;
  --err-soft: #fce8e6;
  --warn: #b06000;
  --warn-soft: #feefc3;
  --pill: #f1f3f4;        /* Google Grey 100 */
  --shadow-1: 0 1px 2px rgba(60,64,67,.10), 0 1px 3px 1px rgba(60,64,67,.06);
  --shadow-2: 0 1px 3px rgba(60,64,67,.12), 0 4px 8px 3px rgba(60,64,67,.08);
  --radius: 12px;
  --font: "Google Sans", "Product Sans", Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; }

/* --- Icons ------------------------------------------------------------- */
.ic { display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }

/* --- Topbar ------------------------------------------------------------ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  position: sticky; top: 0; z-index: 10;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.2rem;
}
.brand .ic { color: var(--accent); }
.navlinks { display: flex; align-items: center; gap: 0.4rem; }
.navlinks > a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  padding: 0.45rem 0.7rem; border-radius: 999px;
}
.navlinks > a:hover { color: var(--text); background: var(--pill); }
.logout button { background: none; border: none; color: var(--muted); box-shadow: none; padding: 0.45rem 0.7rem; }
.logout button:hover { background: var(--pill); color: var(--text); box-shadow: none; }

.container { max-width: 980px; margin: 0 auto; padding: 1.75rem 1.5rem; }

h1 { font-size: 1.55rem; font-weight: 500; margin: 0.2rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; font-weight: 500; margin: 0 0 0.8rem; }
h3 { font-size: 0.9rem; font-weight: 600; margin: 1.2rem 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.muted, .hint { color: var(--muted); }
.hint { font-size: 0.85rem; font-weight: 400; }
.crumb a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.crumb a:hover { text-decoration: underline; }
.jobid { color: var(--muted); font-weight: 400; }

/* --- Cards ------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

/* --- Formulare --------------------------------------------------------- */
label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; }
input[type=text], input[type=password], textarea, select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
select { width: auto; }
textarea { resize: vertical; }

/* --- Buttons (Material-artig, rundlich) -------------------------------- */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s, filter 0.15s;
}
button:hover, .btn:hover { background: #d7e5fd; }
button:active, .btn:active { background: #c9dcfb; }

button.primary, .btn.primary {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-1);
  padding: 0.6rem 1.3rem;
}
button.primary:hover, .btn.primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-2); }

/* Icon-only, kreisrund (Kopf-/Zeilen-Aktionen). */
.icon-btn {
  padding: 0.5rem; border-radius: 50%; background: transparent; color: var(--muted);
  line-height: 0;
}
.icon-btn:hover { background: var(--pill); color: var(--text); }

.stage-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
.stage-form {
  display: flex; align-items: center; gap: 0.35rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.3rem 0.5rem;
}
.stage-form button { text-transform: capitalize; min-width: 80px; background: transparent; }
.stage-form button:hover { background: var(--accent-soft); }
.stage-form select { padding: 0.3rem; font-size: 0.8rem; border-radius: 6px; }
.force { display: flex; align-items: center; gap: 0.25rem; margin: 0; font-size: 0.8rem; color: var(--muted); }
.force input { width: auto; margin: 0; }
.links { margin-top: 0.9rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* --- Phasen-Badge ------------------------------------------------------ */
.phase {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: 0.5rem;
  padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  background: var(--pill); color: var(--muted);
}
.phase-cut { background: var(--accent-soft); color: var(--accent); }
.phase-review { background: var(--warn-soft); color: var(--warn); }
.phase-final { background: var(--ok-soft); color: var(--ok); }

/* --- Grosse Aktions-Buttons + manuelle Stufen -------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.6rem; }
.actions form { margin: 0; }
.manual-stages { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.manual-stages summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }

/* --- Tabellen ---------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; }
tbody tr:hover { background: var(--bg); }
tr.rejected { opacity: 0.5; text-decoration: line-through; }

/* --- Pills / Chips ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; padding: 0.15rem 0.6rem; margin: 0 0.15rem 0.15rem 0;
  background: var(--pill); border-radius: 999px; font-size: 0.72rem; color: var(--muted);
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }

video { width: 100%; max-height: 480px; border-radius: var(--radius); background: #000; }

/* --- Task-Banner + Fortschritt ---------------------------------------- */
.task-banner {
  background: var(--accent-soft);
  border-radius: var(--radius); padding: 0.8rem 1.1rem; margin-bottom: 1.2rem;
}
.task-banner.hidden { display: none; }
.task-line { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.task-chain { margin: 0.45rem 0 0; }
.progress {
  height: 8px; background: #fff; border-radius: 999px; overflow: hidden;
}
.progress .bar { height: 100%; background: var(--accent); transition: width 0.4s ease; }
.progress-label { margin-top: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(26,115,232,0.3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.clarify { background: var(--err-soft); border-radius: var(--radius); padding: 0.4rem 1rem; }
.clarify h3 { color: var(--err); margin-top: 0.6rem; }

/* --- Verlauf ----------------------------------------------------------- */
.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.history .stage { font-weight: 600; text-transform: capitalize; min-width: 80px; }
.history .status { min-width: 60px; color: var(--muted); }
.history .msg { flex: 1; color: var(--muted); }
.task-done .status { color: var(--ok); }
.task-failed .status { color: var(--err); }
.task-cancelled .status { color: var(--warn); }

/* --- Login ------------------------------------------------------------- */
.error { color: var(--err); }
.login-box {
  max-width: 360px; margin: 5rem auto; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 2.2rem; text-align: center;
}
.login-box h1 { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.login-box form { text-align: left; }
.btn-google {
  display: block; margin: 1.4rem 0 0.6rem; padding: 0.7rem 1rem; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow-1);
}
.btn-google:hover { filter: brightness(1.08); }
.login-box .hint { font-size: 0.82rem; color: var(--muted); margin: 0.4rem 0 0; }
.login-box .sep {
  color: var(--muted); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin: 1.3rem 0 0.6rem;
}
/* Wer gerade angemeldet ist – auf schmalen Fenstern lieber weglassen als umbrechen. */
.whoami { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .whoami { display: none; } }

/* --- Aufnahmemodus (Profil-Frage + ruhige Job-Anzeige) ------------------- */
ul.choices { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.choice label {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.7rem; align-items: baseline;
  padding: 0.8rem 1rem; border: 1px solid var(--pill);
  border-radius: var(--radius); cursor: pointer; margin: 0;
}
.choice label:hover { background: var(--pill); }
.choice input { grid-row: span 2; margin: 0; }
.choice-title { font-weight: 600; }
.choice-desc { grid-column: 2; font-size: 0.85rem; }
.choice.is-unsupported .choice-title { color: var(--muted); }
.warn-note {
  background: var(--err-soft); color: var(--err); border-radius: 8px;
  padding: 0.6rem 0.9rem; font-size: 0.88rem; margin: 0 0 1rem;
}
.marker-mode { margin: 0.6rem 0 1rem; font-size: 0.9rem; }
.marker-mode > summary { cursor: pointer; }
.marker-mode.is-unsupported > summary { color: var(--err); }
.marker-form { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.marker-form label { display: flex; align-items: center; gap: 0.3rem; margin: 0; }

/* --- Job-Liste --------------------------------------------------------- */
.jobs td .btn { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
.new-job button { margin-top: 0.3rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.45rem; }
.checkbox-row input { margin: 0; }
.row-actions { display: flex; gap: 0.3rem; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }

.btn-danger {
  background: transparent; color: var(--err); padding: 0.4rem 0.8rem;
}
.btn-danger:hover { background: var(--err-soft); }
.cancel-form { display: inline; margin: 0 0 0 0.6rem; }
.cancel-form button { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* --- Einstellungen ----------------------------------------------------- */
.secret-row { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.1rem; }
.secret-row label:first-child { flex: 1; margin-bottom: 0; }
.secret-row .force { margin-bottom: 0.6rem; }
ol.steps { margin: 0.4rem 0; padding-left: 1.2rem; }
ol.steps li { margin-bottom: 0.5rem; }
ol.steps code { color: var(--text); background: var(--pill); padding: 0.1rem 0.35rem; border-radius: 4px; word-break: break-all; }

/* --- Bild-Upload ------------------------------------------------------- */
.upload-form { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.upload-form input[type=file] { margin-top: 0; padding: 0.35rem; font-size: 0.82rem; border-radius: 8px; }
.upload-form button { white-space: nowrap; }
ul.images { list-style: none; padding: 0; margin: 0.3rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
ul.images li { background: var(--pill); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.82rem; }

.media-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.media-head h2 { margin: 0; }

/* --- Material-Review (verworfene Blöcke prüfen) ------------------------ */
#review-audio { width: 100%; margin: 0.4rem 0 0.9rem; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.review-item .seek {
  flex: 0 0 auto; min-width: 74px; font-variant-numeric: tabular-nums;
  background: var(--accent-soft); color: var(--accent);
}
.review-item .seek:disabled { opacity: 0.5; cursor: default; }
.review-item .rev-src { flex: 0 0 auto; }
.review-item .rev-src code { background: var(--pill); border-radius: 6px; padding: 0.12rem 0.45rem; font-size: 0.78rem; color: var(--text); }
.review-item .rev-text { flex: 1 1 220px; color: var(--muted); font-size: 0.88rem; }

.takes-details summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 1rem 0 0.4rem; }
.takes-details[open] summary { margin-bottom: 0.7rem; }
.review-item .rev-actions { flex: 0 0 auto; display: flex; gap: 0.4rem; }
.review-item .rev-actions form { margin: 0; }
.review-item .rev-actions button { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* --- Chat-artige, phasen-bewusste Eingabefelder (#2/#9) ---------------- */
.chat { margin-bottom: 1.1rem; }
.chat.muted-phase { opacity: 0.6; }
.chat-head { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; }
.chat-head h2 { margin: 0; }
.chat-tag {
  font-size: 0.72rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px;
  background: var(--pill); color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em;
}
.chat.active-phase .chat-tag { background: var(--accent-soft); color: var(--accent); }
.chat-box {
  display: flex; align-items: flex-end; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.7rem 0.7rem 1rem;
  background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.chat.active-phase .chat-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-box textarea {
  flex: 1; border: none; margin: 0; padding: 0.2rem 0; background: transparent;
  resize: vertical; min-height: 4.4em; line-height: 1.45;
}
.chat-box textarea:focus { outline: none; box-shadow: none; }
.chat-send { flex: 0 0 auto; padding: 0.55rem; border-radius: 50%; background: var(--accent); color: #fff; }
.chat-send:hover { background: var(--accent-hover); }
.chat-locked {
  display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem;
  border: 1px dashed var(--border); border-radius: 12px; padding: 0.7rem 1rem; background: var(--bg);
}
.chat-box.disabled { opacity: 0.55; pointer-events: none; }

/* --- EDL-Tabelle: Ausblenden-Toggle + inline-Schlagwort (#Schlagwort-Titel) --- */
.takes-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-bottom: 0.6rem; }
.takes-toolbar .hint { font-size: 0.78rem; }
.btn-small {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.7rem;
  font-size: 0.8rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.btn-small:hover { background: var(--pill); }
.btn-small[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.takes.hide-rejected tr.rejected { display: none; }
.kw-form { display: flex; align-items: center; gap: 0.25rem; margin: 0; }
.kw-input {
  flex: 1 1 auto; min-width: 6rem; max-width: 12rem; margin: 0; padding: 0.2rem 0.4rem;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text);
}
.kw-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.kw-save {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0.25rem;
  border: none; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
}
.kw-save:hover { background: var(--accent-soft); color: var(--accent); }
.seek-take {
  display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.4rem;
  padding: 0.12rem 0.45rem; font-size: 0.72rem; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer;
  vertical-align: middle;
}
.seek-take:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* --- Linearer 4-Schritt-Workflow (Stepper + Schritt-Karten) ------------- */
.stepper {
  display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0;
  margin: 0.4rem 0 0.6rem; counter-reset: none;
}
.stepper li {
  display: flex; align-items: center; gap: 0.45rem; flex: 1 1 0; min-width: 130px;
  padding: 0.5rem 0.8rem; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 600;
}
.stepper li .step-num {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--pill);
  color: var(--muted); font-size: 0.8rem; flex: 0 0 auto;
}
.stepper li.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.stepper li.active .step-num { background: var(--accent); color: #fff; }
.stepper li.done { color: var(--text); }
.stepper li.done .step-num { background: var(--ok, #1a7f37); color: #fff; }
.stepper li.todo { opacity: 0.7; }
.next-step { margin: 0 0 1rem; font-size: 0.9rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; }

.success-bar {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.7rem 1rem;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.success-bar a { color: inherit; text-decoration: underline; }

.card.step { transition: opacity 0.15s; }
.card.step.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card.step.is-muted { opacity: 0.82; }
.card.step > h2, .card.step summary { display: flex; align-items: center; gap: 0.5rem; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-size: 0.85rem; font-weight: 700; flex: 0 0 auto;
}
.card.step.is-muted .step-badge { background: var(--pill); color: var(--muted); }

/* Render-Buttons: Auflösungs-Subline UNTER dem Button (nicht im Button → normale Höhe). */
.render-action { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.render-action form { margin: 0; }
.render-hint { font-size: 0.74rem; color: var(--muted); }
.render-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.video-block { margin: 0.8rem 0 1.2rem; }
.video-block video { width: 100%; border-radius: 12px; background: #000; }
.media-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.5rem; }
.media-head h3 { margin: 0; }
.final-video video { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.warn-dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--err, #d1242f); vertical-align: middle; }
.review-details summary, .history-details summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.review-details[open] summary { margin-bottom: 0.6rem; }
.clarify h4 { margin: 0.4rem 0; }

/* Grafik-Filmstrip unter dem Preview-Video (Thumbnails + Timestamp, Klick = Sprung) */
.gfx-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0.1rem 0.2rem; }
.gfx-strip .gfx-marker {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  margin: 0; padding: 0.3rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.gfx-strip .gfx-marker:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.gfx-strip .gfx-marker img, .gfx-strip .gfx-ph {
  width: 104px; height: 58px; object-fit: cover; border-radius: 4px; display: block;
}
.gfx-strip .gfx-ph {
  display: flex; align-items: center; justify-content: center; background: var(--card);
  font-size: 1.4rem; font-weight: 700; opacity: 0.7;
}
.gfx-strip .gfx-slot { border-style: dashed; }
.gfx-strip .gfx-time { font-size: 0.72rem; font-variant-numeric: tabular-nums; }

/* --- Footer + Docs-Seite --------------------------------------------------- */
.sitefooter {
  max-width: 980px; margin: 2rem auto 1.25rem; padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.9rem;
}
.sitefooter a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.sitefooter a:hover { color: var(--accent); }
.sitefooter .ic { color: var(--accent); }

.docs h1 { margin-bottom: 0.35rem; }
.docs > p.muted { margin-top: 0; }
.docs .doc-cat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1rem 0;
}
.docs .doc-cat h2 {
  display: flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; margin: 0 0 0.6rem;
}
.docs .doc-cat h2 .ic { color: var(--accent); }
.docs dl { margin: 0; display: grid; grid-template-columns: minmax(180px, 15rem) 1fr; gap: 0.35rem 1.25rem; }
.docs dt { font-weight: 600; }
.docs dd { margin: 0 0 0.5rem; color: var(--muted); }
.docs dd code, .docs li code {
  display: inline-block; background: var(--pill); color: var(--text);
  padding: 0.1rem 0.45rem; border-radius: 6px; margin: 0.15rem 0.15rem 0 0;
}
.docs ul { margin: 0.3rem 0 0; color: var(--muted); }
@media (max-width: 640px) { .docs dl { grid-template-columns: 1fr; gap: 0.1rem; } .docs dt { margin-top: 0.5rem; } }
