/* ==========================================================================
   MeisterMatch – design system & components
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* MeisterMatch brand – ocean blue & navy (Phase 5). Use these tokens, never raw values. */
  --brand: #286f9e;        /* primary blue: icons, accents, active states */
  --brand-600: #2475a8;    /* button blue */
  --brand-700: #195b86;    /* hover/pressed, blue text and links on light backgrounds */
  --navy: #17354d;         /* deep navy: strong sections, CTA bands, tiles */
  --navy-900: #102a40;     /* dark navy: footer, admin sidebar */
  --sky: #8ec5ec;          /* restrained light-blue accent – on navy only */
  --on-navy: #dce8f2;      /* body text on navy */
  --on-navy-muted: #a9c1d6;
  --ink: #1b2d3c;          /* headings (blue charcoal) */
  --ink-2: #2f4253;        /* body text */
  --muted: #5b6b79;        /* secondary text */
  --muted-2: #5f707e;      /* placeholders, upcoming steps */
  --ice: #ebf4fa;          /* light ice blue surfaces */
  --ice-2: #d9e9f5;
  --ice-3: #bcd6ea;
  --surface: #f5f8fb;      /* cool gray background */
  --surface-2: #e8eef4;
  --line: #e6edf3;         /* hairlines in tables */
  --border: #d8e4ed;
  --border-2: #c2d3e1;
  --white: #fff;
  --focus: #2475a8;
  /* semantic colours keep their meaning */
  --success: #17703f;  --success-bg: #e4f4ea;
  --warning: #8a5300;  --warning-bg: #fff4d6;
  --danger: #b42318;   --danger-bg: #fdecea;
  --star: #f2a900;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 64, .06), 0 1px 3px rgba(16, 42, 64, .06);
  --shadow: 0 10px 26px -12px rgba(16, 42, 64, .22), 0 2px 6px rgba(16, 42, 64, .05);
  --shadow-lg: 0 26px 60px -26px rgba(16, 42, 64, .34);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}


