@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #112d2b;
  --muted: #465e5b;
  --deep: #103835;
  --brand: #0bb7ad;
  --brand-tint: color-mix(in srgb, var(--brand) 15%, var(--paper));
  --teal: #006b66;
  --teal-hover: #075853;
  --paper: #fff;
  --pale: #f7f6f2;
  --rule: #d8e5e1;
  --gutter: clamp(18px, 4.5vw, 68px);
  --section: clamp(56px, 7vw, 102px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .72, .27, 1);
  --font-text: "Source Sans 3", system-ui, sans-serif;
  --whatsapp-edge: clamp(12px, 2.7vw, 36px);
  --whatsapp-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 450 17px/1.6 var(--font-text);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
svg { display: block; width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.home-copy :focus-visible { outline-color: #9ee8e4; }

.wrap { width: min(100% - var(--gutter) * 2, 1260px); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 5;
  inset: 12px auto auto 16px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--paper);
  background: var(--deep);
}

.skip:focus { transform: none; }

.masthead { --masthead-height: 76px; background: var(--paper); }
.contact-bar { background: var(--teal); color: var(--paper); }
.contact-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 clamp(8px, 2.2vw, 28px);
}
.contact-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.contact-bar a:hover { text-decoration: underline; text-underline-offset: .25em; }
.contact-bar a:focus-visible { outline: 2px solid var(--paper); outline-offset: 1px; }
.contact-mail-short { display: none; }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--masthead-height);
  gap: 24px;
  position: relative;
}

.brand-lockup { display: inline-flex; flex: none; align-items: center; gap: 4px; }
.brand-flame { width: var(--flame-width); height: auto; }
.brand-wordmark { width: var(--wordmark-width); }
.brand-wordmark img { width: 100%; height: auto; }
.brand-wordmark img + img { margin-top: 2px; }
.brand { --flame-width: 44px; --wordmark-width: 106px; min-height: 44px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.8vw, 30px);
}
.main-nav > a, .more-nav > summary {
  padding-block: 11px;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}
