:root {
  --ae-ink: #102d4f;
  --ae-ink-soft: #2d4154;
  --ae-blue: #1976c9;
  --ae-blue-dark: #115a9a;
  --ae-green: #2fae55;
  --ae-green-dark: #20813d;
  --ae-orange: #f47a1f;
  --ae-purple: #743ba8;
  --ae-solar: #fdbb18;
  --ae-solar-dark: #dc9700;
  --ae-mist: #eff7fc;
  --ae-cloud: #f6f8fa;
  --ae-line: #dce5e1;
  --ae-white: #fff;
  --ae-shadow: 0 24px 60px rgba(11, 31, 51, 0.12);
  --ae-radius: 24px;
  --ae-shell: min(1180px, calc(100% - 2rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ae-ink-soft);
  background: var(--ae-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: var(--ae-blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ae-blue-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.65em;
  color: var(--ae-ink);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.55rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.1rem; }

.site-shell { width: var(--ae-shell); margin-inline: auto; }
.site-shell--content { max-width: 860px; }
.alignwide { width: var(--ae-shell); max-width: 1180px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-block-columns { display: flex; gap: 2rem; }
.wp-block-column { min-width: 0; flex: 1 1 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--ae-white);
  background: var(--ae-ink);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--ae-ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 30px rgba(11, 31, 51, 0.08); }
.site-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ae-ink);
  text-decoration: none;
}
.brand:hover { color: var(--ae-ink); }
.brand__logo { display: block; width: auto; height: 58px; max-width: 290px; object-fit: contain; }
.brand__icon { display: block; width: 46px; height: 46px; object-fit: contain; }
.brand picture { display: flex; align-items: center; }
.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ae-solar-dark);
  background: #fff4cb;
  border-radius: 50%;
}
.brand__mark svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand__name { font-family: Manrope, Inter, sans-serif; font-size: 1.12rem; font-weight: 850; letter-spacing: 0.055em; }
.brand__name span { color: var(--ae-green); }
.brand .custom-logo-link { display: flex; }
.brand .custom-logo-link img { width: auto; max-height: 54px; }

