:root {
  --bg: #0f131a; --surface: #161c26; --surface2: #1c2432; --line: #242e3e;
  --ink: #eef2f9; --muted: #aab4c8; --faint: #808ba3;
  --amber: #ffb454; --add: #7fd962; --add-bg: rgba(127, 217, 98, 0.09);
  --del: #f07178; --del-bg: rgba(240, 113, 120, 0.09); --key: #73b8ff;
  --radius: 10px;
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 19, 26, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { font-family: var(--mono); font-weight: 500; font-size: 16px; white-space: nowrap; flex: none; }
.logo .p { color: var(--amber); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.btn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-family: var(--body); transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffc170; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--faint); }
.btn-ghost.active { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #73b8ff, #ffb454); flex: none; }
.avatar.sm { width: 22px; height: 22px; }

/* ---------- Repo-Header ---------- */
.repo-head { padding: 28px 0 0; }
.crumb { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 16px; flex-wrap: wrap; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--faint); }
.crumb .name { font-weight: 500; }
.badge { font-family: var(--mono); font-size: 12px; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); }
.badge.model { border-color: rgba(115, 184, 255, 0.4); color: var(--key); }
.badge.ver { border-color: rgba(127, 217, 98, 0.4); color: var(--add); }
.repo-desc { color: var(--muted); margin: 10px 0 18px; max-width: 70ch; }
.repo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { background: none; border: none; color: var(--muted); font-family: var(--body); font-size: 15px; font-weight: 500; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.tab .cnt { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 5px; background: var(--surface2); padding: 1px 7px; border-radius: 10px; }
.panel { display: none; padding: 26px 0 60px; }
.panel.show { display: block; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }

/* ---------- Prompt-Ansicht ---------- */
.filecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fc-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface2); font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.fc-head .stats { margin-left: auto; display: flex; gap: 14px; font-size: 12.5px; }
.copybtn { font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.copybtn:hover { color: var(--ink); }
.codeview { font-family: var(--mono); font-size: 14px; line-height: 2; padding: 14px 0; overflow-x: auto; }
.cl { display: flex; padding: 0 16px; white-space: pre-wrap; }
.cl:hover { background: rgba(255, 255, 255, 0.02); }
.cl .ln { width: 34px; flex: none; color: var(--faint); font-size: 12px; user-select: none; padding-top: 3px; }
.tok-var { color: var(--key); }
.tok-str { color: var(--amber); }
.tok-head { color: var(--faint); }

.readme { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.readme h2 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.readme h3 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.readme p, .readme li { font-size: 15.5px; color: var(--muted); }
.readme ul { padding-left: 20px; }

/* ---------- Sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 20px; }
.side-block h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 10px; }
.varrow { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.varrow .v { color: var(--key); }
.varrow .t { color: var(--faint); }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 13.5px; }
.installbox { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.installbox .cmd { color: var(--add); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Listen (Versionen, Evals, PRs, Diskussion) ---------- */
.vrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); width: 100%; text-align: left; font-family: var(--body); color: var(--ink); }
.vrow .semver { font-family: var(--mono); font-size: 14px; color: var(--add); width: 64px; flex: none; }
.vrow .msg { flex: 1; font-size: 15px; }
.vrow .msg small { display: block; color: var(--faint); font-size: 13px; }
.vrow .when { font-size: 13.5px; color: var(--faint); flex: none; }

.status { font-family: var(--mono); font-size: 12.5px; padding: 3px 10px; border-radius: 20px; flex: none; }
.status.pass { color: var(--add); border: 1px solid rgba(127, 217, 98, 0.4); }
.status.fail { color: var(--del); border: 1px solid rgba(240, 113, 120, 0.4); }
.status.open { color: var(--add); border: 1px solid rgba(127, 217, 98, 0.4); }
.status.merged { color: var(--key); border: 1px solid rgba(115, 184, 255, 0.4); }
.status.pending { color: var(--faint); border: 1px solid var(--line); }
.evalsum { display: flex; gap: 22px; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.evalsum b { font-family: var(--mono); font-weight: 500; }
.evalsum .p { color: var(--add); }
.evalsum .f { color: var(--del); }
.cat { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); flex: none; text-transform: uppercase; }

