/* ============================================================
   WEMA Energietechnik – Modernes Stylesheet
   Design-Tokens, Layout, Komponenten
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Marke */
  --blue:        #0061b3;   /* WEMA-Blau (Logo) */
  --blue-dark:   #004a8a;
  --blue-700:    #0f3d66;
  --navy:        #0c2740;   /* Dunkler Text / Footer */
  --green:       #2e9e5b;   /* Erneuerbare Energie */
  --green-dark:  #218049;
  --red:         #d8232a;   /* Akzent aus Logo (sparsam) */

  /* Neutral */
  --bg:          #ffffff;
  --bg-soft:     #f4f7fb;
  --bg-softer:   #eef3f9;
  --line:        #e2e8f0;
  --text:        #1b2a3a;
  --text-soft:   #51637a;
  --white:       #ffffff;

  /* Flächen (für Light/Dark umschaltbar) */
  --surface:     #ffffff;   /* Karten, Formulare, Inputs */
  --header-bg:   rgba(255,255,255,.92);
  --heading:     var(--navy);
  color-scheme: light;

  /* Typo */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Form */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;
  --shadow:      0 10px 30px -12px rgba(12, 39, 64, .18);
  --shadow-lg:   0 24px 60px -20px rgba(12, 39, 64, .30);
  --shadow-sm:   0 4px 14px -6px rgba(12, 39, 64, .18);

  --maxw:        1180px;
  --gap:         clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--heading); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p  { color: var(--text-soft); }

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: .9rem; font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(46,158,91,.7); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -10px rgba(0,97,179,.7); }
.btn--blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--light { background: #fff; color: #0c2740; }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--navy); color: #cdd9e6;
  font-size: .86rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #cdd9e6; display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .topbar__group { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 15px; height: 15px; color: var(--green); }
.topbar .badge-mini { color: #fff; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

/* Logo */
.logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.logo__img { height: 52px; width: auto; display: block; }
.footer__logo-img { height: 58px; width: auto; display: block; margin-bottom: 1.1rem; filter: brightness(1.15) saturate(1.05); }
.logo__mark { font-weight: 900; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1; }
.logo__mark .we { color: var(--blue); }
.logo__mark .ma { color: var(--red); }
.logo__sub { display: block; font-size: .58rem; letter-spacing: .34em; color: var(--text-soft); font-weight: 700; text-transform: uppercase; margin-top: 2px; }

/* Theme-Umschalter */
.theme-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; cursor: pointer; display: inline-grid; place-items: center; flex-shrink: 0;
  color: var(--heading); transition: border-color .2s, color .2s, background .3s;
}
.theme-toggle:hover { border-color: var(--blue); color: var(--blue); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Nav-Links */
.nav__links { display: flex; align-items: center; gap: .1rem; }
.nav__links a {
  font-weight: 600; font-size: .9rem; color: var(--heading);
  padding: .5rem .58rem; border-radius: 8px; transition: color .2s, background .2s;
  position: relative; white-space: nowrap;
}
.nav__links a:hover { color: var(--blue); background: var(--bg-soft); }
.nav__links a.active { color: var(--blue); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: .7rem; }

/* Hamburger */
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span { position: relative; width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: .25s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--heading); border-radius: 2px; transition: .25s;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, #0c2740 0%, #0f3d66 45%, #0061b3 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: soft-light;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(46,158,91,.55), transparent 60%),
    radial-gradient(600px 500px at 0% 110%, rgba(0,150,255,.4), transparent 55%);
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}
.hero__badge svg { width: 16px; height: 16px; color: #7ee2a8; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #7ee2a8; }
.hero__text { font-size: 1.18rem; color: #d3e2f2; margin-top: 1.3rem; max-width: 33ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; }
.hero__trust-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #d3e2f2; }
.hero__trust-item svg { width: 20px; height: 20px; color: #7ee2a8; flex-shrink: 0; }

/* Hero Visual */
.hero__visual { position: relative; }
.hero__card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg); padding: 1.4rem; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.hero__img {
  border-radius: 18px; aspect-ratio: 4/3; width: 100%; object-fit: cover;
  background: #163a5c center/cover no-repeat;
}
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.1rem; }
.hero__stat { text-align: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: .8rem .4rem; }
.hero__stat b { display: block; font-size: 1.45rem; color: #fff; font-weight: 800; }
.hero__stat span { font-size: .72rem; color: #b9cde0; letter-spacing: .02em; }

/* Floating Badge auf Hero-Bild */
.hero__float {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; color: #0c2740; border-radius: 14px; padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .7rem; max-width: 230px;
}
.hero__float .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.hero__float .ic svg { width: 22px; height: 22px; color: #fff; }
.hero__float b { font-size: .95rem; display: block; }
.hero__float span { font-size: .78rem; color: #51637a; }

/* Marken-Leiste unter Hero */
.brandbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.brandbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.3rem; flex-wrap: wrap; }
.brandbar span { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.brandbar ul { display: flex; gap: clamp(1.2rem, 4vw, 2.8rem); align-items: center; flex-wrap: wrap; }
.brandbar li { font-weight: 800; font-size: 1.15rem; color: #97a8bd; letter-spacing: -.01em; }

/* ============================================================
   LEISTUNGEN (Cards)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 16/10; background: var(--bg-softer) center/cover no-repeat; position: relative; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12,39,64,.45)); }
.card__icon {
  position: absolute; left: 1.1rem; bottom: -22px; z-index: 2;
  width: 56px; height: 56px; border-radius: 14px; background: var(--green); display: grid; place-items: center;
  box-shadow: var(--shadow); border: 3px solid var(--surface);
}
.card__icon svg { width: 28px; height: 28px; color: #fff; }
.card__body { padding: 2rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .6rem; }
.card__body p { font-size: .98rem; margin-bottom: 1.1rem; }
.card__link {
  margin-top: auto; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem;
  font-size: .95rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
/* Card-Icon-Variante Blau */
.card--blue .card__icon { background: var(--blue); }

/* ============================================================
   FEATURES / WARUM WIR
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.feature {
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; flex-shrink: 0; }
.feature__ic svg { width: 24px; height: 24px; color: var(--green); }
.feature h4 { font-size: 1.1rem; margin-bottom: .25rem; color: var(--heading); }
.feature p { font-size: .96rem; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; background: var(--bg-softer) center/cover no-repeat;
}
.media-frame--wide { aspect-ratio: 4/3; }

/* Stat-Box auf Bild */
.media-stat {
  position: absolute; right: -16px; bottom: 28px; background: #fff; border-radius: 14px;
  padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); text-align: center;
}
.media-stat b { display: block; font-size: 1.9rem; color: var(--green-dark); font-weight: 800; }
.media-stat span { font-size: .8rem; color: #51637a; }

/* ============================================================
   PROZESS / ABLAUF
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: .5rem; }
.step__num {
  width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem;
  box-shadow: 0 10px 22px -10px rgba(0,97,179,.7);
}
.step:nth-child(2) .step__num { background: var(--green); box-shadow: 0 10px 22px -10px rgba(46,158,91,.7); }
.step:nth-child(3) .step__num { background: var(--blue); }
.step:nth-child(4) .step__num { background: var(--green); }
.step h4 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; }

/* ============================================================
   ZAHLEN / STATS BANNER
   ============================================================ */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-big b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat-big span { color: #9fb6cd; font-size: .95rem; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9cde0; }

/* ============================================================
   REFERENZEN GALERIE
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  background: var(--bg-softer) center/cover no-repeat; box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(12,39,64,.85)); color: #fff; font-weight: 600; font-size: .9rem;
}
.gallery__tag { position: absolute; top: .7rem; left: .7rem; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; }

/* ============================================================
   PARTNER LOGOS
   ============================================================ */
.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.partner-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.2rem; text-align: center; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 130px;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card b { font-size: 1.25rem; color: var(--heading); letter-spacing: -.01em; }
.partner-card span { font-size: .82rem; color: var(--text-soft); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem); box-shadow: var(--shadow); max-width: 820px; margin-inline: auto; text-align: center;
}
.quote__stars { display: flex; gap: .2rem; justify-content: center; margin-bottom: 1.2rem; }
.quote__stars svg { width: 22px; height: 22px; color: #f6b73c; }
.quote p { font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: var(--heading); font-weight: 600; line-height: 1.5; }
.quote__author { margin-top: 1.4rem; font-size: .95rem; color: var(--text-soft); }
.quote__author b { color: var(--heading); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #0f3d66, #0061b3); color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(46,158,91,.5), transparent 60%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d3e2f2; max-width: 540px; margin: 1rem auto 2rem; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: #b9cde0; padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: .02em; }
.footer a { color: #b9cde0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__links li { margin-bottom: .65rem; }
.footer__brand .logo__mark { font-size: 1.9rem; }
.footer__brand .logo__sub { color: #8aa3bd; }
.footer__about { margin-top: 1.1rem; font-size: .95rem; color: #9fb6cd; max-width: 32ch; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .95rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.footer__badge {
  display: inline-flex; align-items: center; gap: .6rem; background: rgba(46,158,91,.16);
  border: 1px solid rgba(46,158,91,.4); color: #8ce6b0; padding: .6rem 1rem; border-radius: 12px;
  font-size: .88rem; font-weight: 600; margin-top: 1.2rem;
}
.footer__badge svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8aa3bd;
}
.footer__bottom a { margin-left: 1.2rem; }

/* ============================================================
   INNER PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
  background: linear-gradient(115deg, #0c2740, #0f3d66 70%); color: #fff; position: relative; overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 90% -20%, rgba(46,158,91,.4), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #d3e2f2; margin-top: 1rem; max-width: 60ch; font-size: 1.12rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #9fb6cd; margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; }

/* Prose / Inhaltsseiten */
.prose h2 { margin-top: 0; }
.prose h3 { margin: 2rem 0 .6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul.check { display: grid; gap: .8rem; margin: 1.4rem 0; }
.prose ul.check li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); }
.prose ul.check svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* Info-Box */
.infobox {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 1.5rem; margin: 1.6rem 0;
}
.infobox h4 { margin-bottom: .5rem; }
.infobox p { margin: 0; font-size: .98rem; }

/* Kontaktformular */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--heading); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  font-size: .98rem; color: var(--text); background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,97,179,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--text-soft); margin-top: .8rem; }

/* Honeypot – für Menschen unsichtbar, fängt Spam-Bots ab */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Datenschutz-Einwilligung */
.field-check { display: flex; gap: .65rem; align-items: flex-start; margin: .3rem 0 1.3rem; }
.field-check input { width: 18px; height: 18px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.field-check label { font-size: .88rem; font-weight: 500; color: var(--text-soft); line-height: 1.5; }
.field-check a { color: var(--blue); text-decoration: underline; }

.contact-info-card { background: var(--navy); color: #cdd9e6; border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); }
.contact-info-card h3 { color: #fff; margin-bottom: 1.4rem; }
.contact-info-card ul li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-info-card svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact-info-card b { color: #fff; display: block; font-size: .95rem; }
.contact-info-card span, .contact-info-card a { font-size: .95rem; color: #b9cde0; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 1.5rem; aspect-ratio: 16/7; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
/* Datenschutzfreundliche Karte: lädt erst nach Klick (keine OSM-Verbindung vorher) */
.map-consent { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 1.4rem; background: var(--bg-soft); }
.map-consent svg { width: 38px; height: 38px; color: var(--blue); }
.map-consent__title { font-weight: 700; color: var(--heading); margin: 0; }
.map-consent__text { font-size: .82rem; color: var(--text-soft); max-width: 44ch; margin: 0; line-height: 1.55; }
.map-consent__text a { color: var(--blue); text-decoration: underline; }
.map-consent__btn { margin-top: .3rem; }
.map-consent__alt { font-size: .78rem; color: var(--text-soft); text-decoration: underline; }
.map-consent__alt:hover { color: var(--blue); }

/* ============================================================
   ANIMATIONEN (reveal on scroll)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-frame { aspect-ratio: 16/10; }
}

@media (max-width: 980px) {
  /* Mobile-Navigation */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); height: 100dvh;
    background: var(--surface); flex-direction: column; align-items: stretch; gap: 0;
    padding: 6rem 1.5rem 2rem; box-shadow: -20px 0 60px -20px rgba(12,39,64,.4);
    transform: translateX(100%); transition: transform .3s ease; z-index: 40;
  }
  body.menu-open .nav__links { transform: translateX(0); }
  .nav__links a { padding: .95rem .6rem; border-radius: 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a.active::after { display: none; }
  .nav__cta .btn--blue { display: none; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(12,39,64,.5); opacity: 0; visibility: hidden;
    transition: .3s; z-index: 35;
  }
  body.menu-open .nav-overlay { opacity: 1; visibility: visible; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .topbar .topbar__group--left { display: none; }
  .hero__float { display: none; }
}

/* ============================================================
   DARK MODE
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #0c1620;
  --bg-soft:     #111e2b;
  --bg-softer:   #16263a;
  --line:        #27394f;
  --text:        #dce6f2;
  --text-soft:   #9fb2c8;
  --surface:     #15212e;
  --header-bg:   rgba(12, 22, 32, .9);
  --heading:     #f0f6fc;
  --shadow:      0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg:   0 24px 60px -20px rgba(0, 0, 0, .65);
  --shadow-sm:   0 4px 14px -6px rgba(0, 0, 0, .5);
}
/* sanfter Moduswechsel */
body, .header, .card, .partner-card, .quote, .form-card,
.field input, .field textarea, .field select, .theme-toggle, .nav__toggle {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
/* Logo im Dark Mode leicht aufhellen, damit "ENERGIETECHNIK" gut lesbar bleibt */
html[data-theme="dark"] .logo__img,
html[data-theme="dark"] .footer__logo-img { filter: brightness(1.18) saturate(1.05); }
/* Brand-Leiste im Dark Mode */
html[data-theme="dark"] .brandbar li { color: #8093a8; }
/* Karten heben sich durch etwas hellere Border ab */
html[data-theme="dark"] .card,
html[data-theme="dark"] .partner-card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }

/* ============================================================
   PARTNER-LOGOS & MARKEN-LEISTE
   ============================================================ */
.partner-card img { max-width: 155px; max-height: 50px; width: auto; height: auto; object-fit: contain; }
.partner-card span { font-size: .8rem; color: var(--text-soft); margin-top: .35rem; }
/* Logos sitzen auf weisser Karte – im Dark Mode helle Flaeche, damit sie lesbar bleiben */
html[data-theme="dark"] .partner-card { background: #f4f7fb; border-color: #dbe4ef; }

/* Marken-Leiste (Startseite): Logos dezent in Graustufen, bei Hover farbig */
.brandbar ul { gap: clamp(1.6rem, 4vw, 3rem); }
.brandbar img { height: 30px; width: auto; object-fit: contain; opacity: .7; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.brandbar img:hover { opacity: 1; filter: none; }
html[data-theme="dark"] .brandbar img { filter: grayscale(1) brightness(1.6); opacity: .6; }
html[data-theme="dark"] .brandbar img:hover { filter: brightness(1.6); opacity: 1; }

/* Hinweis-Block: externe Bezugsquelle (M&S Power Systems) */
.source-hint {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); padding: 1.5rem 1.7rem; margin-top: 2.2rem;
}
.source-hint__logo { height: 34px; width: auto; flex-shrink: 0; }
.source-hint__text { flex: 1; min-width: 240px; }
.source-hint__text b { color: var(--heading); display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.source-hint__text span { font-size: .95rem; color: var(--text-soft); }

/* Schwester-Shop M&S Power Systems – Highlight (Partner-Seite) */
.shop-feature {
  display: grid; grid-template-columns: minmax(250px, .82fr) 1.18fr;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.shop-feature__brand {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0c2740, #0f3d66);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
}
.shop-feature__brand::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 115% -10%, rgba(46,158,91,.5), transparent 60%);
}
.shop-feature__brand > * { position: relative; z-index: 1; }
.shop-feature__icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
}
.shop-feature__icon svg { width: 28px; height: 28px; color: #fff; }
.shop-feature__wordmark { font-size: clamp(1.5rem, 3vw, 1.95rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.shop-feature__wordmark b { color: #4fd089; font-weight: 800; }
.shop-feature__kicker { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #a9c8e8; }
.shop-feature__body { background: var(--surface); padding: clamp(2rem, 4vw, 3rem); }
.shop-feature__body h2 { margin-bottom: .9rem; }
.shop-feature__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 1.9rem; }
.shop-feature__chips span {
  font-size: .85rem; font-weight: 600; color: var(--heading);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: .45rem .95rem; border-radius: 999px;
}
@media (max-width: 820px) { .shop-feature { grid-template-columns: 1fr; } }

/* CTA-Button in der Nav bei mittlerer Breite ausblenden – schafft Platz fuer 8 Menuepunkte */
@media (max-width: 1160px) and (min-width: 981px) { .nav__cta .btn--blue { display: none; } }

/* Leistungs-Karten als 4er-Raster (Startseite) */
.cards--quad { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cards--quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards--quad { grid-template-columns: 1fr; } }
/* Klima-Karte ohne Foto: dezenter Marken-Gradient als Flaeche */
.card__media--klima { background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%); }

/* ============================================================
   REFERENZEN-DIASHOW
   ============================================================ */
.slideshow { position: relative; max-width: 880px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); aspect-ratio: 4/3; }
@media (max-width: 620px) { .slideshow { aspect-ratio: 3/4; } }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2rem 1.6rem 1.3rem; background: linear-gradient(transparent, rgba(12,39,64,.92)); color: #fff; }
.slide__tag { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .26rem .65rem; border-radius: 6px; margin-bottom: .55rem; }
.slide figcaption b { display: block; font-size: 1.08rem; font-weight: 700; }
.slideshow__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy);
  cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; z-index: 3;
}
.slideshow__nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.slideshow__nav svg { width: 22px; height: 22px; }
.slideshow__nav--prev { left: 1rem; }
.slideshow__nav--next { right: 1rem; }
.slideshow__dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 3; }
.slideshow__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.slideshow__dots button:hover { background: rgba(255,255,255,.8); }
.slideshow__dots button.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 620px) {
  .slideshow__nav { width: 38px; height: 38px; }
  .slide figcaption { padding: 2.4rem 1rem 1rem; }
}
