/*!
 * Hilfe-Center – Besucher-Seiten, Boxen, Code-Blöcke, Hinweisboxen, Videos
 * Passt sich an das Layout an (Farben über --hc-a / --hc-b), Code-Blöcke sind immer dunkel und gut lesbar.
 * Modul © 2026 gameserver-install.de · by Rumpel
 */
@font-face { font-family: "HC Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HC Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "HC Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.hc {
    --hc-a: var(--gsi-a, #ff2bd6);
    --hc-b: var(--gsi-b, #8b5cf6);
    --hc-c: var(--hc-a);
    --hc-cy: #22d3ee;
    --hc-text: #ece8f5;
    --hc-soft: #d4cbe6;
    --hc-muted: #b3aac9;
    --hc-surface: rgba(255, 255, 255, .045);
    --hc-surface2: rgba(255, 255, 255, .08);
    --hc-line: rgba(196, 155, 255, .2);
    --hc-head: "Chakra Petch", var(--gsi-font-head, system-ui), sans-serif;
    --hc-mono: "JetBrains Mono", "HC Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --hc-radius: 16px;
    color: var(--hc-text);
}
[data-bs-theme="light"] .hc:not(.hc-force-dark) {
    --hc-text: #1d1730;
    --hc-soft: #3c3452;
    --hc-muted: #6b6380;
    --hc-surface: rgba(80, 40, 140, .04);
    --hc-surface2: rgba(80, 40, 140, .08);
    --hc-line: rgba(90, 50, 160, .18);
}
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc a { text-decoration: none; }
.hc-page { display: flex; flex-direction: column; gap: 28px; }
.hc-muted { color: var(--hc-muted); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ------------------------------------------------------------ Schrift & Knöpfe */
.hc-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb3f2; background: color-mix(in srgb, var(--hc-a) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hc-a) 38%, transparent); }
.hc-kicker a { color: inherit; }
[data-bs-theme="light"] .hc-kicker { color: var(--hc-a); }
.hc-h1 { font-family: var(--hc-head); font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
.hc-h1--sm { font-size: clamp(26px, 3.2vw, 40px); }
.hc-h1--article { text-transform: none; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.hc-h2 { display: flex; align-items: center; gap: 10px; font-family: var(--hc-head); font-size: 22px; font-weight: 700; margin: 0 0 14px; color: var(--hc-text); }
.hc-h2 svg, .hc-h3 svg { color: var(--hc-a); }
.hc-h3 { display: flex; align-items: center; gap: 8px; font-family: var(--hc-head); font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.hc-chrome { background: linear-gradient(180deg, #fff 0%, #e1e3ee 44%, #9a9fb5 54%, #f2f3f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-neon { background: linear-gradient(90deg, #ff5fe4, #c084fc, var(--hc-cy), #ff5fe4); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255, 43, 214, .5)); animation: hcHue 6s linear infinite; }
[data-bs-theme="light"] .hc-chrome { background: none; color: var(--hc-text); }
@keyframes hcHue { to { background-position: 300% 0; } }
.hc-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--hc-soft); max-width: 62ch; }
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s; font-family: inherit; text-decoration: none; white-space: nowrap; }
.hc-btn:hover { transform: translateY(-2px); }
.hc-btn--primary { background: linear-gradient(90deg, var(--hc-a), var(--hc-b)); color: #fff !important; box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--hc-a) 85%, transparent); }
.hc-btn--primary:hover { box-shadow: 0 14px 34px -8px var(--hc-a); }
.hc-btn--ghost { background: var(--hc-surface); color: var(--hc-text) !important; border-color: var(--hc-line); }
.hc-btn--ghost:hover { border-color: var(--hc-a); }
.hc-btn:focus-visible, .hc a:focus-visible, .hc button:focus-visible { outline: 2px solid var(--hc-a); outline-offset: 2px; }
.hc-linkbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--hc-muted); font: inherit; cursor: pointer; }
.hc-linkbtn:hover { color: var(--hc-text); }
.hc-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; background: color-mix(in srgb, var(--hc-a) 14%, transparent); color: #ffb3f2; border: 1px solid color-mix(in srgb, var(--hc-a) 32%, transparent); }
.hc-tag--video { background: rgba(244, 63, 94, .14); color: #fda4af; border-color: rgba(244, 63, 94, .35); }
.hc-tag--config { background: rgba(139, 92, 246, .16); color: #d8c4ff; border-color: rgba(139, 92, 246, .4); }
.hc-tag--faq { background: rgba(34, 211, 238, .12); color: #a5f3fc; border-color: rgba(34, 211, 238, .35); }
.hc-tag--tool { background: rgba(245, 158, 11, .14); color: #fcd34d; border-color: rgba(245, 158, 11, .35); }
.hc-tag--cat { background: var(--hc-surface2); color: var(--hc-soft); border-color: var(--hc-line); }
.hc-tag--star { background: rgba(250, 204, 21, .14); color: #fde68a; border-color: rgba(250, 204, 21, .35); }
[data-bs-theme="light"] .hc-tag { color: #6b21a8; }
.hc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--hc-text) !important; background: var(--hc-surface); border: 1px solid var(--hc-line); transition: border-color .2s, background-color .2s; }
.hc-chip svg { color: var(--hc-c); }
.hc-chip b { font-size: 12px; color: var(--hc-muted); }
.hc-chip:hover, .hc-chip.is-on { border-color: var(--hc-c); background: color-mix(in srgb, var(--hc-c) 12%, transparent); }
.hc-flag { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--hc-muted); background: var(--hc-surface2); }
.hc-hash { display: inline-block; margin: 0 6px 6px 0; font-size: 13px; color: var(--hc-muted) !important; }
.hc-hash:hover { color: var(--hc-a) !important; }
.hc-empty { margin: 0; padding: 26px; text-align: center; border: 1px dashed var(--hc-line); border-radius: var(--hc-radius); color: var(--hc-muted); }
.hc-draft { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(245, 184, 61, .12); border: 1px solid rgba(245, 184, 61, .4); color: #fcd34d; font-weight: 600; }

/* ------------------------------------------------------------ Kopf, Suche */
.hc-hero { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; padding: 36px clamp(18px, 4vw, 44px); border-radius: 22px; isolation: isolate; background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--hc-a) 26%, transparent), transparent 60%), radial-gradient(60% 100% at 0% 100%, color-mix(in srgb, var(--hc-b) 26%, transparent), transparent 60%), var(--hc-surface); border: 1px solid var(--hc-line); }
.hc-hero--sm { padding-block: 28px; }
.hc-hero__clip { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.hc-hero__glow { position: absolute; inset: auto -10% -60% -10%; height: 120%; background-image: linear-gradient(color-mix(in srgb, var(--hc-a) 30%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--hc-a) 30%, transparent) 1px, transparent 1px); background-size: 48px 48px; transform: perspective(500px) rotateX(62deg); transform-origin: 50% 0; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); opacity: .5; animation: hcGrid 3s linear infinite; pointer-events: none; }
@keyframes hcGrid { to { background-position: 0 48px, 0 0; } }
.hc-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--hc-muted); font-size: 14px; }
.hc-stats b { font-family: var(--hc-head); font-size: 20px; color: var(--hc-text); margin-right: 4px; }
.hc-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 16px; background: rgba(10, 7, 18, .85); border: 1px solid color-mix(in srgb, var(--hc-a) 45%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hc-a) 7%, transparent), 0 18px 46px -22px var(--hc-a); max-width: 680px; width: 100%; }
[data-bs-theme="light"] .hc-search { background: #fff; }
.hc-search__ico { flex: 0 0 auto; color: #ff8ff0; }
.hc-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--hc-text); font: 500 16px Inter, system-ui, sans-serif; }
.hc-search input::placeholder { color: var(--hc-muted); }
.hc-search input::-webkit-search-cancel-button { filter: invert(.7); }
.hc-search:focus-within { border-color: var(--hc-a); }
.hc .hc-search input:focus, .hc .hc-search input:focus-visible, .hc-search input:focus-visible { outline: none; box-shadow: none; }
.hc-search--box { padding-left: 12px; }
.hc-search--box .hc-btn { padding: 0 12px; }
.hc-search--box .hc-btn, .hc-search--head .hc-btn { min-height: 38px; }
.hc-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; padding: 6px; border-radius: 14px; background: rgba(14, 9, 26, .98); border: 1px solid color-mix(in srgb, var(--hc-a) 40%, transparent); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
[data-bs-theme="light"] .hc-results { background: #fff; }
.hc-results a, .hc-results p { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 10px; color: var(--hc-text); font-size: 15px; }
.hc-results a:hover, .hc-results a.is-active { background: color-mix(in srgb, var(--hc-a) 14%, transparent); }
.hc-results a span { flex: 1; min-width: 0; }
.hc-results small { color: var(--hc-muted); font-size: 12px; }
.hc-results .hc-results__all { justify-content: center; font-weight: 700; color: #ff9cf0; }
.hc-results mark, .hc-row mark { background: color-mix(in srgb, var(--hc-a) 30%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ------------------------------------------------------------ Kategorien */
.hc-section { margin: 0; }
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.hc-cat { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 18px; overflow: hidden; color: var(--hc-text) !important; background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); border: 1px solid var(--hc-line); transition: transform .25s, border-color .25s, box-shadow .25s; isolation: isolate; }
.hc-cat::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--hc-c) 30%, transparent), transparent 45%, color-mix(in srgb, var(--hc-b) 26%, transparent), transparent 85%); animation: hcSpin 14s linear infinite; opacity: .7; }
.hc-cat:hover { transform: translateY(-4px); border-color: var(--hc-c); box-shadow: 0 20px 50px -26px var(--hc-c); }
.hc-cat:hover::after { animation-duration: 3s; }
@keyframes hcSpin { to { transform: rotate(360deg); } }
.hc-cat__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .18; }
.hc-cat__ico { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--hc-c) 70%, #120a22), color-mix(in srgb, var(--hc-c) 30%, #120a22)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hc-c) 55%, transparent), 0 10px 26px -12px var(--hc-c); }
.hc-cat:hover .hc-cat__ico svg { animation: hcShake .6s both; }
@keyframes hcShake { 20%, 80% { transform: rotate(-8deg); } 40%, 60% { transform: rotate(8deg) scale(1.08); } }
.hc-cat__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hc-cat__title { font-size: 17px; font-weight: 700; }
.hc-cat__text { color: var(--hc-muted); font-size: 14px; line-height: 1.45; }
.hc-cat__count { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--hc-c); letter-spacing: .03em; }
.hc-cat__go { margin-left: auto; align-self: center; color: var(--hc-muted); transition: transform .2s, color .2s; }
.hc-cat:hover .hc-cat__go { transform: translateX(4px); color: var(--hc-c); }
.hc-catnav { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-cathead { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; padding: 28px clamp(18px, 4vw, 40px); border-radius: 22px; background: radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--hc-c) 24%, transparent), transparent 60%), var(--hc-surface); border: 1px solid var(--hc-line); }
.hc-cathead .hc-search { grid-column: 1 / -1; }
.hc-cathead__ico { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--hc-c) 75%, #120a22), color-mix(in srgb, var(--hc-c) 30%, #120a22)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hc-c) 55%, transparent), 0 16px 40px -14px var(--hc-c); }
.hc-cathead__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ------------------------------------------------------------ Listen */
.hc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hc-cols__main:only-child { grid-column: 1 / -1; }
.hc-cols__side { display: flex; flex-direction: column; gap: 16px; }
.hc-cols__side:empty { display: none; }
.hc-list { display: flex; flex-direction: column; gap: 10px; }
.hc-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; color: var(--hc-text) !important; background: var(--hc-surface); border: 1px solid var(--hc-line); transition: border-color .2s, background-color .2s, transform .2s; }
.hc-row:hover { border-color: var(--hc-c); background: color-mix(in srgb, var(--hc-c) 8%, transparent); transform: translateX(4px); }
.hc-row__ico { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--hc-c); background: color-mix(in srgb, var(--hc-c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hc-c) 35%, transparent); }
.hc-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-row__title { font-weight: 650; font-size: 16px; }
.hc-row__text { color: var(--hc-muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-row__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; align-items: center; }
.hc-row__go { color: var(--hc-muted); transition: transform .2s, color .2s; }
.hc-row:hover .hc-row__go { color: var(--hc-c); transform: translateX(3px); }
.hc-card { padding: 18px; border-radius: var(--hc-radius); background: var(--hc-surface); border: 1px solid var(--hc-line); }
.hc-mini { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; color: var(--hc-text) !important; font-size: 14.5px; line-height: 1.35; }
.hc-mini:hover { background: color-mix(in srgb, var(--hc-c) 12%, transparent); }
.hc-mini > span:last-of-type, .hc-mini > span:nth-child(2) { flex: 1; min-width: 0; }
.hc-mini small { display: block; color: var(--hc-muted); font-size: 12px; margin-top: 2px; }
.hc-mini__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--hc-a); box-shadow: 0 0 10px var(--hc-a); }
.hc-mini__play { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--hc-a), var(--hc-b)); }
.hc-mini__ico { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--hc-c); background: color-mix(in srgb, var(--hc-c) 14%, transparent); }
.hc-mini__count { font-size: 12px; color: var(--hc-muted); }
.hc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; color: var(--hc-muted); }
.hc-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 22px 24px; border-radius: 20px; background: radial-gradient(80% 160% at 100% 0%, color-mix(in srgb, var(--hc-a) 22%, transparent), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--hc-b) 20%, transparent), var(--hc-surface)); border: 1px solid var(--hc-line); }
.hc-ask__ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--hc-a), var(--hc-b)); }
.hc-ask__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.hc-ask__text b { font-family: var(--hc-head); font-size: 19px; }
.hc-ask__text span { color: var(--hc-soft); }
.hc-box { display: flex; flex-direction: column; gap: 2px; }
.hc-box .hc-search { box-shadow: none; }
.hc-box__more { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--hc-a) !important; }

