/* Homepage (index.php): providerkaarten, volledige Sim Only-vergelijker, December Deals-campagne en compactere mobiele hero.
   Aanvullingen op homepage.css / home-2028.css; kleuren en maten uit tokens.css. */

/* ---------- Sectiekop ---------- */
.pd-home .pd-sub, .sc-band .pd-sub { margin: -6px 0 var(--sp-5); color: var(--muted); max-width: 900px; }
.pd-di-lead { margin: -4px 0 10px; font-size: 13.5px; }

/* ---------- Providerkaarten: vaste zones, alle kaarten even groot ---------- */
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; } /* geen grid-auto-rows: 1fr: een rij is zo hoog als zijn eigen inhoud */
.pd-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e3eaf5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(11, 31, 66, .04), 0 8px 22px rgba(11, 31, 66, .06); transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease; }
.pd-card:hover { border-color: #c5d6f3; box-shadow: 0 2px 4px rgba(11, 31, 66, .05), 0 16px 34px rgba(11, 31, 66, .11); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .pd-card, .pd-card .pd-card-cta { transition: none; } .pd-card:hover { transform: none; } }
/* Logozone (referentie: groot logo op een licht vlak, dunne lijn eronder) */
.pd-card-media { display: grid; place-items: center; height: 84px; padding: 0 20px; border-bottom: 1px solid #edf1f8; background: linear-gradient(180deg, #fff 0%, #f5f8fe 100%); text-decoration: none; }
.pd-card-logo { display: flex; align-items: center; justify-content: center; height: 44px; max-width: 100%; }
.pd-card-logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.pd-card-body { display: flex; flex: 1; flex-direction: column; padding: 12px 18px 14px; }
.pd-card-provider { margin: 0 !important; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-card-bundle { margin: 2px 0 0 !important; font-family: var(--font-heading); font-size: 1.625rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pd-card-bundle a { color: var(--navy); text-decoration: none; }
.pd-card-bundle a:hover { color: var(--blue); }
.pd-card-specs { min-height: 2.8em; margin: 3px 0 0 !important; padding-bottom: 9px; border-bottom: 1px solid #e9eef6; font-size: 14px; line-height: 1.4; color: var(--ink); }
.pd-card-price { margin: 9px 0 0; }
.pd-card-price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 !important; }
.pd-card-price-main strong { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-card-price-main span { font-size: 14px; font-weight: 700; color: #3a4a66; white-space: nowrap; }
.pd-card-price-note { margin: 5px 0 0 !important; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pd-card-flagrow { min-height: 22px; margin: 3px 0 0 !important; }
.pd-card-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fdebd8; color: #b4470c; font-size: 12px; font-weight: 800; }
.pd-card-rows { display: grid; gap: 6px; margin: 6px 0 0; padding: 9px 0 10px; border-top: 1px solid #e9eef6; border-bottom: 1px solid #e9eef6; font-size: 13.5px; }
.pd-card-rows div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pd-card-rows dt { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.pd-card-rows dt .icon { flex: none; color: #6a7b97; }
.pd-card-rows dd { margin: 0; font-weight: 800; color: var(--navy); text-align: right; white-space: nowrap; }
.pd-card-checks { display: grid; align-content: start; gap: 5px; min-height: 4.9em; margin: 10px 0 14px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink); }
.pd-card-checks li { display: flex; align-items: center; gap: 9px; }
.pd-card-checks .icon { flex: none; color: #16a34a; stroke-width: 3; }
.pd-card .pd-card-cta { margin-top: auto; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 800; letter-spacing: .005em; box-shadow: 0 3px 10px rgba(244, 87, 15, .22); transition: box-shadow .2s ease, filter .2s ease; }
.pd-card .pd-card-cta:hover { filter: brightness(1.04); box-shadow: 0 6px 16px rgba(244, 87, 15, .28); }
.pd-card-src { margin-top: 8px !important; font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Statusblok: providers zonder geldig aanbod, vult de laatste rij van het raster */
/* Bij één kolom de toelichting tonen: het blok is even hoog als de kaarten ernaast. */

/* ---------- Volledige vergelijker ---------- */
.sc2-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sc2-tools label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.sc2-tools select { min-width: 150px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: 500 14px var(--font); color: var(--ink); }
.sc2-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.sc2-tools .sc2-check { flex-direction: row; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-full); font-weight: 600; }
.sc2-count { margin-left: auto !important; font-size: 13px; color: var(--muted); align-self: center; }
.sc2-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.sc2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc2-table th { padding: 12px 14px; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.sc2-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.sc2-table tbody tr:hover { background: #fafcff; }
.sc2-table small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.sc2-prov { width: 150px; }
.sc2-logo { display: inline-flex; align-items: center; height: 28px; }
.sc2-logo img { height: 24px; width: auto; max-width: 110px; object-fit: contain; }
.sc2-logo.is-onbrand { padding: 0 8px; border-radius: 6px; background: #791c59; }
.sc2-logo.is-onbrand img { height: 18px; }
.sc2-bundle a { color: var(--navy); text-decoration: none; font-size: 16px; }
.sc2-month strong, .sc2-avg strong { font-size: 15px; color: var(--navy); white-space: nowrap; }
.sc2-cta { width: 1%; white-space: nowrap; text-align: right; }
.sc2-more { margin-top: 14px !important; text-align: center; }

/* ---------- December Deals 2026 ---------- */
.dd-wrap { margin-top: var(--sp-7); }
.dd { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; overflow: hidden; min-height: 340px; padding: 40px 48px;
    border-radius: var(--radius-xl); color: #fff;
    background:
        radial-gradient(420px 260px at 78% 40%, rgba(124, 182, 255, .30), rgba(124, 182, 255, 0) 70%),
        radial-gradient(520px 320px at 0% 100%, rgba(47, 107, 255, .45), rgba(47, 107, 255, 0) 70%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-2) 55%, #1a4fd6 100%);
    box-shadow: var(--shadow-deep); }
/* Subtiele winter: een paar zachte lichtpuntjes en een ijsrand, geen kerstdecoratie. */
.dd::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.5px), radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1.5px);
    background-size: 110px 110px, 67px 67px; background-position: 17px 23px, 43px 7px;
    -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .15)); mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .15)); }
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(210, 232, 255, .9), rgba(255, 255, 255, 0)); }
.dd-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dd-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; color: #dbe7ff; }
.dd-kicker span { font-weight: 800; color: var(--gold-light); }
.dd-kicker .icon { color: var(--gold-light); }
.dd-title { font-family: var(--font-heading); font-size: var(--fs-campaign); font-weight: 800; letter-spacing: var(--ls-display); line-height: 1.02; color: #fff; text-transform: uppercase; }
.dd-title span { background: linear-gradient(180deg, #fff3c4, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dd-lead { max-width: 520px; font-size: var(--fs-lead); color: #d6e4ff; }
.dd-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dd-stats li { display: flex; flex-direction: column; min-width: 120px; padding: 10px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.dd-stats strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.dd-stats span { font-size: 12.5px; color: #c4d5f5; }
.dd-cta { box-shadow: 0 14px 30px rgba(244, 87, 15, .35); }
.dd-note { font-size: 12.5px; color: #a9bde3; }
.dd-visual { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; height: 300px; }
.dd-phone { position: relative; width: 44%; height: auto; max-height: 270px; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .45)); }
.dd-phone-1 { margin-right: -12%; transform: rotate(-6deg) translateY(10px); }
.dd-phone-2 { z-index: 2; width: 50%; max-height: 300px; }
.dd-phone-3 { margin-left: -12%; transform: rotate(6deg) translateY(10px); }

/* Eén pijl: de knop heeft al een pijl-icoon; design-2028.css voegt er anders nog een tekstpijl aan toe (bestaande dubbele pijl). */
.sim-deal-card .btn-deal:has(svg)::after { content: none; }

/* ---------- Responsief ---------- */
@media (max-width: 1100px) {
    .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sc2-avg, .sc2-table th:nth-child(5) { display: none; }
    .dd { grid-template-columns: 1fr; padding: 32px; }
    .dd-visual { height: 220px; }
}
@media (max-width: 860px) {
    /* Vergelijker als kaarten: elke rij een blok met label per waarde. */
    .sc2-table thead { display: none; }
    .sc2-table, .sc2-table tbody { display: block; }
    .sc2-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 14px; border-top: 1px solid var(--line); }
    .sc2-table tr[hidden] { display: none; }
    .sc2-table td { display: block; padding: 0; border: 0; }
    .sc2-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .sc2-prov, .sc2-cta { grid-column: 1 / -1; width: auto; text-align: left; }
    .sc2-prov::before { display: none !important; }
    .sc2-prov small { display: inline; margin-left: 8px; }
    .sc2-cta .btn { width: 100%; }
    .sc2-avg { display: block !important; }
    .sc2-tools select { min-width: 0; width: 100%; }
    .sc2-tools label { flex: 1 1 calc(50% - 14px); }
    .sc2-count { margin-left: 0 !important; }
}
@media (max-width: 760px) {
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-auto-rows: auto; }
    .pd-card-media { height: 76px; padding: 0 12px; }
    .pd-card-logo img { height: 30px; max-width: 120px; }
    .pd-card-body { padding: 12px 12px 12px; }
    .pd-card-bundle { font-size: 1.375rem; }
    .pd-card-specs { min-height: 4.2em; font-size: 12.5px; }
    .pd-card-price-main { flex-direction: column; gap: 2px; }
    .pd-card-price-main strong { font-size: 1.75rem; }
    .pd-card-price-main span { font-size: 13px; }
    .pd-card-price-note { min-height: 4em; font-size: 11.5px; }
    .pd-card-rows { font-size: 12px; gap: 5px; }
    .pd-card-rows div { flex-direction: column; align-items: flex-start; gap: 0; }
    .pd-card-rows dt .icon { display: none; }
    .pd-card-rows dd { text-align: left; }
    .pd-card-checks { font-size: 12px; min-height: 0; }
    .pd-card .pd-card-cta { font-size: 14px; }
    .dd { padding: 24px 20px; border-radius: var(--radius-lg); }
    .dd-visual { height: 170px; }
    .dd-stats li { min-width: 0; flex: 1 1 calc(50% - 10px); }
    /* Compactere hero (overgenomen uit V3): USP's staan al in de topbalk; kleinere toestelfoto's; de drie snelkoppelingen
       herhalen de tabs van de zoekcockpit. */
    .hero-flag .hf-usps { display: none; }
    .hero-flag .hf-stage { max-width: 320px; }
    .hero-flag .hf-grid { gap: 14px; }
    .home-entries { display: none; }
}
@media (max-width: 359px) {
    .pd-grid { grid-template-columns: 1fr; }
}

/* ---------- Toestellen: raster van gelijke kaarten (geen horizontale scroll op desktop) ---------- */
.ph-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.ph-grid > .deal-card { height: 100%; min-width: 0; display: flex; flex-direction: column; }
.ph-grid > .deal-card .card-media { aspect-ratio: 1 / 1; height: auto; }
.ph-grid > .deal-card .card-media img { width: 100%; height: 100%; object-fit: contain; }
.ph-grid > .deal-card .card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ph-grid > .deal-card > .btn { margin-top: auto; }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ph-grid > :nth-child(n+9) { display: none; } }
@media (max-width: 860px) { .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ph-grid > :nth-child(n+7) { display: none; } }
@media (max-width: 560px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ph-grid > :nth-child(n+7) { display: none; } }

/* ---------- Ontdek BELREUS.NL: vier blokken, 2 x 2 (breed genoeg voor dealnamen) ---------- */
.hub-4 .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .hub-4 .hub-grid { grid-template-columns: minmax(0, 1fr); } }
/* Prijsvergelijking: 'Voeg toe' als gewone knopvorm in plaats van een stippelvak. */
.tri-grid .glance-add a { border: 1px solid var(--line-blue); background: var(--tint-blue); }

/* ---------- Smartphonekaarten (Golden: grote productfoto op een lichte tegel, zachte schaduw) ---------- */
.ph-grid > .deal-card, .band .deal-grid > .deal-card { border-radius: 18px; border-color: #e3eaf5; box-shadow: 0 2px 4px rgba(11, 31, 66, .04), 0 14px 32px rgba(26, 98, 242, .08); transition: box-shadow .2s, transform .2s; }
.ph-grid > .deal-card:hover, .band .deal-grid > .deal-card:hover { box-shadow: 0 2px 4px rgba(11, 31, 66, .05), 0 22px 44px rgba(26, 98, 242, .16); transform: translateY(-3px); }
.ph-grid > .deal-card .card-media, .band .deal-grid > .deal-card .card-media { display: grid; place-items: center; aspect-ratio: 1 / 1; height: auto; padding: 8%; border-radius: 14px;
    background: radial-gradient(110% 85% at 50% 10%, #ffffff 0%, #eef4ff 55%, #dfe9fb 100%); }
.ph-grid > .deal-card .card-media img, .band .deal-grid > .deal-card .card-media img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(11, 31, 66, .22)); }
.ph-grid .card-title, .band .deal-grid .card-title { font-size: 1.0625rem; }

/* Statusblok: onderaan een echte ingang naar de volledige vergelijker, zodat het blok gevuld is (geen lege ruimte). */
/* Smartphonekaarten: prijsblok en knop altijd onderaan, ook als een toestel geen specregel heeft. */
.ph-grid > .deal-card .bc-price, .ph-grid > .deal-card .card-specs + .bc-price { margin-top: auto; }
.ph-grid > .deal-card > .btn { margin-top: 10px; }
.ph-grid > .deal-card .bc-price { min-height: 92px; }

.sc2-dir { align-self: flex-end; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tint); color: var(--navy); font: 700 13px var(--font); cursor: pointer; }
.sc2-dir:hover { border-color: var(--blue); }


/* ---------- Na de homepageherstel (02-12-2026): alleen regels voor /deals/ en /sim-only.php (verkoopkaart) en Next-Gen ----------
 * De homepage gebruikt weer de oorspronkelijke kaart (pd_offer_card_legacy); onderstaande regels raken die niet. */
.pd-card--sale.pd-card--promo .pd-card-price-main strong { color: #f4570f; }
.sc2-period { margin: 5px 0 0 !important; font-size: 14px; font-weight: 800; line-height: 1.3; color: #0f7a3a; }
.pd-card--sale:not(.pd-card--promo) .sc2-period { color: #3a4a66; font-weight: 700; }
.sc2-after { min-height: 1.35em; margin: 2px 0 0 !important; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.sc2-until { display: inline-flex; align-items: center; margin-left: 6px; font-size: 12px; font-weight: 700; color: #b4440c; white-space: nowrap; }
.sc2-avg { min-height: 2.7em; margin: 7px 0 0 !important; font-size: 12px; line-height: 1.35; color: var(--muted); }
.pd-card--sale .pd-card-checks { min-height: 3.3em; margin-top: 6px; }
.sc2-details { display: block; min-height: 1.4em; margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--navy); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
a.sc2-details:hover { color: #f4570f; }
.pd-card--sale .sc2-details:last-child { margin-bottom: 26px; }
.pd-sim { margin-top: 8px; }
.sim-all-h { margin: 0 0 14px; font-size: 1.5rem; }
@media (max-width: 767px) {
    .pd-card--sale .sc2-period, .pd-card--sale .sc2-after { font-size: 13px; }
    .pd-card--sale .sc2-avg { min-height: 0; font-size: 11.5px; }
    .pd-card--sale .pd-card-checks { min-height: 0; }
    .pd-card--sale .sc2-details:last-child { margin-bottom: 22px; }
    .ds3 .pd-sel .pd-sel-chips, .pd-sim .pd-sel .pd-sel-chips { flex-wrap: wrap; overflow-x: visible; }
}
/* Next-Gen Smartphones op de homepage: bestaande toestelkaart (catalog-card) met een beschikbaarheidsregel in plaats van een prijs. */
.ng-lead { margin: 0 0 14px !important; max-width: 760px; color: var(--muted); }
.ng-avail { display: flex; align-items: center; gap: 6px; margin: 8px 0 12px !important; font-size: 13px; font-weight: 700; color: #0f7a3a; }
