/* KCC HANDBUCH (Paket HANDBUCH, 25.10.2026, Wünsche N522/N524/N525/N551/N601).
   Einheitliches Gold auf Schwarz; die Gold-Werte kommen aus Admin → Einstellungen (--kcc-gold, --kcc-gold-rgb, --kcc-gold-light, --kcc-gold-dark),
   die Schrift aus --theme-font-main. Responsiv: PC, Tablet quer/hoch, Handy quer/hoch. Alles unter .kcc-hb bzw. .kcc-hb-adm (ändert nichts anderen Seiten). */
.kcc-hb, .kcc-hb-adm {
  --hg: var(--kcc-gold, #ebcb72); --hg2: var(--kcc-gold-light, #f9e596); --hg3: var(--kcc-gold-dark, #b07f2a); --hgr: var(--kcc-gold-rgb, 235, 203, 114);
  --hline: rgba(var(--hgr), .28); --hpanel: rgba(23, 18, 13, .92); --hmuted: #b9ad96; --hbg: #0a0806; --hred: #ff6b6b; --hok: #46d69d; --hwarn: #ffb020;
  font-family: var(--theme-font-main, 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
.kcc-hb, .kcc-hb-adm { color: #f3ecdd; max-width: 1400px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.kcc-hb *, .kcc-hb *::before, .kcc-hb *::after, .kcc-hb-adm *, .kcc-hb-adm *::before, .kcc-hb-adm *::after { box-sizing: border-box; }
.kcc-hb [hidden], .kcc-hb-adm [hidden] { display: none !important; }
.kcc-hb a, .kcc-hb-adm a { color: var(--hg); }
.kcc-hb a:hover, .kcc-hb-adm a:hover { color: var(--hg2); }
.kcc-hb ::-webkit-scrollbar, .kcc-hb-adm ::-webkit-scrollbar { width: 10px; height: 10px; }
.kcc-hb ::-webkit-scrollbar-track, .kcc-hb-adm ::-webkit-scrollbar-track { background: #0d0a07; }
.kcc-hb ::-webkit-scrollbar-thumb, .kcc-hb-adm ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--hg2), var(--hg3)); border-radius: 8px; border: 2px solid #0d0a07; }
.kcc-hb *, .kcc-hb-adm * { scrollbar-color: var(--hg3) #0d0a07; scrollbar-width: thin; }
.kcc-hb .hb-sr, .kcc-hb-adm .hb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kcc-hb :focus-visible, .kcc-hb-adm :focus-visible { outline: 2px solid var(--hg); outline-offset: 2px; }

/* ---------- Kopf mit Suche ---------- */
.hb-hero { position: relative; z-index: 5; padding: 22px 22px 18px; margin-bottom: 18px; border: 1px solid var(--hline); border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--hgr), .14), rgba(23, 18, 13, .94) 55%); }
.hb-hero h1 { margin: 0 0 6px; font-size: clamp(1.4rem, 4.2vw, 2rem); color: var(--hg); font-weight: 800; line-height: 1.2; }
.hb-hero h1 i { margin-right: 6px; }
.hb-hero p { margin: 0 0 14px; color: #d9cfba; max-width: 760px; }
.hb-search { position: relative; display: flex; gap: 0; max-width: 760px; }
.hb-search input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 8px 16px; border-radius: 14px 0 0 14px; border: 1px solid var(--hline); border-right: 0; background: #100c08; color: #f3ecdd; font: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.hb-search input[type=search]::placeholder { color: #8f846f; }
.hb-search input[type=search]::-webkit-search-cancel-button { filter: sepia(1) saturate(3); }
.hb-search button { flex: 0 0 auto; width: 56px; min-height: 50px; border-radius: 0 14px 14px 0; border: 1px solid #e0bb60; background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)); color: #100d05; font-size: 1.1rem; cursor: pointer; }
.hb-search button:hover { filter: brightness(1.08); }
.hb-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #120e09; border: 1px solid var(--hline); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); overflow: hidden; max-height: 60vh; overflow-y: auto; }
.hb-suggest a { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; min-height: 44px; text-decoration: none; color: #f3ecdd; border-bottom: 1px solid rgba(var(--hgr), .12); }
.hb-suggest a:last-child { border-bottom: 0; }
.hb-suggest a b { font-weight: 700; }
.hb-suggest a small { color: var(--hmuted); font-size: .78rem; }
.hb-suggest a:hover, .hb-suggest a.on { background: rgba(var(--hgr), .14); color: #fff; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .9rem; color: var(--hmuted); }
.hb-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--hline); text-decoration: none; color: #d8cba8; font-weight: 600; }
.hb-chips a.on { background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)); color: #100d05; border-color: #e0bb60; }
.hb-chips em { font-style: normal; font-size: .82rem; }

/* ---------- Aufbau ---------- */
.hb-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.hb-nav { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; border: 1px solid var(--hline); border-radius: 18px; background: var(--hpanel); padding: 6px; }
.hb-navd summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; cursor: pointer; font-weight: 800; color: var(--hg); }
.hb-navd summary::-webkit-details-marker { display: none; }
.hb-navd ul { list-style: none; margin: 0; padding: 0 0 6px; }
.hb-navd li a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 12px; border-radius: 12px; text-decoration: none; color: #e6dcc6; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.hb-navd li a i { flex: 0 0 20px; text-align: center; color: var(--hg); }
.hb-navd li a b { margin-left: auto; flex: 0 0 auto; min-width: 24px; text-align: center; padding: 0 6px; border-radius: 99px; background: rgba(var(--hgr), .14); color: var(--hg2); font-size: .72rem; font-weight: 700; }
.hb-navd li a:hover { background: rgba(var(--hgr), .1); color: #fff; }
.hb-navd li a.on { background: linear-gradient(110deg, rgba(var(--hgr), .26), rgba(var(--hgr), .08)); color: #fff; box-shadow: inset 3px 0 0 var(--hg); }
.hb-navd li.hb-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hline); }
.hb-main { min-width: 0; }

/* ---------- Überschriften, Karten, Listen ---------- */
.hb-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0 12px; font-size: 1.15rem; color: var(--hg); font-weight: 800; line-height: 1.3; }
.hb-h:first-child { margin-top: 4px; }
.hb-h i { width: 22px; text-align: center; }
.hb-h small { font-size: .8rem; color: var(--hmuted); font-weight: 600; }
.hb-h-big { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
.hb-h2 { margin: 22px 0 10px; font-size: 1.05rem; color: var(--hg2); font-weight: 700; }
.hb-lead { margin: 0 0 14px; color: #d9cfba; font-size: 1.02rem; }
.hb-note { padding: 12px 14px; border-radius: 12px; background: rgba(var(--hgr), .08); border: 1px solid rgba(var(--hgr), .3); color: #d9cfba; font-size: .92rem; margin: 0 0 14px; }
.hb-card { background: var(--hpanel); border: 1px solid var(--hline); border-radius: 16px; padding: 18px; margin: 0 0 16px; }
.hb-center { text-align: center; padding: 40px 18px; }
.hb-center h1 { color: var(--hg); font-size: 1.5rem; margin: 0 0 8px; }
.hb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .88rem; color: var(--hmuted); }
.hb-crumb i { font-size: .65rem; opacity: .7; }
.hb-crumb a { text-decoration: none; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hb-list { display: grid; gap: 10px; }
.hb-art, .hb-chap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--hline); background: var(--hpanel); text-decoration: none; color: #f3ecdd; transition: border-color .15s, transform .15s, background .15s; min-width: 0; }
.hb-art:hover, .hb-chap:hover { border-color: var(--hg); background: rgba(var(--hgr), .09); transform: translateY(-1px); color: #fff; }
.hb-art-t { font-weight: 800; color: var(--hg2); line-height: 1.35; overflow-wrap: anywhere; }
.hb-art-s { color: #cfc4ad; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.hb-art-s mark, .hb-body mark { background: rgba(var(--hgr), .3); color: #fff; border-radius: 4px; padding: 0 2px; }
.hb-art-c { margin-top: 2px; color: var(--hmuted); font-size: .76rem; }
.hb-art-c i { color: var(--hg); margin-right: 4px; }
.hb-chaps { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hb-chap > i { font-size: 1.5rem; color: var(--hg); margin-bottom: 4px; }
.hb-chap-t { font-weight: 800; color: var(--hg2); }
.hb-chap-s { color: #cfc4ad; font-size: .84rem; line-height: 1.45; }
.hb-chap-n { margin-top: auto; padding-top: 6px; color: var(--hmuted); font-size: .76rem; }
.hb-more { margin: 22px 0 0; }
.hb-contact { margin: 22px 0 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--hline); color: #d9cfba; font-size: .92rem; }
.hb-contact i { color: var(--hg); margin-right: 4px; }

/* ---------- Schaltflächen ---------- */
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 12px; border: 1px solid #e0bb60; background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)); color: #100d05 !important; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.25; }
.hb-btn:hover { filter: brightness(1.08); color: #100d05 !important; }
.hb-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.hb-btn.hb-dark, .hb-tools .hb-print { background: #15110b; color: var(--hg) !important; border-color: var(--hline); }
.hb-btn.hb-dark:hover, .hb-tools .hb-print:hover { color: var(--hg2) !important; border-color: var(--hg); }

/* ---------- Artikel ---------- */
.hb-article { background: var(--hpanel); border: 1px solid var(--hline); border-radius: 20px; padding: 22px 24px; margin: 0 0 8px; min-width: 0; }
.hb-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 0 0 6px; }
.hb-tools .hb-btn { min-height: 38px; padding: 4px 14px; font-size: .85rem; }
.hb-title { margin: 0 0 8px; font-size: clamp(1.3rem, 3.6vw, 1.8rem); font-weight: 800; color: var(--hg); line-height: 1.25; overflow-wrap: anywhere; }
.hb-badge { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 99px; border: 1px solid rgba(255, 176, 32, .6); color: #ffd28a; font-size: .78rem; font-weight: 700; background: rgba(255, 176, 32, .08); }
.hb-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--hgr), .09); border: 1px solid rgba(var(--hgr), .35); color: #ece2cb; font-size: .92rem; }
.hb-where > i { color: var(--hg); font-size: 1.1rem; }
.hb-where > span { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.hb-where > span i { font-size: .65rem; opacity: .7; margin: 0 2px; }
.hb-where .hb-btn { min-height: 38px; padding: 4px 14px; font-size: .85rem; }
.hb-body { font-size: 1rem; line-height: 1.7; color: #eee5d1; overflow-wrap: anywhere; word-break: break-word; }
.hb-body > :first-child { margin-top: 0; }
.hb-body h2, .hb-body h3, .hb-body h4 { color: var(--hg); line-height: 1.3; margin: 1.5em 0 .5em; font-weight: 800; }
.hb-body h2 { font-size: 1.3rem; padding-bottom: 6px; border-bottom: 1px solid var(--hline); }
.hb-body h3 { font-size: 1.12rem; color: var(--hg2); }
.hb-body h4 { font-size: 1rem; color: var(--hg2); }
.hb-body p { margin: 0 0 1em; }
.hb-body ul, .hb-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.hb-body li { margin: .25em 0; }
.hb-body li::marker { color: var(--hg); }
.hb-body a { text-decoration: underline; text-underline-offset: 3px; }
.hb-body strong, .hb-body b { color: #fff; }
.hb-body hr { border: 0; border-top: 1px solid var(--hline); margin: 1.5em 0; }
.hb-body code, .hb-body kbd { background: rgba(var(--hgr), .12); border-radius: 6px; padding: 1px 6px; font-size: .88em; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hb-body kbd { border: 1px solid var(--hline); border-bottom-width: 2px; }
.hb-body pre { background: #0d0a07; border: 1px solid var(--hline); border-radius: 12px; padding: 12px 14px; overflow-x: auto; font-size: .86rem; line-height: 1.5; }
.hb-body pre code { background: none; padding: 0; overflow-wrap: normal; }
.hb-body blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 4px solid var(--hg); background: rgba(var(--hgr), .06); border-radius: 0 12px 12px 0; color: #d9cfba; }
.hb-body img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hline); display: block; margin: 12px 0; }
.hb-body table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .92rem; display: block; overflow-x: auto; }
.hb-body th, .hb-body td { padding: 8px 12px; border: 1px solid var(--hline); text-align: left; vertical-align: top; }
.hb-body th { background: rgba(var(--hgr), .12); color: var(--hg2); }
.hb-body details { margin: 0 0 10px; border: 1px solid var(--hline); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.hb-body details summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--hg2); min-height: 44px; display: flex; align-items: center; }
.hb-body details[open] summary { border-bottom: 1px solid var(--hline); }
.hb-body details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.hb-body details > :last-child { margin-bottom: 12px; }
.hb-body details > summary + * { margin-top: 10px; }
/* Hinweisboxen */
.hb-body .hb-tip, .hb-body .hb-warn, .hb-body .hb-ok, .hb-body .hb-note { padding: 12px 14px 12px 16px; border-radius: 12px; margin: 0 0 1em; border: 1px solid var(--hline); border-left-width: 5px; background: rgba(var(--hgr), .07); font-size: .95rem; }
.hb-body .hb-tip { border-left-color: var(--hg); }
.hb-body .hb-warn { border-color: rgba(255, 176, 32, .5); border-left-color: var(--hwarn); background: rgba(255, 176, 32, .08); }
.hb-body .hb-ok { border-color: rgba(70, 214, 157, .45); border-left-color: var(--hok); background: rgba(70, 214, 157, .08); }
.hb-body .hb-note { border-left-color: var(--hmuted); background: rgba(255, 255, 255, .04); }
.hb-body .hb-tip > :last-child, .hb-body .hb-warn > :last-child, .hb-body .hb-ok > :last-child, .hb-body .hb-note > :last-child { margin-bottom: 0; }
/* Schritt-für-Schritt */
.hb-body ol.hb-steps { list-style: none; counter-reset: hbs; padding-left: 0; }
.hb-body ol.hb-steps > li { counter-increment: hbs; position: relative; margin: 0 0 10px; padding: 10px 14px 10px 52px; border: 1px solid var(--hline); border-radius: 14px; background: rgba(0, 0, 0, .18); min-height: 48px; }
.hb-body ol.hb-steps > li::before { content: counter(hbs); position: absolute; left: 12px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--hg2), var(--hg3)); color: #100d05; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.hb-body ol.hb-steps > li::marker { content: ''; }
.hb-body .hb-btn { margin: 2px 0; }
.hb-body .hb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 1em; }
.hb-body .hb-cols > * { margin: 0; padding: 12px 14px; border: 1px solid var(--hline); border-radius: 12px; background: rgba(0, 0, 0, .18); min-width: 0; }
.hb-body table.hb-table { display: table; }
.hb-body .hb-small { font-size: .84rem; color: var(--hmuted); }
.hb-video { position: relative; margin: 0 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hline); background: #000; aspect-ratio: 16 / 9; }
.hb-video iframe, .hb-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- War das hilfreich? ---------- */
.hb-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hline); background: rgba(0, 0, 0, .22); }
.hb-vote-q { font-weight: 800; color: var(--hg2); margin-right: 4px; }
.hb-vote .hb-btn { min-height: 40px; padding: 4px 16px; background: #15110b; color: var(--hg) !important; border-color: var(--hline); }
.hb-vote .hb-btn.on, .hb-vote .hb-btn:hover { background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)); color: #100d05 !important; border-color: #e0bb60; }
.hb-vote-thx { color: #9be8c7; font-weight: 700; }
.hb-vote-n { margin-left: auto; color: var(--hmuted); font-size: .8rem; }

/* ---------- Wegweiser ---------- */
.hb-guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.hb-gcat { border: 1px solid var(--hline); border-radius: 16px; background: var(--hpanel); padding: 12px 14px; min-width: 0; }
.hb-gcat h4 { margin: 0 0 8px; font-size: .98rem; color: var(--hg); font-weight: 800; display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.hb-gcat ul { list-style: none; margin: 0; padding: 0; }
.hb-gcat li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-top: 1px solid rgba(var(--hgr), .12); }
.hb-gcat li:first-child { border-top: 0; }
.hb-gi { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; color: #e6dcc6; }
.hb-gi i { width: 20px; text-align: center; color: var(--hg); margin-right: 4px; }
.hb-gi a { color: #f3ecdd; text-decoration: none; }
.hb-gi a:hover { color: var(--hg2); text-decoration: underline; }
.hb-how { flex: 0 0 auto; font-size: .78rem; text-decoration: none; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--hline); white-space: nowrap; }

/* ---------- Verwaltung (Admin) ---------- */
.hb-hero-adm { padding: 18px 20px; margin-bottom: 14px; border: 1px solid var(--hline); border-radius: 18px; background: linear-gradient(135deg, rgba(var(--hgr), .14), rgba(23, 18, 13, .94) 55%); }
.hb-hero-adm h1 { margin: 0 0 4px; font-size: clamp(1.3rem, 3.6vw, 1.7rem); color: var(--hg); font-weight: 800; }
.hb-hero-adm p { margin: 0; color: #d9cfba; font-size: .94rem; }
.hb-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; margin: 0 0 16px; background: #0b0906; border: 1px solid var(--hline); border-radius: 14px; }
.hb-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; color: #d8cba8; font-weight: 700; text-decoration: none; }
.hb-tabs a:hover { border-color: var(--hline); color: #fff; }
.hb-tabs a.on { background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)); color: #100d05; border-color: #e0bb60; }
.hb-flash { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-weight: 600; }
.hb-flash.ok { background: rgba(70, 214, 157, .1); border: 1px solid rgba(70, 214, 157, .5); color: #9be8c7; }
.hb-flash.err { background: rgba(255, 82, 82, .1); border: 1px solid rgba(255, 82, 82, .5); color: #ffb4ab; }
.hb-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.hb-dd { position: relative; }
.hb-dd > summary { list-style: none; cursor: pointer; }
.hb-dd > summary::-webkit-details-marker { display: none; }
.hb-bar .hb-dd[open]:not(.hb-dd-s) { flex: 1 1 100%; }
.hb-dd > form { margin-top: 10px; padding: 14px; border-radius: 14px; background: #120e09; border: 1px solid var(--hline); }
.hb-dd-s > form { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; width: min(380px, 86vw); margin: 0; box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.hb-mc { border: 1px solid var(--hline); border-radius: 16px; background: var(--hpanel); margin: 0 0 14px; }
.hb-mc > .hb-mc-h { border-radius: 15px 15px 0 0; }
.hb-mc > p, .hb-mc > .hb-fg, .hb-mc > .hb-bar, .hb-mc > ul { margin-left: 14px; margin-right: 14px; }
.hb-mc > p { margin-top: 12px; margin-bottom: 12px; }
.hb-mc > .hb-fg, .hb-mc > .hb-bar, .hb-mc > ul { margin-top: 12px; margin-bottom: 14px; }
.hb-mc-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; background: rgba(var(--hgr), .08); border-bottom: 1px solid var(--hline); }
.hb-mc-h h3 { margin: 0; color: var(--hg2); font-size: 1rem; font-weight: 800; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.hb-mc-h h3 i { margin-right: 6px; color: var(--hg); }
.hb-mc-h h3 small { color: var(--hmuted); font-weight: 600; margin-left: 6px; }
.hb-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hb-inl { display: inline; margin: 0; }
.hb-ib { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--hline); background: #15110b; color: var(--hg) !important; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.hb-ib:hover { border-color: var(--hg); color: var(--hg2) !important; }
.hb-ib.on { background: rgba(70, 214, 157, .15); border-color: rgba(70, 214, 157, .6); color: #9be8c7 !important; }
.hb-ib.hb-red { background: #3a1313; color: #ffb4ab !important; border-color: rgba(255, 107, 107, .6); }
.hb-ib.hb-txt { padding: 0 14px; }
.hb-ib:disabled { opacity: .4; cursor: not-allowed; }
.hb-tw { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hb-bar[hidden] { display: none; }
.hb-filter { position: relative; flex: 1 1 280px; min-width: 0; display: block; }
.hb-filter i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hg); pointer-events: none; }
.kcc-hb-adm .hb-filter input[type=search] { padding-left: 42px; }
.hb-filter input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 14px 8px 40px; border-radius: 12px; border: 1px solid var(--hline); background: #100c08; color: #f3ecdd; font: inherit; -webkit-appearance: none; appearance: none; }
.hb-filter input:focus { outline: 2px solid var(--hg); outline-offset: 1px; }
.hb-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; color: var(--hg2); font-weight: 700; font-size: .92rem; user-select: none; }
.hb-fold > summary::-webkit-details-marker { display: none; }
.hb-fold > summary i { color: var(--hg); transition: transform .15s ease; font-size: .8rem; }
.hb-fold[open] > summary i { transform: rotate(90deg); }
.hb-fold > summary:hover { background: rgba(var(--hgr), .06); }
.hb-fold > summary:focus-visible { outline: 2px solid var(--hg); outline-offset: -2px; }
.hb-fold[open] > summary { border-bottom: 1px solid var(--hline); }
.hb-mc[hidden] { display: none; }
.hb-t tr[hidden] { display: none; }
.hb-t tr:target td { background: rgba(var(--hgr), .14); }
@media (prefers-reduced-motion: reduce) { .hb-fold > summary i { transition: none; } }
.hb-t { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.hb-t th { text-align: left; padding: 10px 12px; color: var(--hmuted); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--hline); white-space: nowrap; }
.hb-t td { padding: 10px 12px; border-bottom: 1px solid rgba(var(--hgr), .12); vertical-align: middle; overflow-wrap: anywhere; }
.hb-t tr.hb-off td { opacity: .55; }
.hb-t td.hb-acts-c { white-space: nowrap; }
.hb-gold { color: var(--hg); }
.hb-gold-btn { background: linear-gradient(110deg, var(--hg2), var(--hg) 65%, var(--hg3)) !important; color: #100d05 !important; border-color: #e0bb60 !important; }
.hb-muted { color: var(--hmuted); font-size: .86rem; }
.hb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px; }
.hb-kpi { padding: 14px; border-radius: 14px; border: 1px solid var(--hline); background: var(--hpanel); }
.hb-kpi b { display: block; font-size: 1.6rem; color: var(--hg); line-height: 1.1; font-weight: 800; }
.hb-kpi span { color: var(--hmuted); font-size: .8rem; }
.hb-spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; padding: 6px 0; }
.hb-spark i { flex: 1 1 0; min-width: 3px; background: linear-gradient(180deg, var(--hg2), var(--hg3)); border-radius: 3px 3px 0 0; min-height: 2px; }
.hb-bars { display: grid; gap: 6px; }
.hb-bars > div { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr 54px; gap: 10px; align-items: center; font-size: .88rem; }
.hb-bars span { overflow-wrap: anywhere; }
.hb-bars em { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--hg3), var(--hg2)); min-width: 3px; }
.hb-bars b { text-align: right; color: var(--hg2); }
.hb-form { display: grid; gap: 14px; }
.hb-fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: end; }
.hb-fg > label { display: grid; gap: 4px; min-width: 0; font-weight: 700; color: var(--hg2); font-size: .88rem; align-content: start; }
.hb-fg > label small { color: var(--hmuted); font-size: .76rem; font-weight: 500; }
.hb-fg > label.hb-w2 { grid-column: 1 / -1; }
.hb-fg > label.hb-chk { display: inline-flex; font-weight: 600; color: #e6dcc6; }
.hb-h3 { margin: 12px 14px 4px; font-size: .95rem; color: var(--hg2); }
.hb-trash { list-style: none; padding: 0; }
.hb-trash li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid rgba(var(--hgr), .12); }
.hb-trash li:last-child { border-bottom: 0; }
.hb-trash em { color: var(--hmuted); font-size: .8rem; }
.hb-acts select { width: auto !important; min-width: 110px; max-width: 190px; min-height: 40px !important; }
.kcc-hb-adm input[type=text], .kcc-hb-adm input[type=url], .kcc-hb-adm input[type=number], .kcc-hb-adm input[type=search], .kcc-hb-adm input[type=date], .kcc-hb-adm select, .kcc-hb-adm textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hline); background: #100c08; color: #f3ecdd; font: inherit; }
.kcc-hb-adm textarea { min-height: 90px; resize: vertical; }
.kcc-hb-adm input:focus, .kcc-hb-adm select:focus, .kcc-hb-adm textarea:focus { outline: 2px solid var(--hg); outline-offset: 1px; }
.hb-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 36px; }
.hb-chk input { width: 18px; height: 18px; accent-color: var(--hg); }
.hb-sm { font-size: .84rem; }
/* Editor */
.hb-ed { border: 1px solid var(--hline); border-radius: 14px; background: #100c08; overflow: hidden; }
.hb-ed-l { display: block; padding: 8px 12px 0; font-weight: 700; color: var(--hg2); font-size: .88rem; }
.hb-ed-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--hline); background: #0b0906; position: sticky; top: 0; z-index: 3; }
.hb-ed-bar button, .hb-ed-bar select { min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hline); background: #15110b; color: var(--hg); font: inherit; font-weight: 700; cursor: pointer; width: auto; }
.hb-ed-bar button:hover, .hb-ed-bar button.on { border-color: var(--hg); color: var(--hg2); }
.hb-ed-bar button small { font-size: .7rem; }
.hb-ed-area { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; outline: none; }
.hb-ed-area:focus { box-shadow: inset 0 0 0 2px rgba(var(--hgr), .5); }
.hb-ed-src { width: 100%; min-height: 320px; border: 0 !important; border-radius: 0 !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: .85rem; }

/* ---------- Tablet / Handy ---------- */
@media (max-width: 1024px) {
  .hb-layout { grid-template-columns: minmax(0, 1fr); }
  .hb-nav { position: static; max-height: none; overflow: visible; }
  .hb-navd ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 8px; }
  .hb-navd li.hb-sep { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .kcc-hb, .kcc-hb-adm { font-size: 14.5px; }
  .hb-hero { padding: 16px 14px 14px; border-radius: 16px; }
  .hb-article { padding: 16px 14px; border-radius: 16px; }
  .hb-grid, .hb-chaps, .hb-guide { grid-template-columns: minmax(0, 1fr); }
  .hb-navd ul { grid-template-columns: minmax(0, 1fr); }
  .hb-fg { grid-template-columns: minmax(0, 1fr); }
  .hb-body ol.hb-steps > li { padding-left: 46px; }
  .hb-body ol.hb-steps > li::before { left: 9px; }
  .hb-bars > div { grid-template-columns: minmax(90px, 2fr) 3fr 40px; }
  .hb-vote-n { margin-left: 0; width: 100%; }
  .hb-tabs a { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 0 8px; }
  .hb-tools { justify-content: stretch; }
  .hb-tools .hb-btn { flex: 1 1 auto; }
}
@media (max-width: 720px) {
  .hb-t { min-width: 0; }
  .hb-t thead { display: none; }
  .hb-t, .hb-t tbody, .hb-t tr, .hb-t td { display: block; width: 100%; }
  .hb-t tr { padding: 8px 12px; border-bottom: 1px solid var(--hline); }
  .hb-t td { border: 0; padding: 4px 0; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
  .hb-t td::before { content: attr(data-l); flex: 0 0 90px; color: var(--hmuted); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
  .hb-t td.hb-acts-c, .hb-t td[data-l="Aktionen"] { display: block; }
  .hb-t td[data-l="Aktionen"]::before { display: block; margin-bottom: 4px; }
  .hb-dd-s > form { position: fixed; left: 12px; right: 12px; top: 110px; width: auto; max-height: 72vh; overflow-y: auto; }
  .hb-bar .hb-btn { flex: 1 1 auto; }
  .hb-mc-h h3 small { display: block; margin: 3px 0 0; }
}
@media (max-width: 400px) {
  .hb-search button { width: 48px; }
  .hb-btn { padding: 8px 12px; }
}

/* ---------- Drucken ---------- */
@media print {
  body { background: #fff !important; }
  .hb-hero, .hb-nav, .hb-tools, .hb-vote, .hb-contact, .hb-crumb, .hb-more, .hb-where .hb-btn, header, footer, aside, nav, .mbl-sidebar, .sidebar, #kcc-support-widget { display: none !important; }
  .mbl-main-content, .kcc-hb-main { margin: 0 !important; padding: 0 !important; width: 100% !important; }
  .kcc-hb { color: #000; max-width: none; }
  .hb-layout { display: block; }
  .hb-article { border: 0; background: #fff; padding: 0; }
  .hb-title, .hb-body h2, .hb-body h3, .hb-body h4 { color: #000 !important; border-color: #999; }
  .hb-body, .hb-body * { color: #000 !important; background: transparent !important; }
  .hb-body a { text-decoration: underline; }
  .hb-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  .hb-body img { border-color: #999; max-width: 100%; page-break-inside: avoid; }
  .hb-body ol.hb-steps > li { border-color: #999; page-break-inside: avoid; }
  .hb-body ol.hb-steps > li::before { background: #000 !important; color: #fff !important; }
}

/* ---- Eigene Bausteine, Icon-Bibliothek, Icon-Auswahl im Editor ---- */
.hb-custom { margin: 0 0 18px; }
.hb-code { width: 100%; box-sizing: border-box; min-height: 130px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hline); background: #100c08; color: #f3ecdd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; resize: vertical; }
.hb-code:focus { outline: 2px solid var(--hg); outline-offset: 1px; }
.hb-ico-ctl { align-items: end; }
.hb-ico-ctl select, .hb-ico-ctl input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--hline); background: #100c08; color: #f3ecdd; font: inherit; }
.hb-ico-ctl .hb-filter input { padding-left: 14px; }
.hb-ico-theme { --c1: #d4af37; --c2: #8a6d0a; }
.hb-ico-theme[hidden], .hb-ico-card[hidden] { display: none !important; }
.hb-ico-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px 14px 16px; }
.hb-ico-card { display: grid; grid-template-rows: auto auto auto; justify-items: center; gap: 8px; padding: 12px 8px 10px; border: 1px solid var(--hline); border-radius: 14px; background: #0f0b07; min-width: 0; }
.hb-ico-pv { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; transition: background .15s; }
.hb-ico-pv svg { width: 34px; height: 34px; fill: #fff; }
[data-ico-grid][data-ico-v="kachel"] .hb-ico-pv { background: linear-gradient(135deg, var(--c1), var(--c2)); }
[data-ico-grid][data-ico-v="farbe"] .hb-ico-pv svg { fill: var(--c1); width: 44px; height: 44px; }
[data-ico-grid][data-ico-v="gold"] .hb-ico-pv svg { fill: #d4af37; width: 44px; height: 44px; }
[data-ico-grid][data-ico-v="weiss"] .hb-ico-pv { background: #2a2420; }
[data-ico-grid][data-ico-v="weiss"] .hb-ico-pv svg { fill: #fff; width: 44px; height: 44px; }
[data-ico-grid][data-ico-v="dunkel"] .hb-ico-pv { background: #e9e2d3; }
[data-ico-grid][data-ico-v="dunkel"] .hb-ico-pv svg { fill: #1a1a1a; width: 44px; height: 44px; }
.hb-ico-n { font-weight: 700; color: #f3ecdd; font-size: .9rem; text-align: center; overflow-wrap: anywhere; }
.hb-ico-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hb-ico-b button { min-height: 40px; min-width: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hline); background: #15110b; color: var(--hg); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.hb-ico-b button:hover, .hb-ico-b button:focus-visible { border-color: var(--hg); color: var(--hg2); }
.hb-ico-b button.ok { background: #1c3a22; border-color: #2ecc71; color: #bff0cf; }
.hb-icopick { padding: 10px; border-bottom: 1px solid var(--hline); background: #0b0906; display: grid; gap: 10px; }
.hb-icopick[hidden] { display: none; }
.hb-icopick-c { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hb-icopick-c select, .hb-icopick-c input { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hline); background: #15110b; color: #f3ecdd; font: inherit; max-width: 100%; box-sizing: border-box; }
.hb-icopick-c input { flex: 1 1 140px; min-width: 0; }
.hb-icopick-g { display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow: auto; }
.hb-icopick-g button { display: grid; place-items: center; gap: 2px; width: 74px; min-height: 76px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--hline); background: #15110b; color: #cdbf9f; font: inherit; font-size: .68rem; cursor: pointer; }
.hb-icopick-g button img { width: 36px; height: 36px; display: block; }
.hb-icopick-g button:hover, .hb-icopick-g button:focus-visible { border-color: var(--hg); color: var(--hg2); }
@media (max-width: 520px) { .hb-ico-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px; } .hb-ico-b button { flex: 1 1 auto; } }