/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink-2);
  background: var(--white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ice-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.center { text-align: center; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 1.75rem; } .mt-lg { margin-top: 2.5rem; }
.muted { color: var(--muted); }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: -0.2em; }
.icon--xs { width: 15px; height: 15px; }
.icon--sm { width: 19px; height: 19px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand-600); --fg: #fff; --bd: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 10px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --bg: var(--brand-700); --bd: var(--brand-700); box-shadow: 0 8px 20px -10px rgba(36, 117, 168, .7); }
.btn--soft { --bg: var(--ice); --fg: var(--brand-700); --bd: var(--ice); }
.btn--soft:hover { --bg: var(--ice-2); --bd: var(--ice-2); }
.btn--outline { --bg: transparent; --fg: var(--brand-700); --bd: var(--brand); }
.btn--outline:hover { --bg: var(--ice); }
.btn--ghost { --bg: transparent; --fg: var(--brand-700); --bd: transparent; }
.btn--ghost:hover { --bg: var(--ice); }
.btn--accent { --bg: var(--brand-600); --fg: #fff; --bd: var(--brand-600); }
.btn--accent:hover { --bg: var(--brand-700); --bd: var(--brand-700); }
.btn--white { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .93rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand-700); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon, a:hover > .link-arrow .icon { transform: translateX(3px); }
.link-arrow--light { color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow { margin: 0 0 .6rem; color: var(--brand); font-weight: 700; font-size: .9rem; letter-spacing: .01em; }
.eyebrow--pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 99px; background: var(--white); border: 1px solid var(--border); color: var(--navy); font-size: .82rem; }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 760px; position: relative; }
.section-head .section-title { margin: 0; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-lead { margin: .6rem 0 0; color: var(--muted); font-size: 1.06rem; }
@media (min-width: 900px) {
  .section-head:has(.section-head__link) { max-width: none; grid-template-columns: minmax(0, 760px) 1fr; }
  .section-head__link { grid-column: 2; grid-row: 1 / span 3; align-self: end; justify-self: end; }
}
.section-head__link { margin-top: .5rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--soft { background: var(--surface); }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: var(--sky); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Badges & tags ---------- */
.badge { display: inline-block; padding: .14rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 700; line-height: 1.5; background: var(--ice); color: var(--brand-700); letter-spacing: .01em; }
.badge--news { background: var(--sky); color: var(--navy-900); }
.badge--preisratgeber { background: var(--navy); color: #fff; }
.badge--ratgeber { background: var(--brand-700); color: #fff; }
.badge--checkliste { background: var(--ice-2); color: var(--navy); }
.sample-tag { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 6px; background: #fff4c2; color: #6b5300; border: 1px dashed #d9b800; font-size: .72rem; font-weight: 700; margin-left: .35rem; vertical-align: middle; }
.verified-tag { display: inline-flex; align-items: center; gap: .25rem; color: var(--brand-700); font-weight: 700; font-size: .78rem; }
.notice { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--ice); color: var(--navy); font-size: .93rem; margin-bottom: 1.5rem; }
.notice--sample { background: #fffbe6; color: #5e4a00; border: 1px dashed #e0c200; }
.notice--warn { background: #fff3f1; color: #7a1f17; }
.notice .icon { margin-top: .15rem; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.menu-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: none; border: 0; color: var(--ink); font-size: .8rem; font-weight: 700; }
.menu-toggle__icon { display: grid; gap: 4px; width: 22px; }
.menu-toggle__icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Official logo images; width follows from the width/height attributes (no layout shift) */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; line-height: 0; }
.logo__img { display: block; width: auto; max-width: 100%; height: 34px; }
.logo--footer .logo__img { height: 56px; }
.logo--header .logo__img { height: 22px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 700; text-decoration: none; padding: .4rem .5rem; }
.header-phone:hover { color: var(--brand); }

.catnav { border-top: 1px solid var(--border); background: #fff; }
.catnav__inner { position: relative; }
.catnav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .35rem 0 .3rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__item { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 84px; padding: .4rem .55rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .78rem; font-weight: 600; white-space: nowrap; transition: background-color .2s, color .2s; }
.catnav__icon { width: 24px; height: 24px; color: var(--ink); stroke-width: 1.5; }
.catnav__item:hover, .catnav__item.is-active { background: var(--ice); color: var(--brand-700); }
.catnav__item:hover .catnav__icon, .catnav__item.is-active .catnav__icon { color: var(--brand); }
.catnav__arrow { position: absolute; top: 50%; right: calc(var(--gutter) - 6px); transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: -18px 0 18px 6px #fff; }
.catnav__arrow--prev { right: auto; left: calc(var(--gutter) - 6px); box-shadow: 18px 0 18px 6px #fff; }
.catnav__arrow:hover { background: var(--ice); }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; animation: megaIn .25s var(--ease); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.05fr; gap: 2rem; padding-block: 2rem 2.25rem; }
.mega__heading { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--navy); font-size: .95rem; margin-bottom: .85rem; }
.mega__heading--spaced { margin-top: 1.4rem; }
.mega__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .75rem; }
.mega__cats a, .mega__links a { display: flex; align-items: center; gap: .55rem; padding: .42rem .5rem; margin-inline: -.5rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .94rem; }
.mega__cats a .icon { color: var(--brand); }
.mega__cats a:hover, .mega__links a:hover { background: var(--ice); color: var(--brand-700); }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 700; text-decoration: none; }
.mega__feature { border-radius: var(--radius); overflow: hidden; background: var(--ice); align-self: start; }
.mega__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.mega__feature-body { padding: 1.1rem 1.2rem 1.3rem; font-size: .92rem; }
.mega__feature-title { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: .25rem; }
.mega__phone { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 1rem; padding-bottom: .25rem; font-size: .86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Search component ---------- */
.search { position: relative; display: grid; grid-template-columns: 1.3fr 1.15fr auto; align-items: stretch; background: #fff; border: 1.5px solid var(--border-2); border-radius: 14px; padding: 5px; box-shadow: var(--shadow); max-width: 680px; }
.search__field { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .65rem; align-items: center; padding: .45rem .9rem; border-radius: 10px; }
.search__field--plz { border-left: 1px solid var(--border); border-radius: 0; }
.search__field:focus-within { background: var(--surface); }
.search__icon { grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--ink); }
.search label { font-size: .76rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.search input[type="text"] { border: 0; outline: 0; background: transparent; padding: 0; font-size: 1rem; color: var(--ink); width: 100%; min-width: 0; }
.search input::placeholder { color: var(--muted-2); }
.search__submit { border-radius: 10px; min-height: 58px; padding-inline: 1.3rem; }
.search__field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search__suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; list-style: none; margin: 0; padding: .35rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; }
.search__suggest li { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.search__suggest li .icon { color: var(--brand); }
.search__suggest li:hover, .search__suggest li.is-active { background: var(--ice); color: var(--brand-700); }
.search__error { grid-column: 1 / -1; margin: .4rem .6rem .1rem; color: var(--danger); font-size: .88rem; font-weight: 600; }
.search--band { max-width: 760px; border-color: #fff; }

/* ---------- Trust bar ---------- */
.trustbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; list-style: none; margin: 1.4rem 0 0; padding: 0; font-weight: 600; color: var(--ink-2); font-size: .93rem; }
.trustbar li { display: inline-flex; align-items: center; gap: .4rem; }
.trustbar .icon { color: var(--brand); }
.trustbar__rating { gap: .6rem !important; padding-right: 1.4rem; border-right: 1px solid var(--border-2); }
.trustbar__rating strong { color: var(--ink); }
.trustbar--compact { font-size: .86rem; gap: .4rem 1rem; }
.stars { --size: 18px; position: relative; display: inline-block; line-height: 0; }
.stars svg { width: var(--size); height: var(--size); }
.stars__base, .stars__fill { display: flex; gap: 2px; }
.stars__base svg { fill: #d3dee8; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.stars__fill svg { fill: var(--star); flex: none; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { margin: 1rem 0 1rem; max-width: 19ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 2.95rem); }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; margin-bottom: 1.75rem; }
.hero__media { position: relative; }
.hero__frame { position: relative; border-radius: 28px 28px 28px 120px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem .7rem .75rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: .86rem; line-height: 1.25; animation: floatIn .7s var(--ease) both .3s; }
.hero__card strong { display: block; color: var(--ink); font-size: .95rem; }
.hero__card small { color: var(--muted); }
.hero__card--top { top: 7%; left: -6%; }
.hero__card--bottom { bottom: 9%; right: -4%; animation-delay: .5s; }
.hero__card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ice); color: var(--brand); }
.hero__card-icon--accent { background: var(--navy); color: #fff; }
@keyframes floatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 1rem 0 0; }
.step { position: relative; background: var(--ice); border-radius: var(--radius); padding: 2.6rem 1.5rem 2rem; text-align: center; }
.step__pill { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--ice-3); color: var(--navy); font-weight: 800; font-size: .88rem; padding: .25rem .7rem; border-radius: 7px; white-space: nowrap; }
.step__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--navy); }
.step__icon .icon { width: 52px; height: 52px; stroke-width: 1.3; }
.step__title { font-size: 1.2rem; margin-bottom: .4rem; }
.step__text { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why__media { position: relative; padding: 14px 0 0 14px; }
.why__accent { position: absolute; top: 0; left: 0; width: 58%; height: 52%; background: transparent; border-radius: 4px; }
.why__img { position: relative; width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 6px 6px 140px 6px; }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.checklist__icon { color: #fff; fill: var(--brand); stroke: #fff; width: 24px; height: 24px; margin-top: .1rem; }
.checklist h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.checklist p { margin: 0; }

/* ---------- Category cards ---------- */
.cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink-2); }
.cat-card__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body { position: relative; display: grid; gap: .3rem; padding: 1.4rem 1.2rem 1.2rem; flex: 1; }
.cat-card__icon { position: absolute; top: -22px; left: 1.1rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.cat-card__title { font-weight: 750; font-size: 1.12rem; color: var(--ink); margin-top: .35rem; }
.cat-card__text { font-size: .9rem; color: var(--muted); padding-right: 2.2rem; }
.cat-card__arrow { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ice); color: var(--brand); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.cat-card:hover .cat-card__arrow { background: var(--brand); color: #fff; transform: translateX(3px); }

/* ---------- Trust / reviews ---------- */
.trust__head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 2.2rem; }
.trust__head--single { grid-template-columns: minmax(0, 1fr); }
.trust__head .section-title { max-width: 22ch; margin: 0; }
.trust__intro .section-lead { max-width: 60ch; }
.trust__points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 1.1rem 0 0; padding: 0; font-weight: 650; font-size: .93rem; color: var(--ink); }
.trust__points li { display: inline-flex; align-items: center; gap: .4rem; }
.trust__points .icon { color: var(--brand); }
.rating-box { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; box-shadow: var(--shadow-lg); }
.rating-box__label { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); }
.rating-box__value { font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: .5rem; letter-spacing: -.03em; }
.rating-box__value span { font-size: 1rem; font-weight: 600; color: var(--on-navy-muted); letter-spacing: 0; }
.rating-box__source { font-size: .82rem; margin: .6rem 0 0; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: .8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.review-card__title { font-weight: 750; color: var(--ink); margin: 0; }
.review-card__text { margin: 0; color: var(--ink-2); font-size: .97rem; flex: 1; }
.review-card__meta { display: grid; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: .8rem; }
.review-card__meta strong { color: var(--ink); }
.promise { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.promise__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ice); color: var(--brand); margin-bottom: 1rem; }
.promise h3 { font-size: 1.05rem; }
.promise p { margin: 0; font-size: .93rem; }

/* ---------- Project cards ---------- */
.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.project-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__kind { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .94); color: var(--navy); font-weight: 700; font-size: .76rem; padding: .25rem .6rem; border-radius: 6px; }
.project-card__kind.is-real { background: var(--brand); color: #fff; }
.project-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.3rem 1.4rem; flex: 1; }
.project-card__cat { margin: 0; font-size: .82rem; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: .3rem; }
.project-card__title { margin: 0; font-size: 1.15rem; }
.project-card__title a { color: inherit; text-decoration: none; }
.project-card__title a:hover { color: var(--brand); }
.project-card__text { margin: 0; font-size: .93rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; list-style: none; margin: .3rem 0 .4rem; padding: .8rem 0 0; border-top: 1px solid var(--border); }
.project-card__facts li { display: grid; font-size: .8rem; color: var(--muted); }
.project-card__facts strong { color: var(--ink); font-size: .9rem; }
.project-card .link-arrow { margin-top: auto; }

