/* Energieexperte NRW: Ratgeber- und Landingpages. Same tokens and type as the start page. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/schibsted-grotesk-latin-wght-normal.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; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --surface: #eef2f7;
  --ink: #0f2747;
  --muted: #4a5d78;
  --accent: #f6b40e;
  --accent-ink: #0f2747;
  --accent-hover: #ffc93c;
  --field-1: #0f2747;
  --field-1-ink: #ffffff;
  --field-1-soft: #b9c6d8;
  --field-1-muted: #f6b40e;
  --row: #f6f8fb;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --step-big: clamp(2.25rem, 1rem + 4.2vw, 4.25rem);
  --margin: clamp(20px, 2.2vw, 32px);
  --gutter: clamp(16px, 2vw, 28px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { max-width: 66ch; text-wrap: pretty; }
.wrap { padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--margin), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; white-space: nowrap; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.button:active { transform: scale(0.97); }
.button.ghost { background: var(--surface); color: var(--ink); }
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
  .button.ghost:hover { background: color-mix(in srgb, var(--surface) 80%, var(--ink) 10%); }
  .link:hover { text-decoration-color: currentColor; }
}

/* hero */
.lp-hero { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 5vw, 72px); row-gap: 40px; align-items: end; }
.lp-intro { grid-column: 1 / 9; display: grid; gap: 24px; }
.lp-intro h1 { font-size: var(--step-big); font-weight: 700; letter-spacing: -0.035em; line-height: 1; max-width: 18ch; }
.lp-intro .lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-facts { grid-column: 9 / 13; background: var(--surface); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 16px; }
.lp-facts h2 { font-size: var(--step-body); }
.lp-facts dl { display: grid; gap: 14px; }
.lp-facts dt { font-size: var(--step-small); color: var(--muted); }
.lp-facts dd { font-weight: 600; line-height: 1.35; }
@media (max-width: 900px) { .lp-intro, .lp-facts { grid-column: 1 / -1; } }

.lp-photo { height: clamp(240px, 34vw, 480px); overflow: hidden; background: var(--surface); }
.lp-photo img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

/* article */
.lp-body { padding-block: clamp(56px, 7vw, 112px); }
.toc { grid-column: 1 / 4; align-self: start; position: sticky; top: 24px; display: grid; gap: 10px; font-size: var(--step-small); }
.toc p { font-weight: 600; }
.toc ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); transition: color 180ms ease; }
.toc a:hover { color: var(--ink); }
.prose { grid-column: 4 / 11; min-width: 0; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-head); margin-top: 2.2em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-lead); margin-top: 1.6em; }
.prose ul, .prose ol { padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--ink); }
.prose ol { counter-reset: none; }
.prose ol li { padding-left: 20px; position: relative; }
.prose ol li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; background: var(--ink); }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; }
.prose thead th { background: var(--ink); color: var(--bg); font-weight: 600; }
.prose tbody tr:nth-child(odd) { background: var(--row); }
.prose tbody tr:nth-child(even) { background: var(--surface); }
@media (max-width: 600px) {
  .prose thead { display: none; }
  .prose tbody tr { display: grid; gap: 4px; padding: 12px 14px; }
  .prose td { padding: 0; }
  .prose td:first-child { font-weight: 600; }
  .prose td:last-child { font-weight: 600; }
}
.box { background: var(--surface); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 10px; }
.box h3 { margin-top: 0; font-size: var(--step-body); }
.stand { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) { .toc { display: none; } .prose { grid-column: 1 / -1; } }

/* FAQ */
.lp-faq { padding-block: 0 clamp(56px, 7vw, 112px); }
.lp-faq h2 { grid-column: 1 / 4; font-size: var(--step-head); }
.lp-faq .qs { grid-column: 4 / 11; display: grid; gap: 8px; }
.qs details { padding: 14px 20px; background: var(--row); transition: background-color 200ms ease; }
.qs details[open] { background: var(--surface); }
.qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: var(--step-lead); line-height: 1.3; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 0.4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 240ms var(--ease-out); }
.qs details[open] summary::after { transform: rotate(225deg); }
.qs details p { margin-top: 12px; }
@media (max-width: 900px) { .lp-faq h2, .lp-faq .qs { grid-column: 1 / -1; } .lp-faq h2 { margin-bottom: 24px; } }

