/* Elektrotechnik Polleres – Design System
   Farben aus dem Logo: Grün #3AAA35, Anthrazit #1D1D1B */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f6f2;
  --bg-2: #eceee8;
  --surface: #ffffff;
  --ink: #111512;
  --ink-2: #3d4640;
  --ink-3: #5b655e;
  --line: #d9ded6;
  --line-strong: #bfc6bc;
  --brand: #3aaa35;
  --brand-ink: #1c7420;
  --brand-soft: #e3f3e1;
  --on-brand: #08110a;
  --band: #0f1411;
  --band-2: #171e19;
  --band-ink: #eef2ed;
  --band-ink-2: #b4beb6;
  --shadow-sm: 0 1px 2px rgb(17 21 18 / .06), 0 2px 8px rgb(17 21 18 / .05);
  --shadow-md: 0 2px 6px rgb(17 21 18 / .06), 0 18px 40px -12px rgb(17 21 18 / .18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --font-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-bg: rgb(245 246 242 / .86);
  --glass: rgb(255 255 255 / .92);
  --logo-light: block;
  --logo-dark: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e0c;
  --bg-2: #111512;
  --surface: #141a16;
  --ink: #ebefea;
  --ink-2: #bcc5be;
  --ink-3: #97a39a;
  --line: #243029;
  --line-strong: #34423a;
  --brand: #45b940;
  --brand-ink: #6fd468;
  --brand-soft: #16261a;
  --on-brand: #06100a;
  --band: #060807;
  --band-2: #111713;
  --band-ink: #eef2ed;
  --band-ink-2: #aab5ad;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 18px 40px -12px rgb(0 0 0 / .6);
  --header-bg: rgb(11 14 12 / .86);
  --glass: rgb(20 26 22 / .92);
  --logo-light: none;
  --logo-dark: block;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: var(--brand-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
strong { font-weight: 600; color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .55em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p, li { text-wrap: pretty; }
::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.section + .section:not(.section--alt):not(.band) { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent));
}
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-2); }

