/* ============================================================================
   haustechnikberater (hb) — "Werkbank"-Design
   Der ruhige Elektromeister: werkstatt-clean, praezise, vertrauenswuerdig.
   Voll-Custom-Layout im .ht-Wrapper — erbt NICHT das Magazin-CSS.
   Tokens 1:1 aus design_handoff_haustechnikberater/ht/tokens.css (Variante A
   "Werkbank"), Komponenten aus pages.css + sheet.css, Seiten-Layout aus den
   Werkbank-/T2–T6-JSX-Vorlagen. Alle Farben WCAG-AA-geprueft.
   ========================================================================== */

/* ---------------- Fonts (self-hosted, DSGVO-konform) ---------------- */
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:400; font-display:swap; src:url('/css/fonts/space-grotesk-400-latin.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:500; font-display:swap; src:url('/css/fonts/space-grotesk-500-latin.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:600; font-display:swap; src:url('/css/fonts/space-grotesk-600-latin.woff2') format('woff2'); }
@font-face { font-family:'Space Grotesk'; font-style:normal; font-weight:700; font-display:swap; src:url('/css/fonts/space-grotesk-700-latin.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('/css/fonts/ibm-plex-sans-400.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:500; font-display:swap; src:url('/css/fonts/ibm-plex-sans-500.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:600; font-display:swap; src:url('/css/fonts/ibm-plex-sans-600.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('/css/fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:500; font-display:swap; src:url('/css/fonts/ibm-plex-mono-500.woff2') format('woff2'); }

/* ---------------- Tokens (auf .ht; Werkbank-Radii fest) ---------------- */
.ht {
  --bg: #F5F5F1;
  --surface: #FFFFFF;
  --ink: #1D2430;
  --ink-2: #39414E;
  --muted: #5C6470;
  --faint: #8B919C;
  --line: #E4E4DC;
  --line-strong: #C9CABF;

  --accent: #1A56C4;
  --accent-deep: color-mix(in oklab, var(--accent) 82%, #101826);
  --accent-soft: color-mix(in oklab, var(--accent) 8%, #FFFFFF);
  --accent-line: color-mix(in oklab, var(--accent) 28%, #FFFFFF);

  --ok: #1B7A3D;       --ok-soft: #EAF4ED;   --ok-line: #BCDCC6;
  --warn: #9A5B07;     --warn-strong: #B45309; --warn-soft: #FCF3E2; --warn-line: #EBD2A1;
  --stop: #BB261A;     --stop-soft: #FBECE9;  --stop-line: #EFC4BD;

  --c-el: var(--accent);
  --c-hz: #D45A0E;
  --c-en: #1F8A4C;
  --c-nw: #6D4FC2;

  --f-head: 'Space Grotesk', sans-serif;
  --f-body: 'IBM Plex Sans', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --d: 1;
  --r-sm: 5px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-card: 0 1px 2px rgba(29,36,48,.05), 0 8px 24px -12px rgba(29,36,48,.12);
  --shadow-pop: 0 2px 6px rgba(29,36,48,.06), 0 20px 48px -20px rgba(29,36,48,.22);

  --wrap: 1280px;

  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky-Footer: Wrapper fuellt mind. die volle Viewport-Hoehe */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ht *, .ht *::before, .ht *::after { box-sizing: border-box; }
.ht #main { flex: 1 0 auto; }
.ht .hb-ft { flex-shrink: 0; }
.ht h1, .ht h2, .ht h3 { font-family: var(--f-head); margin: 0; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.ht h4, .ht h5 { font-family: var(--f-head); margin: 0; }
.ht p { margin: 0; text-wrap: pretty; }
.ht a { color: inherit; text-decoration: none; }
.ht img, .ht svg { max-width: 100%; }
.ht :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------- Utilities ---------------- */
.ht .k {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ht .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ht .hb-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* ---------------- Buttons ---------------- */
.ht .btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent-deep); border-radius: var(--r-sm);
  padding: 11px 18px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease; line-height: 1;
}
.ht .btn:hover { background: var(--accent-deep); }
.ht .btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.ht .btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

/* ---------------- Suche ---------------- */
.ht .search {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card);
}
.ht .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.ht .search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--f-body); font-size: 15.5px; color: var(--ink); padding: 14px 16px;
}
.ht .search input::placeholder { color: var(--faint); }
.ht .search .search__go {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 0 20px; background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
}
.ht .search .search__go:hover { background: var(--accent-deep); }

/* ---------------- Quick-Chips ---------------- */
.ht .chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 500; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 8px 14px 8px 11px; cursor: pointer; color: inherit;
  transition: border-color .15s ease, color .15s ease;
}
.ht .chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.ht .chip .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }

/* ---------------- Rechner-Widget ---------------- */
.ht .wgt { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; }
.ht .wgt__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 55%, #fff); }
.ht .wgt__head .wgt__title { font-family: var(--f-head); font-weight: 600; font-size: 15.5px; flex: 1; }
.ht .wgt__body { padding: 18px; display: grid; gap: 14px; }
.ht .wgt__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.ht .wgt__label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.ht .wgt__label small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.ht .wgt__select, .ht .wgt__stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); height: 38px; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.ht .wgt__select { gap: 10px; padding: 0 12px; cursor: pointer; color: var(--ink); }
.ht .wgt__select:hover { border-color: var(--ink); }
.ht select.wgt__select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6470' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.ht .wgt__stepper button { width: 36px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--muted); font-family: var(--f-mono); }
.ht .wgt__stepper button:hover { color: var(--accent); }
.ht .wgt__stepper .val { min-width: 64px; text-align: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); align-self: stretch; display: inline-flex; align-items: center; justify-content: center; }
.ht .wgt__stepper input.val { border-top: 0; border-bottom: 0; background: transparent; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ht .wgt__input { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); height: 38px; padding: 0 12px; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 110px; text-align: right; }
.ht .wgt__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ht .wgt__input.is-error { border-color: var(--stop); box-shadow: 0 0 0 3px var(--stop-soft); }
.ht .wgt__input.is-warn { border-color: var(--warn-strong); }
.ht .wgt__result { border-top: 1px dashed var(--line-strong); margin: 4px -18px -18px; padding: 16px 18px 18px; background: var(--accent-soft); }
.ht .wgt__result--empty { background: color-mix(in oklab, var(--bg) 55%, #fff); }
.ht .wgt__result--empty .wgt__value { color: var(--line-strong); }
.ht .wgt__result .lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.ht .wgt__value { font-family: var(--f-mono); font-weight: 600; font-size: 36px; line-height: 1.1; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ht .wgt__value small { font-size: 18px; font-weight: 500; color: var(--muted); }
.ht .chip-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 99px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.ht .chip-ok--warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.ht .chip-ok--accent { color: var(--accent-deep); background: var(--accent-soft); border-color: var(--accent-line); }
.ht .wgt__calc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-deep); background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--f-body); }
.ht .wgt__calc:hover { text-decoration: underline; }
.ht .wgt__calcbody { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.8; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 10px; }
.ht .fld-msg { font-size: 12.5px; font-weight: 500; margin-top: 6px; }
.ht .fld-msg--error { color: var(--stop); }
.ht .hint-warn { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 500; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--r-sm); padding: 8px 12px; }

