/* =========================================================
   Wärme Wilms – Fallbeispiel (erfundener Betrieb)
   Stimmung: Winternacht, die beim Scrollen warm wird.
   Die Farben --bg und --accent ändert das Skript mit der Temperatur.
   ========================================================= */
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/BarlowCond-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/BarlowCond-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/Barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/Barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0d1b2a;          /* kalt: Winternacht */
  --bg-2: #13263a;
  --accent: #8fc7ff;      /* kalt: Eisblau – wird zu Kupfer */
  --ink: #f4efe9;
  --ink-dim: #b9c3cc;
  --copper: #e0793a;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);        /* Emil: ease-out */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p, ul, dl, dd, figure, fieldset { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--copper); color: #1a0d06; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #111; padding: 10px 16px; }
.skip:focus { top: 12px; }
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; background: url(../bilder/korn.png); opacity: .07; mix-blend-mode: overlay; animation: grain 1s steps(5) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-4%)} 75%{transform:translate(-4%,-1%)} 100%{transform:translate(0,0)} }

.title { font: 800 clamp(60px, 10vw, 180px)/.9 var(--display); text-transform: uppercase; letter-spacing: -0.01em; max-width: 10ch; }
.h2 { font: 800 clamp(42px, 5.6vw, 96px)/1.06 var(--display); padding-top: .08em; text-transform: uppercase; text-wrap: balance; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.45; max-width: 36ch; }
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: 4px; background: var(--copper); color: #1a0d06; font-weight: 500; font-size: 18px; text-decoration: none; transition: scale .12s var(--ease), background-color .2s ease; }
.btn:active { scale: .97; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #f08d4f; } }
.btn[aria-disabled="true"] { background: rgba(244,239,233,.14); color: var(--ink-dim); pointer-events: none; }

/* ---------- Kopf ---------- */
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: .92; }
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.logo b { font-weight: 800; color: var(--accent); }
.logo svg { width: 46px; height: 46px; }
.lg-ring { fill: rgba(13,27,42,.6); stroke: var(--ink); stroke-width: 2; }
.lg-arc { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.lg-needle path { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.lg-needle circle { fill: var(--ink); }
.call { text-decoration: none; font-weight: 500; padding: 10px 16px; border-radius: 4px; background: var(--copper); color: #1a0d06; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; } .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,27,42,.95), rgba(13,27,42,.2) 60%); } /* taste-skill-ignore: Abdeckung unter Text auf Foto */
.hero-text { position: relative; padding: 0 var(--pad) clamp(48px, 9vh, 110px); display: grid; gap: 24px; justify-items: start; }

/* ---------- Thermostat ---------- */
.thermo-pin { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 4vw; padding: 90px var(--pad) 40px; }
.thermo-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; }
.thermo-photo img { width: 100%; height: 100%; object-fit: cover; }
.frost { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 140px 70px rgba(214,232,255,.9); background: rgba(190,215,245,.28); backdrop-filter: blur(2px) saturate(.4); -webkit-backdrop-filter: blur(2px) saturate(.4); }
.thermo-copy { position: absolute; left: var(--pad); bottom: 48px; display: grid; gap: 12px; max-width: 520px; }
.thermo-copy .h2 { text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.dial { position: relative; display: grid; place-items: center; }
.dial svg { width: min(100%, 420px); overflow: visible; }
.d-face { fill: var(--bg-2); stroke: rgba(244,239,233,.15); stroke-width: 2; }
.d-ticks line { stroke: rgba(244,239,233,.35); stroke-width: 3; stroke-linecap: round; }
.d-ticks line.is-hot { stroke: var(--accent); }
.d-knob { fill: #1b2f44; stroke: var(--accent); stroke-width: 6; }
.d-pointer path { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.d-read { position: absolute; font: 800 clamp(64px, 7vw, 110px)/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; pointer-events: none; }

/* ---------- Hero-Ergänzungen ---------- */
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(244,239,233,.45); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: rgba(244,239,233,.1); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; color: var(--ink-dim); font-size: 16px; }
.hero-facts b { color: var(--ink); font: 800 20px/1 var(--display); text-transform: uppercase; margin-right: 6px; }

/* ---------- Vorher / Nachher ---------- */
.swap { padding: clamp(80px, 12vh, 140px) var(--pad); display: grid; gap: 40px; }
.swap-head { display: grid; gap: 14px; }
.swap-frame { position: relative; aspect-ratio: 4 / 3; width: min(100%, calc(80svh * 4 / 3)); justify-self: center; border-radius: 6px; overflow: hidden; --p: 50%; user-select: none; touch-action: pan-y; }
.swap-frame img { width: 100%; height: 100%; object-fit: cover; }
.swap-after { position: absolute; inset: 0; }
.swap-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.swap-before img { filter: saturate(.6) contrast(1.05); }
.swap-tag { position: absolute; top: 18px; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-radius: 3px; background: rgba(0,0,0,.55); }
.swap-tag--l { left: 18px; } .swap-tag--r { right: 18px; background: var(--copper); color: #1a0d06; }
.swap-frame input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.swap-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--ink); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.swap-handle i { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.swap-handle i::before, .swap-handle i::after { content: ""; position: absolute; top: 50%; margin-top: -7px; border: 7px solid transparent; }
.swap-handle i::before { left: 8px; border-right-color: #1a0d06; } .swap-handle i::after { right: 8px; border-left-color: #1a0d06; }
.swap-frame.is-drag .swap-handle i { scale: 1.08; }
.swap-handle i { transition: scale 160ms var(--ease); }

/* ---------- Leistungen als Bildkarten ---------- */
.work { padding: clamp(40px, 8vh, 100px) var(--pad) clamp(80px, 12vh, 140px); display: grid; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,6,4,.92), rgba(10,6,4,.1) 60%); } /* taste-skill-ignore: Abdeckung unter Text auf Foto */
.card div { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: grid; gap: 6px; }
.card b { font: 800 30px/1 var(--display); text-transform: uppercase; }
.card span { color: var(--ink-dim); font-size: 16px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .card:hover img { transform: scale(1.05); } }

/* ---------- Notdienst-Band ---------- */
.band { background: var(--copper); color: #1a0d06; overflow: hidden; padding: 18px 0; }
.band-track { display: flex; width: max-content; gap: 48px; text-decoration: none; font: 800 clamp(26px, 3.4vw, 46px)/1 var(--display); text-transform: uppercase; }
.band-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.band-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #1a0d06; }

/* ---------- Ablauf mit Kupferrohr ---------- */
.path { padding: clamp(80px, 12vh, 140px) var(--pad); display: grid; gap: 56px; }
.path-wrap { position: relative; }
.pipe { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 60px; overflow: visible; }
.pipe path { fill: none; stroke-linecap: round; }
.pipe-bg { stroke: rgba(244,239,233,.12); stroke-width: 10; }
.pipe-hot { stroke: var(--copper); stroke-width: 10; filter: drop-shadow(0 0 10px rgba(240,140,70,.6)); }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.path-list li { display: grid; gap: 8px; align-content: start; }
.path-no { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 800 30px/1 var(--display); background: var(--bg); box-shadow: inset 0 0 0 3px rgba(244,239,233,.25); margin-bottom: 14px; transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease; }
.path-list li.is-on .path-no { background: var(--copper); color: #1a0d06; box-shadow: 0 0 30px rgba(240,140,70,.6); }
.path-list b { font: 800 28px/1.05 var(--display); text-transform: uppercase; }
.path-list li > span:last-child { color: var(--ink-dim); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--bg-2); }
.team-photo { overflow: hidden; } .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-copy { padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; gap: 20px; align-content: center; }
.quote { font: 800 clamp(34px, 3.8vw, 60px)/1.05 var(--display); text-transform: uppercase; }
.quote-by { color: var(--ink-dim); }

/* ---------- Check ---------- */
.check { display: grid; grid-template-columns: 1fr 1.2fr; }
.check-photo { overflow: hidden; } .check-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-form { padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; gap: 28px; align-content: center; }
fieldset { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-weight: 500; margin-bottom: 10px; padding: 0; width: 100%; color: var(--ink-dim); }
.check-form label { position: relative; cursor: pointer; }
.check-form input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check-form span { display: inline-flex; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 4px; border: 1.5px solid rgba(244,239,233,.25); transition: background-color .15s ease, color .15s ease, border-color .15s ease, scale .12s var(--ease); }
.check-form input:checked + span { background: var(--copper); border-color: var(--copper); color: #1a0d06; }
.check-form input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.check-form label:active span { scale: .96; }
.verdict { font: 500 clamp(24px, 2.2vw, 32px)/1.2 var(--display); max-width: 30ch; }

/* ---------- Kontakt ---------- */
.contact { position: relative; min-height: 90svh; display: grid; align-items: end; overflow: hidden; }
.contact-media { position: absolute; inset: 0; } .contact-media img { width: 100%; height: 100%; object-fit: cover; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,10,5,.9), rgba(20,10,5,.2) 70%); } /* taste-skill-ignore: Abdeckung unter Text auf Foto */
.contact-card { position: relative; padding: clamp(80px, 12vh, 140px) var(--pad); display: grid; gap: 18px; justify-items: start; max-width: 900px; }
.contact-phone a { font: 800 clamp(48px, 8vw, 140px)/1 var(--display); color: var(--copper); text-decoration: none; }
.foot { padding: 0 var(--pad) 40px; }
.foot-note { max-width: 70ch; color: var(--ink-dim); font-size: 15px; }
.foot-note strong { color: var(--ink); }

@media (max-width: 860px) {
  .thermo-pin { grid-template-columns: 1fr; padding-top: 80px; gap: 14px; align-content: center; }
  .thermo-copy { position: static; }
  .dial svg { width: 240px; }
  .check, .team { grid-template-columns: 1fr; }
  .check-photo, .team-photo { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr 1fr; }
  .path-list { grid-template-columns: 1fr; gap: 36px; }
  .pipe { display: none; }
  .logo span { display: none; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } .card { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .frost { opacity: 0; } .path-list li .path-no { background: var(--copper); color: #1a0d06; } }

/* ---------- Für alle Fallbeispiele (V12): Kopfzeile ein/aus und yourpage24-Hinweis ---------- */
.top { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
.top.yp-weg { transform: translateY(-100%); }
.yp-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 99px; text-decoration: none; font: 500 13px/1.2 system-ui, sans-serif;
  color: #e9fbff; background: rgba(3, 18, 26, 0.82); border: 1px solid rgba(34, 227, 214, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms cubic-bezier(0.23, 1, 0.32, 1), border-color 200ms ease;
}
.yp-pill.is-on { opacity: 1; transform: none; pointer-events: auto; }
.yp-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22e3d6; box-shadow: 0 0 10px #22e3d6; flex: none; }
.yp-pill b { font-weight: 600; color: #22e3d6; }
.yp-pill:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .yp-pill:hover { border-color: #22e3d6; } }
@media (max-width: 520px) { .yp-pill span { display: none; } }
@media (prefers-reduced-motion: reduce) { .top, .yp-pill { transition-property: opacity; } .yp-pill { transform: none; } }
