:root {
  --accent: #fe5100;
  --ink: #151413;
  --paper: #f2efe8;
  --muted: #53504b;
  --header: 76px;
  --gutter: clamp(20px, 5vw, 92px);
  --scene: calc(100svh - var(--header));
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
p { line-height: 1.62; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { background: var(--accent); color: #111; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top {
  height: var(--header);
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-inline: var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid #d8d4ca;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { width: clamp(210px, 27vw, 378px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 46px); font-size: .77rem; font-weight: 700; }
.nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.navcta { border: 1px solid var(--ink); padding: 12px 15px; }
.navcta:hover { background: var(--accent); }
.hamb { display: none; border: 1px solid #a6a29a; color: var(--ink); background: none; border-radius: 0; width: 44px; height: 44px; flex: none; }
main { padding-top: var(--header); }
.shell { width: min(100%, 1480px); margin-inline: auto; }
.hero, .section, .statement, .contact { min-height: var(--scene); }
.hero, .statement { position: relative; isolation: isolate; display: grid; color: #fff; background: #23211f; }
.hero-img, .statement-img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 52%;
  opacity: 0;
  transition: opacity 1.05s ease;
}
.hero-img img.active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-img img.active { animation: hero-photo-zoom 6.6s linear both; }
  .hero:has(#hero-pause[aria-label="Bildwechsel fortsetzen"]) .hero-img img.active {
    animation-play-state: paused;
  }
}
@keyframes hero-photo-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}
.hero-img::after, .statement-img::after { position: absolute; inset: 0; content: ""; }
.hero-img::after {
  background: linear-gradient(90deg, #111e 0%, #131310b5 35%, #14131219 84%), linear-gradient(0deg, #101010b5, transparent 26%);
}
.hero { align-content: end; gap: clamp(35px, 8svh, 105px); padding: clamp(54px, 10svh, 110px) var(--gutter) 24px; }
.hero-content, .hero-index { width: min(100%, 1480px); margin-inline: auto; }
.overline, .kicker { font-size: .73rem; line-height: 1.45; letter-spacing: .17em; font-weight: 800; text-transform: uppercase; }
.overline, .kicker { display: flex; align-items: center; gap: 11px; }
.overline::before, .kicker::before { content: ""; display: inline-block; width: 20px; height: 2px; background: var(--accent); flex: none; }
h1, h2 { font-weight: 800; letter-spacing: -.071em; }
h1 { font-size: clamp(3.4rem, 9.4vw, 9.3rem); line-height: .88; margin: 24px 0 26px; }
h1 > span, .statement h2 > span { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .heading-in-view {
    animation: heading-focus 750ms cubic-bezier(.2,.65,.3,1) both;
  }
}
@keyframes heading-focus {
  from { filter: blur(7px); opacity: .48; }
  to { filter: blur(0); opacity: 1; }
}
.hero-desc { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
.hero-desc p { max-width: 360px; color: #f4f1ec; font-size: clamp(.98rem, 1.4vw, 1.1rem); }
.primary { display: inline-flex; align-items: center; gap: 26px; min-height: 49px; padding: 12px 16px; border: 1px solid transparent; background: var(--accent); color: #111; font-size: .79rem; font-weight: 800; justify-content: space-between; }
.primary b { font-size: 1.15rem; font-weight: 400; }
.primary:hover { outline: 1px solid currentColor; outline-offset: -5px; }
.hero-index { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid #fff7; padding-top: 13px; font-size: .7rem; letter-spacing: .1em; }
.scroll-link { justify-self: center; }
.scroll-link span { margin-left: 7px; }
.hero-controls { justify-self: end; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hero-controls button, .ticker button { width: 40px; height: 40px; background: none; color: inherit; border: 1px solid currentColor; }
.ticker { position: relative; display: flex; align-items: center; background: var(--accent); color: #111; padding-right: 50px; }
.ticker-window { overflow: hidden; width: 100%; }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-group { display: flex; justify-content: space-around; align-items: center; min-width: 100vw; padding-block: 17px; }
.ticker-group span { white-space: nowrap; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 24px; padding-inline: 15px; }
.ticker-group span::before { content: "◆"; font-size: .48rem; }
.ticker button { position: absolute; right: 6px; background: var(--accent); border-color: #1117; }
.ticker.paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.section { display: grid; align-content: center; padding: clamp(42px, 6svh, 85px) var(--gutter); }
.headline, .contact h2, .statement h2 { font-size: clamp(2.65rem, 5.8vw, 6.5rem); line-height: .96; margin: 15px 0 21px; }
#anspruch {
  display: flex;
  flex-direction: column;
  padding: 0;
}
#anspruch > .intro {
  flex: 1;
  width: min(100%, calc(1480px + 2 * var(--gutter)));
  padding: clamp(30px, 5svh, 68px) var(--gutter);
}
.ticker { flex: none; }
.intro { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 6vw, 115px); align-items: center; }
.intro p { color: var(--muted); max-width: 42ch; margin-bottom: 23px; font-size: clamp(1rem, 1.45vw, 1.2rem); }
.photo-frame { overflow: hidden; height: clamp(330px, 62svh, 690px); background: #c4c4bb; }
.photo-frame img, .service-display img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #anspruch .photo-frame > img,
  #leistungen .service-display > img,
  #arbeiten .slide > img { transition: transform 650ms ease; }
  #anspruch .photo-frame:hover > img,
  #leistungen .service-display:hover > img,
  #arbeiten .slide:hover > img { transform: scale(1.045); }
}
.services { background: #000; color: white; }
.services-head .headline { font-size: clamp(2.65rem, 4.75vw, 5.15rem); margin-bottom: 23px; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.service-list { border-top: 1px solid #fff5; }
.service-btn { width: 100%; min-height: clamp(42px, 6.2svh, 68px); display: grid; grid-template-columns: 2.2em minmax(0,1fr) 1.1em; align-items: center; gap: 9px; text-align: left; border: 0; border-bottom: 1px solid #fff5; color: #fff; background: transparent; padding: 8px 5px; }
.service-btn span, .service-btn em { color: var(--accent); font-style: normal; }
.service-btn strong { font-size: clamp(.98rem, 2.1vw, 2.15rem); letter-spacing: -.035em; }
.service-btn[aria-pressed=true] { color: var(--accent); }
.service-display { position: relative; min-height: 285px; height: 100%; overflow: hidden; background: #211e1c; }
.service-caption { position: absolute; bottom: 0; inset-inline: 0; padding: 38px 17px 13px; background: linear-gradient(transparent,#000e); font-size: .85rem; line-height: 1.45; }
.service-caption b { display: block; font-size: 1.06rem; margin-bottom: 4px; }
.statement { align-content: center; padding: 56px var(--gutter); }
.statement-img { background: url('assets/heating.webp') center / cover; }
.statement-img::after { background: linear-gradient(90deg,#111e,#15141490 70%,#14141440); }
.statement h2 { font-size: clamp(2.8rem, 7.8vw, 8.2rem); max-width: 11em; }
.statement p { max-width: 45ch; }
#arbeiten { padding-inline: 0; }
.gallery-head, .gallery-counter { width: min(calc(100% - 2 * var(--gutter)),1480px); margin-inline: auto; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.gallery-head .headline { font-size: clamp(2.5rem, 5vw, 5.4rem); }
.gallery-window { overflow: hidden; touch-action: pan-y pinch-zoom; cursor: grab; }
.gallery-window:focus-visible { outline-offset: -4px; }
.gallery-window.dragging { cursor: grabbing; user-select: none; }
.gallery-track { --count: 3; --gap: clamp(8px, 1.4vw, 20px); display: flex; gap: var(--gap); }
.gallery-track.moving { transition: transform .48s cubic-bezier(.25,.75,.23,1); }
.slide { position: relative; flex: 0 0 calc((100% - var(--count) * var(--gap)) / (var(--count) + 1)); overflow: hidden; background: #a8aaa2; }
.slide img { width: 100%; height: clamp(230px, 48svh, 500px); object-fit: cover; pointer-events: none; }
.slide figcaption { position: absolute; inset: auto 0 0; padding: 25px 10px 9px; background: linear-gradient(transparent,#000d); color: white; font-size: .77rem; }
.gallery-counter { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: .77rem; font-variant-numeric: tabular-nums; color: var(--muted); }
#gallery-pause { min-width: 32px; min-height: 32px; border: 1px solid currentColor; color: inherit; background: transparent; }
.process { background: #dedad1; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: clamp(27px,6svh,70px); }
.process-card { border-top: 1px solid #a29e94; padding-top: 12px; }
.process-card b { display: inline-block; padding: 5px 7px; background: var(--accent); color: #111; font-size: .69rem; }
.process-card h3 { font-size: clamp(1.3rem,2.9vw,2.9rem); letter-spacing: -.055em; margin: 14px 0 6px; }
.process-card p { color: var(--muted); max-width: 34ch; }
.contact { display: flex; flex-direction: column; background: var(--accent); color: #111; }
.contact-main { flex: 1; width: min(100%, calc(1480px + 2 * var(--gutter))); display: grid; align-items: center; grid-template-columns: 1.04fr 1fr; gap: clamp(28px,5vw,95px); padding: clamp(33px,5svh,64px) var(--gutter); }
.contact .kicker::before { background: currentColor; }
.contact h2 { font-size: clamp(2.7rem,5.6vw,6rem); }
.contact-mail { display: inline-block; margin-top: 18px; font-weight: 800; text-decoration: underline; text-underline-offset: .25em; overflow-wrap: anywhere; }
form { position: relative; display: grid; gap: 10px; min-width: 0; }
.form-grid { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
form label { display: grid; gap: 5px; min-width: 0; font-size: .81rem; font-weight: 700; }
form input, form select, form textarea { width: 100%; min-width: 0; border: 1px solid #111; border-radius: 0; background: #fff0; color: #111; padding: 10px; font-weight: 400; font-size: 1rem; }
form input, form select { min-height: 42px; }
form option { background: var(--paper); }
form textarea { resize: vertical; }
.contact-trap { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-note, #form-status { font-size: .82rem; }
#form-status:empty { display: none; }
.contact .primary { justify-self: start; background: #111; color: white; }
.contact .primary:disabled { color: #111; background: transparent; border-color: #1119; cursor: default; }
footer { background: #000; color: #f5f3ef; padding: 22px var(--gutter); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; }
footer a { text-decoration: underline; text-underline-offset: .25em; }
footer p { margin-top: 6px; font-size: .77rem; color: #c7c3bb; }
@media (prefers-reduced-motion: no-preference) {
  html, body { overflow: hidden; }
  .scene-flow {
    height: var(--scene);
    margin-top: var(--header);
    padding-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
  }
  .scene-flow > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}
@media (max-width: 1049px) {
  .gallery-track { --count: 2; }
}
@media (max-width: 760px) {
  :root { --header: 64px; }
  .brand img { width: clamp(175px,58vw,298px); }
  .hamb { display: block; }
  .nav { display: none; position: absolute; background: var(--paper); inset: 100% 0 auto; padding: 17px var(--gutter) 23px; border-bottom: 1px solid #d8d4ca; align-items: stretch; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding-block: 7px; }
  .hero-img::after { background: linear-gradient(90deg,#1119,#1112),linear-gradient(0deg,#111f,#1119 40%,transparent 78%); }
  .hero { gap: 27px; }
  .hero-desc { align-items: start; flex-direction: column; }
  .intro, .service-layout, .contact-main { grid-template-columns: 1fr; }
  .photo-frame { height: clamp(230px, 48svh, 430px); }
  .service-display { height: clamp(245px,45svh,440px); min-height: 0; }
  .gallery-track { --count: 1; }
  .slide img { height: clamp(200px, 44svh, 380px); }
  .slide figcaption { font-size: .7rem; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .gallery-head { align-items: start; flex-direction: column; }
  .gallery-head .headline { margin-bottom: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-index { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  #hero-pause, #ticker-pause, #gallery-pause { display: none; }
  .ticker { padding-right: 0; }
}
.hero-img img.incoming { z-index: 1; }
.hero-img::after { z-index: 2; }
.hero-img img:not(.active) { visibility: hidden; }
.service-display img { position: absolute; inset: 0; }

.contact-channels { display: grid; justify-items: start; }
.contact-channels .contact-mail + .contact-mail { margin-top: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 10px; }
.legal-links a, .legal-main a:not(.primary), .cookie-content p a { text-decoration: underline; text-underline-offset: .2em; }
html:has(.legal-page), body.legal-page { overflow: auto; }
.legal-page .top { gap: 12px; }
.legal-home { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.legal-main { width: min(100% - 2 * var(--gutter), 850px); margin-inline: auto; padding-block: calc(var(--header) + 65px) 65px; overflow-wrap: anywhere; }
.legal-main h1 { font-size: clamp(2.45rem, 6vw, 5.1rem); letter-spacing: -.055em; line-height: 1; }
.legal-main h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.025em; margin: 32px 0 10px; }
.legal-main p, .legal-main address { margin-bottom: 16px; line-height: 1.65; font-style: normal; }
.legal-main dl { display: grid; grid-template-columns: fit-content(35%) 1fr; gap: 12px 22px; margin-block: 25px; }
.legal-main dt { font-weight: 700; }
.legal-main dd { margin: 0; }
.legal-main code { overflow-wrap: anywhere; }

.cookie-dialog { width: min(930px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; padding: 0; border-radius: 4px; background: var(--paper); color: var(--ink); }
.cookie-dialog::backdrop { background: #161817a8; backdrop-filter: blur(5px); }
.cookie-grid { display: grid; grid-template-columns: 1.12fr 1fr; }
.cookie-photo { position: relative; min-height: 400px; isolation: isolate; background: #3b3935; overflow: hidden; }
.cookie-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 53%; }
.cookie-logo { position: absolute; bottom: 20px; left: 20px; width: min(215px, 65%); background: var(--paper); padding: 11px; }
.cookie-logo img { width: 100%; height: auto; }
.cookie-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 56px clamp(22px, 4vw, 44px) 32px; }
.cookie-content h2 { font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.04; letter-spacing: -.045em; margin: 0 0 18px; }
.cookie-content p { margin: 0 0 14px; }
.cookie-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.55rem; background: #fff; color: var(--ink); border: 0; border-radius: 50%; }
.cookie-confirm { margin-top: auto; color: #fff; background: #161817; }
@media (max-width: 670px) {
  .cookie-grid { grid-template-columns: 1fr; }
  .cookie-photo { min-height: 165px; }
  .cookie-logo { bottom: 12px; left: 12px; width: min(170px, 65%); }
  .cookie-content { padding: 48px 20px 24px; }
}
@media (max-width: 460px) {
  .legal-main dl { display: block; }
  .legal-main dd { margin: 3px 0 12px; }
  .legal-page .brand img { width: clamp(125px, 43vw, 200px); }
}

.contact-details { align-self: center; border-top: 1px solid currentColor; padding-top: 24px; }
.contact-details h3 { margin-bottom: 8px; }