/* ---------------- Cluster-Kachel ---------------- */
.ht .tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .15s ease, box-shadow .15s ease; position: relative; color: inherit; }
.ht .tile:hover { border-color: var(--tc, var(--accent)); box-shadow: var(--shadow-card); }
.ht .tile__icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; color: var(--tc, var(--accent)); background: color-mix(in oklab, var(--tc, var(--accent)) 9%, #fff); border: 1px solid color-mix(in oklab, var(--tc, var(--accent)) 22%, #fff); flex: none; }
.ht .tile__name { font-family: var(--f-head); font-weight: 600; font-size: 17px; display: block; }
.ht .tile__count { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); margin-top: 2px; display: block; }
.ht .tile__links { display: flex; flex-direction: column; }
.ht .tile__links a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line); }
.ht .tile__links a:hover { color: var(--tc, var(--accent)); }
.ht .tile__links a svg { flex: none; color: var(--faint); }
.ht .tile__links a:hover svg { color: var(--tc, var(--accent)); }

/* ---------------- Badges ---------------- */
.ht .neub { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 4px; padding: 2px 7px; }
.ht .typeb { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Sicherheitsbox (3 Stufen) ---------------- */
.ht .safety { display: grid; grid-template-columns: auto 1fr; gap: 14px; border: 1px solid; border-left-width: 4px; border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); }
.ht .safety__icon { width: 36px; height: 36px; border-radius: 99px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ht .safety__kicker { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ht .safety__title { font-family: var(--f-head); font-weight: 600; font-size: 16.5px; margin: 2px 0 6px; }
.ht .safety__body { font-size: 14.5px; color: var(--ink-2); }
.ht .safety__list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ht .safety__list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: baseline; }
.ht .safety__list li .n { font-family: var(--f-mono); font-size: 12px; font-weight: 600; flex: none; width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(3px); }
.ht .safety__foot { margin-top: 10px; font-size: 13px; font-weight: 600; }
.ht .safety--1 { border-color: var(--accent-line); background: var(--accent-soft); }
.ht .safety--1 .safety__icon { background: var(--accent); }
.ht .safety--1 .safety__kicker, .ht .safety--1 .safety__foot { color: var(--accent-deep); }
.ht .safety--2 { border-color: var(--warn-line); border-left-color: var(--warn-strong); background: var(--warn-soft); }
.ht .safety--2 .safety__icon { background: var(--warn-strong); }
.ht .safety--2 .safety__kicker, .ht .safety--2 .safety__foot { color: var(--warn); }
.ht .safety--2 .safety__list li .n { background: color-mix(in oklab, var(--warn-strong) 14%, #fff); color: var(--warn); }
.ht .safety--3 { border-color: var(--stop-line); border-left-color: var(--stop); background: var(--stop-soft); }
.ht .safety--3 .safety__icon { background: var(--stop); }
.ht .safety--3 .safety__kicker, .ht .safety--3 .safety__foot { color: var(--stop); }

/* ---------------- Pruefsiegel-Zeile ---------------- */
.ht .sealline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ht .sealline svg { color: var(--ok); flex: none; }
.ht .sealline .num { font-size: 12.5px; }

/* ---------------- Neu-Liste ---------------- */
.ht .neurow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; transition: border-color .15s ease; color: inherit; }
.ht .neurow:hover { border-color: var(--accent); }
.ht .neurow__icon { width: 36px; height: 36px; border-radius: var(--r-sm); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.ht .neurow__title { font-family: var(--f-head); font-weight: 600; font-size: 15.5px; display: block; }
.ht .neurow__meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); margin-top: 2px; display: block; }

/* ---------------- Werkstatt-Raster (Hero) ---------------- */
.ht .wbgrid { background-image: linear-gradient(rgba(29,36,48,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29,36,48,.035) 1px, transparent 1px); background-size: 24px 24px; }

/* =====================================================================
   Komponenten T2–T6 (pages.css)
   ===================================================================== */
.ht .crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.ht .crumbs a { color: var(--muted); }
.ht .crumbs a:hover { color: var(--accent-deep); }
.ht .crumbs .sep { color: var(--line-strong); }
.ht .crumbs .cur { color: var(--ink-2); font-weight: 500; }

.ht .toolcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; transition: border-color .15s ease, box-shadow .15s ease; color: inherit; }
.ht .toolcard:hover { border-color: var(--tc, var(--accent)); box-shadow: var(--shadow-card); }
.ht .toolcard__name { font-family: var(--f-head); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ht .toolcard__desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.ht .toolcard__go { font-size: 13px; font-weight: 600; color: var(--accent-deep); }

.ht .guidecard { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; transition: border-color .15s ease; color: inherit; }
.ht .guidecard:hover { border-color: var(--tc, var(--accent)); }
.ht .guidecard__title { font-family: var(--f-head); font-weight: 600; font-size: 15.5px; display: block; }
.ht .guidecard__meta { display: flex; align-items: center; gap: 12px; margin-top: 5px; flex-wrap: wrap; }

.ht .diff { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ht .diff__dots { display: inline-flex; gap: 3px; }
.ht .diff__dots span { width: 12px; height: 5px; border-radius: 2px; background: var(--line-strong); }
.ht .diff__dots span.on { background: var(--accent); }
.ht .metab { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ht .shortans { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-md); padding: 16px 18px; }
.ht .shortans .k { color: var(--accent-deep); }
.ht .shortans p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.ht .shortans strong { color: var(--ink); }

.ht .brief { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; }
.ht .brief__row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.ht .brief__row:first-child { border-top: 0; }
.ht .brief__row svg { color: var(--muted); }
.ht .brief__label { font-size: 13px; color: var(--muted); }
.ht .brief__val { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; text-align: right; }
.ht .brief__val .num { font-size: 13px; }
.ht .ampel { width: 10px; height: 10px; border-radius: 99px; display: inline-block; flex: none; }
.ht .ampel--ok { background: var(--ok); }
.ht .ampel--warn { background: var(--warn-strong); }
.ht .ampel--stop { background: var(--stop); }

.ht .check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 0; padding: 0; }
.ht .check.m { grid-template-columns: 1fr; }
.ht .check li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-2); list-style: none; }
.ht .check li .box { width: 15px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 4px; flex: none; transform: translateY(2px); background: var(--surface); }
.ht .check li.req .box { border-color: var(--accent); background: var(--accent-soft); }
.ht .check li small { color: var(--faint); font-size: 12px; }

