/* PELIOS Services — Messdienst. Richtung: Präzisionsinstrument / Swiss.
   Schwarz + Flammenrot aus dem Logo, Zählerwerk-Ziffern als Leitmotiv. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --white: #fdfcf9;
  --ink: #111111;
  --ink-2: #4b4943;
  --ink-3: #77746b;
  --line: #d8d3c6;
  --red: #e3161f;
  --red-ink: #c1121a;
  --night: #0f1012;
  --night-2: #1a1b1e;
  --night-line: #2c2d31;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  --h1: clamp(2.5rem, 1.4rem + 4.6vw, 5.4rem);
  --h2: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1240px;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(17,17,17,.35), 0 12px 24px -12px rgba(17,17,17,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; font-weight: 900; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.red { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .7rem; justify-content: center;
  padding: 1rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--font); text-decoration: none;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(17,17,17,.6);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--red); box-shadow: 0 16px 30px -14px rgba(227,22,31,.7); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav .btn { padding: .75rem 1.1rem; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) clamp(3.5rem, 2rem + 5vw, 7rem); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { font-size: var(--h1); margin-top: 1.2rem; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { margin-top: 1.6rem; max-width: 36rem; font-size: var(--text-lead); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 2.8rem; border-top: 1px solid var(--line); max-width: 36rem; }
.hero__facts li { flex: 1 1 0; min-width: 7.5rem; padding: 1rem 1rem 0 0; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.hero__facts strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-bottom: .2rem; }

/* Instrument panel */
.instrument { position: relative; padding-bottom: 8.5rem; }
.panel {
  position: relative; background: linear-gradient(180deg, var(--white), #f6f4ee);
  border-radius: var(--r-lg); padding: clamp(1.25rem, .8rem + 1.6vw, 2rem);
  box-shadow: var(--shadow-lift); border: 1px solid #e6e1d4;
}
.panel__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.panel__live { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); }
.panel__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.45); } 70% { box-shadow: 0 0 0 9px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }

.meter { margin-top: 1.4rem; display: flex; align-items: flex-end; gap: .6rem; }
.meter__window {
  display: flex; gap: 3px; padding: 6px; border-radius: 10px; background: #0b0b0c;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.9);
}
.wheel {
  --h: clamp(2.6rem, 1.6rem + 3.4vw, 4.1rem);
  position: relative; width: calc(var(--h) * .66); height: var(--h); overflow: hidden; border-radius: 4px;
  background: linear-gradient(180deg, #000 0%, #262626 22%, #2d2d2d 50%, #262626 78%, #000 100%);
  font-family: var(--mono); font-size: calc(var(--h) * .68); color: #f4f1ea; text-align: center;
}
.wheel--red { background: linear-gradient(180deg, #5c0306 0%, #c3121a 22%, #d6161f 50%, #c3121a 78%, #5c0306 100%); color: #fff; }
.wheel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 30%, transparent 70%, rgba(0,0,0,.55)); pointer-events: none; }
.wheel__strip { display: block; transform: translateY(0); transition: transform 1.6s var(--ease); }
.wheel__strip span { display: block; height: var(--h); line-height: var(--h); }
.meter__sep { width: 10px; height: 10px; background: #f4f1ea; border-radius: 50%; align-self: flex-end; margin: 0 1px 10px; }
.meter__unit { font-weight: 900; font-size: 1.6rem; line-height: 1; padding-bottom: .4rem; }
.meter__unit sup { font-size: .6em; }
.meter__rule { margin-top: .9rem; height: 3px; width: 62%; background: linear-gradient(90deg, var(--red), var(--red) 80%, transparent); border-radius: 2px; }

.panel__rows { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px dashed var(--line); }
.panel__rows div { padding: .85rem 0 .1rem; }
.panel__rows dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.panel__rows dd { margin: .2rem 0 0; font-weight: 700; font-size: .98rem; }
.panel__rows .ok { color: #16814a; }
.panel__note { text-align: right; margin-top: 1rem; font-size: .72rem; color: var(--ink-3); font-family: var(--mono); }

.instrument__photo {
  position: absolute; left: clamp(-3rem, -2vw, -1rem); bottom: 0; width: 38%; aspect-ratio: 4 / 3;
  border-radius: var(--r-md); overflow: hidden; border: 5px solid var(--white);
  box-shadow: 0 24px 50px -24px rgba(17,17,17,.55); transform: rotate(-3deg);
}
.instrument__photo img { width: 100%; height: 100%; object-fit: cover; }
.instrument__tag {
  position: absolute; right: -.4rem; bottom: 1.2rem; background: var(--ink); color: #fff; border-radius: 999px;
  padding: .55rem .95rem; font: 500 .78rem/1 var(--mono); display: inline-flex; gap: .5rem; align-items: center;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
}
.instrument__tag b { color: var(--red); font-weight: 500; }

/* ---------- Deadline ---------- */
.deadline { background: var(--night); color: #f1efe9; position: relative; overflow: hidden; }
.deadline::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(227,22,31,.28), transparent 62%); pointer-events: none; }
.deadline__grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); position: relative; z-index: 1; }
.countdown { display: flex; align-items: baseline; gap: .8rem; }
.countdown__num { font-family: var(--mono); font-size: clamp(3.6rem, 2rem + 6vw, 7rem); line-height: .9; color: #fff; letter-spacing: -.04em; }
.countdown__label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a9a69d; line-height: 1.4; }
.deadline h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.025em; line-height: 1.12; }
.deadline p { margin-top: .7rem; color: #bdbab1; max-width: 40rem; }
.deadline .law { font-family: var(--mono); font-size: .75rem; color: var(--red); text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .6rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--h2); margin-top: 1rem; }
.section-head p { color: var(--ink-2); font-size: var(--text-lead); max-width: 34rem; }

