/* =========================================================
   BHT Breining – Stylesheet (Design „Klar & hell“)
   ✏️ Farben ganz oben bei :root zentral ändern.
   Schriften werden lokal aus /assets/fonts geladen (kein Google-Aufruf).
   ========================================================= */

/* ---------- Schriften ---------- */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/Barlow-Regular.woff2") format("woff2"), url("../fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/Barlow-Medium.woff2") format("woff2"), url("../fonts/Barlow-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"), url("../fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"), url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); }

/* ---------- Farben & Maße ---------- */
:root {
  --bg: #FFFFFF;
  --surface: #F4F4F2;      /* hellgraue Flächen */
  --surface-2: #EAEAE6;
  --ink: #161616;          /* Schwarz aus dem Flyer */
  --muted: #5B5B57;
  --line: #E3E3DE;
  --yellow: #F5B800;       /* Gelb aus dem Flyer – nur als Akzent */
  --yellow-hover: #E2A900;
  --yellow-soft: #FFF3C7;

  --font-cond: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", -apple-system, "Segoe UI", system-ui, sans-serif;

  --r-lg: 22px;   /* Bilder, große Flächen */
  --r-md: 14px;   /* kleinere Flächen */
  --r-pill: 999px;/* Buttons, Etiketten */

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --bar-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }

h1, h2, h3 { font-family: var(--font); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }

/* Barlow Condensed Bold: nur Schlagzeile, BAU/HAUS/TECHNIK, Schrittnummern, „Jetzt anfragen“ */
.cond { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: .92; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.25rem); font-weight: 500; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; border-radius: var(--r-md); }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.header__logo { flex: none; }
.header__logo img { width: 150px; }
.nav-desk, .btn.header__call { display: none; }
.header__right { display: flex; align-items: center; gap: 1rem; }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: var(--r-pill); background: var(--surface); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .burger { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu summary .burger::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu__list { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 15rem; margin: 0; padding: .5rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px rgba(22,22,22,.12); }
.menu__list a { display: block; padding: .75rem 1rem; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 1.1rem; }
.menu__list a:hover { background: var(--surface); }
.menu__list a[aria-current="page"] { background: var(--surface); font-weight: 600; }
.menu:not([open]) .menu__list { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.5rem; border-radius: var(--r-pill); border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 1.05rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Startseite: Kopfbereich ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 13vw, 6.6rem); margin-bottom: 1.25rem; max-width: 11ch; }
.hero .lead { margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: var(--r-pill); background: var(--surface); font-weight: 500; }
.chips li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--yellow); }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
.hero__areas { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__areas a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.hero__areas a::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.hero__areas a:hover { text-decoration: underline; }
.hero__areas span { color: var(--muted); }

/* ---------- Unterseiten: Seitenkopf ---------- */
.page-head { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }
.page { padding-bottom: clamp(3rem, 8vw, 6rem); }
.block { margin-top: clamp(3rem, 7vw, 5rem); }
.block:first-child { margin-top: 0; }

/* ---------- Leistungen ---------- */
.area { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border-radius: var(--r-lg); margin-bottom: 1.25rem; scroll-margin-top: 6rem; }
.area__name { font-size: clamp(2.6rem, 9vw, 3.4rem); margin: 0; }
.area__tag { color: var(--muted); font-weight: 500; margin: .5rem 0 0; }
.svc { background: #fff; border-radius: var(--r-md); }
.svc details { border-top: 1px solid var(--line); }
.svc details:first-child { border-top: 0; }
.svc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s ease; }
.svc details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.svc details p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--muted); max-width: 42rem; }
.svc details p a { color: var(--ink); font-weight: 600; }
.area__note { margin: 0; padding: .9rem 1.1rem; background: var(--yellow-soft); border-radius: var(--r-md); font-weight: 500; }

