/* =========================================================
   HAPDT – Kontaktmöglichkeiten v2 (Panel + Shortcodes)
   CD 2026 · Stahlblau #60738C · Blaugrau #1F2A3A
   ========================================================= */

:root {
  --hk-primary: #60738C;
  --hk-dark: #1F2A3A;
  --hk-bg: #F5F7FA;
  --hk-light: #B8C4D0;
  --hk-text: #2C3440;
  --hk-white: #ffffff;
  --hk-radius: 10px;
  --hk-shadow: 0 12px 40px rgba(31, 42, 58, .22);
}

/* ---------- Overlay + Panel (über dem 321Med-Button, z-index 2147483000) ---------- */
.hk-overlay {
  position: fixed; inset: 0; z-index: 2147483001;
  background: rgba(31, 42, 58, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.hk-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2147483002;
  width: min(440px, 100vw);
  background: var(--hk-bg);
  box-shadow: var(--hk-shadow);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--hk-text);
}
.hk-open .hk-overlay { opacity: 1; visibility: visible; }
.hk-open .hk-panel { transform: translateX(0); visibility: visible; }
.hk-open body { overflow: hidden; }

.hk-panel__head {
  background: var(--hk-primary);
  color: var(--hk-white);
  padding: 26px 64px 22px 24px;
  position: relative;
}
.hk-panel__head h2 {
  font: italic 500 28px/1.15 "Playfair Display", Georgia, serif !important;
  color: var(--hk-white) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 0 6px !important;
}
.hk-panel__head p { margin: 0 !important; padding: 0 !important; font-size: 14px; opacity: .9; line-height: 1.5; color: var(--hk-white); }
.hk-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: var(--hk-white);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
}
.hk-close:hover, .hk-close:focus-visible { background: rgba(255,255,255,.3); }
.hk-close:focus-visible { outline: 2px solid var(--hk-white); outline-offset: 2px; }

/* ---------- Inhalt ---------- */
.hk-box { padding: 22px 24px 28px; font-family: "Inter", system-ui, sans-serif; color: var(--hk-text); }
.hk-box p { padding-bottom: 0 !important; }

.hk-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--hk-primary);
  margin: 0 0 8px !important;
}

/* Hauptweg: Online-Rezeption */
.hk-primary {
  display: flex; align-items: center; gap: 14px;
  background: var(--hk-dark); color: var(--hk-white) !important;
  text-decoration: none !important;
  padding: 18px; border-radius: var(--hk-radius);
  box-shadow: 0 6px 18px rgba(31, 42, 58, .18);
  transition: background .2s, transform .2s;
}
.hk-primary:hover, .hk-primary:focus-visible { background: var(--hk-primary); transform: translateY(-1px); }
.hk-primary:focus-visible { outline: 3px solid var(--hk-light); outline-offset: 2px; }
.hk-primary svg { width: 30px; height: 30px; flex: none; }
.hk-primary__txt strong { display: block; font-size: 18px; font-weight: 700; color: var(--hk-white); }
.hk-primary__txt span { display: block; font-size: 13px; line-height: 1.4; opacity: .85; margin-top: 3px; }

/* Trenner */
.hk-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 14px !important;
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hk-primary);
}
.hk-divider::before, .hk-divider::after { content: ""; flex: 1; height: 1px; background: var(--hk-light); }

/* Gruppen: Heime / Hausbesuche */
.hk-group {
  background: var(--hk-white);
  border: 1px solid var(--hk-light);
  border-radius: var(--hk-radius);
  padding: 16px 16px 14px;
  margin-bottom: 12px;
}
.hk-group__title {
  display: flex; align-items: center; gap: 8px;
  font: 700 15px/1.3 "Inter", system-ui, sans-serif !important;
  color: var(--hk-dark) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  margin: 0 0 6px !important;
}
.hk-group__title svg { width: 20px; height: 20px; color: var(--hk-primary); flex: none; }
.hk-group__text { font-size: 14px; line-height: 1.5; margin: 0 0 10px !important; }
.hk-textlink { color: var(--hk-dark) !important; font-weight: 600; text-decoration: underline !important; text-underline-offset: 2px; }
.hk-textlink:hover { color: var(--hk-primary) !important; }

/* Telefon-Zeile */
.hk-phone {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--hk-bg);
  border-radius: 8px;
  color: var(--hk-text) !important; text-decoration: none !important;
  transition: background .2s;
}
.hk-phone:hover, .hk-phone:focus-visible { background: #E8EDF3; }
.hk-phone svg { width: 20px; height: 20px; flex: none; color: var(--hk-primary); }
.hk-phone small { display: block; font-size: 11px; color: var(--hk-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hk-phone b { display: block; font-size: 17px; font-weight: 700; color: var(--hk-dark); margin-top: 1px; }

/* Praxisnummer + Notfall, bewusst zurückhaltend */
.hk-praxis, .hk-emergency { font-size: 13px; line-height: 1.5; margin: 0 !important; }
.hk-praxis { margin-top: 20px !important; }
.hk-emergency { margin-top: 6px !important; padding-top: 12px; border-top: 1px solid var(--hk-light); }
.hk-praxis a, .hk-emergency a { color: var(--hk-dark) !important; font-weight: 700; text-decoration: none !important; white-space: nowrap; }

/* ---------- Shortcode-Varianten ---------- */
.hk-inline { max-width: 560px; background: var(--hk-bg); border-radius: 14px; }
.hk-inline__title {
  font: italic 500 26px/1.2 "Playfair Display", Georgia, serif !important;
  color: var(--hk-dark) !important; text-transform: none !important; letter-spacing: 0 !important;
  margin: 0 0 14px !important;
}
.hk-inline--heime .hk-group:last-child { margin-bottom: 0; }

/* Salient-Neutralisierung */
.hk-panel hr, .hk-inline hr { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hk-panel, .hk-overlay, .hk-primary { transition: none; }
}

/* ---------- v2.1: Button + Telefon nebeneinander in den Gruppen ---------- */
.hk-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: stretch;
}
.hk-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--hk-dark); color: var(--hk-white) !important;
  text-decoration: none !important;
  font: 700 14px/1.2 "Inter", system-ui, sans-serif;
  padding: 10px 12px; border-radius: 8px; text-align: center;
  transition: background .2s;
}
.hk-btn:hover, .hk-btn:focus-visible { background: var(--hk-primary); }
.hk-btn:focus-visible { outline: 3px solid var(--hk-light); outline-offset: 2px; }
.hk-btn svg { width: 20px; height: 20px; flex: none; }
.hk-actions .hk-phone { padding: 8px 10px; gap: 8px; }
.hk-actions .hk-phone svg { width: 18px; height: 18px; }
.hk-actions .hk-phone small { font-size: 10px; letter-spacing: .04em; }
.hk-actions .hk-phone b { font-size: 16px; white-space: nowrap; }

@media (max-width: 380px) {
  .hk-actions { grid-template-columns: 1fr; }
  .hk-btn { padding: 12px; }
}
