/* ============================================================
   HVIDTAND — Behandlings-undersider (bygger på styles-v3.css)
   Skal indlæses EFTER styles-v3.css (genbruger samme variabler).
   ============================================================ */

/* ---- Nav dropdown (Behandlinger) ------------------------- */
.has-drop { position: relative; }
.has-drop > a::after { content: "▾"; font-size: 11px; margin-left: 5px; color: var(--ink-3); }
.drop { position: absolute; top: 100%; left: -16px; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-family: var(--head); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.drop a svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.drop a:hover { background: var(--brand-50); color: var(--brand-dark); }

/* ---- Breadcrumb ------------------------------------------ */
.crumb { padding: 18px 0 0; font-family: var(--head); font-size: 13.5px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 8px; color: var(--ink-3); }
.crumb .cur { color: var(--ink); font-weight: 600; }

/* ---- Subpage hero ---------------------------------------- */
.subhero { padding: 34px 0 64px; position: relative; }
.subhero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 80% 10%, var(--brand-50) 0%, transparent 62%); z-index: -1; }
.subhero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.subhero .eyebrow { color: var(--brand); }
.subhero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; margin: 12px 0 0; letter-spacing: -.02em; line-height: 1.08; }
.subhero .lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.subhero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; }
.price-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-family: var(--head); font-weight: 600; font-size: 15px; box-shadow: var(--sh-sm); }
.price-chip span.k { color: var(--ink-2); font-weight: 500; }
.price-chip span.v { color: var(--brand-dark); }
.subhero-media .photo { width: 100%; height: 420px; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }

/* ---- Body layout ----------------------------------------- */
.sub-body { padding: 16px 0 88px; }
.sub-grid { display: grid; grid-template-columns: minmax(0,1fr) 318px; gap: 56px; align-items: start; }

/* ---- Prose ----------------------------------------------- */
.prose { max-width: 44em; }
.prose > h2 { font-size: clamp(24px, 2.8vw, 33px); font-weight: 700; margin: 46px 0 0; letter-spacing: -.01em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-family: var(--head); font-size: 20px; font-weight: 600; margin: 32px 0 0; color: var(--ink); }
.prose > p { margin-top: 16px; color: var(--ink); font-size: 17px; }
.prose > p.muted { color: var(--ink-2); font-size: 15px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.prose ul li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16.5px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); }
.prose ul li::after { content: ""; position: absolute; left: 5.5px; top: 11px; width: 7px; height: 4px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.prose-fig { margin: 30px 0 0; }
.prose-fig .photo { width: 100%; height: 300px; border-radius: var(--r); box-shadow: var(--sh-sm); }
.prose-fig figcaption { font-size: 13px; color: var(--ink-3); margin-top: 9px; }
.prose-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.prose .callout { margin-top: 28px; background: var(--brand-50); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--brand-100); }
.prose .callout h4 { font-family: var(--head); font-weight: 700; font-size: 16px; color: var(--brand-dark); }
.prose .callout p { margin-top: 6px; color: var(--ink); font-size: 15.5px; }
.prose .src { font-size: 12.5px; color: var(--ink-3); font-style: italic; margin-top: 14px; }

/* status colors (basis: grøn/gul/rød) */
.trafik { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 22px; }
.trafik .tk { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.trafik .tk .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 10px; }
.trafik .tk.g .dot { background: #2ca96a; } .trafik .tk.y .dot { background: #f6a724; } .trafik .tk.r .dot { background: #e0533c; }
.trafik .tk h4 { font-family: var(--head); font-size: 15px; font-weight: 700; }
.trafik .tk p { font-size: 13.5px; color: var(--ink-2); margin-top: 5px; }

/* ---- Aside ----------------------------------------------- */
.aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 26px 24px; }
.aside-card h3 { font-family: var(--head); font-size: 18px; font-weight: 700; }
.aside-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }
.aside-card .btn { width: 100%; margin-top: 16px; }
.aside-mini { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.aside-mini .m { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.aside-mini .m svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.other h3 { font-family: var(--head); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; padding: 0 4px; }
.other-list { display: grid; }
.other-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 10px; font-family: var(--head); font-weight: 500; font-size: 15px; color: var(--ink); transition: background .15s; }
.other-list a svg { width: 19px; height: 19px; color: var(--brand); flex: none; }
.other-list a:hover { background: var(--brand-50); color: var(--brand-dark); }
.other-list a.cur { background: var(--brand); color: #fff; }
.other-list a.cur svg { color: #fff; }

/* ---- Treatments overview --------------------------------- */
.treat-intro { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: transparent; }
.tcard .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 20px; }
.tcard .ic svg { width: 30px; height: 30px; }
.tcard h3 { font-size: 20px; font-weight: 600; }
.tcard p { color: var(--ink-2); font-size: 15px; margin-top: 9px; flex: 1; }
.tcard .more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--brand); margin-top: 18px; }
.tcard .more svg { width: 15px; height: 15px; transition: transform .2s; }
.tcard:hover .more svg { transform: translateX(3px); }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 1000px) {
  .subhero-grid { grid-template-columns: 1fr; gap: 40px; }
  .subhero-media { max-width: 540px; }
  .sub-grid { grid-template-columns: 1fr; gap: 44px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .aside { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: 1fr; }
  .trafik { grid-template-columns: 1fr; }
  .drop { display: none; }
}