/* Swoosh – angelehnt an den grünen Bogen im Logo */
.swoosh { position: relative; white-space: nowrap; }
.swoosh::after {
  content: ""; position: absolute; left: 0; right: -.1em; bottom: -.08em; height: .2em;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 55%, 100% 100%, 0 100%);
  border-radius: 0 0 0 .2em;
  z-index: -1;
}
.swoosh { z-index: 0; isolation: isolate; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.5em;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.band .btn--ghost, .on-dark .btn--ghost, .cta-card .btn--ghost { --btn-fg: var(--band-ink); --btn-bd: rgb(255 255 255 / .28); }
.band .btn--ghost:hover, .on-dark .btn--ghost:hover, .cta-card .btn--ghost:hover { --btn-bd: var(--band-ink); }
.btn--sm { min-height: 44px; padding: .6em 1.15em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
}
.link-arrow svg { width: 1.1em; height: 1.1em; color: var(--brand-ink); transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-light { display: var(--logo-light); }
.brand .logo-dark { display: var(--logo-dark); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--bg-2); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand-ink); }
.nav-link .chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: -16px;
  width: min(760px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mega[hidden] { display: none; }
.mega a {
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: start;
  padding: 14px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.mega a:hover, .mega a:focus-visible { background: var(--bg-2); }
.mega .mega-icon {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink);
}
.mega .mega-icon svg { width: 22px; height: 22px; }
.mega strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.mega span.desc { font-size: .88rem; color: var(--ink-3); line-height: 1.45; }
.mega a[aria-current="page"] strong { color: var(--brand-ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.header-phone:hover { background: var(--bg-2); }
.header-phone .icon { color: var(--brand-ink); width: 18px; height: 18px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
  display: inline-grid; place-items: center; background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 1040px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-phone span { display: none; }
}
@media (max-width: 420px) { .brand img { height: 38px; } .header-inner { gap: 10px; } .header-actions { gap: 6px; } }

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 var(--gutter) 32px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.mobile-nav ul { list-style: none; margin: 8px 0 0; padding: 0; }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
}
.mobile-nav li a[aria-current="page"] { color: var(--brand-ink); }
.mobile-nav .sub a { font-size: 1.02rem; font-weight: 500; padding-left: 18px; color: var(--ink-2); }
.mobile-nav .mobile-label { margin: 24px 0 0; font-family: var(--font-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.mobile-nav .btn-row { margin-top: 28px; }
.mobile-nav .btn { flex: 1 1 220px; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { margin-bottom: .4em; }
.hero h1 .h1-kicker { display: block; font-size: clamp(.95rem, .85rem + .4vw, 1.2rem); font-weight: 600; letter-spacing: .04em; color: var(--ink-2); margin-bottom: .8em; }
.hero .lead { max-width: 640px; }
.hero-facts {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.hero-facts dl { margin: 0; display: grid; gap: 14px; }
.hero-facts dt { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-display); font-weight: 600; }
.hero-facts dd { margin: 2px 0 0 32px; font-weight: 500; }
.hero-facts dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.hero-facts dd a:hover { color: var(--brand-ink); }
.hero-facts .icon { color: var(--brand-ink); width: 20px; height: 20px; }
.hero-media { margin-top: clamp(36px, 5vw, 64px); position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-circuit { position: absolute; right: -60px; top: -40px; width: 520px; color: var(--brand); opacity: .14; pointer-events: none; z-index: -1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } .hero-circuit { width: 360px; right: -140px; } }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between;
  margin-top: 28px; padding: 18px 4px 0; border-top: 1px solid var(--line);
}
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.trust li svg { width: 18px; height: 18px; color: var(--brand-ink); }

/* Page hero (Unterseiten) */
.page-hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.7rem); }
.page-hero-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.page-hero--text { padding-bottom: clamp(8px, 2vw, 16px); }
.page-hero--text + .section { padding-top: clamp(24px, 4vw, 48px); }
.page-hero--text .page-hero-grid { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

.breadcrumbs { margin-bottom: clamp(20px, 3vw, 36px); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat b small { font-size: .5em; font-weight: 600; margin-left: .15em; color: var(--brand-ink); }
.stat span { display: block; margin-top: 10px; color: var(--ink-3); font-size: .95rem; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split .media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split .media figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.split--reverse .media { order: -1; }
.media-stack { display: grid; gap: 16px; }
.media-stack.two { grid-template-columns: 1fr 1fr; align-items: start; }
.media-stack img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split > .media, .page-hero-media { max-width: 620px; }
  .split--reverse .media { order: 0; }
}
figure { margin: 0; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1000px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.service-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .thumb img { transform: scale(1.04); }
.service-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .num { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; color: var(--brand-ink); margin-bottom: 8px; }
.service-card h3 { margin-bottom: .35em; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { color: var(--ink-2); margin-bottom: 18px; }
.service-card .link-arrow { margin-top: auto; }

/* ---------- Feature list / cards ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 24px); }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .features--2 { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 18px; }
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--ink-2); margin: 0; }

/* Dunkles Band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band h2, .band h3, .band strong { color: var(--band-ink); }
.band p, .band li { color: var(--band-ink-2); }
.band .eyebrow { color: var(--brand); }
.band a:not(.btn) { color: #7fdc78; }
.band .feature { background: var(--band-2); border-color: rgb(255 255 255 / .08); }
.band .feature p { color: var(--band-ink-2); }
.band .feature .f-icon { background: rgb(58 170 53 / .16); color: #7fdc78; }
.band-circuit { position: absolute; inset: auto -120px -160px auto; width: 640px; color: var(--brand); opacity: .12; pointer-events: none; }
.band > .container { position: relative; }

/* Checkliste */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
:root[data-theme="dark"] .checklist li::before, .band .checklist li::before {
  background-color: rgb(58 170 53 / .18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdc78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.checklist.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 700px) { .checklist.cols-2 { grid-template-columns: 1fr; } }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: var(--brand); color: var(--on-brand);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.band .steps li::after { background: rgb(255 255 255 / .12); }

/* Prose */
.prose > * + h2 { margin-top: 1.6em; }
.prose > * + h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); }
.prose img { border-radius: var(--radius); margin-block: 8px 24px; }

/* Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.2em; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
caption { text-align: left; padding: 16px 18px 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7420' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease);
}
:root[data-theme="dark"] .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdc78' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* Accordion für längere Inhaltsblöcke (z. B. Prüffristen) */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.acc > summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--brand-ink); border-bottom: 2.5px solid var(--brand-ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: -3px; }
.acc > .acc-body { padding: 0 24px 24px; }

/* CTA */
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--band); color: var(--band-ink);
  padding: clamp(32px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.cta-card h2 { color: var(--band-ink); margin-bottom: .4em; }
.cta-card p { color: var(--band-ink-2); margin: 0; }
.cta-card .cta-actions { display: grid; gap: 12px; justify-items: start; }
.cta-card .cta-meta { color: var(--band-ink-2); font-size: .92rem; margin-top: 4px; }
.cta-card .band-circuit { right: -180px; bottom: -220px; }
@media (max-width: 860px) { .cta-card { grid-template-columns: 1fr; } }

/* Moments (Smart Home) */
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.moment img { border-radius: var(--radius); width: 100%; margin-bottom: 18px; }
.moment .tag { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); }
.moment p { color: var(--ink-2); }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; } }

/* Produktmodelle */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.models figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.models img { width: 100%; }
.models figcaption { margin-top: 10px; text-align: center; font-family: var(--font-display); font-weight: 600; color: #111512; }
@media (max-width: 640px) { .models { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
.on-white { background: #fff; border-radius: var(--radius); padding: 16px; }

/* Partner */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.partner-badge { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.partner-badge img { height: 44px; width: auto; }
.partner-badge span { font-family: var(--font-display); font-weight: 600; color: #111512; font-size: .95rem; }
.partner-chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.partner-chip svg { width: 20px; height: 20px; color: var(--brand-ink); }

/* Blog */
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.post-card .body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-card h2, .post-card h3 { margin-bottom: .4em; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card time { font-size: .9rem; color: var(--ink-3); margin-bottom: 10px; display: block; }
.post-card p { color: var(--ink-2); }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } .post-card .thumb img { aspect-ratio: 16 / 10; min-height: 0; } }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-3); font-size: .95rem; }
.callout { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.callout h3 { margin-bottom: .3em; }
.callout p:last-child { margin: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid .form-card { order: -1; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.contact-card .c-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.contact-card h2, .contact-card h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4em; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--ink); }
.contact-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--brand-ink); text-decoration: underline; }
.contact-card .small-link { font-weight: 500; font-size: .92rem; color: var(--brand-ink); display: inline-block; margin-top: 6px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--brand-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #c62828; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #ff7b72; }
.field .error { display: block; color: #b3261e; font-size: .88rem; margin-top: 6px; }
:root[data-theme="dark"] .field .error { color: #ff9a92; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand); }
.form-status.err { background: color-mix(in srgb, #c62828 10%, var(--surface)); color: var(--ink); border: 1px solid #c62828; }
.form-note { font-size: .88rem; color: var(--ink-3); margin: 14px 0 0; }

/* Externe Inhalte (2-Klick-Lösung) */
.embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); aspect-ratio: 16 / 9; }
.embed--map { aspect-ratio: 16 / 10; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--band-ink); }
.embed-consent::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(6 8 7 / .72), rgb(6 8 7 / .9)); }
.embed-consent > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.embed-consent .inner { position: relative; max-width: 520px; }
.embed-consent .inner > .icon { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--brand); }
.embed-consent .embed-title { color: var(--band-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: .4em; }
.embed-consent p { color: var(--band-ink-2); font-size: .93rem; }
.embed-consent a { color: #7fdc78; }
.embed-consent .remember { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; margin-top: 12px; color: var(--band-ink-2); }
.embed-consent .remember input { accent-color: var(--brand); width: 18px; height: 18px; }
.embed--map .embed-consent { background: var(--band-2); }
.embed--map .map-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand); opacity: .12; }
@media (max-width: 520px) { .embed--map { aspect-ratio: 3 / 4; } .embed { aspect-ratio: auto; min-height: 320px; } .embed:not(.embed--map) iframe { position: relative; aspect-ratio: 16 / 9; height: auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink-2); padding-top: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { color: #7fdc78; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--band-ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; margin-bottom: 14px; }
.site-footer .hours { grid-template-columns: 1fr; }
.site-footer .hours dt { color: var(--band-ink-2); }
.site-footer .hours dd + dt { margin-top: 8px; }
.site-footer .hours dd { color: var(--band-ink); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .18); }
.social a:hover { border-color: #7fdc78; }
.social svg { width: 20px; height: 20px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.footer-badges a { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-badges img { height: 40px; width: auto; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgb(255 255 255 / .1); padding-block: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--band-ink); cursor: pointer; }
.linklike:hover { color: #7fdc78; text-decoration: underline; }

/* Mobile Anruf-Leiste */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px;
    background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
    transition: translate .35s var(--ease);
  }
  .mobile-cta.is-hidden { translate: 0 150%; }
  .mobile-cta .btn { min-height: 46px; padding: .5em 1em; font-size: .95rem; }
  .site-footer { padding-bottom: 76px; }
}

/* Dialog (Datenschutz-Einstellungen) */
dialog.privacy { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-md); }
dialog.privacy::backdrop { background: rgb(6 8 7 / .6); backdrop-filter: blur(2px); }
dialog.privacy form { padding: 28px; }
dialog.privacy h2 { font-size: 1.5rem; }
dialog.privacy .opt { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
dialog.privacy .opt p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); }
dialog.privacy .opt input { width: 22px; height: 22px; accent-color: var(--brand); }
dialog.privacy .btn-row { margin-top: 18px; }

/* Reveal-Animation (nur mit JS & ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; color: var(--brand-ink); }

table.kv { min-width: 0; }
table.kv th { width: 44%; }
.prose-link { color: var(--brand-ink); text-decoration: underline; }
.prose-link:hover { color: var(--brand-ink); }
.notfound .btn-row { justify-content: center; }
.prose code { font-size: .9em; background: var(--bg-2); padding: .1em .35em; border-radius: 6px; }

/* Sitemap */
.sitemap-list { columns: 2 280px; column-gap: 40px; }
.sitemap-list li { break-inside: avoid; margin-bottom: 8px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; font-size: .95rem; }

@media print {
  .site-header, .mobile-cta, .site-footer .social, .embed, .cta-card { display: none !important; }
  body { background: #fff; color: #000; }
}
