/* ============================================================
   Energie-Automation Rasel — Website
   Komponenten-CSS, 1:1 übernommen aus dem Claude-Design-System
   (website/styles.css). Das Design ist führend — Änderungen bitte
   dort vornehmen und hierher übertragen.
   Foundation-Tokens kommen aus foundation.css (separat geladen;
   entspricht colors_and_type.css des Design-Systems).
   Ergänzungen für den eigenständigen Betrieb stehen am Dateiende.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-1); color: var(--fg-1); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section.tinted { background: var(--bg-2); }
.section.dark { background: var(--neutral-900); color: #fff; }
.section.brandtint { background:
  radial-gradient(1000px 460px at 88% -5%, var(--brand-orange-50), transparent 70%), var(--bg-1); }

/* ---------- Type helpers (Saira Condensed via foundation) ---------- */
.eyebrow { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-orange-700); margin: 0 0 16px; }
.section.dark .eyebrow { color: var(--brand-orange); }
.h-sec { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 18px; }
.h-sec .lt { font-weight: 300; }
.lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--fg-2); margin: 0; }
.section.dark .lead { color: rgba(255,255,255,.78); }
.p { font-size: 18px; line-height: 1.65; color: var(--fg-2); margin: 0 0 18px; }
.p:last-child { margin-bottom: 0; }
.muted { color: var(--fg-3); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: var(--r-sm); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1; transition: all 140ms var(--ease-out); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-orange); color: #fff; }
.btn-primary:hover { background: var(--brand-orange-600); color: #fff; }
.btn-primary.lg { padding: 18px 32px; font-size: 17px; box-shadow: var(--shadow-brand); }
.btn-outline { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.btn-outline:hover { background: var(--bg-3); }
.section.dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.3); }
.section.dark .btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-ghost { background: transparent; color: var(--brand-orange-700); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--brand-orange); gap: 14px; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(12px) saturate(1.1); border-bottom: 1px solid var(--border-1); }
.nav { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 80px; display: flex; align-items: center; gap: 28px; }
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-link { color: var(--fg-1); font-family: var(--font-body); font-weight: 500; font-size: 16px; text-decoration: none; padding: 6px 0; position: relative; }
.nav-link:hover { color: var(--brand-orange-700); }
.nav-link.active { color: var(--brand-orange-700); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand-orange); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--fg-1); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 6vw, 82px); line-height: .96; letter-spacing: -.03em; margin: 16px 0 24px; }
.hero h1 .accent { color: var(--brand-orange); }
.hero .lead { max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--fg-2); }
.hero-trust svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; }
.hero-media { position: relative; }
.photo { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100)); border: 2px dashed var(--border-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--fg-3); text-align: center; padding: 28px; }
.photo .ph-ic { color: var(--brand-orange); }
.photo .ph-ic svg { width: 52px; height: 52px; }
.photo .ph-tx { font-weight: 500; font-size: 17px; }
.hero-media .photo { aspect-ratio: 4/5; }
.hero-badge { position: absolute; left: -24px; bottom: -24px; background: var(--neutral-900); color: #fff; border-radius: var(--r-lg); padding: 20px 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-3); }
.hero-badge .num { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--brand-orange); }
.hero-badge .lbl { font-size: 14px; line-height: 1.3; color: rgba(255,255,255,.82); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service / feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-1); transition: all 220ms var(--ease-out); display: flex; flex-direction: column; gap: 14px; }
.card:hover { box-shadow: var(--shadow-3); transform: translateY(-3px); }
.card .ic { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--brand-orange-700); display: flex; align-items: center; justify-content: center; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.015em; margin: 0; }
.card p { font-size: 16px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.card.feat { background: var(--neutral-900); border-color: transparent; }
.card.feat h3 { color: #fff; }
.card.feat p { color: rgba(255,255,255,.72); }
.card.feat .ic { background: var(--brand-orange); color: #fff; }
.card .card-link { margin-top: auto; color: var(--brand-orange-700); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.card.feat .card-link { color: var(--brand-orange); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: var(--border-2); }
.step { position: relative; }
.step .n { width: 60px; height: 60px; border-radius: 50%; background: var(--brand-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; margin-bottom: 20px; box-shadow: 0 0 0 8px var(--bg-2); }
.section:not(.tinted) .step .n { box-shadow: 0 0 0 8px var(--bg-1); }
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin: 0 0 8px; }
.step p { font-size: 16px; line-height: 1.5; color: var(--fg-2); margin: 0; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 0 40px; border-left: 1px solid var(--border-1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.section.dark .stat { border-color: rgba(255,255,255,.14); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 6vw, 76px); line-height: .9; letter-spacing: -.025em; color: var(--brand-orange); margin: 0 0 10px; }
.stat .l { font-size: 17px; line-height: 1.4; color: var(--fg-2); margin: 0; }
.section.dark .stat .l { color: rgba(255,255,255,.75); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 13px; font-size: 18px; line-height: 1.45; color: var(--fg-1); }
.checklist svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.section.dark .checklist li { color: #fff; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.media-left { direction: rtl; }
.split.media-left > * { direction: ltr; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--neutral-900); color: #fff; border-radius: var(--r-xl); padding: 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.02; letter-spacing: -.025em; margin: 0 0 14px; color: #fff; }
.cta-band h2 .accent { color: var(--brand-orange); }
.cta-band p { font-size: 18px; color: rgba(255,255,255,.72); margin: 0; max-width: 560px; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.32); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Energy label (mini) ---------- */
.eclabel { display: flex; flex-direction: column; gap: 5px; }
.ecbar { height: 30px; display: flex; align-items: center; padding-left: 16px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; border-radius: 3px; opacity: .45; }
.ecbar.on { opacity: 1; }
.ec-aplus{background:var(--ec-aplus);width:42%}.ec-a{background:var(--ec-a);width:49%}.ec-b{background:var(--ec-b);width:56%}
.ec-c{background:var(--ec-c);width:63%;color:#2c2c2c}.ec-d{background:var(--ec-d);width:70%;color:#2c2c2c}
.ec-e{background:var(--ec-e);width:77%;color:#2c2c2c}.ec-f{background:var(--ec-f);width:84%}.ec-g{background:var(--ec-g);width:91%}.ec-h{background:var(--ec-h);width:98%}

/* ---------- Forms ---------- */
.form { background: var(--bg-1); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-2); }
.section.dark .form { background: var(--bg-1); color: var(--fg-1); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; color: var(--fg-2); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--border-2); background: var(--bg-1); font-family: var(--font-body); font-size: 16px; color: var(--fg-1); transition: all 140ms var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(242,142,25,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 14px; color: var(--fg-3); margin: 14px 0 0; }
.form-note a { color: var(--brand-orange-700); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 72px 0 64px; background:
  radial-gradient(900px 380px at 90% -10%, var(--brand-orange-50), transparent 70%), var(--bg-1);
  border-bottom: 1px solid var(--border-1); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 68px); line-height: .98; letter-spacing: -.03em; margin: 14px 0 18px; max-width: 16ch; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { font-size: 15px; color: var(--fg-3); }
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-orange-700); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-1); padding: 26px 0; }
.faq-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.01em; margin: 0 0 10px; }
.faq-item p { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0; }

/* ---------- Contact info list ---------- */
.contact-info { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info li { display: flex; align-items: flex-start; gap: 14px; }
.contact-info .ci-ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--bg-tint); color: var(--brand-orange-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .ci-ic svg { width: 21px; height: 21px; }
.contact-info .ci-k { display: block; font-weight: 600; font-size: 14px; color: var(--fg-3); margin: 0 0 2px; text-transform: uppercase; letter-spacing: .06em; }
.contact-info .ci-v { display: block; font-size: 19px; color: var(--fg-1); margin: 0; text-decoration: none; }
a.ci-v:hover { color: var(--brand-orange-700); }

/* ---------- Legal (Impressum / Datenschutz) ----------
   Im Design stehen diese Regeln inline in impressum.html; hier zentral. */
.legal { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 48px 0 14px; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.legal strong { color: var(--fg-1); }
.legal .flag { background: var(--warning-bg); border-radius: var(--r-sm); padding: 16px 18px; font-size: 15px; color: #7a5a06; margin: 16px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--neutral-900); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; line-height: 1.6; margin: 0 0 18px; max-width: 300px; color: rgba(255,255,255,.7); }
.footer-brand .fsocial { display: flex; gap: 10px; }
.footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.7); font-size: 15px; text-decoration: none; padding: 5px 0; margin: 0; line-height: 1.5; }
.footer-col a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: rgba(255,255,255,.5); }
.footer-bar a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bar a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .hero-grid, .split, .cta-band { grid-template-columns: 1fr; gap: 36px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat { border-left: 0; padding: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

.photo.filled { border: none; background: var(--neutral-200); padding: 0; gap: 0; }
.photo.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Vorher/Nachher-Slider ---------- */
.ba { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; background: var(--neutral-200); user-select: none; }
.ba .ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .ba-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-tag { position: absolute; top: 16px; z-index: 3; background: rgba(14,14,14,.72); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; }
.ba-bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: #fff; z-index: 3; pointer-events: none; box-shadow: 0 0 0 1px rgba(14,14,14,.18); }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 999px; background: #fff; color: var(--neutral-900); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(14,14,14,.28); }
.ba-knob svg { width: 24px; height: 24px; }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Karte ---------- */
.karte { display: block; width: 100%; height: auto; margin-top: 32px; border-radius: var(--r-xl); border: 1px solid var(--border-1); background: var(--neutral-100); }
.karte-note { margin: 14px 0 0; font-size: 15px; color: var(--fg-3); }

/* ============================================================
   ERGÄNZUNGEN für den eigenständigen Betrieb (nicht im Design)
   Diese Regeln haben im Design-System keine Entsprechung, weil es
   dort keinen Server, kein echtes Formular und kein mobiles Menü
   gibt. Beim Abgleich mit dem Design also nicht als Abweichung
   missverstehen.
   ============================================================ */

/* Sprungziele nicht unter dem Sticky-Header verstecken
   (betrifft z. B. /impressum/#datenschutz). */
html { scroll-padding-top: 96px; }

/* Skip-Link: nur bei Tastaturfokus sichtbar. Im Design nicht enthalten,
   auf der bisherigen WordPress-Seite von dort automatisch erzeugt. */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1200; background: var(--brand-orange); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; text-decoration: none; }
.skip-link:focus { left: 0; color: #fff; }

/* Mobiles Overlay-Menü. Das Design zeigt nur den Burger-Button,
   ohne ausklappbares Menü — hier ist es ausimplementiert.
   Liegt bewusst außerhalb von .site-header: dessen backdrop-filter
   würde sonst einen Containing-Block für position:fixed erzeugen
   und das Overlay im Header einsperren. */
.mobile-menu { position: fixed; inset: 0; z-index: 1100; background: var(--neutral-0); color: var(--neutral-900); padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 12px; }
.mobile-menu-top img { height: 40px; width: auto; }
.mobile-menu-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--fg-1); cursor: pointer; }
.mobile-menu-close svg { width: 28px; height: 28px; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.01em; color: var(--fg-1); text-decoration: none; padding: 10px 0; }
.mobile-menu-links a.active { color: var(--brand-orange-700); }
.mobile-menu .btn { margin-top: 18px; align-self: flex-start; }
body.menu-open { overflow: hidden; }
.nav-burger svg { width: 28px; height: 28px; }

/* Rückmeldung des Kontaktformulars + Honeypot gegen Bots */
.form-status { font-size: 15px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.form-status.is-success { display: block; background: var(--success-bg); color: #1d5a34; }
.form-status.is-error { display: block; background: var(--danger-bg); color: #8a2415; }
.field.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Breite Inhalte (z. B. Tabellen) horizontal scrollbar halten */
.scroll-x { overflow-x: auto; }