/* ---------- Cost cards ---------- */
.cost-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cost-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.cost-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.cost-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cost-card:hover .cost-card__media img { transform: scale(1.05); }
.cost-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.2rem 1.3rem; flex: 1; }
.cost-card__title { font-weight: 750; color: var(--ink); font-size: 1.06rem; }
.cost-card__range { display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; background: var(--navy); color: #fff; font-weight: 750; font-size: .82rem; padding: .2rem .55rem; border-radius: 6px; }
.cost-card__text { font-size: .9rem; color: var(--muted); flex: 1; }
.cost-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding: 1.3rem 1.6rem; background: #fff; border-radius: var(--radius); }
.cost-cta p { margin: 0; }

/* ---------- Energy ---------- */
.energy { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(16px, 2.5vw, 28px); }
.energy__feature { position: relative; display: block; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #fff; }
.energy__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.energy__feature:hover img { transform: scale(1.04); }
.energy__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 30, 46, 0) 30%, rgba(12, 30, 46, .88) 100%); }
.energy__feature-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: .5rem; padding: 2rem; }
.energy__title { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 800; line-height: 1.2; }
.energy__text { color: var(--on-navy); max-width: 48ch; }
.energy__tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.energy__feature .energy__tag { color: var(--sky); }
.energy__list { display: grid; gap: 12px; }
.energy__item { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; padding: .7rem; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--ink-2); transition: background-color .25s, border-color .25s; }
.energy__item:hover { background: var(--ice); border-color: var(--ice-2); color: var(--ink-2); }
.energy__thumb { aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.energy__thumb img { width: 100%; height: 100%; object-fit: cover; }
.energy__item-title { display: block; font-weight: 750; color: var(--ink); margin: .1rem 0; }
.energy__item-text { display: block; font-size: .88rem; color: var(--muted); }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 18px) / 4)); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.insp-card { position: relative; scroll-snap-align: start; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.insp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.insp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78)); }
.insp-card:hover img { transform: scale(1.06); }
.insp-card__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; display: grid; gap: .15rem; }
.insp-card__title { font-weight: 800; font-size: 1.15rem; }
.insp-card__text { font-size: .84rem; color: var(--on-navy); opacity: 0; max-height: 0; transition: opacity .3s, max-height .3s; }
.insp-card:hover .insp-card__text, .insp-card:focus-visible .insp-card__text { opacity: 1; max-height: 4em; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); box-shadow: var(--shadow); display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.carousel__btn:hover { background: var(--ice); }
.carousel__btn--prev { left: -16px; }
.carousel__btn--next { right: -16px; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Article cards ---------- */
.pills { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.25rem; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: .5rem 1.1rem; border-radius: 99px; border: 1.5px solid var(--border-2); background: #fff; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; transition: all .2s; }
.pill:hover { border-color: var(--brand); color: var(--brand-700); }
.pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.article-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .6rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.article-row:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.article-row__media { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.article-row__media img { width: 100%; height: 100%; object-fit: cover; }
.article-row__body { display: grid; gap: .3rem; justify-items: start; }
.article-row__title { font-weight: 750; font-size: 1.05rem; line-height: 1.3; }
.article-row__meta { font-size: .8rem; color: var(--muted); }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.2rem 1.25rem 1.3rem; flex: 1; }
.article-card__cat { margin: 0; font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.article-card__cat a { text-decoration: none; }
.article-card__title { margin: 0; font-size: 1.12rem; line-height: 1.32; }
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a:hover { color: var(--brand); }
.article-card__excerpt { margin: 0; font-size: .92rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__meta { margin: .3rem 0 0; display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band-wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band { position: relative; display: grid; grid-template-columns: 300px 1fr; background: var(--brand); border-radius: var(--radius-lg); color: #fff; }
.cta-band__media { position: relative; min-height: 280px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; clip-path: ellipse(100% 120% at 0% 50%); }
.cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__body { align-self: center; }
.cta-band__body { padding: clamp(2rem, 4vw, 3.2rem) clamp(1.5rem, 4vw, 3.5rem); }
.cta-band__title { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); max-width: 30ch; margin-bottom: 1.4rem; }
.cta-band__text { color: var(--on-navy); }
.cta-band__badge { position: absolute; top: -34px; right: 34px; display: grid; place-items: center; width: 104px; height: 104px; padding: 12px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; font-size: .78rem; line-height: 1.3; text-align: center; transform: rotate(-6deg); box-shadow: var(--shadow); }

/* ---------- Partner teaser ---------- */
.partner-teaser { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; justify-self: end; }
.collage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.collage__badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--brand); border: 6px solid #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-2); }
.faq__item { border-bottom: 1px solid var(--border-2); }
.faq__q { margin: 0; font-size: 1.06rem; }
.faq__q button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem .25rem; background: none; border: 0; text-align: left; font-weight: 700; color: var(--ink); }
.faq__q button:hover { color: var(--brand-700); }
.faq__chev { color: var(--brand); transition: transform .3s var(--ease); }
.faq__q button[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 .25rem 1.2rem; }
.faq__a.is-opening { animation: faqIn .3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Contact teaser & newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter__row { display: flex; gap: .5rem; margin-bottom: .75rem; }
.newsletter__row input { flex: 1; min-width: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; }
.field > label, .field__label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field__hint { font-size: .82rem; color: var(--muted); }
.field__error { font-size: .85rem; color: var(--danger); font-weight: 600; }
.input, .select, .textarea, .newsletter input {
  width: 100%; min-height: 52px; padding: .75rem .95rem; border: 1.5px solid var(--border-2); border-radius: 10px; background: #fff; color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23008568' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.5rem; }
.input:focus, .select:focus, .textarea:focus, .newsletter input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 117, 168, .14); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--brand); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .9rem; border-radius: 99px; border: 1.5px solid var(--border-2); font-weight: 600; font-size: .9rem; background: #fff; transition: all .15s; }
.chip input:checked + span { border-color: var(--brand); background: var(--ice); color: var(--brand-700); }
.chip input:focus-visible + span { outline: 3px solid rgba(36, 117, 168, .4); outline-offset: 2px; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: #fff3f1; color: #7a1f17; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); }
.switch { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.switch span { font-weight: 700; color: var(--ink); }
.switch small { grid-column: 2; color: var(--muted); font-size: .82rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--surface); padding-block: clamp(2rem, 4vw, 3.5rem); }
.page-hero--mint { background: var(--ice); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero__title { margin: .25rem 0 1rem; }
.page-hero__lead { font-size: 1.1rem; max-width: 62ch; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--plain { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero--plain .page-hero__lead { color: var(--muted); }
.breadcrumbs + .page-hero, .breadcrumbs + section { margin-top: 0; }
.has-crumbs-warm .breadcrumbs { background: var(--surface); max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }

/* Category landing page */
.cat-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cat-hero__quick { display: flex; gap: .5rem; margin-top: 1.25rem; max-width: 460px; }
.cat-hero__quick .input { min-height: 52px; }
.subnav { position: sticky; top: calc(var(--header-h) + 72px); z-index: 20; background: #fff; border-bottom: 1px solid var(--border); }
.subnav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: .85rem .9rem; white-space: nowrap; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--brand-700); border-color: var(--brand); }
.benefit { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.benefit__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--ice); color: var(--brand); margin-bottom: 1rem; }
.benefit h3 { font-size: 1.08rem; }
.benefit p { margin: 0; font-size: .93rem; }
.type-card { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--brand); }
.type-card h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.type-card p { margin: 0; font-size: .93rem; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.6rem 3.6rem; counter-increment: tl; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: -.15rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.timeline li::after { content: ""; position: absolute; left: 1.17rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--ice-2); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.timeline p { margin: 0; }
.cost-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cost-table table { width: 100%; border-collapse: collapse; }
.cost-table th, .cost-table td { padding: .95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cost-table th { background: var(--navy); color: #fff; font-size: .86rem; font-weight: 700; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table td:nth-child(2) { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cost-table td small { display: block; color: var(--muted); font-size: .82rem; }
.cost-note { display: flex; gap: .6rem; font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.factor { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.factor:last-child { border-bottom: 0; }
.factor__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; }
.factor h3 { margin: 0 0 .2rem; font-size: 1.03rem; }
.factor p { margin: 0; font-size: .94rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
.aside-card { position: sticky; top: calc(var(--header-h) + 140px); background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 1.8rem; }
.aside-card h3 { color: #fff; font-size: 1.25rem; }
.aside-card ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.aside-card li { display: flex; gap: .5rem; align-items: flex-start; font-size: .94rem; }
.aside-card li .icon { color: var(--sky); margin-top: .15rem; }
.related-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.related-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.related-links a .icon { color: var(--brand); }
.related-links a:hover { border-color: var(--brand); color: var(--brand-700); }

/* ---------- Prose (articles, legal, rich text) ---------- */
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.7rem); margin: 2.2em 0 .2em; scroll-margin-top: 150px; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .1em; }
.prose h4 { font-size: 1.04rem; margin: 1.5em 0 0; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 0; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: .3em 0 .3em 1.2em; border-left: 3px solid var(--brand); color: var(--ink); font-style: italic; }
.prose code { background: var(--surface); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.prose a { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table-wrap th { background: var(--ice); color: var(--navy); text-align: left; padding: .75rem .9rem; font-weight: 750; white-space: nowrap; }
.table-wrap td { padding: .75rem .9rem; border-top: 1px solid var(--border); vertical-align: top; }
.table-wrap td:not(:last-child) { white-space: nowrap; }
.table-wrap td:first-child { white-space: normal; min-width: 9rem; }
.table-wrap tr:nth-child(even) td { background: var(--surface); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: var(--ice); border: 1px solid var(--ice-2); margin: 1.8em 0 !important; font-size: .98rem; }
.callout__icon { color: var(--brand); margin-top: .2rem; }
.callout__title { font-weight: 800; color: var(--ink); margin: 0 0 .25rem !important; }
.callout .prose, .callout > div > * + * { margin-top: .5em; }
.callout--achtung { background: #fff5ec; border-color: #ffd9b8; }
.callout--achtung .callout__icon { color: #c25e00; }
.callout--kosten { background: #fffbe0; border-color: #f4e27a; }
.callout--kosten .callout__icon { color: #8a6d00; }
.callout--info { background: var(--ice); border-color: var(--ice-3); }
.callout--info .callout__icon { color: var(--brand-700); }
.inline-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--navy); color: var(--on-navy); margin: 2.2em 0 !important; }
.inline-cta strong { display: block; color: #fff; font-size: 1.12rem; margin-bottom: .2rem; }
.inline-cta p { margin: 0; font-size: .95rem; }

/* ---------- Article page ---------- */
.article-hero { padding-block: 1.5rem 2rem; }
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; color: var(--muted); font-size: .88rem; margin-top: 1.1rem; }
.article-hero__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.article-hero__lead { font-size: 1.18rem; color: var(--ink-2); max-width: 68ch; }
.article-hero__img { border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; aspect-ratio: 21 / 9; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; padding-bottom: 3rem; }
.toc { position: sticky; top: calc(var(--header-h) + 100px); font-size: .9rem; }
.toc__title { font-weight: 800; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: .38rem 0 .38rem .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--brand-700); }
.toc a.is-active { color: var(--brand-700); border-color: var(--brand); font-weight: 700; }
.toc-mobile { display: none; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.toc-mobile summary { padding: .9rem 1rem; font-weight: 700; cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.2rem; }
.toc-mobile li { margin: .3rem 0; }
.article-aside { position: sticky; top: calc(var(--header-h) + 100px); display: grid; gap: 1rem; }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); margin-top: 2.5rem; }
.author-box__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; }
.author-box p { margin: 0; font-size: .9rem; }
.sources { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .88rem; }
.sources h2 { font-size: 1rem; }
.sources ol { padding-left: 1.2rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.tag { display: inline-block; padding: .3rem .7rem; border-radius: 99px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .84rem; font-weight: 600; }
.tag:hover { background: var(--ice); color: var(--brand-700); }
.preview-banner { background: #fff4c2; color: #5e4a00; text-align: center; padding: .6rem; font-weight: 700; font-size: .9rem; }

/* ---------- Magazine ---------- */
.mag-hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(2rem, 4vw, 3.5rem); }
.mag-hero h1 { color: #fff; max-width: 24ch; }
.mag-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.mag-search { display: flex; gap: .5rem; width: min(100%, 420px); }
.mag-search .input { border-color: transparent; }
.mag-cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 1.25rem 0 .2rem; }
.mag-cats::-webkit-scrollbar { display: none; }
.mag-cats .pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.mag-cats .pill:hover, .mag-cats .pill.is-active { background: #fff; color: var(--navy); border-color: #fff; }
.mag-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.featured { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; min-height: 460px; }
.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured:hover img { transform: scale(1.03); }
.featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(10, 26, 40, .9)); }
.featured__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: .6rem; }
.featured__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); font-weight: 800; line-height: 1.2; max-width: 26ch; }
.featured__excerpt { color: var(--on-navy); max-width: 60ch; }
.featured__meta { font-size: .85rem; color: var(--on-navy-muted); }
.side-list { display: grid; gap: .25rem; }
.side-list__title { font-weight: 800; color: var(--ink); margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.side-item { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.side-item:last-child { border-bottom: 0; }
.side-item__num { font-size: 1.6rem; font-weight: 800; color: var(--ice-3); line-height: 1; min-width: 1.6rem; }
.side-item__title { font-weight: 700; line-height: 1.35; }
.side-item:hover .side-item__title { color: var(--brand); }
.side-item__meta { font-size: .8rem; color: var(--muted); margin-top: .2rem; display: block; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: .7rem; padding: .95rem 1rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 700; transition: all .2s; }
.cat-tile .icon { color: var(--brand); }
.cat-tile small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.cat-tile:hover { border-color: var(--brand); background: var(--ice); color: var(--brand-700); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--border-2); text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Generic info cards ---------- */
.info-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.info-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ice); color: var(--brand); margin-bottom: .5rem; }
.info-card h3 { margin: 0; font-size: 1.1rem; }
.info-card p { margin: 0; font-size: .94rem; }
.info-card .link-arrow { margin-top: auto; padding-top: .5rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { padding: 1.3rem; border-radius: var(--radius); background: var(--ice); }
.stat strong { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.stat span { font-size: .9rem; }
.media-card { border-radius: var(--radius-lg); overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Checklists ---------- */
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.cl-group { margin-bottom: 2rem; }
.cl-group h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.cl-item label { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: .8rem 1rem; border-radius: var(--radius-sm); cursor: pointer; transition: background-color .15s; }
.cl-item label:hover { background: var(--surface); }
.cl-item input { width: 22px; height: 22px; accent-color: var(--brand); margin-top: .1rem; }
.cl-item strong { display: block; color: var(--ink); }
.cl-item small { color: var(--muted); font-size: .88rem; }
.cl-item input:checked ~ span strong { text-decoration: line-through; color: var(--muted); }
.cl-progress { height: 10px; border-radius: 99px; background: var(--ice); overflow: hidden; margin: .5rem 0 .4rem; }
.cl-progress span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .4s var(--ease); }

/* ---------- Legal ---------- */
.legal { padding-block: 1rem 4rem; }
.legal .prose h2 { font-size: 1.3rem; }
.placeholder { background: #fff4c2; padding: 0 .3em; border-radius: 4px; color: #5e4a00; font-weight: 600; }
.draft-note { margin-bottom: 2rem; }

/* ---------- Thank-you / status pages ---------- */
.status-page { padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.status-page__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ice); color: var(--brand); margin: 0 auto 1.5rem; }
.status-page__icon .icon { width: 44px; height: 44px; }
.status-page p { max-width: 60ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.25fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { margin: 1.1rem 0; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.footer-social a:hover { background: #fff; color: var(--navy); }
.footer-col__title { color: var(--sky); font-size: .8rem; font-weight: 700; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.footer-col a:hover { color: var(--sky); }
.footer-hours { font-size: .84rem; margin-top: .8rem; }
.footer-partner { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--brand); }
.footer-partner .footer-col__title { color: var(--sky); margin-bottom: .35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem 1.8rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-legal a { color: #fff; text-decoration: none; }
.footer-legal a:hover { color: var(--sky); }
.footer-copy { margin: 0; font-size: .85rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2); transform: translateY(110%); transition: transform .3s var(--ease); }
.sticky-cta.is-visible { transform: none; }

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.consent__box { pointer-events: auto; width: min(100%, 720px); background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 70px -10px rgba(0, 0, 0, .35); padding: 1.4rem 1.5rem; border: 1px solid var(--border); }
.consent__title { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); margin-bottom: .4rem; }
.consent__text { font-size: .9rem; margin-bottom: 1rem; }
.consent__options { margin-bottom: 1rem; }
.consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .mega__inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .mega__feature { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .article-aside { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-partner { display: none; }
  .hero__grid, .page-hero__grid, .why, .partner-teaser, .split, .split--wide, .newsletter, .mag-top, .energy { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__frame { aspect-ratio: 16 / 12; border-radius: 22px 22px 22px 80px; }
  .hero__card--top { left: 8px; } .hero__card--bottom { right: 8px; }
  .hero__title { max-width: 20ch; }
  .why__media { max-width: 520px; }
  .collage { justify-self: stretch; width: 100%; max-width: 420px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .aside-card { position: static; }
  .energy__feature { min-height: 380px; }
  .carousel__track { grid-auto-columns: minmax(240px, 42%); }
  .subnav { top: calc(var(--header-h) + 68px); }

  /* Mega menu becomes a full-height drawer */
  .mega { position: fixed; top: var(--header-h); bottom: 0; max-height: none; border-radius: 0; }
  .mega__inner { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 1.25rem 6rem; }
  .mega__cats { grid-template-columns: 1fr 1fr; }
  .mega__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .catnav { display: none; }
}

@media (max-width: 720px) {
  body { font-size: .98rem; }
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border-radius: 50%; background: var(--ice); color: var(--brand); padding: 0; }
  .logo--header .logo__img { height: 20px; }
  .header-cta { padding-inline: .8rem; font-size: .88rem; }
  .catnav__item { min-width: 72px; font-size: .72rem; padding: .35rem .4rem; }
  .catnav__arrow { display: none; }
  .search { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .search__field--plz { border-left: 0; border-top: 1px solid var(--border); }
  .search__submit { width: 100%; min-height: 54px; margin-top: 4px; }
  .search__field { padding: .6rem .8rem; }
  .trustbar__rating { border-right: 0; padding-right: 0; width: 100%; }
  .trustbar { gap: .5rem 1rem; }
  .hero__card { font-size: .78rem; padding: .55rem .75rem .55rem .55rem; }
  .hero__card-icon { width: 32px; height: 32px; }
  .article-rows { grid-template-columns: minmax(0, 1fr); }
  .article-row { grid-template-columns: 84px minmax(0, 1fr); }
  .article-row__title { font-size: .98rem; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band__media { display: none; }
  .cta-band__badge { width: 84px; height: 84px; font-size: .68rem; top: -28px; right: 16px; }
  .cta-band__title { padding-right: 70px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .carousel__btn { display: none; }
  .carousel__track { grid-auto-columns: 78%; }
  .insp-card__text { opacity: 1; max-height: 4em; }
  .energy__item { grid-template-columns: 84px 1fr; }
  .energy__item-text { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .cost-table th, .cost-table td { padding: .75rem .8rem; }
  .cost-table td:nth-child(2) { white-space: normal; }
  .inline-cta { grid-template-columns: minmax(0, 1fr); }
  /* Article tables become label/value cards on phones – no sideways scrolling */
  .table-wrap--stack { border: 0; overflow: visible; }
  .table-wrap--stack table, .table-wrap--stack tbody, .table-wrap--stack tr, .table-wrap--stack td { display: block; width: 100%; }
  .table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap--stack tr { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .35rem .9rem; margin-bottom: .6rem; background: #fff; }
  .table-wrap--stack tr:nth-child(even) td { background: transparent; }
  .table-wrap--stack td { border-top: 0; padding: .45rem 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: .75rem; white-space: normal !important; min-width: 0 !important; }
  .table-wrap--stack td + td { border-top: 1px dashed var(--border); }
  .table-wrap--stack td::before { content: attr(data-label); font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: none; }
  .table-wrap--stack td:first-child { font-weight: 750; color: var(--ink); }
  .rating-box { max-width: none; width: 100%; }
  .featured { min-height: 380px; }
  .cat-hero__quick { flex-direction: column; }
  .mega__cats { grid-template-columns: minmax(0, 1fr); }
  .consent { left: 8px; right: 8px; bottom: 8px; }
  .consent__actions .btn { flex: 1 1 auto; }
  .site-footer { padding-bottom: 70px; }
}

@media (max-width: 400px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .consent, .breadcrumbs, .no-print, .cta-band-wrap { display: none !important; }
  body { color: #000; }
  .cl-item label { padding: .3rem 0; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Additions ---------- */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0 0 .8rem; }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }


/* ==========================================================================
   Phase 2 – visual refinements
   ========================================================================== */
/* Hero: popular projects */
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1rem 0 0; font-size: .86rem; }
.hero__popular span { font-weight: 700; color: var(--muted); margin-right: .2rem; }
.hero__popular a { padding: .28rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--ink-2); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.hero__popular a:hover { border-color: var(--brand); color: var(--brand-700); }

/* Funding band */
.funding-band__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.funding-band__intro p { color: var(--on-navy); }
.funding-band__link { --fg: #fff; }
.funding-band__link:hover { --bg: rgba(255, 255, 255, .1); --fg: #fff; }
.funding-band__note { display: flex; gap: .4rem; align-items: center; font-size: .8rem; margin-top: 1.2rem; color: var(--on-navy-muted) !important; }
.funding-band__facts { display: grid; gap: 12px; }
.funding-fact { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.funding-fact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--navy-900); }
.funding-fact__big { margin: 0 0 .2rem; font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.15; }
.funding-fact__big span { font-size: .95rem; font-weight: 650; color: var(--on-navy); }
.funding-fact__text { margin: 0; font-size: .88rem; color: var(--on-navy-muted); }

/* CTA band */
.cta-band__points { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .9rem; font-weight: 600; color: var(--on-navy); }
.cta-band__points li { display: inline-flex; align-items: center; gap: .35rem; }
.cta-band__points .icon { color: var(--sky); }

/* Contact card */
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius-lg); background: var(--ice); }
.contact-card__intro { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.contact-card__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: #fff; }
.contact-card__icon .icon { width: 30px; height: 30px; }
.contact-card__title { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-bottom: .4rem; }
.contact-card__intro p { margin: 0; }
.contact-card__hours { font-size: .85rem; color: var(--muted); margin-top: .5rem !important; }
.contact-card__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; padding: .95rem 1rem; border-radius: var(--radius); background: #fff; color: var(--muted); text-decoration: none; font-size: .84rem; line-height: 1.35; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.contact-option strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-option .icon { color: var(--brand); }
.contact-option:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--muted); }

/* Article rows: category label instead of a repeated type badge */
.article-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.article-row__cat { font-size: .74rem; font-weight: 750; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }

/* Category page */
.grid--types { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.type-card { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; background: #fff; border: 1px solid var(--border); border-left: 1px solid var(--border); }
.type-card__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ice); color: var(--brand); margin-top: .05rem; }
.project-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.project-feature__media { position: relative; display: block; min-height: 340px; }
.project-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-feature__body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .6rem; }
.project-feature__body p { margin: 0; }
.project-feature__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin: 0; }
.project-feature__title a { color: inherit; text-decoration: none; }
.project-feature__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: .6rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); }
.project-feature__facts dt { font-size: .78rem; color: var(--muted); }
.project-feature__facts dd { margin: 0; font-weight: 750; color: var(--ink); }

/* Magazine: news + key dates */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.news-layout__list { display: grid; gap: 14px; }
.news-dates { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 1.3rem 1.4rem; }
.news-dates__title { display: flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); margin-bottom: .8rem; }
.news-dates ol { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.news-dates li { display: grid; grid-template-columns: 92px 1fr; gap: .6rem; font-size: .9rem; }
.news-dates time { font-weight: 800; color: var(--brand-700); font-variant-numeric: tabular-nums; }

/* Search: give the fields room on narrow desktops and tablets */
@media (max-width: 1100px) and (min-width: 721px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; margin-top: 4px; min-height: 52px; }
}
@media (max-width: 960px) {
  .funding-band__grid, .contact-card, .project-feature, .news-layout, .trust__head { grid-template-columns: minmax(0, 1fr); }
  .project-feature__media { min-height: 240px; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: left; padding: 1.7rem 1.2rem 1.2rem; }
  .step__pill { left: 1.2rem; transform: translateY(-50%); }
  .step__icon { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; border-radius: 14px; background: #fff; }
  .step__icon .icon { width: 30px; height: 30px; }
  .step__title { margin: 0 0 .2rem; font-size: 1.05rem; }
  .contact-card__options { grid-template-columns: minmax(0, 1fr); }
  .funding-fact__big { font-size: 1.35rem; }
  .news-dates li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .insp-card { aspect-ratio: 4 / 4.6; }
}

/* Long German compounds ("Gebäudemodernisierungsgesetz") must never widen the page */
h1, h2, h3, h4, .prose, .article-row__title, .article-card__title, .project-card__title, .cat-card__title, .featured__title, .side-item__title, .energy__item-title, .cost-card__title, .faq__q button, .review-card, .info-card, .benefit, .type-card, .factor { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.table-wrap--stack td, .article-row__title { overflow-wrap: anywhere; }

/* Hero search: both fields fully readable (labels + placeholders) */
.hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(2rem, 4vw, 3rem); }
.hero .search { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
@media (max-width: 1279px) and (min-width: 721px) {
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search__submit { grid-column: 1 / -1; margin-top: 4px; min-height: 52px; }
}
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }
.hero .search__submit { padding-inline: 1.05rem; }

/* Progressive disclosure (mobile): see [data-more] in app.js */
.more-toggle { display: none; }
@media (max-width: 720px) {
  .js .is-collapsed > .more-extra { display: none; }
  .more-toggle { display: flex; width: 100%; margin-top: 1rem; gap: .4rem; justify-content: center; }
  .more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
}

.funding-fact__src { font-size: .78rem; white-space: nowrap; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 2px; }
.funding-fact__src:hover { opacity: 1; }

/* ==========================================================================
   MeisterMatch identity – Phase 5 (ocean blue & navy)
   Signature elements: roof-"M" mark, uppercase eyebrow with a short blue rule,
   navy icon tiles, 8px buttons, image plates on navy with a dot-grid motif.
   ========================================================================== */

/* Typography */
h1, h2, h3, h4 { letter-spacing: -.02em; }
h1 { font-weight: 800; letter-spacing: -.032em; }
h2 { font-weight: 780; }
h1, h2, .section-title { text-wrap: balance; }
a { color: var(--brand-700); }
a:hover { color: var(--navy); }
:focus-visible { outline-offset: 3px; }
::selection { background: var(--ice-2); color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.eyebrow::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--pill { text-transform: none; letter-spacing: .01em; font-size: .82rem; color: var(--navy); }
.eyebrow--pill::before { display: none; }
.section-head--center .eyebrow { justify-content: center; }
.section--navy .eyebrow, .mag-hero .eyebrow, .funding-band .eyebrow, .cta-band .eyebrow { color: var(--sky); }

/* Buttons – 8px corners, button blue, white on navy surfaces */
.btn { border-radius: 8px; letter-spacing: .005em; }
.btn--primary:hover, .btn--accent:hover { --bg: var(--brand-700); --bd: var(--brand-700); box-shadow: 0 12px 24px -14px rgba(16, 42, 64, .6); }
.btn .icon:last-child { transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn--outline { --fg: var(--brand-700); --bd: var(--brand-600); }
.btn--soft { --fg: var(--navy); }
.btn--white { --fg: var(--navy); }
.section--navy .btn--accent, .aside-card .btn--accent, .mag-hero .btn--accent, .cta-band .btn--accent,
.inline-cta .btn--accent, .funding-band .btn--accent, .rating-box .btn--accent { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.section--navy .btn--accent:hover, .aside-card .btn--accent:hover, .mag-hero .btn--accent:hover, .cta-band .btn--accent:hover,
.inline-cta .btn--accent:hover, .funding-band .btn--accent:hover, .rating-box .btn--accent:hover { --bg: var(--ice); --bd: var(--ice); --fg: var(--navy-900); }
.funding-band .btn--ghost, .section--navy .btn--ghost { --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.funding-band .btn--ghost:hover, .section--navy .btn--ghost:hover { --bg: rgba(255, 255, 255, .08); }

/* Header & navigation */
.site-header { border-top: 3px solid var(--navy); }
.catnav__item { border-radius: 8px; }
.catnav__item.is-active { box-shadow: inset 0 -2px 0 var(--brand); font-weight: 700; }
.catnav__arrow { border-color: var(--border-2); color: var(--navy); }
.search { border-radius: 12px; border-color: var(--border-2); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 117, 168, .12), var(--shadow); }
.search__submit { border-radius: 8px; }

/* Hero – image on an offset navy plate with a dot grid */
.hero { background-color: var(--surface); }
.hero__media { isolation: isolate; }
.hero__media::before { content: ""; position: absolute; inset: 24px -16px -16px 24px; border-radius: 22px; background: var(--navy); z-index: -1; }
.hero__media::after { content: ""; position: absolute; top: -22px; left: -22px; width: 132px; height: 132px; z-index: -1;
  background-image: radial-gradient(var(--brand) 1.5px, transparent 1.7px); background-size: 14px 14px; opacity: .45; }
.hero__frame { border-radius: 20px; }
.hero__card { border-radius: 12px; border: 1px solid var(--border); }
.hero__card-icon { border-radius: 10px; background: var(--ice); color: var(--brand-700); }
.hero__popular a, .hero__popular .chip { border-radius: 8px; }

/* Three steps – ice cards, inline navy step label, white icon tile */
.step { background: var(--ice); border: 1px solid var(--ice-2); text-align: left; padding: 1.6rem 1.5rem 1.7rem; }
.step__pill { position: static; transform: none; display: inline-flex; background: var(--navy); color: #fff; border-radius: 6px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.step__icon { width: 58px; height: 58px; margin: 0 0 1rem; border-radius: 14px; background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.step__icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }

/* Why section – dot grid instead of the colour block */
.why__accent { background-image: radial-gradient(var(--brand) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: .4; }
.why__img { border-radius: 18px; box-shadow: 18px 18px 0 var(--ice-2); }
.checklist__icon { fill: var(--brand-600); }

/* Cards – navy icon tiles, blue hover edge */
.cat-card__icon { border-radius: 10px; background: var(--navy); color: #fff; box-shadow: 0 8px 18px -10px rgba(16, 42, 64, .6); }
.cat-card:hover { border-color: var(--brand); }
.project-card, .review-card, .cost-card, .article-card { border-radius: var(--radius); }
.project-card:hover, .review-card:hover { border-color: var(--ice-3); }
.project-card__kind.is-real { background: var(--navy); }
.cost-card__range { border-radius: 6px; }

/* Navy surfaces */
.cta-band { background: var(--navy); }
.cta-band .search--band { border-color: var(--navy); }
.site-footer { background: var(--navy-900); border-top: 4px solid var(--brand); }
.footer-col__title { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.cta-band__badge { border: 2px solid var(--sky); border-radius: 16px; width: auto; height: auto; padding: .7rem 1rem; }
.rating-box { background: var(--navy); }
.collage__badge { background: var(--navy); border-radius: 14px; }

/* Forms */
.input:focus, .select:focus, .textarea:focus, .newsletter input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 117, 168, .14); }
.chip input:checked + span { border-color: var(--brand); background: var(--ice); color: var(--navy); box-shadow: inset 0 0 0 1px var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover .icon:last-child { transform: none; }
}

/* Mobile: label row on top, icon tile beside title + text; hero search stacks (the 3-column hero rule must not leak below 720px) */
@media (max-width: 720px) {
  .step { grid-template-columns: 52px minmax(0, 1fr); align-content: start; padding: 1.3rem 1.2rem 1.4rem; }
  .step__pill { grid-column: 1 / -1; justify-self: start; margin-bottom: 1rem; }
  .step__icon { grid-row: 2 / span 2; width: 52px; height: 52px; }
  .step__icon .icon { width: 26px; height: 26px; }
  .hero .search { grid-template-columns: minmax(0, 1fr); }
  .hero__media::before { inset: 16px -10px -10px 16px; border-radius: 18px; }
  .hero__media::after { top: -14px; left: -10px; width: 96px; height: 96px; }
}

/* Accessibility: form-field edges at >= 3:1 against white/surface (WCAG 1.4.11); readable label on the blue footer box */
:root { --control: #7a90a2; }
.input, .select, .textarea, .newsletter input { border-color: var(--control); }
.footer-partner .footer-col__title { color: #fff; }
/* backdrop-filter makes the header the containing block of the fixed mobile menu (panel collapsed to 1px) */
body.menu-open .site-header { backdrop-filter: none; background: #fff; }

/* Official logo: a little larger on wide headers; CTA band search stacks on tablets where two fields would clip */
@media (min-width: 961px) { .logo--header .logo__img { height: 24px; } }
@media (max-width: 960px) and (min-width: 721px) {
  .search--band { grid-template-columns: minmax(0, 1fr); }
  .search--band .search__field--plz { border-left: 0; border-top: 1px solid var(--border); }
}
.collage .collage__badge img { width: 52px; height: auto; aspect-ratio: auto; border-radius: 0; object-fit: contain; }
/* Mobile header: menu, logo, phone and a short "Anfragen" CTA fit from 320px (phone moves into the menu below 375px); tighter hero spacing */
.header-cta__short { display: none; }
@media (max-width: 720px) {
  .header-bar { gap: .5rem; }
  .header-actions { gap: .4rem; }
  .header-cta { display: inline-flex; padding-inline: .6rem; font-size: .85rem; }
  .header-cta__long { display: none; }
  .header-cta__short { display: inline; }
  .header-phone { width: 38px; height: 38px; }
  .hero { padding-block: 1.25rem 2.5rem; }
  .hero__title { margin: .75rem 0; }
  .hero__lead { margin-bottom: 1.25rem; }
}
@media (max-width: 440px) { .logo--header .logo__img { height: 18px; } }
@media (max-width: 400px) {
  .header-cta { display: inline-flex; }
  .logo--header .logo__img { height: 16px; }
}
@media (max-width: 374px) { .header-phone { display: none; } }
@media (max-width: 339px) { .logo--header .logo__img { height: 15px; } }
/* Checklist overview cards: wide thumbnail, narrower on small phones; long words and buttons wrap at 320px */
.energy__item--wide { grid-template-columns: 160px minmax(0, 1fr); }
.energy__item--wide .energy__item-title { font-size: 1.1rem; }
@media (max-width: 400px) {
  .energy__item--wide { grid-template-columns: 84px minmax(0, 1fr); }
  .energy__item--wide .energy__item-title { font-size: 1rem; overflow-wrap: anywhere; hyphens: auto; }
  .cta-band .btn { white-space: normal; text-align: center; }
}
