@font-face { font-family: Inter; src: url('/inter.woff2') format('woff2'); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: Caveat; src: url('/caveat.woff2') format('woff2'); font-style: normal; font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #132844;
  --muted: #405570;
  --canvas: #fff;
  --line: #d3dce6;
  --action: #173e73;
  --action-hover: #0c2b54;
  --white: #fff;
  --petrol: #0b665e;
  --petrol-dark: #084d47;
  --petrol-soft: #e6f3ef;
  --brand-loupe: #248b81;
  --radius: 4px;
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { color: var(--ink); background: var(--canvas); margin: 0; }
a { color: var(--action); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a33822; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top, footer { background: var(--white); }
.top { border-bottom: 1px solid var(--line); }
.nav, .footer { min-height: 75px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 12px; }
nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; }
nav > a { color: var(--ink); text-decoration: none; font-weight: 600; }
.brand { color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.055em; font-size: 1.85rem; }
.brand:has(.brand-emblem) { display: inline-flex; align-items: center; gap: .27em; white-space: nowrap; }
.brand > span:last-child { word-spacing: .065em; }
.brand-emblem { position: relative; flex: none; width: .96em; height: .96em; color: var(--brand-loupe); }
.brand-emblem::before { content: ""; position: absolute; top: .06em; left: .03em; box-sizing: border-box; width: .67em; height: .67em; border: .085em solid currentColor; border-radius: 50%; }
.brand-emblem::after { content: ""; position: absolute; top: .60em; left: .57em; width: .36em; height: .085em; background: currentColor; border-radius: 1em; transform: rotate(45deg); transform-origin: left center; }
.demo { padding: .35rem 1rem; text-align: center; font-size: .8rem; background: #f0f3f7; color: var(--muted); }
.skip { position: absolute; top: 0; left: 16px; padding: 8px; background: white; transform: translateY(-130%); }
.skip:focus { transform: none; }
main { min-height: 65vh; padding-bottom: 4rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2.15rem); margin-bottom: .9rem; }
h3 { font-size: 1.25rem; margin-bottom: .55rem; }
p { margin-block: .65rem; overflow-wrap: anywhere; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; margin-top: 1.6rem; background: #eaf2fa; overflow: hidden; border-radius: 8px; }
.hero-content { padding: clamp(24px, 4vw, 52px); }
.hero h1, .company-intro h1 { font-size: clamp(2rem, 4.25vw, 3.4rem); letter-spacing: -.045em; }
.hero p, .company-intro p, .page-heading p { color: var(--muted); max-width: 55ch; font-size: 1.05rem; margin-block: .9rem 1.45rem; }
.site-flair, .hero .site-flair, .company-intro .site-flair {
  color: var(--petrol); font: 600 clamp(1.85rem, 3.5vw, 2.65rem)/1.05 Caveat, cursive;
  letter-spacing: -.025em; margin-block: .35rem .65rem;
}
.hero-photo { display: block; width: 100%; height: 100%; min-height: 416px; object-fit: cover; object-position: center; }
.hero-gallery { position: relative; min-width: 0; }
.carousel-track { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding: 0; margin: 0; list-style: none; }
.carousel-track > li { min-width: 0; scroll-snap-align: start; }
.hero-track,.hero-slide { height: 100%; }
.hero-track > li { flex: 0 0 100%; }
.hero-slide { position: relative; display: block; }
.hero-slide:focus-visible { outline-offset: -5px; }
.hero-photo[src="/hero-maler.jpg"] { object-position: 42% 30%; }
.hero-photo[src="/hero-elektrik.jpg"] { object-position: 38% 38%; }
.hero-photo[src="/partner-werkstatt.jpg"] { object-position: 62% center; }
.hero-slide-label { position: absolute; bottom: 1rem; left: 1rem; display: flex; gap: .6rem; border-radius: 5px; padding: .48rem .75rem; background: #132844; color: white; font-weight: 700; }
.carousel-controls:not([hidden]) { display: flex; gap: .35rem; align-items: center; }
.carousel-controls button { min-width: 40px; min-height: 40px; padding-inline: .65rem; font-size: .82rem; }
.carousel-controls button[data-carousel-back],.carousel-controls button[data-carousel-next] { font-size: 1.12rem; }
.trust-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .9rem 1.6rem; margin-top: 1.1rem; padding: 1.1rem 1.35rem; border: 1px solid #b8d4cd; border-radius: 8px; background: #eef6f3; }
.trust-seal { position: relative; display: grid; place-items: center; width: 76px; aspect-ratio: .93; padding-bottom: .4rem; isolation: isolate; filter: drop-shadow(0 3px 3px #12273b30); }
.trust-seal::before,.trust-seal::after { content: ""; position: absolute; z-index: -1; inset: 0; clip-path: polygon(50% 0,96% 12%,96% 68%,50% 100%,4% 68%,4% 12%); background: #0b665e; }
.trust-seal::after { inset: 3px; background: #132844; }
.trust-seal .brand-emblem { font-size: 2.5rem; }
.trust-strip h2 { margin: 0; color: var(--petrol-dark); font-size: 1.22rem; }
.trust-strip p { margin: .25rem 0 0; color: var(--muted); font-size: .91rem; }
.finder { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: end; gap: 12px; }
.finder input, .finder select, .finder button { min-height: 48px; }
.finder > button { grid-column: 1 / -1; justify-self: start; color: #182d46; background: #ffd45e; border-color: #ffd45e; }
.finder > button:hover { background: #f2bd3f; border-color: #f2bd3f; }
.home-section { padding-top: clamp(1.65rem, 4vw, 3.5rem); }
.home-section h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.section-title { display: flex; gap: .25rem 1.3rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .95rem; }
.section-title h2, .section-title .site-flair { margin: 0; }
.section-title .site-flair { font-size: clamp(1.55rem, 3vw, 2rem); }
.trade-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.trade-group { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.trade-group h3 { background: #edf5f3; padding: .95rem 1rem; margin: 0; font-size: 1rem; letter-spacing: -.02em; }
.trade-group ul { list-style: none; padding: 0; margin: 0; }
.trade-group li { display: flex; align-items: center; gap: .25rem; padding-right: .85rem; }
.trade-group li + li { border-top: 1px solid var(--line); }
.trade-group li > a { flex: 1; padding: .65rem .85rem; color: var(--ink); text-decoration: none; font-size: .95rem; }
.trade-group li:hover { background: #f2f7f6; }
.trade-group li > span { color: var(--petrol); }
.projects-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem 1rem; margin-bottom: 1rem; }
.projects-heading h2 { margin: 0; }
.projects-heading p { margin: .35rem 0 0; color: var(--muted); }
.projects-heading .carousel-controls button { min-width: 44px; min-height: 44px; }
.projects-heading .carousel-controls [data-carousel-toggle] { min-width: 86px; }
.project-track { gap: clamp(.75rem, 2.25vw, 1.5rem); }
.project-card { flex: 0 0 89%; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.project-track-single .project-card { flex-basis: 100%; }
.project-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; aspect-ratio: 2 / 1; background: var(--line); overflow: hidden; }
.project-photos figure { display: grid; position: relative; min-width: 0; min-height: 0; margin: 0; }
.project-photos img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.project-photos figcaption { position: absolute; left: .75rem; bottom: .75rem; border-radius: 4px; padding: .26rem .56rem; background: #121923eb; color: white; font-weight: 700; font-size: .87rem; }
.project-card-body { padding: clamp(.9rem, 2.3vw, 1.35rem); }
.project-card-body h3 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.75rem); text-wrap: pretty; }
.project-meta { display: flex; flex-wrap: wrap; align-items: end; gap: .4rem 1.5rem; margin: .7rem 0; }
.project-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.project-facts dt { color: var(--muted); font-size: .73rem; }
.project-facts dd { margin: .1rem 0 0; font-weight: 650; font-size: .91rem; }
.project-time { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.project-company { color: var(--muted); font-size: .9rem; }
.project-link { display: inline-block; padding-block: .25rem; color: var(--petrol); font-weight: 750; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
.project-link span { margin-left: .2rem; }
.project-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; border-block: 1px solid var(--line); padding: .8rem 0; }
.project-empty p { margin: 0; color: var(--muted); }
.project-detail { margin: 2rem auto 0; }
.project-detail .page-heading { margin-block: 1.15rem .65rem; }
.project-detail h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.project-detail .project-meta { margin: 1rem 0 1.4rem; }
.project-detail .project-photos { border-radius: 8px; }
.project-detail-text { max-width: 65ch; margin: 1.45rem 0; }
.project-detail-text h2 { margin-bottom: .5rem; }
.project-detail-text h3 { margin: 1.4rem 0 .5rem; }
.project-detail-text .button { margin-top: .5rem; }
@media (min-width: 1240px) {
  .partner-projects, .project-detail {
    --project-width: min(1344px, calc(100vw - 64px));
    width: var(--project-width);
    margin-inline: calc((100% - var(--project-width)) / 2);
  }
}
.directory-search { margin: 0 0 1.25rem; align-items: end; }
.directory-search label { max-width: min(100%, 26rem); }
.city-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.city-grid a { position: relative; display: grid; gap: .16rem; background: #edf5f3; padding: 1.1rem 2.35rem 1.1rem 1.1rem; color: var(--ink); text-decoration: none; border: 1px solid #d3e2de; border-radius: 8px; }
.city-grid a:hover { border-color: var(--petrol); }
.city-grid .city-card-photo { display: block; overflow: hidden; padding: 0; }
.city-card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: #e6f3ef; }
.city-card-text { position: relative; display: grid; gap: .16rem; }
.city-card-photo .city-card-text { padding: .95rem 2.35rem .95rem 1.1rem; }
.city-grid a:not(.city-card-photo) .city-card-text > span[aria-hidden] { top: .08rem; right: -1.2rem; }
.region-action { margin-top: 1rem; }
.region-hero { display: grid; margin-top: 1.6rem; overflow: hidden; border-radius: 8px; background: #eaf2fa; }
.region-hero-photo { grid-template-columns: 1fr .85fr; }
.region-hero > div { padding: clamp(1.35rem,4vw,3.25rem); align-self: center; }
.region-hero h1 { font-size: clamp(2rem,4.3vw,3.55rem); }
.region-hero p { max-width: 52ch; margin-bottom: 1.3rem; color: var(--muted); }
.region-hero .finder { max-width: 580px; }
.region-hero img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.region-notes { display: grid; grid-template-columns: 1fr .85fr; gap: 1.5rem 3rem; }
.region-notes p { max-width: 65ch; color: var(--muted); }
.region-notes .partner-areas ul { margin-bottom: 0; }
.city-grid strong { font-size: 1.2rem; }
.city-grid span { color: var(--muted); font-size: .9rem; }
.city-grid span[aria-hidden] { position: absolute; right: 1rem; top: 1.12rem; color: var(--petrol); font-size: 1.1rem; }
.article-grid article { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.article-grid a { display: block; color: var(--ink); text-decoration: none; }
.article-grid article:hover { border-color: var(--petrol); }
.article-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.article-grid a > div { padding: 1rem; }
.article-grid small, .article-grid a span { color: var(--petrol); font-weight: 700; }
.article-grid h3 { margin-top: .45rem; }
.article-grid p { color: var(--muted); font-size: .95rem; }
.guide { max-width: 780px; margin-inline: auto; }
.guide img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; border-radius: 8px; }
.guide section { margin: 1.4rem 0; }
.guide section h2 { margin-bottom: .35rem; font-size: 1.3rem; }
.faq-list { border: 1px solid var(--line); border-radius: 8px; max-width: 860px; }
.faq-list details { padding: .85rem 1rem; }
.faq-list details:first-child { border-top: 0; }
.faq-list p { color: var(--muted); margin: .55rem 0 .1rem; }
.trust-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.trust-heading h2 { margin: 0; }
.trust-track { --card-gap: 1rem; gap: var(--card-gap); }
.trust-card { display: flex; flex-direction: column; gap: .85rem; flex: 0 0 calc((100% - var(--card-gap)) / 2); padding: clamp(1rem,2.2vw,1.55rem); border: 1px solid #d3e2de; border-radius: 8px; background: #f0f7f5; }
.trust-card-top { display: flex; align-items: center; gap: .95rem; }
.trust-card blockquote { margin: 0; padding-top: .8rem; border-top: 1px solid #c6dad5; color: var(--ink); line-height: 1.5; }
.trust-card-copy { min-width: 0; }
.trust-card h3 { margin: .3rem 0 .45rem; font-size: clamp(1.05rem,2vw,1.3rem); }
.trust-card small,.trust-rating { color: var(--muted); font-size: .84rem; }
.trust-rating { display: flex; align-items: center; flex-wrap: wrap; gap: .14rem .55rem; }
.trust-carousel > p { color: var(--muted); }
.trust-portrait { overflow: hidden; }
.trust-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trust-portrait img[src$="beispiel.jpg"] { object-position: 43% center; transform: scale(1.7); transform-origin: center 8%; }
.trust-portrait img[src$="hamburg.jpg"] { object-position: center 36%; }
.trust-portrait img[src$="koeln.jpg"] { transform: scale(1.55); transform-origin: center 8%; }
.trust-portrait img[src$="holz.jpg"] { object-position: 55% 24%; transform: scale(1.35); }
.trust-portrait img[src$="ausbau.jpg"] { object-position: 42% 28%; transform: scale(1.55); transform-origin: 27% 12%; }
.trust-stars { color: #8a5113; font-size: 1.2rem; letter-spacing: .06em; line-height: 1.3; }
.certificate-mark { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border: 2px solid var(--petrol); outline: 1px solid #8bb5ad; outline-offset: 4px; border-radius: 50%; color: var(--petrol); background: white; font-size: 2rem; font-weight: 800; }
.certificate { position: relative; max-width: 820px; margin: 2.2rem auto 0; padding: clamp(1.4rem, 4.5vw, 3.8rem); border: 2px solid var(--petrol); outline: 1px solid #8bb5ad; outline-offset: -10px; background: #f5faf8; text-align: center; }
.certificate header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .55rem; border-bottom: 1px solid #c6ddd5; padding-bottom: .85rem; text-align: left; }
.certificate .certificate-mark { margin: 1.8rem auto 1rem; }
.certificate-status { font-weight: 800; color: var(--petrol); }
.certificate-inactive .certificate-status, .certificate-inactive .certificate-mark { color: #882a2a; }
.certificate h1 { font-size: clamp(1.95rem, 5vw, 3.3rem); overflow-wrap: anywhere; }
.certificate dl { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; padding: 1rem; border-block: 1px solid #c6ddd5; }
.certificate dt { color: var(--muted); font-size: .86rem; }
.certificate dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.certificate dl > div { min-width: 0; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); list-style: none; counter-reset: process; padding: 0; margin: 0; gap: 1.5rem; }
.process li { counter-increment: process; border-top: 2px solid var(--line); padding-top: 1rem; }
.process li::before { content: counter(process); display: block; margin-bottom: .5rem; font-size: .95rem; font-weight: 750; color: var(--action); }
.process h3 { margin: 0; }
.process p { color: var(--muted); }
.home-process { margin-top: clamp(1.65rem,4vw,3.25rem); padding: clamp(1.2rem,3vw,2rem); border-radius: 8px; border: 1px solid var(--line); background: #f5f8fb; }
.home-process .process { margin: 0; gap: 1.05rem; }
.home-process .process li { padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: white; }
.home-process .process li::before { width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border-radius: 50%; background: var(--petrol-dark); color: white; }
.home-process .process h3 { font-size: 1.08rem; }
.home-process .process p { margin-bottom: 0; font-size: .92rem; }
.city-map { scroll-margin-top: 1rem; }
.city-map p { color: var(--muted); }
.city-map iframe { display: block; width: 100%; height: clamp(280px, 48vw, 440px); border: 1px solid var(--line); border-radius: 6px; margin-bottom: .9rem; }
.calculator-page { background: #f8f9f7; color: #141d21; }
.calculator-page .nav { justify-content: center; }
.calculator-shell { max-width: 960px; margin-inline: auto; }
.calculator-heading { padding-block: clamp(2rem, 5.5vw, 4.7rem) clamp(1.8rem, 5vw, 3.6rem); }
.calculator-heading h1 { max-width: 12em; font-size: clamp(2.4rem, 5.5vw, 3.85rem); line-height: 1.04; letter-spacing: -.045em; }
.calculator-label { margin: 0 0 1rem; color: #52615d; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; }
.calculator-heading .site-flair { font-size: clamp(2.25rem, 4.6vw, 3.45rem); margin: .5rem 0 0; }
#rechner { scroll-margin-top: 1rem; }
.calculator-meter { margin-bottom: 1.4rem; }
.calculator-meter > div { display: flex; justify-content: space-between; gap: .7rem; color: #52615d; font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; }
.calculator-meter progress { display: block; width: 100%; height: .42rem; margin: .55rem 0 1.25rem; accent-color: var(--petrol); }
.calculator-meter ol { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); list-style: none; gap: .5rem; padding: 0; margin: 0; }
.calculator-meter-moving ol { grid-template-columns: repeat(7, minmax(0,1fr)); }
.calculator-meter li { padding-top: .5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.calculator-meter li[aria-current] { border-color: var(--petrol); color: var(--petrol-dark); font-weight: 700; }
.calculator-meter li span { font-variant-numeric: tabular-nums; }
.calculator-shell .calculator-form { max-width: none; padding: clamp(16px, 4vw, 40px); background: #fbfcfa; border-color: #e0e5e0; border-radius: 17px; box-shadow: 0 12px 25px #12212112; }
.calculator-form h2, .calculator-result h2 { width: 100%; font-size: clamp(1.38rem, 3vw, 1.85rem); margin: 0; }
.calculator-form[action$="#rechner"] > h2, .calculator-hint { text-align: center; }
.calculator-hint { width: 100%; color: #52615d; margin: -.5rem 0 .35rem; }
.calculator-form fieldset { margin-inline: 0; }
.calculator-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(174px, 100%),1fr)); width: 100%; gap: .6rem; }
.calculator-option { display: flex; align-items: flex-start; grid-template-columns: none; gap: .55rem; padding: .8rem; min-height: 50px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.calculator-option:has(input:checked) { border-color: var(--petrol); background: var(--petrol-soft); box-shadow: inset 0 0 0 1px var(--petrol); }
.calculator-option:has(input:focus-visible) { outline: 3px solid var(--petrol); outline-offset: 3px; }
.calculator-option input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--petrol); margin: .2rem 0 0; }
.calculator-options-tiles { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .9rem; }
.calculator-options-tiles .calculator-option { position: relative; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .25rem; padding: .75rem; min-height: 126px; background: #fff; border: 2px solid #dce1dc; border-radius: 14px; }
.calculator-options-tiles .calculator-option:hover { border-color: var(--petrol); }
.calculator-options-tiles .calculator-option:has(input:checked) { background: var(--petrol-soft); border-color: var(--petrol); }
.calculator-options-tiles .calculator-option input { position: absolute; opacity: 0; }
.calculator-symbol { font-size: 1.95rem; line-height: 1.15; font-weight: 750; color: var(--petrol-dark); }
.calculator-option small { display: block; color: var(--muted); line-height: 1.35; }
.calculator-actions { width: 100%; justify-content: space-between; border-top: 1px solid #dce1dc; padding-top: 1rem; margin-top: .5rem; }
.calculator-page button { background: var(--petrol); border-color: var(--petrol); }
.calculator-page button:hover { background: var(--petrol-dark); }
.calculator-promises { display: flex; justify-content: center; gap: 1.15rem; width: 100%; border-top: 1px solid #dce1dc; padding-top: .9rem; color: var(--petrol-dark); font-size: .9rem; }
.calculator-result { padding: clamp(18px, 3vw, 28px); background: var(--petrol-soft); border-radius: 14px; margin-bottom: 1.2rem; }
.calculator-example { margin-top: 1rem; }
.calculator-example p:last-child { margin-bottom: 0; }
.calculator-price { font-size: clamp(1.6rem, 4vw, 2.55rem); letter-spacing: -.04em; font-weight: 800; margin-block: .35rem; }
.master-calculator { padding: clamp(1rem, 3vw, 2rem); margin-top: 2rem; border: 1px solid #cde0db; border-radius: 10px; background: #f0f7f5; }
.master-calculator .finder { max-width: 780px; }
.embedded-calculator { max-width: none; }
.embedded-calculator > h3 { margin-block: 1rem .9rem; }
.embedded-calculator button { background: var(--petrol); border-color: var(--petrol); }
.embedded-calculator button:hover { background: var(--petrol-dark); }
.estimate-parts { max-width: 600px; }
.estimate-parts > div { display: flex; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; padding-block: .4rem; border-bottom: 1px solid #cde0db; }
.estimate-parts dd { margin: 0; font-weight: 650; }
.exact-size { width: 100%; }
.exact-size label { max-width: 22rem; margin-top: .65rem; }
.company-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px,1fr); gap: clamp(20px, 5vw, 64px); background: #eaf2fa; border-radius: 8px; margin-top: 1.6rem; padding: clamp(24px, 4vw, 52px); align-items: center; }
.company-intro aside { background: white; padding: 1.25rem; border: 1px solid var(--line); }
.company-intro aside h2 { font-size: 1.3rem; }
.partner-hero { display: grid; grid-template-columns: 1.06fr 1fr; margin-top: 1.6rem; overflow: hidden; border-radius: 8px; background: #eaf2fa; }
.partner-hero-copy { align-self: center; padding: clamp(22px,4.4vw,60px); }
.partner-hero h1 { font-size: clamp(2rem,4.6vw,3.7rem); line-height: 1.05; }
.partner-hero p { max-width: 47ch; margin-block: 1.1rem 1.45rem; color: var(--muted); font-size: 1.04rem; }
.partner-hero-photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 62% center; }
.partner-eligibility.form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) auto; align-items: end; justify-items: stretch; max-width: none; gap: .85rem 1rem; background: #eef6f3; }
.partner-eligibility .form-grid { align-items: end; }
.partner-eligibility input, .partner-eligibility select, .partner-eligibility button { min-height: 46px; }
.partner-areas > small { display: block; margin-top: .65rem; color: var(--muted); }
@media (max-width: 820px) {
  .partner-eligibility.form { grid-template-columns: 1fr; }
  .partner-eligibility.form button { justify-self: start; }
}
.partner-jumps { margin-top: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.partner-jumps a:hover { text-decoration: underline; }
.partner-costs { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px,.78fr); align-items: center; gap: clamp(1.2rem,5vw,4.8rem); }
.partner-details { margin-block: .9rem; }
.partner-details > div { padding-block: .75rem; border-top: 1px solid var(--line); }
.partner-details dt { font-weight: 750; }
.partner-details dd { margin: .2rem 0 0; }
.partner-sample { padding: clamp(1rem,3vw,1.65rem); background: #f5f8fb; border: 1px solid var(--line); border-radius: 8px; }
.partner-sample-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .85rem; color: var(--muted); font-size: .85rem; }
.partner-sample .lead-facts div { grid-template-columns: minmax(90px,.8fr) minmax(0,1.2fr); }
.partner-sample-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem .85rem; margin-top: .9rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.partner-sample-price strong { color: var(--petrol-dark); font-size: 1.35rem; }
.partner-sample-foot { margin: .35rem 0 0; font-size: .86rem; color: var(--muted); }
.partner-process li { padding: .9rem 1rem; border: 1px solid var(--line); border-top: 2px solid var(--action); border-radius: 6px; }
.partner-process p { margin-bottom: 0; }
.partner-portal { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: start; gap: clamp(1rem,4vw,3rem); padding: clamp(1.25rem,4vw,2.8rem); border-radius: 8px; background: #12273b; color: #eef6fb; }
.partner-portal h2 { color: #fff; }
.partner-portal p, .partner-portal dd { color: #d5e2ec; }
.partner-portal .partner-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem 1.3rem; margin: 0; }
.partner-portal .partner-details > div { border-color: #60788a; }
.partner-areas ul { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.partner-areas li { padding: .45rem .85rem; border: 1px solid #cde0db; border-radius: 6px; background: #f0f7f5; font-weight: 650; }
.partner-join { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 3rem; padding: clamp(1.2rem,4vw,2.1rem); border-radius: 8px; background: #eaf2fa; }
.partner-join h2 { margin-bottom: .4rem; }
.partner-join p { margin: 0; }
.partner-jumps ~ [id] { scroll-margin-top: 1rem; }
.company-description { white-space: pre-line; }
.verified-label { color: var(--petrol-dark); font-weight: 750; }
.portal-nav { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; align-items: center; padding: .85rem 1rem; background: #f0f7f5; border-bottom: 1px solid #cde0db; }
.portal-nav strong { color: var(--petrol-dark); }
.portal-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: .75rem; margin: 1rem 0; }
.portal-summary > div { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.portal-summary dd { margin: .15rem 0 0; font-size: 1.45rem; font-weight: 750; color: var(--petrol-dark); }
.lead-filter { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); align-items: end; gap: .7rem; }
.lead-assigned { color: var(--petrol-dark); font-weight: 700; font-size: .88rem; }
.workspace-page { background: #f4f6f8; }
.workspace-page main.wrap { width: 100%; padding: 0; }
.workspace { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: calc(100vh - 30px); }
.workspace-sidebar { display: flex; flex-direction: column; align-items: stretch; gap: 1.4rem; padding: 1.35rem .9rem; background: #12273b; color: #e9f2fb; }
.workspace-sidebar .brand { color: #fff; }
.workspace-sidebar .brand:has(.brand-emblem) { font-size: 1.48rem; }
.workspace-sidebar p { color: #bbcedd; font-size: .85rem; margin: .2rem 0 0; }
.workspace-sidebar nav { display: grid; align-content: start; gap: .25rem; }
.workspace-sidebar a { color: #eef6fb; text-decoration: none; }
.workspace-sidebar nav a { padding: .65rem .75rem; border-radius: 6px; }
.workspace-sidebar nav a:hover, .workspace-sidebar nav a[aria-current] { background: #23455a; }
.workspace-sidebar nav a[aria-current] { box-shadow: inset 3px 0 #69cabb; }
.workspace-account { display: grid; gap: .65rem; margin-top: auto; }
.workspace-content { min-width: 0; padding: clamp(15px,3vw,36px); }
.workspace-heading { padding-bottom: .85rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.workspace-heading h1 { font-size: clamp(1.85rem,4vw,2.6rem); }
.workspace-heading p { color: var(--muted); margin-bottom: 0; }
.workspace-filters { display: grid; grid-template-columns: minmax(150px,2fr) minmax(135px,1fr) minmax(110px,1fr) auto auto; gap: .65rem; align-items: end; margin-bottom: 1rem; }
.workspace-filters.lead-board-filters { grid-template-columns: minmax(130px,1.4fr) repeat(3,minmax(105px,1fr)) auto auto; }
.workspace-filters > a { align-self: center; }
.workspace-filters > .check { grid-column: 1 / -1; }
.lead-filter-options { grid-column: 1 / -1; }
.lead-filter-options .form-grid { margin-top: .75rem; }
.pipeline-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px,1fr); grid-template-rows: 1fr; overflow-x: auto; gap: .65rem; padding: .2rem .15rem .8rem; align-items: stretch; }
.pipeline-column { min-width: 0; background: #eaf0f4; border: 1px solid #dce5ed; border-radius: 8px; padding: .65rem; }
.pipeline-column h2 { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .35rem; padding: .28rem 0 .7rem; margin: 0; font-size: .9rem; letter-spacing: -.02em; }
.stage-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #64748b; }
.stage-pending,.stage-review,.stage-new { background: #a6631b; }
.stage-assigned,.stage-contacted,.stage-reserved { background: #286da3; }
.stage-paid,.stage-approved,.stage-quoted,.stage-closed { background: #087866; }
.stage-archive,.stage-suspended { background: #76576a; }
.count { margin-left: auto; padding: .1rem .35rem; background: #fff; border-radius: 4px; font-size: .78rem; }
.work-card { min-width: 0; background: #fff; border: 1px solid #d6e0e7; border-radius: 6px; padding: .75rem; overflow-wrap: anywhere; }
.work-card + .work-card { margin-top: .55rem; }
.work-card h3 { margin: .1rem 0; font-size: 1rem; }
.work-card small,.work-card p,.empty-column { color: var(--muted); font-size: .84rem; }
.work-card p { margin: .35rem 0; }
.work-card a { display: inline-block; margin-top: .35rem; font-size: .88rem; font-weight: 700; }
.workspace-dialog { position: fixed; inset: 0; width: min(740px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #c7d5df; border-radius: 10px; background: #f4f6f8; color: var(--ink); box-shadow: 0 22px 65px #0e22364d; }
.workspace-dialog::backdrop { background: #10243a85; }
.workspace-page:has(.workspace-dialog[open]) { overflow: hidden; }
.record-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem,3vw,1.5rem); background: #fff; border-bottom: 1px solid var(--line); }
.record-header h2 { margin: 0; font-size: clamp(1.15rem,3vw,1.55rem); }
.record-content { padding: clamp(.75rem,3vw,1.5rem); overflow-wrap: anywhere; }
.record-content .section { padding: 0; }
.record-content h3 { margin-bottom: .5rem; }
.record-content .form { margin-block: .75rem 1.1rem; }
.record-content details { margin-block: .8rem; }
.record-content summary { cursor: pointer; font-weight: 650; }
.record-section-heading { margin-top: 1.25rem; }
.record-sale { margin-block: 1rem 1.25rem; padding: 1rem; background: #f0f6fa; border: 1px solid var(--line); border-radius: 6px; }
.record-sale .form { margin-block: .75rem 0; }
.record-sale small { color: var(--muted); }
.record-preview { margin-block: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; }
.lead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; margin-bottom: .6rem; }
.lead-meta small { color: var(--muted); }
.trade-badge { display: inline-block; width: fit-content; max-width: 100%; padding: .22rem .48rem; border-radius: 4px; border: 1px solid #c6ddd9; background: #eaf5f2; color: #18544b; font-size: .76rem; font-weight: 750; line-height: 1.35; }
.work-card .trade-badge { margin-bottom: .38rem; }
.lead-estimate { display: grid; gap: .15rem; font-size: .9rem; }
.lead-estimate strong { font-size: 1.12rem; }
.lead-preview details { margin-block: .65rem; }
.lead-preview summary { cursor: pointer; font-weight: 650; }
.lead-facts { margin: .45rem 0 0; }
.lead-facts div { display: grid; grid-template-columns: minmax(95px,1fr) minmax(0,1.4fr); gap: .5rem; padding-block: .3rem; border-top: 1px solid var(--line); font-size: .87rem; }
.lead-facts dd { margin: 0; }
.lead-contact-lock { background: #f4f6f8; border: 1px solid #dde5eb; border-radius: 5px; margin-block: .85rem; padding: .65rem .75rem; font-size: .8rem; }
.lead-contact-lock p { margin: 0 0 .4rem; font-weight: 700; }
.lead-contact-lock ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.lead-contact-lock li { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.contact-mask { display: inline-block; width: clamp(26px,22%,72px); height: .45rem; border-radius: 5px; background: #91a3b3; filter: blur(2px); }
.contact-project { white-space: pre-wrap; }
.contact-history { padding: 0; list-style: none; }
.contact-history li { display: flex; flex-wrap: wrap; gap: .2rem .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.contact-history time { color: var(--muted); }
.work-metrics,.queue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px,100%),1fr)); gap: .85rem; margin-bottom: 1rem; }
.work-metrics a { display: grid; gap: .35rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .9rem 1rem; color: var(--ink); text-decoration: none; }
.work-metrics a:hover { border-color: var(--action); }
.work-metrics strong { font-size: 1.55rem; color: var(--petrol-dark); }
.work-queue + .work-queue { margin-top: 0; }
.work-queue h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.15rem; }
.work-queue .count { background: #edf3f9; }
.work-queue ul { list-style: none; margin: 0; padding: 0; }
.work-queue li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem .65rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.work-queue li small { color: var(--muted); }
.work-queue li small { display: block; }
.overview-actions { margin-top: 1rem; }
.billing-filter { margin-bottom: 1rem; }
.billing-filter label { width: auto; }
.receipt { width: min(620px, calc(100% - 2rem)); margin: 2rem auto; }
.receipt h1 { font-size: clamp(1.6rem,4vw,2.3rem); }
.receipt dl > div { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.receipt dd { margin: 0; overflow-wrap: anywhere; }
.work-list { display: grid; gap: .65rem; }
.work-list-stage { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .87rem; }
.table-scroll { overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 550px; text-align: left; }
.ledger-table td,.ledger-table th { padding: .72rem .85rem; border-bottom: 1px solid var(--line); }
.ledger-table th { background: #eaf0f4; font-size: .88rem; }
.ledger-table td:last-child,.ledger-table th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 1090px) {
  .workspace-filters.lead-board-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .workspace-sidebar { gap: .65rem; }
  .workspace-sidebar nav,.workspace-account { display: flex; flex-wrap: wrap; align-items: center; }
  .workspace-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pipeline-board { grid-auto-columns: minmax(175px,1fr); }
}
.business { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.75rem; padding: 1.4rem; background: #edf3f9; }
.business h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.business p { margin: 0; }
.eyebrow { color: var(--muted); font-size: .85rem; font-weight: 650; margin-bottom: .7rem; }
.section { padding-top: 2rem; }
.section + .section { margin-top: 1rem; }
.button, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1rem; text-decoration: none; font: inherit; font-weight: 700; border-radius: 4px; border: 1px solid var(--action); background: var(--action); color: white; cursor: pointer; }
.button:hover, button:hover { background: var(--action-hover); }
.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.secondary:hover { background: #edf3f9; }
.page-heading { padding-block: 3rem 1.3rem; }
.page-heading h1 { font-size: clamp(2rem, 5vw, 3.65rem); }
.panel { border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); background: white; }
.panel + .panel { margin-top: .6rem; }
.prose { max-width: 68ch; margin-bottom: 1rem; }
.form { display: grid; gap: 1.05rem; max-width: 720px; justify-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; }
.registration-fields { display: grid; gap: 1rem; min-width: 0; border: 0; padding: 0; }
.registration-fields legend { margin-bottom: .5rem; }
.registration-fields button { justify-self: start; }
.form input[type=file] { max-width: 100%; min-width: 0; }
label { display: grid; gap: .35rem; width: 100%; font-weight: 600; }
label span { font-weight: 400; }
input, textarea, select { font: inherit; border: 1px solid #8c9caf; border-radius: 4px; padding: .58rem .65rem; background: white; color: var(--ink); width: 100%; min-width: 0; }
textarea { min-height: 80px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--action); }
.check { display: flex; align-items: flex-start; gap: .65rem; margin-block: .35rem; }
.check input { flex: none; }
.trap { display: none; }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; width: 100%; }
legend { font-weight: 700; }
.notice { padding: 14px 18px; margin-block: .6rem 1rem; background: #eef4fa; color: var(--ink); border-left: 4px solid var(--action); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.cards .panel { margin: 0; overflow-wrap: anywhere; }
article form { margin-top: .65rem; }
.quote { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.quote strong { font-size: 1.5rem; }
details { border-top: 1px solid var(--line); padding-block: .65rem; }
summary { cursor: pointer; font-weight: 650; }
.audit { font-size: .88rem; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); }
footer nav { font-size: .9rem; }
@media (max-width: 760px) {
  .trade-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wrap { width: calc(100% - 32px); }
  .hero, .company-intro { grid-template-columns: 1fr; }
  .hero-photo { height: clamp(180px, 50vw, 290px); min-height: 0; }
  .partner-hero,.partner-costs,.partner-portal { grid-template-columns: 1fr; }
  .trade-grid.featured-trades { grid-template-columns: 1fr; }
  .region-hero-photo,.region-notes { grid-template-columns: 1fr; }
  .region-hero img { height: clamp(180px,45vw,290px); min-height: 0; }
  .partner-hero-photo { height: clamp(190px,50vw,295px); min-height: 0; }
  .partner-process { gap: .65rem; }
}
@media (max-width: 640px) {
  .trust-card { flex-basis: 100%; }
  .project-card { flex-basis: 94%; }
  .project-photos { aspect-ratio: 1.55 / 1; }
  .project-photos figcaption { left: .4rem; bottom: .4rem; padding: .2rem .42rem; font-size: .77rem; }
  .project-facts { column-gap: .85rem; }
  .trust-strip { grid-template-columns: auto minmax(0,1fr); }
  .trust-strip > .button { grid-column: 2; justify-self: start; }
  .trust-seal { width: 60px; }
  .trust-seal .brand-emblem { font-size: 2rem; }
}
@media (max-width: 480px) {
  .trade-grid, .article-grid, .city-grid { grid-template-columns: 1fr; }
  .trust-card .trust-portrait { width: 62px; height: 62px; flex-basis: 62px; }
  .partner-portal .partner-details { grid-template-columns: 1fr; }
  .calculator-meter ol { display: none; }
  .calculator-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-options-tiles .calculator-option { min-height: 109px; padding: .55rem; font-size: .9rem; }
  .calculator-symbol { font-size: 1.55rem; }
  .finder, .form-grid, .process { grid-template-columns: 1fr; }
  .finder > button { justify-self: stretch; }
  .nav nav { gap: .6rem 1rem; font-size: .88rem; }
  .swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 91%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
  .swipe > article { scroll-snap-align: start; scroll-margin-inline: 2px; }
}
@media print {
  body:has(.certificate) .top, body:has(.certificate) footer, body:has(.certificate) .demo, body:has(.certificate) .skip { display: none; }
  .certificate { break-inside: avoid; margin: 0 auto; }
  body:has(.receipt) .demo, body:has(.receipt) .skip, .receipt .actions { display: none; }
  .receipt { break-inside: avoid; margin: 0 auto; }
}