/* ------------------------------------------------------------ Eintrag */
.hc-arthead { display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--hc-line); }
.hc-arthead__tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hc-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--hc-muted); font-size: 14px; }
.hc-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.hc-artgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hc-artgrid.has-toc { grid-template-columns: minmax(0, 1fr) 260px; }
.hc-artmain { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hc-toc { position: relative; }
.hc-toc__box { position: sticky; top: 96px; padding: 16px; border-radius: var(--hc-radius); background: var(--hc-surface); border: 1px solid var(--hc-line); display: flex; flex-direction: column; gap: 10px; }
.hc-toc__title { display: flex; align-items: center; gap: 8px; font-family: var(--hc-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--hc-muted); }
.hc-toc nav { display: flex; flex-direction: column; border-left: 2px solid var(--hc-line); }
.hc-toc__link { display: block; padding: 6px 0 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--hc-soft) !important; font-size: 14px; line-height: 1.35; transition: color .2s, border-color .2s; }
.hc-toc__link--3 { padding-left: 24px; font-size: 13px; }
.hc-toc__link:hover, .hc-toc__link.is-on { color: var(--hc-text) !important; border-left-color: var(--hc-a); }
.hc-toc__tags { padding-top: 8px; border-top: 1px solid var(--hc-line); }
.hc-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: var(--hc-radius); background: var(--hc-surface); border: 1px solid var(--hc-line); }
.hc-vote b { font-family: var(--hc-head); font-size: 17px; }
.hc-vote__btns { display: flex; gap: 8px; }
.hc-vote__msg { color: #86efac; font-weight: 600; }
.hc-vote__stat { color: var(--hc-muted); margin-left: auto; }

/* ------------------------------------------------------------ Inhalt */
.hc-content { font-size: 17px; line-height: 1.75; color: var(--hc-soft); overflow-wrap: anywhere; }
.hc-content > *:first-child { margin-top: 0; }
.hc-content p, .hc-content ul, .hc-content ol { margin: 0 0 1em; }
.hc-content li { margin-bottom: .35em; }
.hc-content li::marker { color: var(--hc-a); }
.hc-content strong, .hc-content b { color: var(--hc-text); }
.hc-content a { color: #ff9cf0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hc-a) 50%, transparent); text-underline-offset: 3px; }
[data-bs-theme="light"] .hc-content a { color: #a21caf; }
.hc-content h2, .hc-content h3, .hc-content h4 { font-family: var(--hc-head); color: var(--hc-text); line-height: 1.25; margin: 1.6em 0 .6em; scroll-margin-top: 100px; }
.hc-content h2 { font-size: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--hc-line); }
.hc-content h3 { font-size: 21px; }
.hc-content h2::before { content: ""; display: inline-block; width: 6px; height: .9em; margin-right: 10px; border-radius: 3px; background: linear-gradient(180deg, var(--hc-a), var(--hc-b)); vertical-align: -2px; box-shadow: 0 0 10px var(--hc-a); }
.hc-content img { max-width: 100%; height: auto; border-radius: 12px; }
.hc-content figure { margin: 1.4em 0; }
.hc-content figcaption { color: var(--hc-muted); font-size: 14px; text-align: center; margin-top: 6px; }
.hc-content hr { border: 0; height: 1px; margin: 2em 0; background: linear-gradient(90deg, transparent, var(--hc-a), var(--hc-b), transparent); opacity: .7; }
.hc-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--hc-b); background: var(--hc-surface); border-radius: 0 12px 12px 0; color: var(--hc-soft); }
.hc-content code.hc-inline, .hc-content :not(pre) > code { font-family: var(--hc-mono); font-size: .88em; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--hc-b) 20%, transparent); border: 1px solid color-mix(in srgb, var(--hc-b) 35%, transparent); color: #f0e6ff; white-space: break-spaces; }
[data-bs-theme="light"] .hc-content :not(pre) > code { color: #4c1d95; }
.hc-table { overflow-x: auto; margin: 1.2em 0; border-radius: 12px; border: 1px solid var(--hc-line); }
.hc-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.hc-table th, .hc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hc-line); }
.hc-table th { font-family: var(--hc-head); color: var(--hc-text); background: var(--hc-surface2); letter-spacing: .03em; }
.hc-table tr:last-child td { border-bottom: 0; }
.hc-table tbody tr:hover td { background: var(--hc-surface); }