.main-nav > a:hover, .more-nav > summary:hover { color: var(--teal); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .34em; }
.mobile-toggle { display: none; }
.more-nav > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
.more-nav > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms var(--ease);
}
.more-nav[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
.more-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% - 6px);
  right: 0;
  width: min(100%, 790px);
  padding: 26px 28px 16px;
  border-top: 2px solid var(--brand);
  background: var(--paper);
  box-shadow: 0 15px 38px #112d2b24;
}
.more-menu-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 20px; }
.more-menu a {
  display: block;
  padding-block: 5px;
  font-size: .85rem;
  hyphens: auto;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.more-menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
.more-menu .group-title { margin-bottom: 2px; color: var(--teal); font-weight: 800; }
.more-menu .menu-overview { margin-top: 14px; padding-block: 10px 1px; border-top: 1px solid var(--rule); font-weight: 750; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 440px);
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  --menu-inset: clamp(18px, 6vw, 29px);
}
.mobile-menu[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.mobile-menu::backdrop { background: #10383599; }
html:has(.mobile-menu[open]) { overflow: hidden; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: max(10px, env(safe-area-inset-top)) var(--menu-inset) 10px;
}
.mobile-menu-back, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--teal);
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-back { padding: 0 9px; border-radius: 8px; background: transparent; }
.mobile-menu-close { padding: 0; border-radius: 50%; background: var(--pale); }
.mobile-menu-back:hover, .mobile-menu-close:hover { background: var(--brand-tint); }
.mobile-menu-content { overflow: auto; overscroll-behavior: contain; padding: 14px var(--menu-inset) 24px; }
.mobile-menu-panel h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 7vw, 2rem); }
.mobile-menu-panel .small-label + h2 { margin-top: 4px; }
.mobile-menu-panel h2:focus { outline: none; }
.mobile-menu-links { display: grid; gap: 4px; }
.mobile-menu-links > :is(a, button) {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-links button { cursor: pointer; }
.mobile-menu-links > :is(a, button):hover { background: var(--pale); }
.mobile-menu-links > :is(a, button):active { background: var(--brand-tint); }
.mobile-menu-links a[aria-current="page"] { background: #edf6f3; color: var(--teal); }
.mobile-menu-links svg { color: var(--teal); }
.mobile-menu-links button svg:last-child { width: 16px; height: 16px; margin-left: auto; }
.mobile-menu-more { margin-top: 12px; }
.mobile-menu-more button { background: var(--pale); }
.mobile-menu-overview { margin: 14px 0 0 12px; min-height: 44px; align-content: center; }
.mobile-menu-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px var(--menu-inset) max(16px, env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -6px 20px #10383510;
}
.mobile-menu-contact .button { padding-inline: 8px; }
.mobile-menu-contact .mobile-menu-whatsapp { background: var(--pale); color: var(--teal); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.button svg { width: 17px; height: 17px; }
.button.brand-button:hover { background: var(--teal-hover); }
.home-copy .brand-button, .subpage-hero-copy .brand-button { border-color: var(--brand); }
.button.on-dark { background: transparent; border-color: #749894; color: white; }
.button.on-dark:hover { background: #28514e; }
.button.whatsapp-button { background: #17684a; color: white; }
.button.whatsapp-button:hover { background: #10523a; }
.whatsapp-float {
  position: fixed;
  z-index: 3;
  right: var(--whatsapp-edge);
  bottom: var(--whatsapp-bottom);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 18px #112d2b35;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 220ms;
}
.whatsapp-float[inert] { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; }
.whatsapp-float svg { width: 19px; height: 19px; }

.home-hero {
  min-height: 550px;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  overflow: hidden;
  border-radius: 24px 24px 92px 24px;
  background: var(--deep);
  color: white;
}

.home-copy { align-self: center; padding: clamp(33px, 5.1vw, 73px); }
.home-copy h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--teal);
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow svg { width: 17px; height: 17px; }
.home-copy .eyebrow { color: var(--brand); }

h1, h2, h3 { font-weight: 675; }
h1 { margin-top: 16px; font-size: clamp(2.1rem, 3.85vw, 3.6rem); line-height: 1.1; letter-spacing: -.022em; }
.home-claim {
  width: clamp(195px, 27vw, 340px);
  height: auto;
  margin-top: .06em;
}
h2 { font-size: clamp(1.88rem, 3.25vw, 3.2rem); line-height: 1.15; letter-spacing: -.022em; }
h3 { font-size: 1.18rem; line-height: 1.28; letter-spacing: -.01em; }
.eyebrow + h2 { margin-top: 10px; }
.lede { max-width: 50ch; margin-top: 21px; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); }
.home-copy .lede { color: #dbece8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 27px; }

.photo { position: relative; min-width: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.home-visual { position: relative; display: grid; min-width: 0; isolation: isolate; }
.hero-photo { display: grid; align-items: end; isolation: isolate; }
.hero-photo img { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { object-position: 53% center; }
.meister-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 9px 5px 5px;
  border-radius: 4px;
  box-shadow: 0 4px 14px #142a2860;
  background: #fffaf0;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.home-visual .meister-badge {
  inset: auto clamp(15px, 3.3vw, 48px) clamp(26px, 3.6vw, 52px) auto;
}
.meister-badge img { width: clamp(44px, 4vw, 60px); height: auto; }
.meister-badge strong, .meister-badge small { display: block; }
.meister-badge small { margin-top: 2px; font-size: .76rem; font-weight: 450; }
.meister-badge:hover small { text-decoration: underline; }
.meister-badge:focus-visible { outline-color: #9ee8e4; }

.site-dialog {
  width: min(100% - var(--gutter) * 2, 500px);
  max-height: calc(100% - 36px);
  padding: clamp(14px, 3.5vw, 24px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.site-dialog::backdrop { background: #0d2222cc; }
.site-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.site-dialog-header h2 { font-size: clamp(1.25rem, 4.8vw, 1.65rem); }
.site-dialog-header button { min-height: 44px; border: 0; background: none; cursor: pointer; }
html:has(.certificate-dialog[open]) { overflow: hidden; }
.certificate-dialog { position: fixed; inset: 0; width: fit-content; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.certificate-dialog > img { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: 0; box-shadow: 0 16px 48px #0005; }
.certificate-close { position: absolute; top: -12px; right: -12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 2px 8px #0003; cursor: pointer; }
.certificate-close svg { width: 18px; height: 18px; }
.urgent-contact-dialog {
  position: fixed;
  inset: auto var(--whatsapp-edge) var(--whatsapp-bottom) auto;
  width: min(100% - 2 * var(--whatsapp-edge), 390px);
  max-height: calc(100% - var(--whatsapp-bottom) - 12px);
  margin: 0;
}
.urgent-contact-dialog p { color: var(--muted); }
.urgent-contact-dialog .actions { margin-top: 14px; gap: 8px; }
.urgent-contact-dialog .actions .button { width: 100%; min-height: 44px; }

.section { padding-block: var(--section); }
.small-label {
  color: var(--teal);
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.small-label + h2 { margin-top: 13px; }
main:not(:has(.home-hero)) h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); overflow-wrap: break-word; }
.plain-link {
  display: inline-block;
  padding-block: 5px;
  color: var(--teal);
  font-size: .94rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .29em;
}
.plain-link:hover { text-decoration-thickness: 2px; }
.action-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  justify-self: start;
  min-height: 47px;
  padding: 11px 17px;
  border: 0;
  border-bottom: 2px solid var(--deep);
  background: var(--teal);
  color: var(--paper);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 200ms var(--ease);
}
.action-link:hover { background: var(--teal-hover); }

.service-index { background: var(--teal); color: var(--paper); }
.service-index-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px clamp(36px, 7vw, 105px);
}
.service-index .small-label, .service-index .plain-link { color: inherit; }
.service-index :focus-visible { outline-color: var(--paper); }
.service-index .plain-link { margin-top: 20px; }
.service-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ffffff59; }
.service-rows li { border-bottom: 1px solid #ffffff59; }
.service-rows a {
  display: grid;
  grid-template-columns: clamp(28px, 3vw, 36px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px);
  padding: 17px 5px;
  text-decoration: none;
  transition: background-color 230ms var(--ease);
}
.service-rows a:hover, .service-rows a:focus-visible { background: var(--teal-hover); }
.service-rows a > svg { width: 100%; height: auto; margin-top: 3px; color: #9ee8e4; }
.service-rows h3 { font-size: clamp(1.18rem, 2vw, 1.56rem); }
.service-rows p { margin-top: 4px; font-size: .91rem; }

.work-showcase { background: var(--pale); }
.work-heading { margin-bottom: clamp(22px, 4vw, 45px); }
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 55px);
}
.work-grid article > a { display: block; text-decoration: none; }
.work-grid article > a:hover h3 { color: var(--teal); text-decoration: underline; text-underline-offset: .17em; }
.work-detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.work-photo img { height: clamp(110px, 18vw, 235px); object-position: center 57%; }
.work-main-photo img { height: clamp(250px, 37vw, 470px); }
.work-climate img { object-position: center 17%; }
.work-label { padding-block: 10px 14px; border-bottom: 1px solid var(--rule); }
.work-label h3 { margin-top: 5px; }
.photo-examples { background: var(--pale); }
.photo-examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3.5vw, 42px); }
.project-example-link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.example-photo img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.project-example-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
@media (max-width: 770px) {
  .photo-examples-grid { grid-template-columns: minmax(0, 1fr); }
}
.work-feature h3 { font-size: clamp(1.3rem, 2.7vw, 2.2rem); }
.work-pair { display: grid; align-content: start; gap: clamp(16px, 3.4vw, 38px); }

.worksheet-layout, .heat-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(23px, 5vw, 70px);
}
.worksheet-layout { align-items: center; }
.worksheet-photo img, .heat-faq-photo img, .repair-work-photo img {
  height: clamp(220px, 34vw, 440px);
  border-radius: 0 0 32px 0;
}
.heat-faq-photo img { height: clamp(220px, 27vw, 380px); }
.repair-work-photo { margin-top: 22px; }
.repair-work-photo img { height: clamp(190px, 24vw, 320px); }

.team, .review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: 24px clamp(30px, 7vw, 105px);
}
.team p:not(.small-label) { max-width: 43ch; color: var(--muted); }
.team .plain-link { margin-top: 14px; }
.responsive-photo { display: contents; }
.responsive-photo > source { display: none; }
.team-locality { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
.team .speyer-dom { flex: none; width: clamp(44px, 5vw, 66px); height: auto; }
.brand-banner { padding: clamp(14px, 2.5vw, 28px) 0; background: var(--paper); }
.brand-window { overflow-x: auto; overscroll-behavior-inline: contain; }
.brand-window:focus-visible { outline-offset: -3px; }
.brand-track { display: flex; width: max-content; }
.brand-logos {
  --logo-gap: clamp(25px, 4vw, 55px);
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0 var(--logo-gap) 0 0;
  list-style: none;
}
.brand-logos:first-child { margin-left: var(--gutter); }
.brand-logos[aria-hidden="true"] { display: none; }
.brand-logos li { display: grid; flex: none; place-items: center; width: clamp(87px, 10vw, 124px); height: 54px; overflow: hidden; }
.brand-logos img { width: 100%; height: clamp(32px, 4vw, 41px); object-fit: contain; }
.brand-logos [data-brand="samsung"] img { width: min(41px, 42%); height: auto; transform: scale(2.3); }
.customer-proof {
  background: #edf6f3;
  padding-block: clamp(40px, 6vw, 84px);
}
.review-layout {
  width: min(100% - var(--gutter) * 2, 960px);
  grid-template-columns: minmax(0, 1fr) minmax(0, min(46%, 440px));
}
.review-score { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; margin-top: 12px; }
.review-score strong { display: flex; align-items: center; gap: 7px; font-size: 1.17rem; }
.review-score svg { width: 18px; height: 18px; color: #795817; fill: #eec568; }
.review-date { display: block; color: var(--muted); font-size: .82rem; }
.review-carousel { min-width: 0; }
.review-frames {
  --frame-gutter: 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: calc(var(--frame-gutter) * 2);
  margin-inline: calc(-1 * var(--frame-gutter));
  padding: 5px var(--frame-gutter) 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--frame-gutter);
}
.review-carousel[data-ready] .review-frames { scrollbar-width: none; }
.review-frames:focus-visible { outline-offset: 0; border-radius: var(--radius); }
.review-card {
  padding: clamp(14px, 3.2vw, 24px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 5px 11px #10383518;
  scroll-snap-align: start;
}
.review-card figcaption { margin-bottom: 10px; color: var(--teal); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 750; }
.review-card img, .review-image img { width: min(100%, 368px); height: auto; }
.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 3px;
}
.review-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--teal);
  cursor: pointer;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.review-controls button:hover { background: var(--teal); color: var(--paper); }
.review-controls button svg { width: 16px; height: 16px; }
.review-controls [data-review-prev] svg { transform: rotate(180deg); }
.review-dots { display: flex; align-items: center; gap: 6px; }
.review-dots span { width: 7px; height: 7px; border-radius: 8px; background: #8eafab; }
.review-dots .is-active { width: 17px; background: var(--teal); }
.review-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.review-reference .plain-link { margin-top: 8px; }
.enquiry-start { display: flex; flex-wrap: wrap; gap: 5px 20px; margin-top: 12px; }

.contact-line { background: white; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: end;
  padding-block: clamp(36px, 5.8vw, 79px);
}
.contact-copy { margin-top: 12px; max-width: 58ch; color: var(--muted); }
.contact-methods { display: grid; justify-items: start; gap: 2px; }
.phone-number {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(1.32rem, 2.75vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.042em;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
}
.phone-number:hover { color: var(--teal); }

.enquiry-section { background: var(--pale); }
.reference-band + .enquiry-section { background: var(--paper); }
.enquiry-jump { margin-top: 18px; }
.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  grid-template-areas: "intro form" "alternatives form";
  grid-template-rows: auto 1fr;
  gap: 12px clamp(30px, 6vw, 100px);
  align-items: start;
}
.enquiry-intro { grid-area: intro; }
.enquiry-alternatives { grid-area: alternatives; }
.enquiry-phone { color: var(--muted); }
.enquiry-form {
  grid-area: form;
  min-width: 0;
  padding: clamp(15px, 3.5vw, 40px);
  border-top: 3px solid var(--brand);
  background: var(--paper);
}
.enquiry-progress { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 19px; }
.enquiry-progress progress { width: 83px; height: 6px; accent-color: var(--teal); }
.enquiry-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.enquiry-form legend { padding: 0; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.25; font-weight: 750; letter-spacing: -.025em; }
.enquiry-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}
.enquiry-options label {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  min-height: 73px;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.enquiry-options svg { grid-column: 2; grid-row: 1; color: var(--teal); width: 25px; height: 25px; }
.enquiry-options label span { grid-column: 1 / -1; grid-row: 2; font-size: .88rem; font-weight: 750; line-height: 1.35; hyphens: auto; overflow-wrap: anywhere; }
.enquiry-options label:hover { background: var(--pale); }
.enquiry-options label:has(:checked) { background: var(--brand-tint); border-color: var(--teal); }
.enquiry-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); flex: none; }
.enquiry-field { display: block; margin-top: 12px; font-weight: 750; }
.enquiry-field small { color: var(--muted); font-weight: 500; }
.enquiry-field input, .enquiry-field select {
  display: block;
  margin-top: 4px;
  width: 100%;
  min-height: 43px;
  padding: 6px 10px;
  border: 1px solid #a3bbb4;
  border-radius: 2px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
.enquiry-field input::placeholder { color: var(--muted); }
.enquiry-form .enquiry-follow-up { margin-top: 19px; padding: 0 10px 10px; border-left: 2px solid var(--brand); }
.enquiry-follow-up legend { font-size: 1rem; }
.field-help { margin-top: 8px; color: var(--muted); font-size: .87rem; }
.enquiry-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 18px; }
.enquiry-actions .action-link { cursor: pointer; }
.enquiry-back { min-height: 44px; padding: 7px 0; border: 0; background: none; color: var(--teal); font-weight: 750; text-decoration: underline; text-underline-offset: .23em; cursor: pointer; }
.enquiry-summary { margin-top: 14px; }
.enquiry-summary div { padding-block: 7px; border-top: 1px solid var(--rule); }
.enquiry-summary dt { font-weight: 750; }
.enquiry-summary dd { color: var(--muted); overflow-wrap: anywhere; }
.enquiry-urgent { margin-top: 16px; padding: 12px 15px; border-left: 3px solid var(--brand); background: var(--pale); }
.enquiry-urgent .plain-link { display: block; }

.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 15px 28px; align-items: center; padding-block: 26px; color: var(--muted); font-size: .83rem; }
.footer-logo { --flame-width: 37px; --wordmark-width: 73px; }
.footer p a { text-underline-offset: .2em; }
.agency-credit a { display: inline-block; padding-block: 2px; color: inherit; text-underline-offset: .2em; white-space: nowrap; }

.section.funding { padding-block: clamp(34px, 4.5vw, 65px); background: var(--pale); scroll-margin-top: 16px; }
.funding:is(.funding-compact, :has(.funding-calculator-care)) + .enquiry-section { padding-block-start: 0; scroll-margin-block-start: 16px; }
.funding-heading { margin-bottom: 16px; }
.funding-heading h2 { max-width: 24ch; overflow-wrap: anywhere; hyphens: auto; }
.funding-teaser { max-width: 56ch; margin-top: 6px; color: var(--muted); }
.funding-compact .funding-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.funding-quickcheck { display: grid; min-width: 0; gap: 10px; margin-bottom: 10px; }
.funding-zip {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2vw, 24px);
  border-radius: var(--radius);
  background: var(--paper);
}
.funding-zip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.funding-zip .enquiry-field { margin: 0; }
.funding-zip .enquiry-field input { min-height: 48px; }
.funding-zip-row button { min-height: 48px; padding-inline: clamp(10px, 2vw, 20px); }
#funding-zip-hint { color: var(--muted); font-size: .85rem; }
.funding-quickcheck-outcome { display: grid; gap: 10px; }
.funding-disclosure { min-width: 0; border-radius: 12px; background: var(--paper); }
.funding-disclosure + .funding-disclosure { margin-top: 8px; }
.funding-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 15px;
  border-radius: inherit;
  color: var(--teal);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.funding-disclosure summary::-webkit-details-marker { display: none; }
.funding-disclosure summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 3px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.funding-disclosure[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.funding-details { padding: 0 clamp(12px, 2vw, 22px) 16px; }
.funding-sources { max-width: 70ch; margin-bottom: 12px; color: var(--muted); }
.funding-kfw { flex: none; width: 58px; height: auto; }
.funding-local-result { padding: 12px clamp(14px, 2vw, 24px); border-radius: 12px; background: var(--brand-tint); }
.funding-calculator-care { margin-bottom: 10px; }
@media (min-width: 771px) {
  .funding > .wrap:has(.funding-quickcheck, .funding-calculator-care) { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 12px clamp(24px, 6vw, 88px); }
  .funding > .wrap:has(.funding-quickcheck, .funding-calculator-care) > .funding-heading { grid-row: span 2; margin-bottom: 0; }
  .funding > .wrap:has(.funding-quickcheck, .funding-calculator-care) > .funding-disclosure { grid-column: 2; }
  .funding-quickcheck, .funding-calculator-care { margin-bottom: 0; }
}
.funding-calculator {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  border-radius: var(--radius);
  background: var(--paper);
}
.funding-calculator-care { grid-template-columns: minmax(0, 1fr); }
.funding-calculator-fields, .funding-calculator-result { padding: clamp(18px, 3vw, 36px); min-width: 0; }
.funding-calculator-fields { display: grid; justify-items: start; gap: 12px; }
.funding-calculator-fields > p, .funding-calculator fieldset p { color: var(--muted); }
.funding-calculator .enquiry-field { width: 100%; margin: 0; }
.funding-calculator fieldset { display: grid; min-width: 0; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; }
.funding-calculator legend { padding-inline: 4px; font-weight: 700; }
.funding-check { display: flex; align-items: baseline; gap: 8px; }
.funding-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.funding-calculator-result { display: grid; align-content: center; gap: 16px; padding: clamp(16px, 2vw, 28px); border-radius: var(--radius); background: var(--deep); color: var(--paper); }
.funding-result-copy { display: grid; gap: 10px; }
.funding-result-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 106px), 1fr)); gap: 10px 14px; }
.funding-result-amounts > div { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; }
.funding-result-amounts dt { color: #d6e8e6; font-size: .88rem; line-height: 1.25; }
.funding-result-amounts dd { font-size: clamp(1.45rem, 4.5vw, 2.65rem); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.12; overflow-wrap: anywhere; }
.funding-result-note { color: #d6e8e6; font-size: .86rem; line-height: 1.45; }
.funding-result-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.funding-result-footer .button { background: var(--paper); color: var(--deep); }
.funding-result-footer .button:hover { background: var(--brand-tint); }
.funding-result-source { margin-inline-start: auto; padding: 3px 6px; border-radius: 8px; background: var(--paper); }
.funding-result-source .funding-kfw { width: 50px; }
.funding-calculator-result :focus-visible { outline-color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .funding-result-amounts:not([hidden]) { animation: show-photo 220ms var(--ease) both; }
}
.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}
.funding-program {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: clamp(14px, 1.6vw, 20px);
  background: var(--paper);
  border-radius: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.funding-program:first-child { background: var(--brand-tint); }
.funding-program:not(:first-child) { background: var(--pale); }
.funding-program:only-child { max-width: 700px; }
.funding-program-header { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 3px; color: var(--teal); }
.funding-program-header small { color: var(--muted); font-size: .79rem; }
.funding-program h3 { font-size: clamp(1.07rem, 1.5vw, 1.27rem); }
.funding-condition { color: var(--muted); }
.funding-amount { margin-top: 3px; color: var(--teal); font-size: clamp(1.27rem, 2vw, 1.65rem); font-weight: 750; line-height: 1.15; }
.funding-program-link { margin-top: auto; padding-top: 7px; color: var(--teal); font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: .19em; }
.funding-program:hover .funding-program-link { text-decoration-thickness: 2px; }
.funding-region { margin-top: clamp(22px, 3vw, 36px); }
.funding-region h3 { display: flex; align-items: center; gap: 8px; }
.funding-region h3 svg { color: var(--teal); }
.funding-region ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin-block: 12px;
  padding: 0;
  list-style: none;
}
.funding-region li { padding: 15px 18px; border-radius: 12px; background: var(--paper); }
.funding-region li p { margin-block: 2px 6px; color: var(--muted); }
.funding-region-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.funding-date { margin-top: 14px; color: var(--muted); font-size: .84rem; }

.subpage-hero { padding-bottom: var(--section); }
.subpage-hero:has(+ .funding) { padding-bottom: 0; }
.subpage-hero + :is(.detail-plan, .repair-layout, .emergency-info) { padding-top: 0; }
.subpage-hero-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  isolation: isolate;
}
.subpage-hero-visual { position: relative; grid-area: 1 / 1 / 2 / 9; isolation: isolate; }
.subpage-hero-visual .meister-badge { inset: auto auto clamp(10px, 2.5vw, 33px) clamp(10px, 2.5vw, 33px); }
.subpage-hero-copy {
  grid-area: 1 / 8 / 2 / -1;
  z-index: 1;
  padding: clamp(26px, 3.7vw, 54px);
  background: var(--deep);
  color: var(--paper);
  border-bottom: 3px solid var(--brand);
}
.subpage-hero-copy .eyebrow, .subpage-hero-copy .plain-link { color: var(--brand); }
.subpage-hero-copy :focus-visible { outline-color: #9ee8e4; }
.subpage-hero-copy .eyebrow svg { width: 17px; height: 17px; }
main .subpage-hero-copy h1 {
  font-size: clamp(1.85rem, 3.6vw, 4.1rem);
  hyphens: auto;
}
.subpage-hero-copy .lede { max-width: 38ch; color: #dbece8; }
.subpage-hero-photo img {
  height: clamp(430px, 46vw, 650px);
  object-position: center 67%;
}
.photo figcaption { margin-top: 9px; color: var(--muted); font-size: .82rem; }

.project-journal { background: var(--deep); color: white; }
.project-journal .small-label { color: var(--brand); }
.project-journal :focus-visible { outline-color: #94dfd8; }
.journal-title { margin-bottom: clamp(25px, 4vw, 48px); }
.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .33fr);
  grid-template-areas: "images controls";
  align-items: center;
  gap: 18px clamp(22px, 4vw, 68px);
}
.journal-images { display: grid; grid-area: images; gap: 18px; }
.journal-panel { min-width: 0; }
.journal-photo img {
  height: clamp(265px, 41vw, 515px);
  object-position: 50% 56%;
  border-radius: 0 0 50px 0;
}
.project-journal .journal-photo figcaption { color: #d3e7e3; }
.journal-controls {
  display: grid;
  grid-area: controls;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #0c2e2b;
}
.journal-controls button {
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #d3e7e3;
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.journal-controls button:hover { color: var(--paper); }
.journal-controls button:active { background: #174744; }
.journal-controls button[aria-selected="true"] { background: var(--teal); color: var(--paper); }
.journal-controls button:focus-visible { outline-offset: -2px; }
.project-source { margin-top: 17px; color: var(--brand); }

.maintenance-help, .repair-layout, .emergency-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .77fr);
  gap: 27px clamp(34px, 7vw, 110px);
  align-items: start;
}
.heat-planning { display: grid; gap: clamp(34px, 6vw, 82px); }
.planning-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px clamp(18px, 4.5vw, 64px);
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.planning-list li { padding-top: 15px; border-top: 1px solid var(--teal); }
.planning-marker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--teal);
}
.planning-marker svg { width: 31px; height: 31px; }
.planning-marker span { font-size: .83rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.planning-list p { max-width: 35ch; color: var(--muted); margin-top: 5px; }
.heat-planning .text-questions { max-width: 760px; }
.topic-label { display: flex; align-items: flex-start; gap: 10px; }
.topic-label svg { margin-top: .15em; color: var(--teal); }
:is(.catalog-group, .project-chapter) h2 .topic-label svg { width: 1em; height: 1em; }

.text-questions h2, .side-note h2 { font-size: clamp(1.31rem, 2.25vw, 2.06rem); }
:is(.text-questions, .symptom-list) details { border-radius: 12px; background: var(--pale); }
:is(.text-questions, .symptom-list) details + details { margin-top: 8px; }
:is(.text-questions, .symptom-list) details[open] { background: #edf6f3; }
.text-questions h2 + details, .symptom-list { margin-top: 16px; }
.text-questions summary, .symptom-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}
.text-questions summary:focus-visible, .symptom-list summary:focus-visible { outline-offset: -2px; }
.text-questions details p, .symptom-list details p { margin: 0 16px 0 44px; padding: 2px 0 16px; color: var(--muted); }
.disclosure-toggle { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--teal); }
.disclosure-toggle svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
details[open] .disclosure-toggle { background: var(--teal); color: var(--paper); }
details[open] .disclosure-toggle svg { transform: rotate(180deg); }