.b2b { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.75rem 3rem; grid-template-columns: minmax(0, 1fr); }
.b2b h2 { color: #fff; }
.b2b .lead { color: #CFCFCA; }
.b2b__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.b2b__list li { background: rgba(255,255,255,.07); border-radius: var(--r-md); padding: 1rem 1.15rem; color: #D9D9D4; }
.b2b__list strong { display: block; color: #fff; margin-bottom: .15rem; }
.b2b__list .hl { background: var(--yellow); color: var(--ink); }
.b2b__list .hl strong { color: var(--ink); }
.b2b .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.b2b .btn--ghost:hover { border-color: #fff; }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.steps li { background: var(--surface); border-radius: var(--r-lg); padding: 1.5rem; }
.steps .num { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--yellow); font-size: 2.2rem; line-height: 1; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); }

.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cta-line p { margin: 0; font-weight: 600; font-size: 1.15rem; }

/* ---------- Bilder-Platzhalter & Karten ---------- */
.cards { display: grid; gap: 2.25rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.card img, .pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); background: var(--surface); }
.card__body { padding: 1rem .25rem 0; }
.card h2, .card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.card__meta { color: var(--muted); font-weight: 500; font-size: .95rem; margin-bottom: .5rem; }
.card__body > p { color: var(--muted); }
.quote { margin: 1rem 0 0; padding: 1rem 1.15rem; background: var(--surface); border-radius: var(--r-md); }
.quote p { margin: 0 0 .35rem; font-weight: 500; color: var(--ink); }
.quote footer { font-size: .92rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pair figure { margin: 0; position: relative; }
.pair img { border-radius: var(--r-md); }
.tag { position: absolute; left: .6rem; top: .6rem; padding: .25rem .7rem; border-radius: var(--r-pill); background: #fff; font-size: .85rem; font-weight: 600; }
.tag--yellow { background: var(--yellow); }

/* Vermietung */
.rent { position: relative; display: flex; flex-direction: column; }
.rent .tag { left: .8rem; top: .8rem; background: var(--ink); color: #fff; }
.rent--out img { filter: grayscale(1); opacity: .55; }
.prices { margin: .5rem 0 .75rem; background: var(--surface); border-radius: var(--r-md); padding: .25rem 1rem; }
.prices div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.prices div:first-child { border-top: 0; }
.prices dt { margin: 0; }
.prices dd { margin: 0; font-weight: 600; white-space: nowrap; }
.deposit { color: var(--muted); font-size: .95rem; margin: 0; }
.terms { list-style: none; counter-reset: t; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.terms li { counter-increment: t; background: var(--surface); border-radius: var(--r-md); padding: 1.1rem 1.2rem 1.1rem 3.6rem; position: relative; }
.terms li::before { content: counter(t); position: absolute; left: 1.1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 600; font-size: .95rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.ccard { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: background-color .15s ease; }
.ccard:hover { background: var(--surface-2); }
.ccard__icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ccard__icon svg { width: 1.35rem; height: 1.35rem; }
.ccard__label { display: block; color: var(--muted); font-size: .95rem; font-weight: 500; }
.ccard__value { display: block; font-weight: 600; font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.2; word-break: break-word; }
.ccard--main { background: var(--yellow); }
.ccard--main:hover { background: var(--yellow-hover); }
.ccard--main .ccard__label { color: var(--ink); }
.info-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.info { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.info h2 { font-size: 1.3rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: .5rem 0 .5rem 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--yellow-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.hours div:first-child { border-top: 0; }
.hours dt { margin: 0; } .hours dd { margin: 0; font-weight: 600; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 46rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.legal address { font-style: normal; }
.ph { background: #FFE38A; padding: 0 .2em; border-radius: 4px; font-weight: 600; }
.draft-note { border: 2px dashed var(--ink); border-radius: var(--r-md); padding: 1rem 1.25rem; background: var(--yellow-soft); font-weight: 500; margin-bottom: 2rem; }

/* ---------- Fußzeile ---------- */
.footer { background: var(--surface); padding: 2.5rem 0 1.75rem; font-size: .97rem; margin-top: auto; }
.footer__top { display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.footer__logo img { width: 160px; }
.footer p { margin: .75rem 0 0; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer a { text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; color: var(--muted); font-size: .9rem; }

/* ---------- Kontaktleiste unten (Handy) ---------- */
.bar { position: fixed; left: .75rem; right: .75rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 3.4rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 1.05rem; box-shadow: 0 8px 24px rgba(22,22,22,.18); }
.bar a svg { width: 1.25rem; height: 1.25rem; }
.bar__call { background: var(--yellow); color: var(--ink); }
.bar__wa { background: var(--ink); color: #fff; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .terms { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .menu { display: none; }
  .header__inner { min-height: 5rem; }
  .header__logo img { width: 170px; }
  .nav-desk { display: block; }
  .nav-desk ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
  .nav-desk a { display: block; padding: .55rem .95rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; white-space: nowrap; }
  .nav-desk a:hover { background: var(--surface); }
  .nav-desk a[aria-current="page"] { background: var(--surface); font-weight: 600; }
  .btn.header__call { display: inline-flex; min-height: 2.9rem; padding: .55rem 1.2rem; }

  .hero { padding-bottom: 4rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .area { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2rem; }
  .area__note { grid-column: 2; }
  .b2b { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .b2b .btns { grid-column: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--refs { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
  .terms { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .nav-desk a { padding: .5rem .6rem; }
  .header__logo img { width: 140px; }
}
@media print { .bar, .header { display: none !important; } body { padding: 0; } }

/* Feinschliff */
@media (max-width: 639.98px) {
  .btns .btn { flex: 1 1 100%; }
  .hero__photo img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) {
  .contact-layout .info-grid { grid-template-columns: 1fr; margin-top: 0 !important; }
  .hours dd { white-space: nowrap; }
}

/* Startseite ohne Foto: eine Spalte, etwas mehr Höhe */
.hero__grid { grid-template-columns: minmax(0, 1fr) !important; }
.hero { padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 9vw, 7rem); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 36rem; }

/* Referenzen: Bild + Beschreibung, untereinander */
.refs { display: grid; gap: 3rem; max-width: 52rem; }
.ref-single .card__body p { color: var(--ink); font-size: 1.1rem; margin: 0; }

/* Leistungen als einfache Liste (ohne Aufklappen) */
ul.svc { list-style: none; margin: 0; padding: 0; }
ul.svc li { padding: 1rem 1.25rem 1rem 3rem; border-top: 1px solid var(--line); font-weight: 500; font-size: 1.08rem; line-height: 1.4; position: relative; }
ul.svc li:first-child { border-top: 0; }
ul.svc li::before { content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--yellow); }
ul.svc li a { font-weight: 600; }

/* Hinweis „im Aufbau“ */
.notice { background: var(--yellow-soft); border-radius: var(--r-md); padding: 1rem 1.25rem; margin-bottom: 2.5rem; max-width: 52rem; }
.notice p { margin: 0; }
.notice a { font-weight: 600; }

/* Referenzen mit Hochformat-Fotos */
.refgrid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.ref img { aspect-ratio: 3 / 4; }
.ref .pair img { aspect-ratio: 3 / 4; }
.ref .card__body > p { color: var(--muted); max-width: 40rem; }
@media (min-width: 640px) { .refgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .refgrid { grid-template-columns: repeat(3, 1fr); }
  .ref--pair { grid-column: span 2; }
  .ref--pair .card__body { max-width: 34rem; }
}

/* Referenzen mit mehreren Fotos: über die ganze Breite */
.pair--3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .ref--wide { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .ref--wide { grid-column: 1 / -1 !important; display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: end; }
  .ref--wide .pair--3 { grid-column: 1 / -1; }
  .ref--wide:has(.pair--3) { grid-template-columns: 1fr; }
  .ref--wide:has(.pair--3) .card__body { max-width: 46rem; }
  .ref--wide .card__body { padding-top: 0; }
}
@media (max-width: 639.98px) { .pair--3 { grid-template-columns: 1fr 1fr; } .pair--3 figure:last-child { grid-column: 1 / -1; } .pair--3 figure:last-child img { aspect-ratio: 4 / 3; } }
.tag { white-space: nowrap; }
