/* HK HYDRAULIK-KONTOR GmbH · Bedienungsanleitungen und Technische Dokumentation (Bildschirm und Druck/PDF) */
:root {
  --hk-blue: #005CA9; --hk-blue-top: #3E568A; --hk-tab: #008BD2; --ink: #222; --muted: #5F6670;
  --line: #CFD6DE; --soft: #F3F6F9; --ok: #2E7D4F; --warn: #9A5600; --bad: #B3261E;
  --font: "Trebuchet MS", Tahoma, Arial, "Liberation Sans", sans-serif;
  --mono: Consolas, "Lucida Console", "DejaVu Sans Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: #fff; }
a { color: var(--hk-blue); }
.kopf { background: linear-gradient(var(--hk-blue-top), var(--hk-blue)); color: #fff; }
.kopf .innen { max-width: 980px; margin: 0 auto; padding: 22px 24px 20px; }
.kopf .firma { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.kopf h1 { margin: 4px 0 2px; font-size: 32px; font-weight: 400; color: #fff; }
.kopf .unter { font-size: 15px; opacity: .9; }
.leiste { max-width: 980px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.leiste a { text-decoration: none; padding: 4px 10px; border-radius: 14px; background: var(--soft); }
.leiste a.on { background: var(--hk-tab); color: #fff; }
.leiste .pdf { margin-left: auto; background: var(--hk-blue); color: #fff; }
main { max-width: 980px; margin: 0 auto; padding: 8px 24px 60px; }
h2 { color: var(--hk-blue); font-size: 24px; font-weight: 400; margin: 34px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--hk-tab); }
h3 { color: var(--hk-blue); font-size: 17px; margin: 22px 0 6px; }
p { margin: 6px 0 10px; }
ul, ol { margin: 6px 0 12px; padding-left: 22px; }
li { margin: 2px 0; }
code, .mono { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 0 4px; border-radius: 3px; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
th { background: var(--hk-blue); color: #fff; text-align: left; font-weight: 700; padding: 6px 9px; }
td { padding: 6px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:nth-child(even) td { background: #F8FAFC; }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
figure { margin: 12px 0 18px; }
figure img, figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figure svg.frei { border: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hinweis { border-left: 4px solid var(--hk-tab); background: #EEF6FC; padding: 9px 13px; margin: 10px 0 14px; font-size: 14.5px; }
.hinweis.warn { border-color: var(--warn); background: #FFF6E5; }
.hinweis b:first-child { color: var(--hk-blue); }
.hinweis.warn b:first-child { color: var(--warn); }
ol.schritte { list-style: none; counter-reset: s; padding-left: 0; }
ol.schritte > li { counter-increment: s; position: relative; padding-left: 40px; margin: 8px 0; min-height: 28px; }
ol.schritte > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--hk-tab); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.taste { display: inline-block; border: 1px solid var(--hk-tab); color: var(--hk-blue); background: #fff; border-radius: 4px; padding: 0 6px; font-size: .88em; white-space: nowrap; }
.taste.blau { background: var(--hk-tab); color: #fff; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; font-size: .78em; padding: 1px 7px; }
.inhalt { background: var(--soft); border-radius: 8px; padding: 12px 18px; margin: 18px 0; columns: 2; column-gap: 28px; font-size: 14.5px; }
.inhalt b { display: block; column-span: all; color: var(--hk-blue); margin-bottom: 4px; }
.inhalt a { text-decoration: none; display: block; padding: 1px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 16px; }
.kpis div { background: var(--soft); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.kpis b { display: block; font-size: 24px; font-weight: 400; color: var(--hk-blue); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fuss { max-width: 980px; margin: 0 auto; padding: 16px 24px 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.titelblatt { display: none; }
@media screen and (max-width: 760px) {
  .kopf h1 { font-size: 25px; } .inhalt { columns: 1; } .kpis { grid-template-columns: 1fr 1fr; } .zwei { grid-template-columns: 1fr; }
  table { font-size: 13px; } th, td { padding: 5px 6px; } .leiste .pdf { margin-left: 0; }
}
/* ---------- Druck / PDF ---------- */
@page { size: A4; margin: 18mm 16mm 18mm 16mm; }
@media print {
  body { font-size: 10.5pt; line-height: 1.45; }
  .leiste, .fuss, .nurweb { display: none !important; }
  .kopf { background: none; color: var(--ink); border-bottom: 3px solid var(--hk-tab); margin-bottom: 4mm; }
  .kopf .innen { padding: 0 0 3mm; max-width: none; }
  .kopf .firma { color: var(--hk-blue); }
  .kopf h1 { color: var(--hk-blue); font-size: 22pt; }
  .kopf .unter { color: var(--muted); }
  main { max-width: none; padding: 0; }
  h2 { font-size: 15pt; margin-top: 7mm; break-after: avoid; }
  h3 { font-size: 11.5pt; break-after: avoid; }
  table { font-size: 9.5pt; break-inside: avoid; }
  thead { display: table-header-group; }
  tr, figure, .hinweis, .kpis, ol.schritte > li { break-inside: avoid; }
  th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  td, .hinweis, .kpis div, .inhalt, ol.schritte > li::before, .taste.blau, code { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  figure img { max-height: 118mm; width: auto; max-width: 100%; margin: 0 auto; }
  .neueseite { break-before: page; }
  .inhalt a { color: var(--ink); }
  .titelblatt { display: flex; flex-direction: column; height: 236mm; break-after: page; }
  .titelblatt .band { background: linear-gradient(var(--hk-blue-top), var(--hk-blue)); color: #fff; padding: 16mm 14mm; border-radius: 3mm; margin-top: 30mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .titelblatt .band .firma { font-size: 11pt; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }
  .titelblatt .band h1 { font-size: 30pt; font-weight: 400; margin: 6mm 0 3mm; color: #fff; }
  .titelblatt .band p { font-size: 13pt; margin: 0; opacity: .95; }
  .titelblatt .angaben { margin-top: auto; font-size: 10pt; break-inside: avoid; }
  .titelblatt .angaben td { border-bottom: 1px solid var(--line); background: #fff !important; }
  .titelblatt .angaben td:first-child { color: var(--muted); width: 45mm; }
  .titelblatt ~ .kopf { display: none; }
}