.maintenance-worksheet { background: var(--pale); }
.worksheet-layout > div { max-width: 740px; }
.worksheet-list { margin-top: 19px; border-top: 1px solid #bfdbd3; }
.worksheet-list div { padding-block: 12px; border-bottom: 1px solid #bfdbd3; }
.worksheet-list dt, .catalog-group dt { font-weight: 750; }
.worksheet-list dd, .catalog-group dd { color: var(--muted); }
.worksheet-list dd { margin: 4px 0 0 32px; }
.side-note {
  border-left: 2px solid var(--brand);
  padding: 5px 0 5px clamp(15px, 3vw, 32px);
}
.side-note p { color: var(--muted); margin-block: 9px 4px; }
.symptom-list summary { min-height: 56px; font-size: 1.06rem; }

.hero-note {
  margin-top: 17px;
  padding-left: 13px;
  border-left: 2px solid var(--brand);
  color: #dbece8;
  font-size: .86rem;
}
.emergency-info ul { margin: 15px 0 0; padding: 0; list-style: none; color: var(--muted); }
.emergency-info li + li { margin-top: 10px; }

.catalog-index { display: flex; flex-wrap: wrap; gap: 3px 22px; padding-bottom: 12px; }
.catalog-index a { padding-block: 6px; color: var(--teal); font-weight: 750; text-underline-offset: .24em; }
.catalog-group {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: 14px 35px;
  padding-block: clamp(24px, 4vw, 60px);
  border-bottom: 1px solid var(--rule);
  scroll-margin-block-start: 15px;
}
.catalog-group dl div { padding: 9px 6px; scroll-margin-block-start: 16px; }
.catalog-group dl div:first-child { padding-top: 0; }
.catalog-group dl div + div { border-top: 1px solid var(--rule); }
.catalog-group dl div:target { background: var(--pale); }
.catalog-group ul { margin: 0; padding: 0; list-style: none; }
.catalog-group h2 { font-size: clamp(1.55rem, 2.7vw, 2.6rem); }
.catalog-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.catalog-detail-photo { flex: 0 1 185px; }
.catalog-detail-photo img { height: 158px; object-position: 50% 65%; border-radius: 0 0 22px 0; }

.reference-layout, .project-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  gap: clamp(22px, 5vw, 72px);
}
.reference-layout, .project-chapter { align-items: center; }
.detail-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px clamp(16px, 3.7vw, 52px);
  margin-top: clamp(18px, 3vw, 36px);
}
.detail-topics > div { padding-block: 15px; border-top: 1px solid var(--rule); }
.detail-topics dt { font-size: 1.15rem; font-weight: 750; }
.detail-topics .topic-label { flex-direction: column; gap: 5px; }
.detail-topics .topic-label svg { width: 27px; height: 27px; }
.detail-topics dd { max-width: 56ch; margin-top: 4px; color: var(--muted); }
.reference-band { background: var(--pale); }
.reference-layout p:not(.small-label), .project-chapter p:not(.small-label) {
  max-width: 50ch;
  margin-block: 12px;
}
.reference-photo img {
  height: clamp(310px, 44vw, 570px);
  object-position: center 45%;
  border-radius: 0 0 48px 0;
}
.review-reference { grid-template-columns: minmax(0, 1fr) minmax(0, 410px); }
.review-reference .review-image {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0 0 24px 0;
}
.detail-related { padding-block: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.detail-related h2 { font-size: clamp(1.18rem, 2.4vw, 1.5rem); }
.detail-related ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.project-story { padding-block: 0 var(--section); }
.project-chapter { padding-block: clamp(30px, 6vw, 85px); border-bottom: 1px solid var(--rule); }
.project-chapter:first-child { padding-top: 0; }
.project-story > a { margin-top: 25px; }
.project-story-photo img {
  width: min(100%, 560px);
  height: auto;
  border-radius: 0 0 48px 0;
}
@media (min-width: 771px) {
  .project-chapter:first-child { grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); }
  .project-chapter:first-child .project-story-photo { grid-column: 1; grid-row: 1; }
}
.project-story + .contact-line { border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu { transform: translateX(100%); }
  .mobile-menu[open] { transform: none; }
  @supports (transition-behavior: allow-discrete) {
    .mobile-menu { transition: transform 260ms var(--ease), display 260ms allow-discrete, overlay 260ms allow-discrete; }
    .mobile-menu::backdrop {
      opacity: 0;
      transition: opacity 260ms ease, display 260ms allow-discrete, overlay 260ms allow-discrete;
    }
    .mobile-menu[open]::backdrop { opacity: 1; }
    @starting-style {
      .mobile-menu[open] { transform: translateX(100%); }
      .mobile-menu[open]::backdrop { opacity: 0; }
    }
  }
  @supports not (transition-behavior: allow-discrete) {
    .mobile-menu[open] { animation: mobile-menu-in 260ms var(--ease); }
    @keyframes mobile-menu-in { from { transform: translateX(100%); } }
  }
  .mobile-menu-panel:not([hidden]) { animation: mobile-panel-in 185ms var(--ease) both; }
  @keyframes mobile-panel-in { from { opacity: 0; transform: translateX(10px); } }
  .brand-window:not(:focus-visible) {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
  }
  .brand-window:not(:focus-visible) .brand-logos:first-child { margin-left: 0; }
  .brand-window:not(:focus-visible) .brand-logos[aria-hidden="true"] { display: flex; }
  .brand-window:not(:focus-visible) .brand-track { animation: brand-loop 46s linear infinite; }
  @keyframes brand-loop { to { transform: translateX(-50%); } }
  .review-frames { scroll-behavior: smooth; }
  @keyframes unfold {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes show-photo {
    from { opacity: .4; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .more-nav[open] .more-menu { animation: unfold 240ms var(--ease) both; }
  .journal-photo:not([hidden]), .review-image:not([hidden]) { animation: show-photo 420ms var(--ease) both; }
  @keyframes slide-in {
    from { opacity: .18; transform: translate(var(--reveal-x), 30px); }
    to { opacity: 1; transform: translate(0, 0); }
  }
  [data-reveal] { --reveal-x: 28px; }
  [data-reveal="left"] { --reveal-x: -28px; }
  [data-reveal].has-entered { animation: slide-in 630ms var(--ease) both; }
  @media (max-width: 770px) {
    [data-reveal], [data-reveal="left"] { --reveal-x: 0px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 1080px) {
  .home-hero { min-height: 480px; }
}

@media (max-width: 770px) {
  .contact-bar-inner { justify-content: space-between; }
  .contact-bar a { min-height: 44px; }
  .masthead { --masthead-height: 64px; }
  .masthead-inner { flex-wrap: wrap; gap: 0 20px; }
  .brand { --flame-width: 37px; --wordmark-width: 88px; }
  .main-nav { flex-wrap: wrap; flex-basis: 100%; padding-bottom: 10px; }
  .masthead[data-mobile-menu] .mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 0 6px 12px;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-toggle:active { opacity: .72; }
  .mobile-toggle svg { width: 20px; height: 20px; color: var(--teal); }
  .masthead[data-mobile-menu] .main-nav { display: none; }
  .more-nav > summary:focus-visible { outline-offset: -2px; }
  .more-menu { position: static; padding: 7px 0 11px; border-top: 1px solid var(--rule); box-shadow: none; }
  .more-menu-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  .more-menu a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; line-height: 1.3; }
  .service-index-layout, .work-grid, .worksheet-layout, .heat-faq-layout, .contact-layout, .journal-layout,
  .maintenance-help, .repair-layout, .emergency-info,
  .catalog-group, .team, .review-layout, .enquiry-layout,
  .reference-layout, .project-chapter { grid-template-columns: minmax(0, 1fr); }
  .review-layout { width: min(100% - var(--gutter) * 2, 440px); gap: 16px; }
  .enquiry-layout { grid-template-areas: "intro" "form" "alternatives"; grid-template-rows: none; }
  .section { padding-block: clamp(40px, 8vw, 62px); }
  .work-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage-hero-layout { grid-template-columns: minmax(0, 1fr); }
  .subpage-hero-visual, .subpage-hero-copy { grid-area: auto; }
  .subpage-hero-photo img { height: clamp(205px, 60vw, 430px); }
  main .subpage-hero-copy h1 { font-size: clamp(2.13rem, 6vw, 3.4rem); text-wrap: balance; hyphens: manual; }
  .journal-layout { grid-template-areas: "controls" "images"; gap: 14px; }
  .journal-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .journal-controls button { padding-inline: 3px; font-size: clamp(.82rem, 3.5vw, 1rem); text-align: center; white-space: nowrap; }
  .journal-photo img { height: auto; aspect-ratio: 4 / 3; border-bottom-right-radius: 32px; }
}

@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; border-radius: 17px 17px 54px 17px; }
  .home-copy { padding: clamp(24px, 6vw, 44px); }
  .home-copy h1 { font-size: clamp(1.9rem, 8.2vw, 3.25rem); }
  .home-copy .actions { gap: 10px; }
  .home-copy .button { padding-inline: 13px; }
  .hero-photo { min-height: clamp(224px, 62vw, 405px); }
}

@media (max-width: 380px) {
  .more-menu-groups { grid-template-columns: minmax(0, 1fr); }
  .home-copy .actions > a { width: 100%; }
  .subpage-hero-copy { padding: 22px; }
  .subpage-hero-copy .lede { margin-top: 16px; }
  .subpage-hero-copy .actions { margin-top: 19px; }
  .subpage-hero#kontakt .subpage-hero-photo img { height: 183px; }
  h1 { font-size: 2.15rem; }
  main:not(:has(.home-hero)) h1 { font-size: 2rem; }
}
@media (max-width: 360px) {
  .contact-mail-address { display: none; }
  .contact-mail-short { display: inline; }
}

@media (max-width: 600px) {
  .detail-topics { grid-template-columns: minmax(0, 1fr); }
  .detail-topics .topic-label { flex-direction: row; gap: 10px; }
  .detail-topics .topic-label svg { width: 22px; height: 22px; }
  .detail-topics dd { margin-inline-start: 32px; }
}

@media (max-width: 480px) {
  .planning-list { grid-template-columns: minmax(0, 1fr); }
}