/* ------------------------------------------------------------ Hinweisboxen */
.hc-note { --n: #22d3ee; margin: 1.3em 0; padding: 14px 18px 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--n) 9%, transparent); border: 1px solid color-mix(in srgb, var(--n) 35%, transparent); border-left: 4px solid var(--n); color: var(--hc-soft); }
.hc-note--tip { --n: #3ee68a; }
.hc-note--warn { --n: #f5b83d; }
.hc-note--danger { --n: #f43f5e; }
.hc-note--ok { --n: #34d399; }
.hc-note__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--n); font-family: var(--hc-head); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.hc-note__body > *:last-child { margin-bottom: 0; }
.hc-note__body p { margin: 0 0 .5em; }

/* ------------------------------------------------------------ Videos */
.hc-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: radial-gradient(70% 90% at 70% 20%, color-mix(in srgb, var(--hc-a) 38%, transparent), transparent 70%), linear-gradient(135deg, #21123d, #0e0a1c); border: 1px solid var(--hc-line); margin: 1.2em 0; }
.hc-artvideo .hc-video { margin: 0; }
.hc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hc-video__btn { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: transparent; color: #fff; cursor: pointer; font: inherit; padding: 20px; text-align: center; }
.hc-video__play { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--hc-a), var(--hc-b)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--hc-a) 60%, transparent), 0 0 40px color-mix(in srgb, var(--hc-a) 70%, transparent); animation: hcPulse 2.2s ease-in-out infinite; transition: transform .2s; padding-left: 4px; }
.hc-video__btn:hover .hc-video__play { transform: scale(1.08); }
@keyframes hcPulse { 50% { box-shadow: 0 0 0 14px rgba(255, 43, 214, 0), 0 0 40px rgba(255, 43, 214, .7); } }
.hc-video__label { display: flex; flex-direction: column; gap: 4px; }
.hc-video__label b { font-family: var(--hc-head); font-size: 18px; letter-spacing: .04em; }
.hc-video__label small { color: #d4cbe6; font-size: 13px; }

/* ------------------------------------------------------------ Code-Blöcke */
.hc-code { --hc-lh: 1.75; margin: 1.5em 0; border-radius: 16px; overflow: hidden; background: #0b0816; border: 1px solid rgba(196, 155, 255, .28); box-shadow: 0 26px 60px -34px rgba(255, 43, 214, .55), 0 0 0 1px rgba(0, 0, 0, .3); color: #e6e1f2; font-size: 14.5px; text-align: left; }
.hc-code__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 10px 9px 16px; background: linear-gradient(90deg, rgba(255, 43, 214, .14), rgba(139, 92, 246, .14)); border-bottom: 1px solid rgba(196, 155, 255, .18); }
.hc-code__dots { display: flex; gap: 6px; }
.hc-code__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hc-code__dots i:nth-child(2) { background: #febc2e; }
.hc-code__dots i:nth-child(3) { background: #28c840; }
.hc-code__title { font: 600 13px var(--hc-mono); color: #d8cdf0; }
.hc-code__tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.hc-code__tab { border: 0; background: transparent; color: #b3aac9; font: 600 13px var(--hc-mono); padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.hc-code__tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hc-code__tab.is-on { color: #fff; background: rgba(255, 43, 214, .2); box-shadow: inset 0 -2px 0 #ff5fe4; }
.hc-code__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hc-code__tool { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(196, 155, 255, .3); background: rgba(255, 255, 255, .04); color: #d8cdf0; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.hc-code__tool:hover, .hc-code__tool[aria-pressed="true"] { border-color: #ff5fe4; color: #fff; background: rgba(255, 43, 214, .16); }
.hc-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 95, 228, .5); background: rgba(255, 43, 214, .14); color: #fff; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; transition: background-color .2s, transform .2s, border-color .2s; }
.hc-copy:hover { background: rgba(255, 43, 214, .28); transform: translateY(-1px); }
.hc-copy.is-done { border-color: #3ee68a; background: rgba(62, 230, 138, .18); color: #bff5d6; }
.hc-code__meta { display: flex; align-items: center; gap: 10px; padding: 7px 16px; font: 500 12px var(--hc-mono); color: #a79fbd; border-bottom: 1px solid rgba(196, 155, 255, .1); background: rgba(255, 255, 255, .015); }
.hc-code__file { display: inline-flex; align-items: center; gap: 6px; color: #d8cdf0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-code__file:empty { display: none; }
.hc-lang { padding: 2px 8px; border-radius: 6px; background: rgba(139, 92, 246, .24); color: #d8c4ff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.hc-code__count { margin-left: auto; color: #7d7397; }
.hc .hc-pre, .hc-code .hc-pre { margin: 0; padding: 14px 0; overflow: auto; background: transparent; border: 0; border-radius: 0; color: inherit; font: 500 1em / var(--hc-lh) var(--hc-mono); tab-size: 4; white-space: normal; counter-reset: hcln; max-height: none; }
.hc-pre:focus-visible { outline: 2px solid #ff5fe4; outline-offset: -2px; }
.hc-code .hc-pre .hc-src { display: block; min-width: max-content; padding: 0; background: none; border: 0; color: inherit; font: inherit; white-space: normal !important; }
.hc-code.is-wrap .hc-src { min-width: 0; }
.hc-ln { display: flex; padding-right: 20px; counter-increment: hcln; transition: background-color .12s; }
.hc-ln:hover { background: rgba(255, 43, 214, .08); }
.hc-lc { flex: 1; white-space: pre; padding-left: 18px; }
.hc-code.is-wrap .hc-lc { white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-code.has-lines .hc-ln::before { content: counter(hcln); flex: 0 0 auto; min-width: 3.4em; padding-right: 14px; text-align: right; color: #5d5478; border-right: 1px solid rgba(196, 155, 255, .12); user-select: none; -webkit-user-select: none; }
.hc-code.has-lines .hc-ln:hover::before { color: #ff9cf0; }
.hc-code__pane.is-long:not(.is-open) .hc-pre { max-height: calc(var(--hc-max, 30) * var(--hc-lh) * 1em + 28px); overflow-y: hidden; mask-image: linear-gradient(180deg, #000 75%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); }
.hc-code__more { display: block; width: 100%; padding: 10px; border: 0; border-top: 1px solid rgba(196, 155, 255, .14); background: rgba(255, 255, 255, .03); color: #ff9cf0; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; }
.hc-code__more:hover { background: rgba(255, 43, 214, .1); color: #fff; }
.hc-code .hc-pre::-webkit-scrollbar { height: 10px; width: 10px; }
.hc-code .hc-pre::-webkit-scrollbar-thumb { background: rgba(196, 155, 255, .3); border-radius: 10px; border: 2px solid #0b0816; }
.hc-code .hc-pre::-webkit-scrollbar-track { background: transparent; }
/* Farben */
.hc-c { color: #8a80a6; font-style: italic; }
.hc-s { color: #86efac; }
.hc-n { color: #fbbf6a; }
.hc-k { color: #ff79e1; font-weight: 600; }
.hc-f { color: #c4a1ff; }
.hc-v { color: #7dd3fc; }
.hc-a { color: #93c5fd; }
.hc-t { color: #f472b6; font-weight: 600; }
.hc-b { color: #fda4af; }
.hc-o { color: #b9b0d0; }
.hc-i { color: #86efac; background: rgba(62, 230, 138, .1); display: inline-block; width: 100%; }
.hc-d { color: #fda4af; background: rgba(244, 63, 94, .12); display: inline-block; width: 100%; }

/* ------------------------------------------------------------ Mobil */
@media (max-width: 991.98px) {
    .hc-cols, .hc-artgrid.has-toc { grid-template-columns: minmax(0, 1fr); }
    .hc-toc { order: -1; }
    .hc-toc__box { position: static; }
}
@media (max-width: 575.98px) {
    .hc-hero, .hc-cathead { padding: 22px 16px; border-radius: 18px; }
    .hc-search { flex-wrap: wrap; padding: 6px 6px 6px 12px; }
    .hc-search .hc-btn { width: 100%; }
    .hc-cathead { grid-template-columns: minmax(0, 1fr); }
    .hc-cathead__ico { width: 60px; height: 60px; }
    .hc-row { flex-wrap: wrap; }
    .hc-row__tags { width: 100%; justify-content: flex-start; padding-left: 52px; }
    .hc-row__go { display: none; }
    .hc-code { font-size: 13px; border-radius: 12px; margin-inline: 0; }
    .hc-copy span { display: none; }
    .hc-copy { padding: 0 10px; }
    .hc-code.has-lines .hc-ln::before { min-width: 2.6em; padding-right: 10px; }
    .hc-lc { padding-left: 12px; }
    .hc-content { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hc *, .hc *::before, .hc *::after { animation: none !important; transition: none !important; }
}
@media print {
    .hc-code { box-shadow: none; }
    .hc-code__tools, .hc-code__more, .hc-vote, .hc-ask, .hc-toc { display: none !important; }
    .hc-code__pane[hidden] { display: block !important; }
    .hc-code__pane.is-long .hc-pre { max-height: none !important; mask-image: none !important; -webkit-mask-image: none !important; }
}

/* aus dem Forum übernommen: Antworten und Link zum Original-Thema */
.hc-content .hc-reply { position: relative; margin: 14px 0; padding: 14px 18px 4px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-surface); }
.hc-content .hc-reply::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(var(--hc-a), var(--hc-b)); }
.hc-content .hc-reply__by { margin: 0 0 8px; font-size: .9em; color: var(--hc-muted); }
.hc-content .hc-reply__by strong { color: var(--hc-text); }
.hc-content .hc-quote-by { margin: 0 0 6px; font-size: .9em; color: var(--hc-muted); }
.hc-content .hc-source { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--hc-line); font-size: .92em; }
.hc-content .hc-source a::before { content: "↗ "; }
