/* Ergänzungen der Werkzeuge (assets/werkzeuge.js): Merkliste-Knopf und Dialog „Angebotsanfrage senden“, beide Oberflächen */

/* Artikelsuche: „Merkliste anzeigen“ unter „Alle dieser Seite merken“, beide gleich breit */
.seitemerk.hk-zwei { display: grid; grid-template-columns: max-content; justify-content: end; gap: 6px; }
.seitemerk.hk-zwei .btn { width: 100%; text-align: center; justify-content: center; }

/* Dialog */
.hk-angebot { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid #d5dde6; border-radius: 12px;
  background: #fff; color: #1d2733; box-shadow: 0 24px 60px rgba(0, 30, 70, .28); font: 14px/1.5 Arial, Helvetica, sans-serif; }
.hk-angebot::backdrop { background: rgba(0, 20, 45, .42); }
.hk-angebot form { display: flex; flex-direction: column; max-height: calc(100vh - 34px); margin: 0; }
.hka-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e3e8ee; }
.hka-kopf h2 { margin: 0; font-size: 18px; color: var(--hk-blue, #005ca9); }
.hka-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; padding: 2px 8px; border-radius: 6px; }
.hka-x:hover { background: #eef2f6; }
.hka-rumpf { overflow: auto; padding: 14px 18px 6px; }
.hka-fuss { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid #e3e8ee; }
.hka-fuss .cd-btn { min-height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid #c4ced8; background: #fff; color: #1d2733; font: inherit; font-weight: 700; cursor: pointer; }
.hka-fuss .cd-btn { white-space: nowrap; }
.hka-fuss .cd-btn.primary { background: var(--hk-blue, #005ca9); border-color: var(--hk-blue, #005ca9); color: #fff; }
.hka-fuss .cd-btn:disabled { opacity: .55; cursor: default; }
.hka-teil { margin: 0 0 14px; }
.hka-teil h3, .hka-fertig h3 { margin: 6px 0 6px; font-size: 15px; }
.hka-titel { margin: 0 0 4px; font-weight: 700; }
.hka-leise { margin: 2px 0 6px; color: #5b6878; font-size: 13px; }
.hka-hinweis { margin: 8px 0; padding: 10px 12px; border-radius: 8px; background: #fff4dc; color: #7a4b00; }
.hka-tabelle { max-height: 260px; overflow: auto; border: 1px solid #e3e8ee; border-radius: 8px; }
.hka-pos { width: 100%; border-collapse: collapse; font-size: 13px; }
.hka-pos th { position: sticky; top: 0; background: #f3f6f9; text-align: left; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid #e3e8ee; }
.hka-pos td { padding: 6px 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.hka-pos td:first-child { width: 78px; }
.hka-pos td b { display: block; font-weight: 700; }
.hka-pos td .hka-leise { display: block; margin: 2px 0 0; }
.hka-pos input { width: 66px; padding: 4px 6px; border: 1px solid #c4ced8; border-radius: 6px; font: inherit; }
.hka-nr { font-family: Consolas, "Courier New", monospace; white-space: nowrap; }
.hka-mehr { margin-top: 10px; }
.hka-mehr summary { cursor: pointer; color: var(--hk-blue, #005ca9); font-weight: 700; }
.hka-mehr h4 { margin: 10px 0 4px; font-size: 13px; }
.hka-mehr dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 2px 12px; margin: 0; font-size: 13px; }
.hka-mehr dt { color: #5b6878; }
.hka-mehr dd { margin: 0; }
.hka-mehr ul { margin: 0; padding-left: 18px; font-size: 13px; }
.hka-art { border: 0; padding: 0; margin: 6px 0 8px; display: flex; gap: 18px; flex-wrap: wrap; }
.hka-art legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: #5b6878; }
.hka-felder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 10px; }
.hka-feld { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.hka-feld span { color: #3d4a59; }
.hka-feld input, .hka-feld select, .hka-feld textarea { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid #c4ced8; border-radius: 6px; font: inherit; background: #fff; color: inherit; }
.hka-feld textarea { resize: vertical; min-height: 62px; }
.hka-anrede { grid-column: span 2; } .hka-vorname, .hka-nachname { grid-column: span 2; }
.hka-firma, .hka-strasse { grid-column: span 3; }
.hka-plz { grid-column: span 1; } .hka-ort { grid-column: span 3; } .hka-land { grid-column: span 2; }
.hka-telefon, .hka-email { grid-column: span 3; }
.hka-nachricht { margin: 4px 0 10px; }
.hka-aus { opacity: .5; }
.hka-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 4px 0; }
.hka-ok input { margin-top: 3px; flex: none; }
.hka-fehler span, .hka-fehler.hka-ok { color: #b3261e; }
.hka-fehler input, .hka-fehler select { border-color: #b3261e; box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.hka-meldung { min-height: 1.2em; margin: 6px 0 4px; font-weight: 700; }
.hka-meldung.fehler { color: #b3261e; }
.hka-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.hka-fertig { padding: 6px 0 10px; }
.hka-feld input:focus-visible, .hka-feld select:focus-visible, .hka-feld textarea:focus-visible, .hka-pos input:focus-visible,
.hka-fuss .cd-btn:focus-visible, .hka-x:focus-visible { outline: 2px solid var(--hk-blue, #005ca9); outline-offset: 1px; }

@media (max-width: 640px) {
  .hk-angebot { width: calc(100vw - 12px); max-height: calc(100vh - 12px); }
  .hka-fuss .cd-btn { flex: 1; padding: 0 10px; }
  .hka-felder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hka-anrede, .hka-plz { grid-column: span 1; }
  .hka-vorname, .hka-nachname, .hka-firma, .hka-strasse, .hka-ort, .hka-land, .hka-telefon, .hka-email { grid-column: span 2; }
  .hka-ort { grid-column: span 1; }
}

/* CI-Entwurf Lichtgrund */
body.ci .hk-angebot { border-radius: 28px; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 80px rgba(11, 31, 58, .25); font-family: var(--font, Arial, Helvetica, sans-serif); color: var(--cd-tinte, #0b1f3a); }
body.ci .hk-angebot::backdrop { background: rgba(11, 31, 58, .28); backdrop-filter: blur(6px); }
body.ci .hka-kopf, body.ci .hka-fuss { border-color: rgba(11, 31, 58, .08); padding-left: 24px; padding-right: 24px; }
body.ci .hka-rumpf { padding-left: 24px; padding-right: 24px; }
body.ci .hka-kopf h2 { color: var(--cd-tinte, #0b1f3a); font-size: 22px; }
body.ci .hka-fuss .cd-btn { border-radius: 999px; }
body.ci .hka-fuss .cd-btn.primary { background: var(--cd-signal, #7ebdf1); border-color: var(--cd-signal, #7ebdf1); color: var(--cd-tinte, #0b1f3a); }
body.ci .hka-tabelle, body.ci .hka-feld input, body.ci .hka-feld select, body.ci .hka-feld textarea, body.ci .hka-pos input { border-radius: 12px; }
body.ci .hka-mehr summary { color: var(--cd-signal-tief, #005ca9); }
body.ci .hka-fuss .cd-btn:not(.primary) { background: #fff; border: 1px solid rgba(11, 31, 58, .18); color: var(--cd-tinte, #0b1f3a); box-shadow: none; }
