:root {
  /* Layout: blaues Kopfband mit Funktions-Reitern wie auf hk-hydraulik-kontor.de,
     darunter die Auswahlschritte (Art, Bauform, Untergruppe), Filter und die Ergebnisliste */
  --hk-blue: #005CA9;
  --hk-blue-top: #3E568A;
  --hk-tab: #008BD2;
  --hk-tab-dark: #0072AD;
  --ink: #222222;
  --muted: #6B6B6B;
  --line: #CFCFCF;
  --soft: #F4F5F7;
  --mark: #FFE38A;
  --ok: #2E7D4F;
  --warn: #9A5600;
  --bad: #B3261E;
  --font: "Trebuchet MS", Tahoma, Arial, sans-serif;
  --mono: Consolas, "Lucida Console", "Courier New", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font: 16px/1.5 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--hk-blue); }
:focus-visible { outline: 3px solid #FFC94D; outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }

/* Kopfband */
.hk { background: linear-gradient(var(--hk-blue-top) 0%, var(--hk-blue) 100%); color: #fff; padding-bottom: 18px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { background: none; border: 0; color: #fff; cursor: pointer; text-align: left; padding: 0; text-decoration: none; }
a.cd-btn { display: inline-flex; align-items: center; text-decoration: none; }
.brand b { display: block; font-size: 24px; font-weight: 400; letter-spacing: .01em; }
.brand span { font-size: 14px; opacity: .85; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-btn { background: var(--hk-tab); color: #fff; border: 0; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.cd-btn:hover { background: var(--hk-tab-dark); }
.cd-btn.sm { border-radius: 10px; font-size: 12px; padding: 8px 14px; }
.cd-btn:disabled { opacity: .45; cursor: not-allowed; }
.cnt { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: #fff; color: var(--hk-blue); font-size: 11px; letter-spacing: 0; }
.plan { display: grid; gap: 16px; }
.plan h2 { color: var(--hk-blue); font-size: 24px; margin: 0; }
.plan h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hk-blue); }
.plan-kpis b { font-size: 20px; }
.adj { margin: 12px 0 0; }
.adj summary { cursor: pointer; color: var(--hk-blue); font-size: 14px; }
.adjgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; margin-top: 10px; }
.adjgrid label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.adjgrid input, .adjgrid select { border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; font-size: 14px; color: var(--ink); background: #fff; width: 100%; min-width: 0; }
.inu { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 6px 28px; }
ul.plain { margin: 0; padding-left: 18px; font-size: 14.5px; }
ul.plain li { margin: 2px 0; }
.small { font-size: 13px; }
.schemawrap { overflow-x: auto; border: 1px solid #E4E1E1; border-radius: 4px; background: #FCFDFE; margin-top: 8px; }
svg.schema { display: block; font-family: var(--font); }
svg.schema .ln { fill: none; stroke: #1B2B3A; stroke-width: 1.6; }
svg.schema .sy { fill: none; stroke: #1B2B3A; stroke-width: 1.8; }
svg.schema .sy.thin { stroke-width: 1.2; }
svg.schema .sy.bg { fill: #fff; }
svg.schema .sy.dash { stroke-dasharray: 3 3; }
svg.schema .dashbox { stroke-dasharray: 8 3 2 3; stroke-width: 1.2; }
svg.schema .fill { fill: #1B2B3A; stroke: none; }
svg.schema .rod { stroke: #1B2B3A; stroke-width: 4; }
svg.schema .jn { fill: #1B2B3A; }
.typline { margin: 2px 0 6px; font-size: 14px; }
.lernbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.adjgrid.fragen label.offen { background: #FFF7E3; border-radius: 4px; padding: 4px 6px; }
.adjgrid.fragen label .small, .adjgrid.fragen .finfo .small { display: block; font-weight: 400; }
.adjgrid.fragen .finfo { display: flex; flex-direction: column; gap: 2px; font-size: 14px; background: #EEF6FB; border-radius: 4px; padding: 6px 8px; }
svg.schema .ln.dash2 { stroke-dasharray: 6 4; }

.warnbox { background: #FFF4E0; border: 1px solid #E8A317; border-radius: 4px; padding: 10px 12px; margin: 8px 0; font-size: 14px; line-height: 1.45; }
svg.schema .el { fill: none; stroke: #1B2B3A; stroke-width: 1; stroke-dasharray: 2 3; }
svg.schema .frame { fill: none; stroke: var(--hk-blue); stroke-width: 1.2; stroke-dasharray: 12 4 2 4; }
svg.schema .lbl { font-size: 12px; fill: #333; }
svg.schema .lbl.mid { text-anchor: middle; }
svg.schema .lbl.right { text-anchor: end; }
svg.schema .lbl.small { font-size: 11px; fill: var(--muted); }
svg.schema .symtxt { font-size: 16px; font-weight: 700; text-anchor: middle; fill: #1B2B3A; }
svg.schema .symtxt.small { font-size: 10px; }
svg.schema .tagp circle { fill: var(--hk-tab); stroke: #fff; stroke-width: 1.5; }
svg.schema .tagp text { fill: #fff; font-size: 10.5px; font-weight: 700; text-anchor: middle; }
svg.schema .hit { fill: transparent; stroke: none; }
svg.schema .sym { cursor: pointer; }
svg.schema .sym:hover .hit, svg.schema .sym.on .hit, svg.schema .sym:focus-visible .hit { fill: rgba(0,139,210,.14); stroke: var(--hk-tab); stroke-width: 1; }
svg.schema .sym:focus { outline: none; }
.bom { display: flex; flex-direction: column; }
.bompos { border-top: 1px solid #E4E1E1; padding: 10px 4px; scroll-margin-top: 90px; }
.bompos.hl { background: #F2F9FD; box-shadow: inset 3px 0 0 var(--hk-tab); }
.bompos.alt { background: #FAFAF6; }
.bomhead { display: flex; gap: 10px; align-items: flex-start; }
.posnr { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--hk-tab); color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.anf { font-size: 13.5px; color: var(--muted); }
ul.cand { list-style: none; margin: 6px 0 2px 36px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
ul.cand li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
ul.cand input { accent-color: var(--hk-tab); }
ul.cand a { text-decoration: none; }
ul.cand a:hover { text-decoration: underline; }
.kw { background: #E8F3FB; color: var(--hk-blue); border-radius: 3px; padding: 0 6px; font-size: 12.5px; }
.best { color: var(--ok); font-size: 12px; }
.bompos .linkb { margin-left: 32px; }
.linkb { border: 0; background: none; color: var(--hk-blue); text-decoration: underline; cursor: pointer; font-size: 13.5px; padding: 6px 4px; }
.box { border: 1px solid #222; border-radius: 6px; padding: 18px 22px; background: #fff; }
.box > h2 { color: var(--hk-blue); font-size: 26px; margin: 0 0 4px; }
.reshead { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.reshead .count { color: var(--muted); font-size: 14px; }
.btn { border: 1px solid var(--line); background: #fff; color: var(--hk-blue); border-radius: 4px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--hk-tab); }
.btn.primary { background: var(--hk-tab); border-color: var(--hk-tab); color: #fff; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; font-size: 12px; }
.pill.s1 { color: var(--warn); border-color: currentColor; }
.pill.s2, .pill.s3 { color: var(--bad); border-color: currentColor; }
.pill.t1 { color: var(--hk-blue); border-color: currentColor; }
.pill.neu, .pill.korr { color: var(--ok); border-color: currentColor; }
.kpis { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.kpis b { display: block; font-size: 22px; color: var(--hk-blue); font-weight: 400; font-variant-numeric: tabular-nums; }
.note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
ul.plain { margin: 0; padding-left: 18px; font-size: 14.5px; }
ul.plain li { margin: 2px 0; }
ul.cand { list-style: none; margin: 6px 0 2px 36px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
ul.cand li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
ul.cand input { accent-color: var(--hk-tab); }
ul.cand a { text-decoration: none; }
ul.cand a:hover { text-decoration: underline; }


/* aus der Artikeldatenbank: Statuszeile, Hinweise, Merkliste */
.statusline { display: flex; gap: 16px; align-items: center; font-size: 13px; margin: 8px 0 14px; flex-wrap: wrap; opacity: .95; }
.linkw { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.tips { display: none; background: rgba(255,255,255,.12); border-radius: 4px; padding: 10px 14px; font-size: 14px; margin: -4px 0 14px; }
.tips.open { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 22px; }
.tips code { font-family: var(--mono); background: rgba(255,255,255,.2); padding: 0 4px; border-radius: 3px; }
.scrim { position: fixed; inset: 0; background: rgba(0,20,45,.4); z-index: 70; display: none; }
.scrim.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: #fff; z-index: 80; box-shadow: -8px 0 30px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .2s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.dr-head { background: linear-gradient(var(--hk-blue-top), var(--hk-blue)); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dr-head h2 { margin: 2px 0 4px; font-size: 22px; }
.dr-head .crumb, .dr-head .hmeta { color: #DCE8F5; }
.dr-head .pill { border-color: #DCE8F5; color: #fff; }
.dr-head mark { background: #FFE38A; color: #222; }
.dr-nav { display: flex; gap: 6px; align-items: center; }
.x { border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 10px; border-radius: 4px; }
.x:hover { background: rgba(255,255,255,.3); }
.dr-body { padding: 16px 20px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.dr-body h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hk-blue); }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 8px 16px; border-radius: 6px; z-index: 90; font-size: 14px; display: none; }
.toast.open { display: block; }
.sellist { display: flex; flex-direction: column; }
.sellist div { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 4px; border-top: 1px solid #E4E1E1; font-size: 14px; }
.sellist div:first-child { border-top: 0; }
.sellist .x2 { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
ul.cand .art { color: var(--hk-blue); }
ul.cand input { width: 15px; height: 15px; margin: 0; align-self: center; }

/* Rahmen mit Menü links */
body.mitmenue { height: auto; display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.menue { background: linear-gradient(#2F4675, #233863); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 0 24px; }
.menue-kopf { padding: 0 20px 18px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 12px; }
.menue-kopf b { display: block; font-size: 26px; font-weight: 700; letter-spacing: .04em; }
.menue-kopf span { font-size: 13px; opacity: .8; }
.menue-auf { display: none; }
.menue-liste { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: 4px; }
.menue-liste > li > a { display: block; padding: 10px 12px; border-radius: 4px; color: #fff; text-decoration: none; font-weight: 700; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; background: rgba(255,255,255,.08); }
.menue-liste > li > a:hover { background: rgba(255,255,255,.18); }
.menue-liste > li > a.on { background: #fff; color: var(--hk-blue); }
.menue-sub { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px 8px; }
.menue-sub .t { font-size: 11.5px; opacity: .75; margin: 0 0 2px 4px; text-transform: uppercase; letter-spacing: .5px; }
.menue-sub button { border: 0; background: none; color: #DCE8F5; text-align: left; font-size: 13px; padding: 4px 6px; border-radius: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menue-sub button:hover, .menue-sub button.on { background: rgba(255,255,255,.14); color: #fff; }
.seite { min-width: 0; }
@media (max-width: 900px) {
  body.mitmenue { display: block; }
  .menue { position: static; height: auto; padding: 10px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .menue-kopf { border: 0; margin: 0; padding: 0 20px; display: flex; gap: 10px; align-items: baseline; }
  .menue-kopf b { font-size: 20px; }
  .menue-auf { display: inline-block; margin-right: 20px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 4px; padding: 6px 12px; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
  .menue-liste { display: none; width: 100%; padding: 10px 10px 4px; }
  .menue.auf .menue-liste { display: flex; }
}
@media print { .menue { display: none !important; } body.mitmenue { display: block; } }

/* Maske */
.planform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.planform textarea { min-height: 96px; border: 0; border-radius: 4px; padding: 10px 14px; font: 16px/1.45 var(--font); color: var(--ink); resize: vertical; }
.planform .cd-btn { padding: 0 22px; font-size: 14px; }
.examples { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.examples button { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; padding: 3px 10px; cursor: pointer; font-size: 13px; }
.examples button:hover { background: rgba(255,255,255,.28); }
.hinweis { grid-column: 1 / -1; font-size: 12.5px; opacity: .9; margin: 0; }
.hinweis a { color: #fff; }
main.wrap { padding-top: 18px; padding-bottom: 40px; }
.leer { color: var(--muted); padding: 30px 0; }
.verlauf button { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 2px 10px; cursor: pointer; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hk-blue); }
.bomtools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.busy { opacity: .55; pointer-events: none; transition: opacity .15s; }
.fehler { background: #FDECEA; border: 1px solid var(--bad); color: var(--bad); border-radius: 4px; padding: 8px 12px; }
footer.wrap { font-size: 12.5px; color: var(--muted); padding-bottom: 30px; }
@media (max-width: 900px) { .planform { grid-template-columns: 1fr; } .planform .cd-btn { height: 46px; } }
@media print {
  .hk, .bomtools, .lernbar button, .adj summary ~ *, footer, .verlauf { display: none !important; }
  .adj[open] > *:not(summary) { display: revert; }
  .box { border: 0; padding: 0; }
  .schemawrap { overflow: visible; border: 0; }
  svg.schema { width: 100%; height: auto; }
  .bompos { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.plan { grid-template-columns: minmax(0, 1fr); } .plan > .box { min-width: 0; }

/* ---------- Artikelsuche (wie Artikeldatenbank im Artefakt) ---------- */
.search { position: relative; display: flex; gap: 10px; margin: 0 0 2px; }
#q { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 4px; padding: 0 16px; font-size: 17px; color: var(--ink); background: #fff; }
#q:focus-visible { outline: 3px solid #FFC94D; }
.search .cd-btn { padding: 0 26px; font-size: 15px; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tab { position: relative; }
.tabbtn { width: 100%; min-height: 58px; padding: 10px 8px; font-size: 13.5px; line-height: 1.25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tabbtn small { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; opacity: .9; }
.tabbtn.on { background: #fff; color: var(--hk-blue); }
.tabbtn.zero { opacity: .5; }
.drop { display: none; position: absolute; top: calc(100% + 2px); left: 0; min-width: 300px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); padding: 6px; z-index: 50; }
.tab:nth-child(5n) .drop, .tab:nth-child(5n-1) .drop { left: auto; right: 0; }
.drop p { margin: 4px 8px 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.drop button { display: flex; justify-content: space-between; gap: 14px; width: 100%; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 3px; cursor: pointer; font-size: 14.5px; color: var(--hk-blue); }
.drop button:hover, .drop button:focus-visible { background: #E8F3FB; }
.drop button:disabled { opacity: .45; cursor: default; }
.drop button span:last-child { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (min-width: 901px) { .tab:hover .drop, .tab:focus-within .drop { display: block; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; margin: 0 0 12px; }
.crumbs button { border: 0; background: none; color: var(--hk-blue); cursor: pointer; padding: 0; font-size: 14px; text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.steprow { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 16px; padding: 12px 0; border-top: 1px solid #E4E1E1; }
.steprow:first-of-type, .crumbs + .steprow { border-top: 0; }
.steplab { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hk-blue); padding-top: 7px; }
.steplab span { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12.5px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { border: 1px solid var(--line); background: #fff; color: var(--hk-blue); border-radius: 4px; padding: 6px 10px; cursor: pointer; font-size: 14px; text-align: left; display: inline-flex; gap: 8px; align-items: baseline; }
.opt:hover { border-color: var(--hk-tab); background: #F2F9FD; }
.opt .c { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt.on { background: var(--hk-tab); border-color: var(--hk-tab); color: #fff; }
.opt.on .c { color: #fff; }
.opt:disabled { opacity: .4; cursor: default; }
.steprow.zu .opt:not(.on) { display: none; }
.goal { font-size: 13px; color: var(--ok); margin: 2px 0 0; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; padding: 12px 14px; background: var(--soft); border-radius: 6px; margin: 14px 0 16px; font-size: 13px; color: var(--muted); }
.filterbar:empty { display: none; }
.filterbar label { display: grid; gap: 2px; }
.filterbar select { border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 5px 8px; font-size: 14px; color: var(--ink); max-width: 230px; }
.filterbar .chk { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-size: 14px; padding-bottom: 6px; }
.filterbar .reset { border: 0; background: none; color: var(--hk-blue); text-decoration: underline; cursor: pointer; padding: 0 0 6px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 1px 4px 1px 10px; font-size: 13px; background: #fff; }
.chip button { border: 0; background: #E8F3FB; color: var(--hk-blue); border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.dym { margin: 6px 0 10px; }
.dym a { font-weight: 700; font-style: italic; cursor: pointer; }
.info { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.hits { display: flex; flex-direction: column; }
article.hit { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 13px 4px 13px 0; border-top: 1px solid #E4E1E1; }
article.hit:first-child { border-top: 0; }
article.hit input { margin-top: 6px; width: 16px; height: 16px; accent-color: var(--hk-tab); }
.crumb { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
article.hit h3 { margin: 1px 0 2px; font-size: 19px; line-height: 1.3; }
article.hit h3 a { text-decoration: none; cursor: pointer; }
article.hit h3 a:hover { text-decoration: underline; }
.dsl { font-size: 13px; white-space: nowrap; }
.dsl.S { color: #666; }
.dsl.B, .dsl.K { font-weight: bold; }
.hsub { margin: 2px 0 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.snip { margin: 3px 0 0; font-size: 14px; color: #444; max-width: 80ch; overflow-wrap: anywhere; }
mark { background: var(--mark); color: inherit; padding: 0 1px; border-radius: 2px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.pager button { min-width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; color: var(--hk-blue); border-radius: 4px; cursor: pointer; }
.pager button.on { background: var(--hk-tab); border-color: var(--hk-tab); color: #fff; }
.empty { color: var(--muted); }
.intro { margin: 0 0 18px; }
.intro h1 { color: var(--hk-blue); font-size: 30px; margin: 0 0 6px; }
.intro p { margin: 0; max-width: 78ch; color: #333; }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fbox { border: 1px solid #222; border-radius: 6px; padding: 14px 18px 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.fbox h2 { margin: 0; font-size: 22px; text-align: center; }
.fbox h2 button { border: 0; background: none; color: var(--hk-blue); cursor: pointer; font-size: 22px; padding: 0; }
.fbox .sub { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.fbox ul { list-style: none; margin: 0; padding: 0; }
.fbox li button { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; text-align: left; padding: 3px 4px; border-radius: 3px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.fbox li button:hover { background: #E8F3FB; color: var(--hk-blue); }
.fbox li .c { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.method { margin-top: 20px; font-size: 13.5px; color: var(--muted); max-width: 95ch; }
.pre { white-space: pre-wrap; margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.simlist { display: flex; flex-direction: column; gap: 2px; }
.simlist button { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; border: 0; background: none; text-align: left; padding: 4px 6px; border-radius: 3px; cursor: pointer; font-size: 14px; }
.simlist button:hover { background: #E8F3FB; }
body.laedt #inhalt { opacity: .55; transition: opacity .15s; }
@media (max-width: 1100px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tab:nth-child(5n) .drop, .tab:nth-child(5n-1) .drop { left: 0; right: auto; } .tab:nth-child(3n) .drop { left: auto; right: 0; } }
@media (max-width: 900px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steprow { grid-template-columns: 1fr; } .kv, .simlist button { grid-template-columns: 1fr; } .search .cd-btn { padding: 0 14px; } }
@media print { .tabs, .filterbar, .search, .pager, .crumbs, .steprow, article.hit input { display: none !important; } }

/* ---------- Hydraulikrechner (eingebettet) ---------- */
.hk-schmal { padding-bottom: 0; }
.rechner { display: block; width: 100%; height: calc(100vh - 110px); min-height: 960px; border: 0; background: #fff; }
.rechner-hinweis { padding-bottom: 14px; }
.rechner-hinweis { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.reshead h2 { color: var(--hk-blue); font-size: 26px; margin: 0; }
.seitemerk { display: flex; justify-content: flex-end; margin: -2px 0 4px; }
.pagerinfo { color: var(--muted); font-size: 13px; margin-left: 8px; }
.drtools { display: flex; gap: 8px; flex-wrap: wrap; }
.filterbar .chk label { display: inline; }

.tab .tabbtn { height: 100%; }
@media (max-width: 900px) { .tabbtn { letter-spacing: .3px; font-size: 12.5px; overflow-wrap: anywhere; hyphens: auto; padding: 8px 6px; } }

/* Stückliste: Löschkandidaten wahlweise (Häkchen neben der Überschrift) */
.bomtitel { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.lkwahl { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.lkwahl input { width: 15px; height: 15px; margin: 0; accent-color: var(--hk-tab); }
.lkhinweis { margin: -2px 0 8px; }
#planList li.lk, #planList .b-alle { display: none; }
#planList.mitlk li.lk { display: flex; }
#planList.mitlk .b-alle { display: inline; }
#planList.mitlk li.nurohne, #planList.mitlk p.nurohne, #planList.mitlk .b-ohne { display: none; }
@media print { .lkwahl { display: none; } }

.hykotools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }

.rechner-info { margin: 0; padding: 8px 20px; font-size: 14px; background: #E8F3FB; color: var(--hk-blue); max-width: none; }
.rechner-info.ok { background: #EAF6EC; color: #1F6B33; }
.rechner-info.warn { background: #FFF4DC; color: #7A4B00; }

/* ---------- Schema zeichnen (eingebettet) ---------- */
.schemaeditor { display: block; width: 100%; height: calc(100vh - 92px); min-height: 520px; border: 0; background: #fff; }
.seite:has(> .schema-rahmen) { display: flex; flex-direction: column; min-height: 100vh; }
.seite:has(> .schema-rahmen) .schema-rahmen { flex: 1; display: flex; flex-direction: column; }
.seite:has(> .schema-rahmen) .schemaeditor { flex: 1; height: auto; }
.schema-hinweis { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; padding-bottom: 14px; }

/* ---------- Anlage planen: Schema aus „Schema zeichnen“ ablegen ---------- */
.planform textarea { grid-column: 1; grid-row: 1; }
.planform > .cd-btn { grid-column: 2; grid-row: 1; }
.planform .schemadrop { grid-column: 1; grid-row: 2; }
.planform .examples { grid-row: 3; }
.schemadrop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 4px; padding: 9px 14px; font-size: 13px; line-height: 1.4; color: #fff; background: rgba(255, 255, 255, .07); cursor: pointer; transition: background .15s, border-color .15s; }
.schemadrop:hover, .schemadrop:focus-visible { background: rgba(255, 255, 255, .14); border-color: #fff; outline: none; }
.schemadrop.ueber { background: rgba(255, 255, 255, .26); border-style: solid; border-color: #fff; }
.schemadrop.ok { border-style: solid; border-color: rgba(255, 255, 255, .8); }
.schemadrop u { text-underline-offset: 2px; }
.schemadrop .sd-status { font-weight: 700; }
.schemadrop .sd-status:empty { display: none; }
.schemadrop.fehler .sd-status { color: #FFE08A; }
@media (max-width: 900px) {
  .planform textarea, .planform > .cd-btn, .planform .schemadrop, .planform .examples { grid-column: auto; grid-row: auto; }
  .planform .examples { grid-column: 1 / -1; }
}
/* ---------- Schema zeichnen: Knöpfe im Kopf ---------- */
@media (max-width: 760px) { .schema-fenster { display: none !important; } }
@media print { .schemadrop { display: none !important; } }

/* ---------- Projekt: Reset, Projekt speichern, Projekt öffnen ---------- */
.proj-knoepfe { display: contents; }
.cd-btn.proj-reset { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.cd-btn.proj-reset:hover { background: rgba(255, 255, 255, .16); }
.projdlg { border: 0; border-radius: 8px; padding: 22px 24px 20px; width: min(540px, calc(100% - 32px)); color: var(--ink); font-family: var(--font); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.projdlg::backdrop { background: rgba(20, 35, 60, .45); }
.projdlg h2 { margin: 0 0 10px; font-size: 21px; font-weight: 400; color: var(--hk-blue); }
.projdlg p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.projdlg-merk { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-size: 14px; }
.projdlg-merk[hidden] { display: none; }
.projdlg-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.projdlg-knoepfe .cd-btn { padding: 10px 16px; font-size: 13px; }
.projdlg-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 16px; font: 700 13px var(--font); letter-spacing: .5px; text-transform: uppercase; cursor: pointer; }
.projdlg-btn:hover { border-color: var(--hk-blue); color: var(--hk-blue); }
.projdlg-btn.gefahr:hover { border-color: #B3261E; color: #B3261E; }
@media print { .proj-knoepfe { display: none !important; } }
/* P1-C: unvollständige Verbraucher aus dem HyKo-Projekt über dem Hydraulikrechner (FS-04) */
.rechner-offen { margin: 0; padding: 8px 20px; max-width: none; background: #FFF8E6; border-bottom: 2px solid #E0B44C; font-size: 14px; }
.rechner-offen h2 { font-size: 16px; margin: 6px 0 2px; } .rechner-offen .rz { background: #B3261E; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 13px; }
.rechner-offen .ro-v { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 4px 0; border-top: 1px solid #F0DFB0; }
.rechner-offen .ro-v label { white-space: nowrap; } .rechner-offen input { width: 7em; } .rechner-offen .small { color: #6b5a2a; }