.primary-navigation { justify-self: end; }
.primary-navigation__menu,
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation a {
  display: inline-flex;
  padding: 0.75rem 0;
  color: var(--ae-ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { color: var(--ae-blue); }

.header-actions { display: flex; gap: 0.65rem; align-items: center; }
.menu-toggle { display: none; }

.button,
.wp-block-button__link,
button.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.25rem;
  color: var(--ae-white);
  background: var(--ae-blue);
  border: 1px solid var(--ae-blue);
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover,
.wp-block-button__link:hover,
button.button:hover { color: var(--ae-white); background: var(--ae-blue-dark); transform: translateY(-1px); box-shadow: 0 12px 25px rgba(25, 118, 201, 0.22); }
.button svg,
.text-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button--compact { min-height: 42px; padding: 0.68rem 1rem; font-size: 0.88rem; }
.button--solar,
.is-style-solar .wp-block-button__link { color: var(--ae-white); background: var(--ae-orange); border-color: var(--ae-orange); }
.button--solar:hover,
.is-style-solar .wp-block-button__link:hover { color: var(--ae-ink); background: var(--ae-solar); border-color: var(--ae-solar); box-shadow: 0 12px 25px rgba(244, 122, 31, 0.24); }
.button--ghost,
.is-style-outline-dark .wp-block-button__link { color: var(--ae-ink); background: transparent; border-color: rgba(11, 31, 51, 0.24); }
.button--ghost:hover,
.is-style-outline-dark .wp-block-button__link:hover { color: var(--ae-green-dark); background: var(--ae-mist); border-color: var(--ae-green); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  background:
    radial-gradient(circle at 84% 20%, rgba(253, 187, 24, 0.23), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eaf5fc 60%, #fff7df 100%);
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  bottom: -250px;
  border: 1px solid rgba(25, 118, 201, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(25, 118, 201, 0.04), 0 0 0 110px rgba(47, 174, 85, 0.03);
}
.hero-section__grid { position: relative; z-index: 1; gap: clamp(2.5rem, 7vw, 6rem); }
.hero-section h1 { max-width: 850px; margin-bottom: 1.25rem; }
.hero-section__lead { max-width: 690px; color: #405464; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.65; }

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--ae-blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow--light { color: #8fe0cd; }

.solar-visual {
  position: relative;
  min-height: 390px;
  padding: 3rem;
  background: var(--ae-ink);
  border-radius: 34px;
  box-shadow: var(--ae-shadow);
  isolation: isolate;
}
.solar-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  border-radius: inherit;
}
.solar-visual__sun {
  position: absolute;
  top: 42px;
  right: 46px;
  width: 68px;
  height: 68px;
  background: var(--ae-solar);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(245, 183, 0, 0.1), 0 0 60px rgba(245, 183, 0, 0.38);
}
.solar-visual__panel {
  position: absolute;
  top: 132px;
  left: 50%;
  display: grid;
  width: 70%;
  aspect-ratio: 1.5;
  padding: 8px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  background: #182f49;
  border: 5px solid #d8e6ed;
  transform: translateX(-50%) perspective(600px) rotateX(55deg) rotateZ(-7deg);
  box-shadow: 0 28px 26px rgba(0, 0, 0, 0.3);
}
.solar-visual__panel i { background: linear-gradient(145deg, #2385a2, #0e4968); border: 1px solid rgba(255,255,255,.28); }
.solar-visual__base { position: absolute; left: 50%; top: 270px; width: 9px; height: 72px; background: #d8e6ed; transform: translateX(-50%) rotate(-7deg); }
.solar-visual__metric {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--ae-white);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.solar-visual__metric strong { color: var(--ae-solar); }
.solar-visual__metric span { font-size: 0.8rem; }

.content-section,
.split-section,
.cta-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.content-section > h2,
.content-section > .wp-block-heading { max-width: 800px; margin-inline: auto; }
.feature-grid,
.card-grid { align-items: stretch !important; gap: 1.25rem !important; margin-top: 2.5rem; }
.feature-card,
.profile-card,
.project-card {
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--ae-white);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.055);
}
.feature-card__number { margin-bottom: 2.5rem; color: var(--ae-solar-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.1em; }
.feature-card--accent { color: var(--ae-white); background: var(--ae-ink); border-color: var(--ae-ink); }
.feature-card--accent h3 { color: var(--ae-white); }

.split-section { background: var(--ae-mist); }
.split-section .wp-block-columns { gap: clamp(2rem, 7vw, 6rem); }
.stat-panel { padding: 2rem; background: var(--ae-white); border-radius: var(--ae-radius); box-shadow: var(--ae-shadow); }
.stat-panel p { padding-bottom: 1rem; border-bottom: 1px solid var(--ae-line); }
.stat-panel p:last-child { margin-bottom: 0; padding-bottom: 0; border: 0; }

.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: 0.8rem; padding-left: 2rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; display: grid; width: 1.35rem; height: 1.35rem; place-items: center; color: var(--ae-green); background: #d9f2eb; border-radius: 50%; font-size: 0.8rem; font-weight: 900; }

.cta-section { color: var(--ae-white); background: var(--ae-ink); }
.cta-section h2 { max-width: 820px; margin-inline: auto; color: var(--ae-white); }
.cta-section p { max-width: 700px; margin-inline: auto; color: #c5d3df; }

.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0; background: linear-gradient(135deg, var(--ae-mist), #fff8df); }
.page-hero__inner { max-width: 980px; }
.page-hero h1 { max-width: 980px; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.page-hero--article h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.entry-content { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.is-asenergie-home .entry-content { padding-top: 0; padding-bottom: 0; }
.entry-content > * { margin-top: 0; margin-bottom: 1.3rem; }
.entry-content > h2 { margin-top: 2.4rem; }
.entry-content > h3 { margin-top: 2rem; }
.entry-content > .alignwide,
.entry-content > .alignfull { position: relative; left: 50%; transform: translateX(-50%); }
.featured-image { margin: 0 0 2rem; }
.featured-image img { border-radius: var(--ae-radius); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card { padding: 1.25rem; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); }
.post-card__image img { aspect-ratio: 16/10; object-fit: cover; border-radius: 15px; }
.post-card__meta { color: #6a7a86; font-size: 0.82rem; }
.post-card h2 { font-size: 1.35rem; }
.post-card h2 a { color: var(--ae-ink); text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 750; text-decoration: none; }

.asenergie-form { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--ae-cloud); border: 1px solid var(--ae-line); border-radius: var(--ae-radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.asenergie-form label { display: block; margin-bottom: 1rem; color: var(--ae-ink); font-weight: 700; }
.asenergie-form label > span { display: block; margin-bottom: 0.4rem; }
.asenergie-form input,
.asenergie-form select,
.asenergie-form textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  color: var(--ae-ink);
  background: var(--ae-white);
  border: 1px solid #b9c9c3;
  border-radius: 10px;
  font: inherit;
}
.asenergie-form input:focus,
.asenergie-form select:focus,
.asenergie-form textarea:focus { outline: 3px solid rgba(14, 122, 101, 0.18); border-color: var(--ae-green); }
.checkbox-field { display: flex !important; align-items: flex-start; gap: 0.65rem; font-weight: 500 !important; }
.checkbox-field input { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; flex: 0 0 auto; }
.checkbox-field span { margin: 0 !important; }
.asenergie-form__trap { position: absolute !important; left: -10000px !important; }
.form-notice { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 700; }
.form-notice--success { color: var(--ae-green-dark); background: #e1f6e7; }
.form-notice--error { color: #8d1a1a; background: #ffe6e6; }

.site-footer { padding-top: 4rem; color: #bdcbd6; background: #071727; }
.site-footer h2 { color: var(--ae-white); }
.site-footer a { color: var(--ae-white); }
.site-footer__lead { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__lead h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr; gap: 4rem; padding: 3.5rem 0; }
.brand--footer { margin-bottom: 1.25rem; color: var(--ae-white); }
.brand--footer:hover { color: var(--ae-white); }
.site-footer__title { font-size: 1rem; letter-spacing: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.82rem; }
.site-footer__bottom p { margin: 0; }
.error-page { min-height: 60vh; padding-top: 7rem; padding-bottom: 7rem; }

@media (max-width: 1080px) {
  .site-header__inner { grid-template-columns: auto auto 1fr; gap: 1rem; }
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    color: var(--ae-ink);
    background: transparent;
    border: 1px solid var(--ae-line);
    border-radius: 10px;
    font: inherit;
    font-weight: 750;
  }
  .menu-toggle__bars { display: grid; gap: 3px; }
  .menu-toggle__bars i { display: block; width: 18px; height: 2px; background: currentColor; }
  .primary-navigation {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 82px);
    overflow: auto;
    padding: 1rem;
    background: var(--ae-white);
    border-bottom: 1px solid var(--ae-line);
    box-shadow: var(--ae-shadow);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation__menu,
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--ae-line); }
  .header-actions { justify-self: end; }
}

@media (max-width: 782px) {
  h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .wp-block-columns { flex-direction: column; }
  .site-header__inner { min-height: 72px; grid-template-columns: auto 1fr auto; }
  .primary-navigation { top: 72px; max-height: calc(100vh - 72px); }
  .brand__name { font-size: 0.98rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__logo { height: 48px; max-width: 235px; }
  .menu-toggle__label { display: none; }
  .header-actions .button { min-height: 38px; padding: 0.6rem 0.85rem; font-size: 0.8rem; }
  .hero-section { padding-top: 3.5rem; }
  .hero-section__grid { flex-direction: column !important; }
  .solar-visual { min-height: 340px; margin-top: 1rem; }
  .feature-grid,
  .card-grid { flex-direction: column !important; }
  .post-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .site-footer__lead { align-items: flex-start; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 460px) {
  :root { --ae-shell: min(100% - 1.25rem, 1180px); }
  .site-header .brand__logo { display: block; width: 48px; height: 48px; object-fit: contain; }
  .header-actions { gap: 0.35rem; }
  .header-actions .button { padding: 0.55rem 0.65rem; font-size: 0.72rem; }
  .solar-visual { min-height: 310px; padding: 1.5rem; }
  .solar-visual__panel { top: 115px; width: 78%; }
  .solar-visual__metric { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