/* call to action */
.lp-cta { background: var(--field-1); color: var(--field-1-ink); padding-block: clamp(56px, 7vw, 104px); row-gap: 28px; align-items: end; }
.lp-cta h2 { grid-column: 1 / 8; font-size: var(--step-big); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.lp-cta-side { grid-column: 8 / 13; display: grid; gap: 20px; }
.lp-cta p { color: var(--field-1-soft); font-size: var(--step-lead); line-height: 1.4; }
.lp-cta .button.ghost { background: color-mix(in srgb, var(--field-1-ink) 14%, transparent); color: var(--field-1-ink); }
.lp-cta .button.ghost:hover { background: color-mix(in srgb, var(--field-1-ink) 24%, transparent); }
@media (max-width: 900px) { .lp-cta h2, .lp-cta-side { grid-column: 1 / -1; } }

/* related */
.related { padding-block: clamp(56px, 7vw, 104px); row-gap: 28px; }
.related h2 { grid-column: 1 / 4; font-size: var(--step-head); }
.related ul { grid-column: 4 / 13; list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
.related a { text-decoration: none; display: grid; gap: 4px; }
.related a b { font-size: var(--step-lead); font-weight: 600; transition: color 180ms ease; }
.related a span { color: var(--muted); font-size: var(--step-small); }
.related a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 900px) { .related h2, .related ul { grid-column: 1 / -1; } .related ul { grid-template-columns: 1fr; } }

.crumbs { font-size: var(--step-small); color: var(--muted); padding-bottom: 24px; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: "›"; margin-right: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* footer */
.foot { display: grid; padding-block: 48px 20px; background: var(--bg); }
.foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px var(--gutter); font-size: var(--step-small); }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 4px; align-content: start; }
.foot-cols li:first-child { font-weight: 600; }
.foot-cols li + li { color: var(--muted); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot-mark { margin-top: clamp(80px, 12vh, 160px); font-size: 9.6vw; font-weight: 700; letter-spacing: -0.045em; line-height: 0.86; margin-left: -0.04em; white-space: nowrap; max-width: none; }
.legal { margin-top: 20px; font-size: var(--step-small); color: var(--muted); max-width: none; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .foot-mark { font-size: 12.2vw; } .foot-mark span { display: block; width: max-content; } }

/* inline photographs */
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.prose figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }

/* motion: content stays visible without JavaScript */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .lp-intro > * { animation: rise 800ms var(--ease-out) both; }
  .js .lp-intro > :nth-child(2) { animation-delay: 90ms; } .js .lp-intro > :nth-child(3) { animation-delay: 180ms; }
  .js .lp-photo img { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }

/* Energieausweis request form */
.ea { padding-block: clamp(56px, 7vw, 104px); row-gap: 32px; align-items: start; }
.ea-intro { grid-column: 1 / 5; display: grid; gap: 14px; }
.ea-intro h2 { font-size: var(--step-big); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.ea-form, .ea-done { grid-column: 6 / 13; background: var(--surface); padding: clamp(20px, 3vw, 40px); display: grid; gap: 20px; min-width: 0; }
.ea-done h3 { font-size: var(--step-head); }
.ea-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.ea-form legend, .ea-form label:not(.chip):not(.consent) > span { font-size: var(--step-small); font-weight: 600; padding: 0; margin-bottom: 8px; }
.ea-form label:not(.chip) { display: grid; gap: 0; min-width: 0; }
.ea-form small { font-weight: 400; color: var(--muted); font-size: inherit; }
.ea-form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px var(--gutter); }
.ea-form .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; min-height: 2.75rem; padding: 8px 14px; background: var(--bg); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.chip:hover span { background: color-mix(in srgb, var(--bg) 85%, var(--ink) 8%); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.field { width: 100%; min-height: 3.1rem; padding: 0.65rem 0.9rem; background: var(--bg); color: var(--ink); border: 0; border-radius: 0; font: inherit; }
textarea.field { min-height: 7rem; resize: vertical; line-height: 1.45; }
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--step-small); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.form-status { min-height: 1.4em; font-size: var(--step-small); font-weight: 600; color: #b3261e; }
.hp-field { position: absolute; width: 0; height: 0; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
@media (max-width: 900px) { .ea-intro, .ea-form, .ea-done { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ea-form .pair { grid-template-columns: 1fr; } .ea-form, .ea-done { margin-inline: calc(-1 * var(--margin)); } }
