/* Wärmepumpe Pinneberg — "Steel & Copper"
 * Single-family sans (Onest, variable 100–900) on cool pale steel.
 * Copper accent retained as the warm trade signal.
 * Designed for 40+ readers: high contrast, 18px body floor, generous spacing.
 * Mirrors the niche-pv-pinneberg design system — keep the two in sync.
 */

/* Self-hosted Onest variable font (SIL OFL 1.1). Replaces the Google-Fonts
 * CDN load to keep the page Schrems-II-clean — no third-party origin contacted
 * by the browser. One woff2 file covers all weights for the Latin range. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/onest-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces — cool pale steel */
  --paper: #e6ebef;
  --paper-2: #dae0e5;
  --surface: #eff3f6;
  --ink: #13202b;
  --ink-2: #314252;
  --mute: #65737f;
  --rule: #b6c1cb;
  --rule-soft: #c8d1d9;

  /* Accents — warm copper carried over */
  --accent: #b85c2f;
  --accent-2: #d27246;
  --accent-soft: #f0d4c3;

  --ok: #2e6a4a;
  --danger: #8a2424;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 64ch;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* very subtle noise so the surface isn't dead flat */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.125  0 0 0 0 0.17  0 0 0 0.022 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern", "cv11";
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; z-index: 50; }

/* ------------------------------------------------------------------ Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95em;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.brand-mark::after {
  content: " /";
  color: var(--rule);
  margin-left: 4px;
  font-weight: 400;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink) !important;
  text-transform: uppercase;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ----------------------------------------------------------------- Sections */

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin: 0 auto;
}
section { padding: clamp(48px, 9vw, 120px) 0; position: relative; }
section + section { border-top: 1px solid var(--rule); }

.eyebrow {
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 16px;
}
h1 { font-size: clamp(40px, 6.6vw, 80px); }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }

p { margin: 0 0 14px; }
.lead {
  font-size: clamp(19px, 2.05vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: var(--measure);
}

.numeral {
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------- Hero */

.hero { padding-top: clamp(60px, 10vw, 130px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  font: inherit; font-family: var(--font); font-weight: 600; font-size: 16px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.button.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 24px rgba(184, 92, 47, .22);
}
.button.primary:hover { background: #a04e26; border-color: #a04e26; }
.button.primary:active { transform: translateY(1px); }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.button.secondary:hover { background: var(--ink); color: var(--paper); }
.button.ghost {
  background: transparent; border-color: var(--rule); color: var(--ink-2);
  cursor: default; pointer-events: none;
  font-weight: 500;
}

.microcopy { color: var(--mute); font-size: 15px; max-width: var(--measure); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 28px 30px 24px;
  position: relative;
  box-shadow: 0 1px 0 var(--rule-soft);
}
.hero-card::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 28px; height: 28px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.hero-card::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 28px; height: 28px;
  border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
}
.hero-card h2 { font-size: clamp(19px, 2vw, 22px); margin-bottom: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding: 9px 0 9px 30px;
  border-top: 1px solid var(--rule-soft);
  font-size: 16px; line-height: 1.45;
}
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 14px; height: 2px; background: var(--accent);
}

/* ----------------------------------------------------- Section with numeral */

.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 2vw, 22px);
  align-items: baseline;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.with-numeral {
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 60px);
}
.section-head.with-numeral .numeral { align-self: flex-start; margin-top: -.16em; }
.section-head .copy { max-width: 720px; }
.section-head .copy p { color: var(--ink-2); font-size: 18px; max-width: var(--measure); }

@media (max-width: 720px) {
  .section-head.with-numeral { grid-template-columns: 1fr; }
  .numeral { font-size: clamp(70px, 22vw, 110px); }
}

/* ----------------------------------------------------------------- Services */

.card-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 28px 26px 32px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: transparent;
  position: relative;
  min-height: 220px;
  transition: background-color .2s ease;
}
.service-card:nth-child(3n) { border-right: 0; }
.service-card:hover { background: var(--surface); }
@media (max-width: 880px) {
  .service-card { border-right: 0; }
  .service-card:last-child { border-bottom: 0; }
}