.ht .step { display: flex; gap: 18px; position: relative; }
.ht .step__rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.ht .step__num { width: 38px; height: 38px; border-radius: 99px; flex: none; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 600; font-size: 16px; }
.ht .step__line { width: 1.5px; flex: 1; background: var(--line-strong); margin-top: 8px; }
.ht .step:last-child .step__line { background: transparent; }
.ht .step__body { padding-bottom: 30px; min-width: 0; flex: 1; }
.ht .step__title { font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.ht .step__text { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; max-width: 640px; }
.ht .step__text p { margin-top: 10px; }
.ht .step__text ul, .ht .step__text ol { margin: 10px 0 0; padding-left: 20px; }
.ht .step__text li { margin: 4px 0; }
.ht .step__fig { margin: 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; max-width: 560px; }
.ht .step__figcap { font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 10px; letter-spacing: .06em; }

.ht .rtablewrap { border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow-x: auto; background: var(--surface); }
.ht .rtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.ht .rtable th { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-strong); background: color-mix(in oklab, var(--bg) 60%, #fff); white-space: nowrap; }
.ht .rtable td { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ht .rtable tr:nth-child(even) td { background: color-mix(in oklab, var(--bg) 40%, #fff); }
.ht .rtable tr:last-child td { border-bottom: 0; }
.ht .rtable td.num, .ht .rtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ht .rtable td.hl { color: var(--accent-deep); font-weight: 600; }

.ht .faq { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.ht .faq__item { border-top: 1px solid var(--line); }
.ht .faq__item:first-child { border-top: 0; }
.ht .faq__q { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink); padding: 14px 18px; }
.ht .faq__q:hover { color: var(--accent-deep); }
.ht .faq__pm { font-family: var(--f-mono); font-size: 16px; font-weight: 600; color: var(--accent-deep); width: 18px; flex: none; text-align: center; }
.ht .faq__a { padding: 0 18px 16px 48px; font-size: 14.5px; color: var(--ink-2); max-width: 660px; }
.ht .faq__a p { margin-top: 10px; }
.ht .faq__a p:first-child { margin-top: 0; }
.ht .faq__item[hidden] { display: block; }

.ht .relcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 16px; transition: border-color .15s ease; color: inherit; }
.ht .relcard:hover { border-color: var(--accent); }
.ht .relcard__icon { width: 34px; height: 34px; border-radius: var(--r-sm); flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--muted); background: var(--bg); }
.ht .relcard--tool .relcard__icon { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.ht .relcard__type { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: block; }
.ht .relcard__title { font-family: var(--f-head); font-weight: 600; font-size: 14.5px; }

.ht .tocbox { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px 18px; }
.ht .tocbox a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.ht .tocbox a:hover { color: var(--accent-deep); }
.ht .tocbox a.on { color: var(--accent-deep); font-weight: 600; border-left-color: var(--accent); }

.ht .ftabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ht .ftab { font-family: var(--f-head); font-weight: 600; font-size: 13.5px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 99px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.ht .ftab:hover { border-color: var(--ink); }
.ht .ftab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ht .ftab .dot { width: 7px; height: 7px; border-radius: 99px; }

.ht .adslot { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: color-mix(in oklab, var(--bg) 60%, #fff); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.ht .adslot__label { font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 4px; padding: 2px 6px; flex: none; }
.ht .adslot__body { font-size: 13px; color: var(--faint); }
.ht .dad { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.ht .dad__tag { font-family: var(--f-mono); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-align: center; }
.ht .dad__box { border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: color-mix(in oklab, var(--bg) 60%, #fff); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); width: 100%; font-variant-numeric: tabular-nums; }

/* Widget B (Umrechner) */
.ht .wgtb__row { display: flex; gap: 12px; align-items: center; }
.ht .wgtb__swap { width: 34px; height: 34px; border-radius: 99px; flex: none; border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-deep); cursor: pointer; }
.ht .wgtb__swap:hover { border-color: var(--accent); }
.ht .wgtb__field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface); }
.ht .wgtb__field.out { border-color: var(--accent-line); background: var(--accent-soft); }
.ht .wgtb__field .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.ht .wgtb__field .v { font-family: var(--f-mono); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.ht .wgtb__field .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.ht .wgtb__field.out .v { color: var(--accent-deep); }
.ht .wgtb__field input { border: 0; background: transparent; font-family: var(--f-mono); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; color: inherit; width: 100%; min-width: 0; padding: 0; }
.ht .wgtb__field input:focus { outline: none; }
.ht .wgtb__eq { font-family: var(--f-mono); color: var(--faint); font-size: 18px; flex: none; }

/* Widget C (Planer) */
.ht .wgtc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ht .wgtc th { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
.ht .wgtc td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.ht .wgtc .in { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-family: var(--f-mono); font-size: 13px; background: var(--surface); font-variant-numeric: tabular-nums; }
.ht .wgtc input.in, .ht .wgtc select.in { color: var(--ink); }
.ht .wgtc .res { font-family: var(--f-mono); font-weight: 600; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ht .wgtc tfoot td { border-bottom: 0; font-weight: 600; font-family: var(--f-mono); font-variant-numeric: tabular-nums; background: color-mix(in oklab, var(--bg) 60%, #fff); }
.ht .wgtc__add { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer; padding: 0; font-family: var(--f-body); font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.ht .wgtc__add:hover { text-decoration: underline; }
.ht .wgtc__del { background: none; border: 0; cursor: pointer; color: var(--faint); font-family: var(--f-mono); font-size: 16px; line-height: 1; padding: 0 4px; }
.ht .wgtc__del:hover { color: var(--stop); }
.ht .wgtc-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 8px; background: var(--surface); }
.ht .wgtc-card .rowline { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }

/* Formel-Block */
.ht .formula { font-family: var(--f-mono); font-size: 15px; line-height: 2; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 16px 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; overflow-x: auto; }
.ht .formula .var { color: var(--accent-deep); font-weight: 600; }

/* Autorenkarte */
.ht .author { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 22px; }
.ht .author__avatar { width: 64px; height: 64px; border-radius: 99px; flex: none; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 700; font-size: 22px; }
.ht .author__name { font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.ht .author__role { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ht .author p { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; }

/* Sektion-Ueberschrift */
.ht .secline { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.ht .secline h2 { font-size: 23px; font-weight: 700; }
.ht .secline .count { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }

/* =====================================================================
   Header / Footer (Werkbank-Chrome)
   ===================================================================== */
.ht .hb-hd { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.ht .hb-hd__inner { display: flex; align-items: center; gap: 12px; padding: 14px 32px; max-width: var(--wrap); margin: 0 auto; }
.ht .hb-logo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--ink); color: #fff; flex: none; }
.ht .hb-wm { font-family: var(--f-head); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; color: var(--ink); }
.ht .hb-wm b { font-weight: 700; }
.ht .hb-wm span { font-weight: 500; }
.ht .hb-hd__brand { display: inline-flex; align-items: center; gap: 10px; }
.ht .hb-hd__nav { display: flex; gap: 4px; margin-left: 28px; flex: 1; }
.ht .hb-hd__nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 7px 12px; border-radius: var(--r-sm); }
.ht .hb-hd__nav a:hover { background: var(--bg); }
.ht .hb-hd__nav a.on { color: var(--accent-deep); background: var(--accent-soft); }
.ht .hb-hd__burger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; margin-left: auto; }
.ht .hb-hd__mnav { display: none; }

.ht .hb-ft { background: var(--ink); color: #B8BEC9; }
.ht .hb-ft__inner { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.ht .hb-ft__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.ht .hb-ft__logo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.3); }
.ht .hb-ft__about { font-size: 13px; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.ht .hb-ft__col .k { color: #7E8694; margin-bottom: 10px; display: block; }
.ht .hb-ft__links { display: grid; gap: 7px; }
.ht .hb-ft__links a { font-size: 13.5px; color: #B8BEC9; }
.ht .hb-ft__links a:hover { color: #fff; }
.ht .hb-ft__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 8px; }
.ht .hb-ft__bottomin { max-width: var(--wrap); margin: 0 auto; padding: 16px 32px; font-size: 12px; color: #7E8694; }

/* =====================================================================
   T1 Startseite
   ===================================================================== */
.ht .hb-hero { border-bottom: 1px solid var(--line); }
.ht .hb-hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 64px 32px 72px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.ht .hb-hero__kicker { color: var(--accent-deep); margin-bottom: 14px; }
.ht .hb-hero h1 { font-size: 47px; font-weight: 700; }
.ht .hb-hero__sub { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 520px; }
.ht .hb-hero .search { margin-top: 26px; max-width: 540px; }
.ht .hb-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.ht .hb-hero__quick .lab { font-size: 12.5px; color: var(--faint); margin-right: 2px; }
.ht .hb-hero__sealrow { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 4px; }
.ht .hb-hero__sealrow a { font-size: 13px; font-weight: 600; color: var(--accent-deep); }

.ht .hb-sec { max-width: var(--wrap); margin: 0 auto; padding: 56px 32px; }
.ht .hb-sec--tight { padding-top: 0; }
.ht .hb-sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.ht .hb-sec__head h2 { font-size: 26px; font-weight: 700; }
.ht .hb-sec__head a { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.ht .hb-clusters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ht .hb-neu { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.ht .hb-neu__intro h2 { font-size: 26px; font-weight: 700; }
.ht .hb-neu__intro p { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.ht .hb-neu__list { display: grid; gap: 10px; }
.ht .hb-trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ht .hb-trust__inner { max-width: var(--wrap); margin: 0 auto; padding: 44px 32px; display: flex; gap: 28px; align-items: flex-start; }
.ht .hb-trust__seal { width: 52px; height: 52px; border-radius: var(--r-md); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); }
.ht .hb-trust h2 { font-size: 22px; font-weight: 700; }
.ht .hb-trust p { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 660px; }
.ht .hb-trust__row { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.ht .hb-trust__row a { font-size: 14px; font-weight: 600; color: var(--accent-deep); }

/* =====================================================================
   T2 Kategorie-Hub
   ===================================================================== */
.ht .hb-hubhd { background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); }
.ht .hb-hubhd__inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 32px 34px; }
.ht .hb-hubhd__top { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.ht .hb-hubhd__icon { width: 56px; height: 56px; border-radius: var(--r-md); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--tc, var(--accent)); background: color-mix(in oklab, var(--tc, var(--accent)) 12%, #fff); border: 1px solid color-mix(in oklab, var(--tc, var(--accent)) 26%, #fff); }
.ht .hb-hubhd h1 { font-size: 40px; font-weight: 700; }
.ht .hb-hubhd__meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.ht .hb-hubhd__intro { font-size: 15.5px; color: var(--ink-2); margin-top: 16px; max-width: 720px; }
.ht .hb-hubhd__intro p { margin-top: 12px; }
.ht .hb-toolgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ht .hb-guidelist { display: grid; gap: 10px; max-width: 860px; }

/* =====================================================================
   T3 Rechner-Seite
   ===================================================================== */
.ht .hb-rhero { border-bottom: 1px solid var(--line); }
.ht .hb-rhero__inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 32px 40px; display: grid; grid-template-columns: minmax(0,1fr) 460px; gap: 48px; align-items: start; }
.ht .hb-rhero h1 { font-size: 38px; font-weight: 700; margin-top: 14px; }
.ht .hb-rhero__sub { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 520px; }
.ht .hb-rhero__share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ht .hb-rhero__share .url { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); }
.ht .hb-rbody { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 64px; display: grid; grid-template-columns: minmax(0, 860px); gap: 36px; }
.ht .hb-rbody h2 { font-size: 24px; font-weight: 700; }
.ht .hb-rbody h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }
.ht .hb-rbody p { font-size: 15.5px; color: var(--ink-2); margin-top: 12px; }
.ht .hb-rbody p:first-child { margin-top: 0; }
.ht .hb-rbody ul, .ht .hb-rbody ol { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.ht .hb-rbody li { margin: 6px 0; }
.ht .hb-rbody section > .secline:first-child { margin-bottom: 14px; }
.ht .hb-block { display: grid; gap: 14px; }
.ht .hb-mistakes { display: grid; gap: 10px; }
.ht .hb-mistake { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn-strong); border-radius: var(--r-md); padding: 13px 16px; }
.ht .hb-mistake__n { font-family: var(--f-mono); font-weight: 600; color: var(--warn); flex: none; }
.ht .hb-mistake p { margin: 0; font-size: 14.5px; }
.ht .hb-mistake strong { color: var(--ink); }
.ht .hb-sources { font-size: 13.5px; color: var(--muted); }
.ht .hb-sources ol { margin: 10px 0 0; padding-left: 20px; }
.ht .hb-sources li { margin: 5px 0; }
.ht .hb-relgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* =====================================================================
   T4 Anleitungs-Seite
   ===================================================================== */
.ht .hb-guide { max-width: var(--wrap); margin: 0 auto; padding: 28px 32px 64px; display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; }
.ht .hb-guide__main { min-width: 0; display: grid; gap: 28px; }
.ht .hb-guide__main h1 { font-size: 38px; font-weight: 700; }
.ht .hb-guide__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.ht .hb-guide__main h2 { font-size: 24px; font-weight: 700; }
.ht .hb-guide__main > section > p { font-size: 15.5px; color: var(--ink-2); margin-top: 12px; }
.ht .hb-guide__steps { display: grid; gap: 0; }
.ht .hb-guide__twocol { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: start; }
.ht .hb-guide__aside { position: sticky; top: 84px; display: grid; gap: 18px; }
.ht .hb-toollist h4 { font-family: var(--f-head); font-size: 15px; font-weight: 600; margin-bottom: 8px; }

/* =====================================================================
   T5 Rechner-Index
   ===================================================================== */
.ht .hb-index { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 64px; }
.ht .hb-index h1 { font-size: 38px; font-weight: 700; }
.ht .hb-index__sub { font-size: 16px; color: var(--muted); margin: 12px 0 22px; max-width: 620px; }
.ht .hb-index__tabs { margin-bottom: 24px; }
.ht .hb-index__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ht .hb-index__grid .toolcard.is-hidden { display: none; }

/* =====================================================================
   T6 Ueber-uns / Statisch / Suche / 404
   ===================================================================== */
.ht .hb-narrow { max-width: 860px; margin: 0 auto; padding: 40px 32px 64px; }
.ht .hb-narrow h1 { font-size: 38px; font-weight: 700; }
.ht .hb-narrow h2 { font-size: 22px; font-weight: 700; margin-top: 8px; }
.ht .hb-narrow p { font-size: 15.5px; color: var(--ink-2); margin-top: 14px; }
.ht .hb-narrow ul, .ht .hb-narrow ol { margin-top: 14px; padding-left: 22px; color: var(--ink-2); }
.ht .hb-narrow li { margin: 6px 0; }
.ht .hb-narrow a:not(.btn) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.ht .hb-principles { display: grid; gap: 12px; margin-top: 8px; }
.ht .hb-principle { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.ht .hb-principle__n { width: 32px; height: 32px; border-radius: var(--r-sm); flex: none; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 600; }
.ht .hb-principle h3 { font-family: var(--f-head); font-size: 16.5px; font-weight: 600; }
.ht .hb-principle p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.ht .hb-searchhits { display: grid; gap: 10px; margin-top: 24px; }
.ht .hb-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.ht .hb-hide-mobile { display: inline; }
@media (max-width: 560px) { .ht .hb-hide-mobile { display: none; } }
.ht .hb-adwrap { display: flex; justify-content: center; }
.ht .wgt__range { -webkit-appearance: none; appearance: none; width: 130px; height: 4px; border-radius: 4px; background: var(--line-strong); outline: none; }
.ht .wgt__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 99px; background: var(--accent); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(29,36,48,.3); }
.ht .wgt__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 99px; background: var(--accent); cursor: pointer; border: 2px solid #fff; }
.ht .wgt__rangeval { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 42px; text-align: right; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .ht .hb-rhero__inner { grid-template-columns: 1fr; gap: 28px; }
  .ht .hb-guide { grid-template-columns: 1fr; gap: 24px; }
  .ht .hb-guide__aside { position: static; }
  .ht .hb-neu { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 860px) {
  .ht .hb-clusters, .ht .hb-toolgrid, .ht .hb-index__grid { grid-template-columns: 1fr 1fr; }
  .ht .hb-hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 16px; }
  .ht .hb-hero h1 { font-size: 33px; }
  .ht .hb-hero__sub { font-size: 15.5px; }
}
@media (max-width: 720px) {
  .ht .hb-hd__nav { display: none; }
  .ht .hb-hd__burger { display: inline-flex; }
  .ht .hb-hd__inner { padding: 12px 16px; }
  .ht .hb-hd.is-open .hb-hd__mnav { display: block; border-top: 1px solid var(--line); }
  .ht .hb-hd__mnav a { display: block; padding: 13px 16px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .ht .hb-hd__mnav a:hover { color: var(--accent-deep); }
  .ht .hb-wrap, .ht .hb-sec, .ht .hb-trust__inner, .ht .hb-hubhd__inner, .ht .hb-rhero__inner, .ht .hb-rbody, .ht .hb-guide, .ht .hb-index, .ht .hb-narrow, .ht .hb-ft__inner, .ht .hb-ft__bottomin { padding-left: 16px; padding-right: 16px; }
  .ht .hb-sec { padding-top: 36px; padding-bottom: 36px; }
  .ht .hb-ft__inner { grid-template-columns: 1fr; gap: 24px; }
  .ht .hb-trust__inner { flex-direction: column; gap: 16px; }
  .ht .hb-rhero h1, .ht .hb-guide__main h1, .ht .hb-index h1, .ht .hb-narrow h1 { font-size: 28px; }
  .ht .hb-hubhd h1 { font-size: 30px; }
  .ht .hb-relgrid, .ht .hb-guide__twocol, .ht .check { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ht .hb-clusters, .ht .hb-toolgrid, .ht .hb-index__grid { grid-template-columns: 1fr; }
}

/* Ad-Platzhalter ausblenden, wenn der Backend-Toggle "Platzhalter anzeigen"
   aus ist (Body-Klasse no-ad-placeholders). Betrifft die Design-Platzhalter
   .dad / .adslot; echte Anzeigen (.ad-live) bleiben sichtbar. Der leere
   Wrapper wird per :has() mitsamt seinem Abstand entfernt. */
body.no-ad-placeholders .ht .dad,
body.no-ad-placeholders .ht .adslot { display: none; }
body.no-ad-placeholders .ht .hb-adwrap:has(.dad) { display: none; }

/* CMP-Banner: Kontrast-Overrides fuer body.site-haustechnikberater */
body.site-haustechnikberater .cmp-banner__btn--accept,
body.site-haustechnikberater .cmp-btn--primary { background: #1A56C4; border-color: #16459C; color: #fff; }
body.site-haustechnikberater .cmp-banner__btn--essential,
body.site-haustechnikberater .cmp-btn--secondary { color: #1D2430; border-color: #C9CABF; background: #fff; }