/* ---------- Explore (Startseite) ---------- */
.page-title { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 36px 0 6px; }
.page-sub { color: var(--muted); margin-bottom: 26px; }
.repocard { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin-bottom: 12px; transition: border-color 0.15s; }
.repocard:hover { border-color: var(--faint); }
.repocard .rc-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15.5px; }
.repocard .rc-head .stars { margin-left: auto; font-size: 13.5px; color: var(--muted); }
.repocard p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

.db-note { background: rgba(255, 180, 84, 0.07); border: 1px solid rgba(255, 180, 84, 0.25); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; color: var(--muted); margin: 18px 0; }
.db-note b { color: var(--amber); font-weight: 600; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

/* ---------- Diff-Ansicht ---------- */
.cl .sig { width: 16px; flex: none; }
.cl.diff-add { background: var(--add-bg); }
.cl.diff-add .sig { color: var(--add); }
.cl.diff-del { background: var(--del-bg); }
.cl.diff-del .sig { color: var(--del); }
.cl.diff-del .code { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(240, 113, 120, 0.5); }

/* ---------- Wizard (Neuer Prompt) ---------- */
.wsteps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.wstep { font-family: var(--mono); font-size: 13px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); color: var(--faint); }
.wstep.active { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.wpanel { display: none; }
.wpanel.show { display: block; }
.wlabel { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
.whint { font-size: 13.5px; color: var(--faint); margin-top: 5px; }
.whint-inline { font-weight: 400; color: var(--faint); font-size: 13px; }
.winput { width: 100%; font-family: var(--body); font-size: 15.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.winput:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
textarea.winput { resize: vertical; line-height: 1.7; }
select.winput { appearance: none; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wnav { display: flex; justify-content: space-between; margin-top: 26px; }
@media (max-width: 600px) { .wgrid { grid-template-columns: 1fr; } }

/* ---------- Suche ---------- */
.searchbar { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--faint); }
.searchbar input { flex: 1; background: none; border: none; color: var(--ink); font-family: var(--body); font-size: 14.5px; padding: 8px 0; outline: none; }
.searchbar input::placeholder { color: var(--faint); }
.searchbar:focus-within { border-color: var(--amber); }
.search-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); font-size: 15.5px; }
@media (max-width: 700px) { .searchbar { display: none; } }

/* ---------- Auth ---------- */
.avatar-img { object-fit: cover; border: 1px solid var(--line); }
.nav-right form { display: inline; }

/* ---------- Playground ---------- */
.pg-keybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.pg-keyrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pg-keyrow .winput { max-width: 380px; font-family: var(--mono); font-size: 14px; }
.pg-remember { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pg-pane-head { display: flex; gap: 10px; align-items: center; }
.pg-pane-head b { font-size: 14.5px; margin-right: auto; }
.pg-sel { width: auto; padding: 6px 10px; font-size: 13.5px; font-family: var(--mono); }
.pg-prompt { font-size: 13.5px; line-height: 1.8; }
.pg-out { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 120px; font-size: 14.5px; white-space: pre-wrap; color: var(--ink); }
.pg-placeholder { color: var(--faint); }
.pg-meta { font-size: 12.5px; color: var(--faint); min-height: 15px; }
.pg-vars { display: flex; flex-direction: column; gap: 8px; }
.pg-varrow { display: flex; gap: 12px; align-items: center; }
.pg-varrow .tok-var { min-width: 140px; font-size: 13.5px; }
@media (max-width: 800px) { .pg-grid { grid-template-columns: 1fr; } }

/* ---------- Footer & Rechtsseiten ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 72px; padding: 40px 0 26px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 28px; flex-wrap: wrap; }
.foot-legal { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.foot-legal a { font-size: 14.5px; color: var(--muted); transition: color 0.15s; }
.foot-legal a:hover { color: var(--amber); }
.foot-brand .logo { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--ink); }
.foot-brand .logo .p { color: var(--amber); }
.foot-tagline { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 34ch; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 3px; }
.foot-col a { font-size: 14.5px; color: var(--muted); transition: color 0.15s; }
.foot-col a:hover { color: var(--amber); }
.foot-bottom { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13.5px; color: var(--faint); }
.foot-dot { color: var(--line); }
@media (max-width: 700px) {
  .foot-grid { flex-direction: column; gap: 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-bottom .foot-dot { display: none; }
}
.legal { max-width: 720px; padding-bottom: 50px; }
.legal h2 { font-family: var(--display); font-size: 17.5px; font-weight: 600; margin: 38px 0 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: none; padding-top: 6px; margin-top: 20px; }
.legal h3 { font-family: var(--display); font-size: 15.5px; font-weight: 600; margin: 22px 0 8px; }
.legal p { font-size: 15.5px; color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal ul { padding-left: 0; list-style: none; }
.legal li { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; padding-left: 22px; position: relative; }
.legal li::before { content: "–"; position: absolute; left: 4px; color: var(--amber); }
.legal a { color: var(--amber); }
.legal a:hover { text-decoration: underline; }
.legal b { color: var(--ink); font-weight: 600; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 6px 0 10px; }
.legal-card p { margin-bottom: 6px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-address { color: var(--ink) !important; line-height: 1.7; }
.legal-contact { font-size: 15px; }

/* ---------- Neue Version & Fork ---------- */
.fork-origin { font-size: 14px; color: var(--faint); margin: -8px 0 16px; }
.fork-origin a { color: var(--key); }
.fork-origin a:hover { text-decoration: underline; }
.bump-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.bump-opt { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font-size: 14.5px; }
.bump-opt:has(input:checked) { border-color: rgba(255, 180, 84, 0.5); }
.bump-opt input { margin-top: 3px; accent-color: var(--amber); }
.bump-opt small { color: var(--faint); font-size: 13px; line-height: 1.5; display: block; margin-top: 3px; }
.bump-preview { font-size: 12.5px; color: var(--add); margin-left: 6px; }
@media (max-width: 700px) { .bump-group { grid-template-columns: 1fr; } }

/* ---------- Pull Requests ---------- */
.pr-title { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.02em; margin: 6px 0 8px; }
.status.closed { color: var(--faint); border: 1px solid var(--line); }
.review-form { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.merge-box { margin-top: 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid rgba(127, 217, 98, 0.35); border-radius: var(--radius); padding: 14px 18px; }
.merge-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-right: auto; }
.merge-form span { font-size: 14.5px; color: var(--muted); }

/* ---------- Diskussionen ---------- */
.disc-new { margin-bottom: 16px; }
.disc-new summary { list-style: none; display: inline-flex; cursor: pointer; }
.disc-new summary::-webkit-details-marker { display: none; }
.disc-new[open] summary { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14.5px; }
.comment-head .when { margin-left: auto; font-size: 13px; color: var(--faint); }
.comment-body { font-size: 15.5px; color: var(--muted); white-space: pre-wrap; line-height: 1.7; }

/* ---------- v14: Profil, Melden, Admin ---------- */

/* Repo-Karten: ganze Karte klickbar (Stretched Link), Owner separat aufs Profil */
.repocard { position: relative; }
.repocard .rc-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.repocard .rc-owner { position: relative; z-index: 1; color: var(--muted); }
.repocard .rc-owner:hover { color: var(--amber); text-decoration: underline; }

/* Profilseite */
.profile-head { display: flex; align-items: flex-start; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.profile-avatar { width: 84px; height: 84px; }
.profile-id { min-width: 220px; flex: 1; }
.profile-id .page-title { margin-top: 0; }
.profile-handle { font-size: 14.5px; color: var(--faint); margin-top: 2px; }
.profile-bio { font-size: 15px; color: var(--muted); margin-top: 10px; max-width: 560px; }
.badge.verified { border-color: rgba(127, 217, 98, 0.45); color: var(--add); vertical-align: 4px; }
.profile-stats { display: flex; gap: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.profile-stats dt { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.profile-stats dd { font-size: 17px; font-weight: 600; margin-top: 2px; }
.profile-sub { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 32px 0 14px; }

/* Melden-Formular auf der Repo-Seite */
.report-toggle { margin-top: 14px; }
.report-toggle > summary { cursor: pointer; font-size: 13.5px; color: var(--faint); list-style: none; width: fit-content; }
.report-toggle > summary::-webkit-details-marker { display: none; }
.report-toggle > summary:hover { color: var(--del); }
.report-toggle .report-form { max-width: 520px; margin-top: 10px; }

/* Admin: Meldungen */
.report-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; margin-bottom: 12px; }
.report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; }
.report-head a:hover { color: var(--amber); }
.badge.report-reason { border-color: rgba(240, 113, 120, 0.45); color: var(--del); }
.badge.report-removed { border-color: var(--line); color: var(--faint); }
.report-details { font-size: 14.5px; color: var(--muted); margin-top: 8px; white-space: pre-wrap; }
.report-actions { display: flex; gap: 10px; margin-top: 12px; }
.btn-danger { background: var(--del-bg); border-color: rgba(240, 113, 120, 0.45); color: var(--del); }
.btn-danger:hover { background: rgba(240, 113, 120, 0.18); border-color: var(--del); }
.report-head .when { font-size: 13px; color: var(--faint); }

/* ---------- v15: Tags & Pagination ---------- */

.nav-link { font-size: 14.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }

/* Tag-Chips auf Karten und Repo-Detail */
.tagchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tagchip { font-family: var(--mono); font-size: 12px; padding: 2px 10px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: var(--surface2); position: relative; z-index: 1; }
.tagchip:hover { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.repo-tagchips { margin-top: 6px; margin-bottom: 2px; }

/* Tag-Übersicht */
.taggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.tagcard { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; transition: border-color 0.15s; }
.tagcard:hover { border-color: var(--faint); }
.tagcard.empty { opacity: 0.55; }
.tagcard-label { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.tagcard-count { font-size: 13px; color: var(--muted); }
.crumb-line { margin-top: 32px; font-size: 14px; color: var(--muted); }
.crumb-line a:hover { color: var(--amber); }
.crumb-line .sep { color: var(--faint); margin: 0 4px; }

/* Tag-Auswahl im Wizard */
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tagpick-item { cursor: pointer; }
.tagpick-item input { position: absolute; opacity: 0; pointer-events: none; }
.tagpick-item .tagchip { font-size: 13px; padding: 5px 13px; display: inline-block; }
.tagpick-item input:checked + .tagchip { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.09); }
.tagpick-item input:disabled + .tagchip { opacity: 0.4; cursor: not-allowed; }
.tagpick-item input:focus-visible + .tagchip { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Seiten-Navigation */
.pagenav { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 26px 0 40px; }
.pagenav-info { font-size: 13.5px; color: var(--muted); }
.pagenav-off { opacity: 0.35; pointer-events: none; }

/* ---------- v18: Onboarding & Lernbereich ---------- */

/* Gast-Hero auf Explore */
.hero { padding: 52px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; }
.hero-title .p { color: var(--amber); }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 560px; margin-top: 12px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Onboarding-Schritte */
.wrap-narrow { max-width: 760px; }
.onboard-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.onboard-step { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; transition: border-color 0.15s; }
.onboard-step:hover { border-color: rgba(255, 180, 84, 0.5); }
.onboard-num { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.onboard-body { display: flex; flex-direction: column; gap: 4px; }
.onboard-body b { font-family: var(--display); font-size: 15.5px; }
.onboard-body span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* Lernbereich */
.learn-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.learn-card { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; transition: border-color 0.15s; }
.learn-card:hover { border-color: rgba(255, 180, 84, 0.5); }
.learn-num { font-size: 20px; color: var(--amber); flex: none; }
.learn-body { display: flex; flex-direction: column; gap: 3px; }
.learn-title { font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.learn-teaser { font-size: 14px; color: var(--muted); line-height: 1.5; }
.learn-mins { margin-left: auto; flex: none; font-size: 12.5px; color: var(--faint); }
.learn-cta { margin-top: 26px; }
.learn-cta a { color: var(--amber); }

.learn-article { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.learn-article h2 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 26px 0 8px; }
.learn-article p { margin: 10px 0; color: var(--muted); }
.learn-article p b, .learn-article p em { color: var(--ink); }
.learn-article a { color: var(--amber); }
.learn-article a:hover { text-decoration: underline; }
.learn-article code { font-family: var(--mono); font-size: 13.5px; background: var(--surface2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.learn-code { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; overflow-x: auto; white-space: pre; color: var(--ink); }
.learn-nav { display: flex; justify-content: space-between; gap: 12px; margin: 30px 0 44px; flex-wrap: wrap; }

/* ---------- v19: Wizard-Vorlagen & Import ---------- */
.tplstrip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; }
.tplstrip-label { font-size: 13px; color: var(--faint); }
.tplchip { font-family: var(--mono); font-size: 12.5px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: var(--surface2); }
.tplchip:hover { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.tplchip.active { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.09); }
.tplchip-import { margin-left: auto; border-style: dashed; }
.import-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--faint); font-size: 13px; }
.import-divider::before, .import-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.werror { font-size: 13.5px; color: var(--del); margin-top: 6px; }

/* ---------- v20: Trending-Tabs & Sprach-Umschalter ---------- */
.sorttabs { display: flex; gap: 8px; margin: 4px 0 18px; }
.sorttab { font-size: 13.5px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.sorttab:hover { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.sorttab.active { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.09); }
.foot-lang a { color: var(--faint); font-size: 13.5px; }
.foot-lang a:hover { color: var(--ink); }
.foot-lang a.lang-active { color: var(--amber); font-weight: 600; }

/* ---------- v21: Fehlerseiten ---------- */
.errorpage { text-align: center; padding: 70px 0 90px; }
.error-code { font-size: 72px; color: var(--amber); opacity: 0.85; letter-spacing: 0.04em; }
.errorpage .page-title { margin-top: 6px; }
.errorpage .page-sub { margin-left: auto; margin-right: auto; }
.errorpage .hero-actions { justify-content: center; }

/* ---------- v22: Hinweis auf verbindliche DE-Fassung ---------- */
.legal-prevail { font-size: 13.5px; color: var(--faint); border-left: 2px solid var(--amber); padding-left: 10px; }
.legal-prevail a { color: var(--amber); }

/* ---------- v24: Benachrichtigungen & Webhooks ---------- */
.nav-bell { position: relative; display: flex; align-items: center; color: var(--muted); padding: 6px; }
.nav-bell:hover { color: var(--amber); }
.bellcnt { position: absolute; top: -2px; right: -4px; background: var(--amber); color: #1a1205; font-size: 11px; font-weight: 700; line-height: 1; padding: 2px 5px; border-radius: 9px; }
.inboxrow .inbox-icon { flex: 0 0 26px; text-align: center; color: var(--amber); font-size: 16px; }
.inboxrow.unread { border-left: 2px solid var(--amber); background: rgba(255, 180, 84, 0.045); }
.inboxrow.unread .msg { color: var(--ink); }
.hookrow form { margin-left: auto; }
.hookevents { display: grid; gap: 8px; margin-top: 4px; }
.hookevent { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.hookevent input { accent-color: var(--amber); }

/* ---------- v25: Eval-Runner & Wizard-Grid ---------- */
.eval-keybox { margin: 10px 0 14px; }
.eval-keybox > summary { cursor: pointer; }
.evalsum { display: flex; align-items: center; gap: 18px; }
.wgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .wgrid2 { grid-template-columns: 1fr; } }

/* ---------- v26: Private Repos & Einstellungen ---------- */
.badge.private { border-color: rgba(255, 180, 84, 0.5); color: var(--amber); }
.danger-title { color: var(--del); }
.dangerbox { border: 1px solid rgba(240, 113, 120, 0.35); border-radius: 10px; padding: 14px 16px; }
.btn-danger { border: 1px solid rgba(240, 113, 120, 0.55); color: var(--del); background: transparent; }
.btn-danger:hover { background: rgba(240, 113, 120, 0.12); }

/* ---------- v27: Organisationen ---------- */
.org-avatar { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--amber); border-radius: 12px; }

/* ---------- v28: Preisseite ---------- */
.plangrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 800px) { .plangrid { grid-template-columns: 1fr; } }
.plancard { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.plancard.plan-hot { border-color: rgba(255, 180, 84, 0.55); }
.plancard h2 { font-size: 17px; }
.plan-price { font-size: 26px; color: var(--ink); }
.plan-per { font-size: 14px; color: var(--muted); }
.plan-alt { display: block; font-size: 13px; color: var(--faint); margin-top: 2px; }
.plan-feats { list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--muted); }
.plan-feats li::before { content: "✓ "; color: var(--add); }
.plan-buy { display: grid; gap: 8px; margin-top: auto; }

/* ---------- v29: Admin-Statistik ---------- */
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .statgrid { grid-template-columns: repeat(3, 1fr); } }
.statgrid > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.statgrid dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.statgrid dd { font-size: 20px; color: var(--ink); }
.statgrid dd small { font-size: 12px; color: var(--add); }

/* ---------- v30: Benachrichtigungs-Leiste ---------- */
.tabbar { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.tabbar .badge { text-decoration: none; }
.readbtn { display: inline-block; margin: -34px 0 10px 8px; }

/* ---------- Prompt-Werkstatt (v48) ---------- */
.ws-icon { font-size: 22px; flex: none; width: 26px; text-align: center; }
.ws-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ws-tab { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); transition: border-color 0.15s, color 0.15s; }
.ws-tab:hover { border-color: rgba(255, 180, 84, 0.5); color: var(--ink); }
.ws-tab-on { border-color: var(--amber); color: var(--amber); }
.ws-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.ws-form { min-width: 0; }
.ws-side { min-width: 0; position: sticky; top: 84px; }
.ws-blocks { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 16px; }
.ws-block { border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 3px 10px; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.ws-block:hover { border-color: rgba(255, 180, 84, 0.5); color: var(--ink); }
.ws-preview-head { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); padding: 9px 14px; font-size: 13px; color: var(--muted); }
.ws-count { margin-left: auto; color: var(--faint); }
.ws-preview { border-radius: 0 0 var(--radius) var(--radius); min-height: 120px; max-height: 60vh; overflow: auto; }
.ws-tips { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ws-tips li + li { margin-top: 6px; }
@media (max-width: 900px) {
  .ws-layout { grid-template-columns: minmax(0, 1fr); }
  .ws-side { position: static; }
}

/* ---------- Hero-Upgrade (v50) ---------- */
.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.hero-tile { display: flex; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; transition: border-color 0.15s; }
.hero-tile:hover { border-color: rgba(255, 180, 84, 0.5); }
.hero-tile-icon { font-size: 20px; }
.hero-tile-title { font-family: var(--display); font-weight: 600; font-size: 16px; }
.hero-tile-text { font-size: 14px; color: var(--muted); line-height: 1.55; }
.hero-facts { margin-top: 20px; font-size: 13.5px; color: var(--faint); line-height: 1.7; }
@media (max-width: 760px) { .hero-tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kacheln für Angemeldete (v55): etwas kompakter, mit Abstand nach unten ---------- */
.hero-tiles-compact { margin-top: 0; margin-bottom: 30px; }
.hero-tiles-compact .hero-tile { padding: 14px 16px; }
.hero-tiles-compact .hero-tile-text { font-size: 13.5px; }

/* ---------- Admin-Überarbeitung (v56): größeres Untermenü, Filter, Bulk, Handlungsbedarf ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.admin-tab { display: inline-flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 14.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--surface); transition: border-color 0.15s, color 0.15s; }
.admin-tab:hover { border-color: var(--faint); color: var(--ink); }
.admin-tab.on { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.08); }
.admin-cnt { font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1; color: #1a1205; background: var(--amber); border-radius: 10px; padding: 3px 8px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.filtersel { width: auto; flex: none; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface2); padding: 10px 14px; margin: 0 0 14px; }
.bulk-all { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.bulk-count { font-size: 13px; color: var(--muted); }
.rowck { width: 17px; height: 17px; accent-color: var(--amber); flex: none; cursor: pointer; }
.adminrow .msg small { display: block; color: var(--muted); }
.attn-title { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.attn-clear { border: 1px solid rgba(127, 217, 98, 0.35); border-radius: var(--radius); background: rgba(127, 217, 98, 0.07); color: var(--ink); font-size: 14.5px; padding: 12px 16px; }
.attn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .attn-grid { grid-template-columns: repeat(4, 1fr); } }
.attn-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; transition: border-color 0.15s; }
.attn-card:hover { border-color: var(--amber); }
.attn-card b { font-size: 24px; color: var(--ink); font-weight: 600; }
.attn-card span { font-size: 13.5px; color: var(--ink); }
.attn-card small { font-size: 12.5px; color: var(--amber); }
.attn-card.warn { border-color: rgba(240, 113, 120, 0.45); }
.attn-card.warn b { color: var(--del); }
.attn-growth { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.attn-growth b { color: var(--add); font-weight: 600; }

/* ---------- Zustimmungs-Hinweise (v66): Anmeldung + kostenpflichtiger Abschluss ---------- */
.login-consent { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 48ch; line-height: 1.5; }
.login-consent a, .buy-consent a { color: var(--muted); text-decoration: underline; }
.login-consent a:hover, .buy-consent a:hover { color: var(--ink); }
.buy-consent { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 4px; font-size: 12.5px; color: var(--muted); line-height: 1.45; text-align: left; }
.buy-consent input { margin-top: 3px; accent-color: var(--amber); flex: none; width: 15px; height: 15px; }
.buy-note { font-size: 12px; color: var(--faint); margin: 0 0 12px; text-align: left; }