/* Geräte-Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card {
  position: relative; border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  background: var(--white); border: 1px solid #e3ded1; overflow: hidden;
  display: flex; flex-direction: column; min-height: 22rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(17,17,17,.4); }
.card__idx { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .08em; }
.card h3 { font-size: var(--h3); margin-top: .8rem; }
.card__text { margin-top: .7rem; color: var(--ink-2); max-width: 30rem; }
.tasks { margin-top: auto; padding-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.2rem; }
.tasks li { display: flex; gap: .55rem; align-items: baseline; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .93rem; }
.tasks li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--red); border-radius: 2px; transform: translateY(-1px); }

.card--water { grid-column: span 4; display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.8rem; }
.card--water .card__body { display: flex; flex-direction: column; }
.card--water figure { margin: calc(-1 * clamp(1.4rem, 1rem + 1.4vw, 2.2rem)) calc(-1 * clamp(1.4rem, 1rem + 1.4vw, 2.2rem)) calc(-1 * clamp(1.4rem, 1rem + 1.4vw, 2.2rem)) 0; position: relative; }
.card--water figure img { width: 100%; height: 100%; object-fit: cover; }
.card--heat { grid-column: span 2; background: var(--night); color: #f1efe9; border-color: var(--night); }
.card--heat .card__idx, .card--heat .card__text { color: #a9a69d; }
.card--heat .tasks li { border-top-color: var(--night-line); }
.card--heat .tasks { grid-template-columns: 1fr; }
.big-unit { font-family: var(--mono); font-size: clamp(3rem, 2rem + 3vw, 4.6rem); line-height: 1; margin-top: 1.2rem; color: #fff; letter-spacing: -.04em; }
.big-unit span { color: var(--red); }
.card--hkv { grid-column: span 2; background: var(--paper-2); }
.card--hkv .tasks { grid-template-columns: 1fr; }
.hkv-graphic { margin-top: 1.4rem; display: flex; gap: 6px; align-items: flex-end; height: 64px; }
.hkv-graphic i { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; height: var(--v); transform-origin: bottom; }
.hkv-graphic i:nth-child(4) { background: var(--red); }
.card--smoke { grid-column: span 4; color: #fff; background: #1b1310; border-color: #1b1310; min-height: 26rem; }
.card--smoke > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transition: transform 1.2s var(--ease); }
.card--smoke:hover > img { transform: scale(1.04); }
.card--smoke::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12,8,6,.92) 0%, rgba(12,8,6,.75) 42%, rgba(12,8,6,.1) 80%); }
.card--smoke > :not(img) { position: relative; z-index: 2; }
.card--smoke .card__idx, .card--smoke .card__text { color: #d8d2c8; }
.card--smoke .card__text, .card--smoke .tasks { max-width: 28rem; }
.card--smoke .tasks li { border-top-color: rgba(255,255,255,.18); }

.bento__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding: 1.4rem clamp(1.4rem, 1rem + 1.4vw, 2.2rem); border-radius: var(--r-lg); border: 1.5px dashed #c9c3b4; }
.bento__foot p { font-weight: 700; font-size: 1.1rem; max-width: 44rem; }
.bento__foot p span { color: var(--ink-2); font-weight: 400; }

/* Fristen */
.fristen { background: var(--white); border-block: 1px solid var(--line); }
.fristen__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.fristen__intro { position: sticky; top: 110px; }
.fristen__intro h2 { font-size: var(--h2); margin-top: 1rem; }
.fristen__intro p { margin-top: 1.2rem; color: var(--ink-2); }
.penalty { margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.1rem; align-items: baseline; padding: 1.3rem 1.4rem; border-radius: var(--r-md); background: var(--paper); border-left: 4px solid var(--red); }
.penalty strong { font-family: var(--mono); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--red-ink); }
.penalty span { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.ftable { width: 100%; border-collapse: collapse; }
.ftable caption { text-align: left; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-bottom: .9rem; }
.ftable th, .ftable td { text-align: left; padding: 1.15rem .8rem 1.15rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ftable thead th { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-block: .6rem; border-bottom: 2px solid var(--ink); }
.ftable tbody th { font-weight: 700; font-size: 1.02rem; }
.ftable tbody th small { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-top: .15rem; }
.ftable .val { font-family: var(--mono); font-size: 1.12rem; white-space: nowrap; }
.ftable .src { font-size: .8rem; color: var(--ink-3); font-family: var(--mono); white-space: nowrap; }
.ftable tbody tr { transition: background-color .25s; }
.ftable tbody tr:hover { background: var(--paper); }
.ftable tr.is-hot .val { color: var(--red-ink); }
.fnote { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }

/* Abrechnung */
.clean { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: center; }
.clean__media { position: relative; }
.clean__media .m1 { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.clean__media .m1 img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.clean__media .m2 { position: absolute; right: -4%; bottom: -18%; width: 46%; border-radius: var(--r-md); overflow: hidden; border: 5px solid var(--paper); box-shadow: 0 24px 50px -24px rgba(17,17,17,.55); }
.clean__media .m2 img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.clean h2 { font-size: var(--h2); margin-top: 1rem; }
.clean__text > p { margin-top: 1.3rem; color: var(--ink-2); font-size: var(--text-lead); }
.checks { margin-top: 1.8rem; display: grid; gap: .9rem; }
.checks li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start; }
.checks li svg { width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; background: var(--ink); color: #fff; }
.checks b { display: block; }
.checks span { color: var(--ink-2); font-size: .95rem; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 1.9rem; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); opacity: .25; }
.step { position: relative; padding-right: 1.6rem; }
.step__no { position: relative; display: inline-grid; place-items: center; width: 3.8rem; height: 3.8rem; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 1.3rem; box-shadow: 0 0 0 8px var(--paper); transition: background-color .3s, transform .4s var(--ease); }
.step:hover .step__no { background: var(--red); transform: translateY(-3px); }
.step h3 { margin-top: 1.5rem; font-size: 1.3rem; letter-spacing: -.02em; }
.step p { margin-top: .6rem; color: var(--ink-2); font-size: .96rem; }

/* Zielgruppen */
.audience { background: var(--paper-2); }
.audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.aud { padding: 2rem 2rem 0 0; }
.aud + .aud { padding-left: 2rem; border-left: 1px solid #cfc9ba; }
.aud__k { font-family: var(--mono); font-size: .75rem; color: var(--red-ink); letter-spacing: .08em; text-transform: uppercase; }
.aud h3 { font-size: 1.6rem; margin-top: .6rem; letter-spacing: -.025em; }
.aud p { margin-top: .8rem; color: var(--ink-2); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 1rem + 4vw, 6rem); }
.faq__grid h2 { font-size: var(--h2); margin-top: 1rem; }
.faq__grid .intro p { margin-top: 1.2rem; color: var(--ink-2); }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; transition: background-color .25s, transform .4s var(--ease); }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.qa summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary .pm { background: var(--ink); color: #fff; }
.qa[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.qa summary:hover .pm { transform: rotate(90deg); }
.qa__a { padding: 0 3.5rem 1.6rem 0; color: var(--ink-2); }
.qa__a p + p { margin-top: .7rem; }

/* Kontakt */
.contact { background: var(--night); color: #f1efe9; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: -15%; bottom: -50%; width: 55%; aspect-ratio: 1; background: radial-gradient(circle, rgba(227,22,31,.22), transparent 62%); }
.contact__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 1rem + 4vw, 6rem); }
.contact__grid > *, .hero__grid > *, .clean > *, .fristen__grid > *, .faq__grid > * { min-width: 0; }
.contact .eyebrow { color: #a9a69d; }
.contact h2 { font-size: var(--h2); margin-top: 1rem; color: #fff; }
.contact__lead { margin-top: 1.2rem; color: #bdbab1; font-size: var(--text-lead); }
.direct { margin-top: 2.4rem; display: grid; gap: 1px; background: var(--night-line); border-radius: var(--r-md); overflow: hidden; }
.direct a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--night-2); text-decoration: none; transition: background-color .25s; }
.direct a:hover { background: #24252a; }
.direct small { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8f8c84; }
.direct b { font-size: 1.1rem; }
.direct svg { width: 20px; height: 20px; color: var(--red); flex: none; transition: transform .35s var(--ease); }
.direct a:hover svg { transform: translateX(4px); }

.form { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .85rem; font-weight: 500; color: #d4d1c9; }
.field label i, .field legend i { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: #fff; background: #111214; border: 1px solid #34353a; border-radius: 10px; padding: .85rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,22,31,.25); }
.field input[aria-invalid="true"] { border-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid #3a3b40; font-size: .88rem; cursor: pointer; transition: all .2s; user-select: none; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid #6b6a66; transition: all .2s; }
.chip input:checked + span { border-color: var(--red); background: rgba(227,22,31,.14); color: #fff; }
.chip input:checked + span::before { background: var(--red); border-color: var(--red); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-top: .4rem; }
.form__foot p { font-size: .8rem; color: #8f8c84; max-width: 24rem; }
.form__foot p a { color: #d4d1c9; }
.form__msg { grid-column: 1 / -1; font-size: .9rem; min-height: 1.3em; color: #f19a9e; }
.form__msg.is-ok { color: #7fd6a3; }

/* Footer */
.site-footer { background: #08090a; color: #a9a69d; padding-block: 3.5rem 2.5rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__grid img { height: 54px; width: auto; }
.footer__grid h4 { font-family: var(--mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #6f6d67; margin-bottom: .9rem; }
.footer__grid li + li { margin-top: .4rem; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: #fff; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1f2023; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .8rem; color: #6f6d67; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.4rem; letter-spacing: -.02em; line-height: 1.2; }
.legal p, .legal ul { margin-top: .8rem; color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal .todo { background: #fff3c4; border-left: 4px solid #e0a800; padding: .8rem 1rem; color: #5a4700; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 1.1rem; }
  .card--water { grid-column: span 6; }
  .card--heat, .card--hkv { grid-column: span 3; }
  .card--smoke { grid-column: span 6; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.4rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav__links a::after { display: none; }
  .nav .btn { margin-top: 1rem; padding: 1rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .instrument { max-width: 560px; }
  .instrument__photo { left: auto; right: 1rem; width: 38%; }
  .instrument__tag { right: auto; left: 0; }
  .deadline__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-head, .fristen__grid, .clean, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .fristen__intro { position: static; }
  .clean__media { margin-bottom: 3.5rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .steps::before { display: none; }
  .audience__grid { grid-template-columns: 1fr; }
  .aud { padding: 1.8rem 0; }
  .aud + .aud { padding-left: 0; border-left: 0; border-top: 1px solid #cfc9ba; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brand img { height: 38px; }
  .card--water { display: flex; }
  .card--water figure { order: -1; margin: calc(-1 * clamp(1.4rem, 1rem + 1.4vw, 2.2rem)) calc(-1 * clamp(1.4rem, 1rem + 1.4vw, 2.2rem)) .4rem; aspect-ratio: 16 / 10; }
  .card--heat, .card--hkv { grid-column: span 6; min-height: 0; }
  .card--smoke::before { background: linear-gradient(0deg, rgba(12,8,6,.95) 0%, rgba(12,8,6,.8) 55%, rgba(12,8,6,.25) 100%); }
  .tasks { grid-template-columns: 1fr; }
  .panel__rows { grid-template-columns: 1fr 1fr; }
  .instrument { padding-bottom: 0; }
  .instrument__photo { display: none; }
  .instrument__tag { position: static; margin-top: 1rem; }
  .ftable thead { display: none; }
  .ftable caption { display: block; width: 100%; }
  .ftable, .ftable tbody, .ftable tr, .ftable th, .ftable td { display: block; }
  .ftable tr { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .ftable th, .ftable td { padding: 0; border: 0; }
  .ftable tbody th { grid-column: 1 / -1; }
  .ftable td:nth-of-type(1) { color: var(--ink-2); font-size: .92rem; }
  .ftable td.val { grid-column: 1; }
  .ftable td.src { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .qa__a { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__facts li { min-width: 6.5rem; }
}
@media (max-width: 380px) {
  .wheel { --h: 2.25rem; }
  .meter__unit { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
