/* Energy Companies, Distributors en OEM in de stijl van de Pro/Ultra-pagina's (src/lib/doelgroeppaginas.mjs).
   Bouwt op 11-homepage.css (.hn) en 12-productpagina.css (pp-/pr-); hier alleen wat die pagina's extra nodig hebben. */

/* Kop: langere titels dan "SmartgridOne Pro", dus kleiner dan de productnaam */
.hn .pp-h1.dg-h1 { font-size: 56px !important; line-height: 60px !important; letter-spacing: -.035em !important; }

/* Beelden met een witte achtergrond (schema's, schermafbeeldingen, productfoto) niet op het grijze vlak */
.hn .hn-pic.dg-pic-wit { background: var(--hn-wit); border: 1px solid var(--hn-lijn); }
.pr-feat .hn-pic.dg-pic-wit img { object-fit: contain; padding: 16px; }

.hn .dg-noot { margin-top: 48px; max-width: 46em; }

/* Aggregeren: schermafbeelding links, de zes mogelijkheden rechts */
.dg-agg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.dg-agg > .hn-pic { grid-column: 1 / 7; position: sticky; top: 120px; }
.dg-agg > .hn-pic img { width: 100%; height: auto; }
.hn .dg-lijst { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.hn .dg-lijst h3 { font: 700 18px/24px var(--hn-kop); letter-spacing: -.01em; color: var(--hn-ink); margin: 0; }
.hn .dg-lijst p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--hn-muted); }

/* Alle assets, één platform */
.hn .dg-alles-pic { margin-top: 32px; aspect-ratio: 4 / 3; }
.dg-alles-pic img { width: 100%; height: 100%; object-fit: cover; }
.pp-ds.dg-tabel thead th { padding: 0 16px 12px 0; border: 0; font: 600 14px/20px var(--hn-tekst); color: var(--hn-muted); }
.pp-ds.dg-tabel tbody th { color: var(--hn-ink); font-weight: 600; }

/* Partnerblok (Distributors): vetgedrukte aanloop in de lijst */
.dg-pm-lijst strong { font-weight: 600; color: var(--hn-ink); }

/* OEM: zoekveld naast de kop */
.dg-zoek { position: relative; flex: 0 0 300px; display: block; }
.dg-zoek .hn-i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--hn-muted); pointer-events: none; }
.dg-zoek input { width: 100%; height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--hn-lijn); border-radius: 8px; font: 400 15px/20px var(--hn-tekst); color: var(--hn-ink); background: var(--hn-wit); transition: border-color .25s ease; }
.dg-zoek input:focus { outline: none; border-color: var(--hn-ink); }
.pr-tegels li[hidden] { display: none; }
.hn .dg-geen { margin-top: 24px; }

@media (max-width: 991px) {
  .hn .pp-h1.dg-h1 { font-size: 40px !important; line-height: 44px !important; }
  .dg-agg > .hn-pic, .hn .dg-lijst { grid-column: 1 / -1; }
  .dg-agg > .hn-pic { position: static; }
}
@media (max-width: 767px) {
  .hn .dg-lijst { grid-template-columns: 1fr; gap: 24px; }
  .hn .hn-kop:has(.dg-zoek) { flex-direction: column; align-items: stretch; }
  .dg-zoek { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) { .dg-zoek input { transition: none; } }

/* ---- /contact (src/lib/contactpagina.mjs) ---- */
.ct-knop { cursor: pointer; }
.ct-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ct-kaart { background: var(--hn-vlak); border-radius: 12px; padding: 40px; }
.hn .ct-kaart h2 { display: flex; align-items: center; gap: 12px; font: 700 32px/38px var(--hn-kop) !important; letter-spacing: -.02em; color: var(--hn-ink); margin: 0; }
.ct-kaart h2 .hn-i { width: 26px; height: 26px; color: var(--hn-web); }
.hn .ct-uitleg { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--hn-muted); }
.hn .ct-tel { display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; margin-top: 24px; font-size: 15px; line-height: 24px; }
.ct-tel dt, .ct-tel dd { padding: 10px 0; border-top: 1px solid var(--hn-lijn); margin: 0; }
.ct-tel dt { color: var(--hn-muted); }
.ct-tel dd a { color: var(--hn-ink); text-decoration: none; }
.ct-tel dd a:hover { color: var(--hn-rood); text-decoration: underline; text-underline-offset: 3px; }
.ct-tel dt.is-eigen-land { color: var(--hn-ink); }
.hn .ct-mail { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; }
.ct-mail .hn-i { width: 18px; height: 18px; color: var(--hn-web); }
.ct-mail a { color: var(--hn-ink); font-weight: 600; }
.ct-acts { margin-top: 28px; }
.hn .ct-stappen { margin-top: 24px; display: grid; gap: 0; counter-reset: none; }
.hn .ct-stappen > li { padding: 20px 0; border-top: 1px solid var(--hn-lijn); }
.hn .ct-stappen h3 { font: 700 18px/24px var(--hn-kop) !important; letter-spacing: -.01em !important; color: var(--hn-ink); margin: 0 !important; }
.hn .ct-stappen p { margin: 6px 0 12px; font-size: 15px; line-height: 22px; color: var(--hn-muted); }
.hn .ct-stappen .ct-tel { margin-top: 4px; }
.hn .ct-kantoren { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hn .ct-kantoren > li { background: var(--hn-vlak); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.hn .ct-kantoren h3 { font: 700 22px/28px var(--hn-kop); color: var(--hn-ink); margin: 0; }
.hn .ct-kantoren address { font-style: normal; font-size: 15px; line-height: 22px; color: var(--hn-muted); }
.ct-k-tel { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--hn-ink); font-size: 15px; text-decoration: none; }
.ct-k-tel .hn-i { width: 16px; height: 16px; color: var(--hn-web); }
.ct-k-tel:hover { color: var(--hn-rood); }
.hn .ct-kantoren > li.is-eigen-land { background: var(--hn-wit); box-shadow: inset 0 0 0 1.5px var(--hn-ink); }
.hn .ct-over-pic { aspect-ratio: 935 / 601; }
.ct-over-pic img { width: 100%; height: 100%; object-fit: cover; }
.hn .ct-over-p { margin-top: 16px; }
@media (max-width: 991px) {
  .ct-duo { grid-template-columns: 1fr; }
  .hn .ct-kantoren { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ct-kaart { padding: 24px; }
  .hn .ct-kaart h2 { font-size: 26px !important; line-height: 32px !important; }
  .hn .ct-kantoren { grid-template-columns: 1fr; }
}

/* ---- /login: beeld van de app en het portaal per kaart (src/lib/login-beelden.mjs) ---- */
.login-card .lg-beeld { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #f7f4f4; margin-bottom: 24px; }
.login-card .lg-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-card .lg-beeld.is-portaal { background: #fff; border: 1px solid #e6e2e2; }
.login-card .lg-beeld.is-portaal img { object-fit: contain; padding: 12px; }
/* Laatste blok niet tegen de footer: dezelfde ruimte als tussen de secties */
.pp-x.ct-x { padding-bottom: 120px; }
@media (max-width: 767px) { .pp-x.ct-x { padding-bottom: 72px; } }