.service-card .number {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ----------------------------------------------------------------- Ablauf */

.steps {
  list-style: none; padding: 0; margin: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font);
  font-weight: 200;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.steps li strong {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 6px;
  letter-spacing: -0.018em;
}
.steps li span { color: var(--ink-2); font-size: 17px; line-height: 1.55; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.trust-box {
  align-self: start;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  position: relative;
  /* thick left accent rule replaces the old quote-glyph */
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--accent);
}
.trust-box h3 { font-size: 21px; margin: 0 0 10px; }
.trust-box p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* ------------------------------------------------------------ Local band */

.local-band { background: var(--paper-2); }
.local-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 880px) { .local-band .wrap { grid-template-columns: 1fr; } }
.local-band h2 { margin-bottom: 18px; }
.local-band p { color: var(--ink-2); font-size: 18px; max-width: var(--measure); }
.local-cities {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 18px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.local-cities span { white-space: nowrap; }
.local-cities span + span::before { content: "·"; color: var(--rule); margin-right: 14px; }
.notice {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--mute);
}

/* --------------------------------------------------------------------- Form */

.form-section { background: var(--paper); }
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .form-shell { grid-template-columns: 1fr; } }

.lead-form {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
}
.lead-form::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 36px; height: 36px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.lead-form::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 36px; height: 36px;
  border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 16px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lead-form label:not(.checkbox):not(.honeypot) > input,
.lead-form label:not(.checkbox):not(.honeypot) > select,
.lead-form label:not(.checkbox):not(.honeypot) > textarea {
  font: inherit; font-family: var(--font); font-size: 17px; font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 13px 14px;
  min-height: 50px;
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.lead-form textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--paper);
}
.field-hint {
  color: var(--mute);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  align-items: start;
  margin: 8px 0 20px;
}
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox span { font-size: 15px; }

.form-status {
  color: var(--mute); font-size: 14px;
  margin: 16px 0 0;
  min-height: 22px;
  letter-spacing: 0.01em;
}
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--danger); font-weight: 600; }

.form-trust-card {
  padding: 28px 30px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.form-trust-card .eyebrow { color: var(--accent-2); }
.form-trust-card h3 { color: var(--paper); margin-bottom: 14px; }
.form-trust-card ul { list-style: none; margin: 0; padding: 0; }
.form-trust-card li {
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  padding: 12px 0 12px 26px;
  position: relative;
  font-size: 15px;
}
.form-trust-card li:first-child { border-top: 0; }
.form-trust-card li::before {
  content: "";
  position: absolute; left: 0; top: 19px;
  width: 14px; height: 2px; background: var(--accent-2);
}

/* ----------------------------------------------------------------------- FAQ */

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq-list details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  font-size: clamp(18px, 1.95vw, 21px);
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 4px 0;
  transition: color .15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font);
  font-weight: 300;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p {
  color: var(--ink-2);
  font-size: 17px;
  margin: 14px 0 4px;
  max-width: var(--measure);
}

/* --------------------------------------------------------------------- Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 80px) 0 32px;
  border-top: 1px solid var(--rule);
}
.site-footer .wrap {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.footer-brand {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline;
}
.footer-mark {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-brand strong {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
  font-size: 15px;
  margin: 0;
  max-width: 56ch;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 4px 22px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links a {
  color: color-mix(in srgb, var(--paper) 80%, transparent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.footer-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* --------------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.16,.84,.3,1) .1s forwards; }
  .hero .lead { opacity: 0; transform: translateY(12px); animation: rise .9s cubic-bezier(.16,.84,.3,1) .25s forwards; }
  .hero .cta-row { opacity: 0; transform: translateY(10px); animation: rise .9s cubic-bezier(.16,.84,.3,1) .4s forwards; }
  .hero .microcopy { opacity: 0; transform: translateY(8px); animation: rise .9s cubic-bezier(.16,.84,.3,1) .55s forwards; }
  .hero-card { opacity: 0; transform: translateY(20px); animation: rise 1s cubic-bezier(.16,.84,.3,1) .5s forwards; }
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------- Legal-page accommodations */

.legal-page { padding: clamp(48px, 7vw, 96px) 0; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 6px; letter-spacing: -0.028em; }
.legal-page h2 { font-size: clamp(20px, 2.3vw, 26px); margin: 32px 0 8px; font-weight: 700; }
.legal-page p { max-width: var(--measure); color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.legal-page .tag { color: var(--mute); margin: 0 0 6px; font-family: var(--font); font-weight: 500; font-size: 15px; }
.legal-page .legal { padding: 28px 0; color: var(--mute); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-page .legal a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 1px; }
.legal-page .legal a:hover { border-color: var(--accent); }
