/*
Theme Name: Nexa Energie
Theme URI: https://www.nexa-energie.de
Author: Nexa Energie GmbH
Author URI: https://www.nexa-energie.de
Description: Conversion- und SEO-optimiertes One-Page-Theme fuer die Nexa Energie GmbH (Photovoltaik, Waermepumpe, Speicher, Wallbox) mit Anfrageseiten fuer Kunden, Partnerbetriebe und Vertriebspartner. Navigation ueber WordPress-Menue frei bearbeitbar; Anfrage-Buttons verlinken auf eigene Plugin-Seiten. Inhalte ueber den Customizer und die Seite "Nexa Setup".
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexa-energie
*/

:root {
  --night: #103452;        /* exaktes Markenblau aus dem Logo */
  --night-2: #1c4a70;      /* helleres Blau fuer Verlaeufe, harmonisch abgeleitet */
  --bg: #f5f6f8;           /* neutralweiss, leicht kuehl statt gruenstichig */
  --ink: #1a2330;          /* dunkle Schrift, blaustichig statt gruenstichig */
  --muted: #5a6573;        /* neutrales Grau-Blau fuer Fliesstext */
  --leaf: #2f9e5e;         /* gruener Akzent (dezent, nur fuer Haken/Hervorhebung) */
  --leaf-dark: #237a48;
  --amber: #e8851a;        /* Aktionsfarbe, leicht an das Blau angepasst */
  --amber-dark: #c66f0d;
  --line: #e2e6ec;         /* neutrale Rahmenlinie */
  --white: #ffffff;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: "Inter","Segoe UI",system-ui,sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3 { font-family: "Fraunces",Georgia,serif; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1320px; }
.entry { font-size: 1.05rem; }
.entry p { margin-bottom: 1em; }
.entry h2, .entry h3 { color: var(--night); margin: 1.2em 0 0.5em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.topbar { background: var(--night); color: var(--white); font-size: 0.9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 44px; flex-wrap: wrap; gap: 8px; }
.topbar a { text-decoration: none; opacity: 0.95; }
.topbar .phone { font-weight: 600; }

header.site { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.logo { font-family: "Fraunces",serif; font-size: 1.45rem; font-weight: 600; color: var(--night); text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--night-2); }
.logo-img { display: inline-flex; align-items: center; }
.logo-img img { max-height: 52px; width: auto; display: block; }
.logo-img .custom-logo-link { display: inline-block; line-height: 0; }
nav.main ul, nav.main ul.menu { list-style: none; display: flex; gap: 24px; align-items: center; margin: 0; padding: 0; }
nav.main li { position: relative; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 0.96rem; transition: color .15s; }
nav.main a:hover { color: var(--night-2); }
nav.main .current-menu-item > a { color: var(--night-2); }
/* Untermenues (Dropdowns) fuer Seiten mit Unterseiten */
nav.main ul ul { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 0; min-width: 200px; box-shadow: 0 12px 30px rgba(15,41,66,0.12); flex-direction: column; gap: 0; z-index: 60; }
nav.main li:hover > ul { display: flex; }
nav.main ul ul li { width: 100%; }
nav.main ul ul a { display: block; padding: 8px 18px; font-size: 0.92rem; }
/* Wenn einem Menuepunkt im WP-Menue die CSS-Klasse "btn" gegeben wird,
   erscheint er als oranger Aktions-Button (z. B. "Angebot anfordern"). */
nav.main li.btn > a, nav.main a.btn { background: var(--amber); color: #fff; padding: 11px 20px; border-radius: 6px; }
nav.main li.btn > a:hover, nav.main a.btn:hover { background: var(--amber-dark); color: #fff; }

/* Aktionskarte im Hero / auf Anfrageseiten (ersetzt das fruehere Formular) */
.hero-action { text-align: center; }
.hero-action .btn { width: 100%; margin-top: 6px; }
.hero-action-alt { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }
.hero-action-alt a { color: var(--night-2); font-weight: 600; text-decoration: none; }

.btn { display: inline-block; background: var(--amber); color: var(--white); padding: 13px 24px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.97rem; border: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--amber-dark); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn:focus-visible { outline: 3px solid var(--night); outline-offset: 2px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--night); }

.hero { padding: 72px 0 64px; background: linear-gradient(180deg, rgba(15,41,66,0.05), rgba(15,41,66,0)), var(--bg); }
.hero.has-image { position: relative; background-size: cover; background-position: center; }
.hero.has-image::before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(15,41,66,0.82), rgba(15,41,66,0.55)); }
.hero.has-image .wrap { position: relative; }
.hero.has-image h1, .hero.has-image p.lead { color: #fff; }
.hero.has-image .trust-row span { color: #e6ecf0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem,4.5vw,3.2rem); color: var(--night); margin-bottom: 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin-bottom: 28px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-cta .secondary { text-decoration: none; font-weight: 600; color: var(--night); padding: 14px 4px; }
.hero.has-image .hero-cta .secondary { color: #fff; }
.trust-row { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.trust-row span { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.trust-row .check { color: var(--leaf); font-weight: 700; }

.lead-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 12px 30px rgba(15,41,66,0.08); }
.lead-card h2 { font-size: 1.35rem; color: var(--night); margin-bottom: 6px; }
.lead-card p.sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; font-family: inherit; background: var(--bg); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--night); border-color: var(--night); background: var(--white); }
.field textarea { resize: vertical; min-height: 90px; }
.lead-card .btn { width: 100%; }
.lead-card .privacy { font-size: 0.78rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { background: #fff8ec; border: 1px dashed var(--amber); border-radius: 8px; padding: 12px 14px; font-size: 0.85rem; color: var(--amber-dark); margin-bottom: 16px; }

section.block { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--night-2); margin-bottom: 10px; }
.block h2 { font-size: clamp(1.7rem,3vw,2.4rem); color: var(--night); margin-bottom: 14px; max-width: 20em; }
.block .intro { color: var(--muted); max-width: 40em; margin-bottom: 40px; font-size: 1.08rem; }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; display: block; }
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,41,66,0.1); }
.service .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg,var(--night),var(--night-2)); background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,0.7); font-size: 0.8rem; text-align: center; padding: 10px; }
.service .pad { padding: 22px 24px 26px; }
.service .ic { font-size: 1.5rem; margin-bottom: 8px; }
.service h3 { font-size: 1.18rem; margin-bottom: 8px; color: var(--night); }
.service p { font-size: 0.94rem; color: var(--muted); }

.usp { background: var(--night); color: var(--white); }
.usp .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.usp .eyebrow { color: #7fb4dd; }
.usp h2 { color: #fff; font-size: clamp(1.7rem,3vw,2.3rem); margin-bottom: 16px; }
.usp p { color: #cdd8e0; font-size: 1.05rem; margin-bottom: 14px; }
.usp ul { list-style: none; margin-top: 8px; }
.usp li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; gap: 12px; align-items: flex-start; }
.usp li b { color: #fff; }
.usp li .dot { color: #7fb4dd; font-weight: 700; flex-shrink: 0; }

.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.member .photo { aspect-ratio: 1/1; background: linear-gradient(135deg,var(--night),var(--night-2)); background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.member .body { padding: 18px; }
.member h3 { font-size: 1.1rem; color: var(--night); margin-bottom: 3px; }
.member .role { font-size: 0.88rem; color: var(--leaf-dark); font-weight: 600; margin-bottom: 8px; }
.member p { font-size: 0.9rem; color: var(--muted); }

.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.region-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.region-list span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 30px; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; }
.map-box { background: #0a1d30; border-radius: 12px; aspect-ratio: 4/3; background-size: cover; background-position: center; display: grid; place-items: center; color: rgba(255,255,255,0.5); text-align: center; padding: 20px; overflow: hidden; }
.map-box iframe { width: 100%; height: 100%; border: 0; }

.audience { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.aud-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 30px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.aud-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,41,66,0.12); border-color: var(--leaf); }
.aud-card .ic { font-size: 2rem; margin-bottom: 14px; }
.aud-card h3 { font-size: 1.25rem; color: var(--night); margin-bottom: 8px; }
.aud-card p { font-size: 0.96rem; color: var(--muted); margin-bottom: 18px; flex-grow: 1; }
.aud-card .more { font-weight: 600; color: var(--amber-dark); }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.benefit { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.benefit .ic { font-size: 1.6rem; margin-bottom: 12px; }
.benefit h3 { font-size: 1.1rem; color: var(--night); margin-bottom: 8px; }
.benefit p { font-size: 0.94rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split .copy h1 { font-size: clamp(1.9rem,4vw,2.8rem); color: var(--night); margin-bottom: 18px; }
.split .copy p.lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 22px; }
.split .copy ul { list-style: none; margin: 18px 0; }
.split .copy li { padding: 8px 0 8px 28px; position: relative; }
.split .copy li::before { content: "\2713"; position: absolute; left: 0; color: var(--leaf-dark); font-weight: 700; }

.final-cta { background: var(--night); color: var(--white); text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 14px; }
.final-cta p { font-size: 1.1rem; margin-bottom: 26px; opacity: 0.95; }
.final-cta .btn { background: var(--amber); }
.final-cta .btn:hover { background: var(--amber-dark); }

footer.site { background: var(--ink); color: #c5cdc8; padding: 56px 0 28px; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
footer.site h4 { color: #fff; font-family: "Fraunces",serif; margin-bottom: 14px; font-size: 1.1rem; }
footer.site a { color: #c5cdc8; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
.foot-bottom { border-top: 1px solid #333; padding-top: 18px; font-size: 0.82rem; opacity: 0.7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 880px) {
  .hero-grid, .services, .steps, .foot-grid, .usp .wrap, .team, .regions, .benefits, .split, .audience { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2,1fr); gap: 24px; }
  nav.main ul { display: none; }
  nav.main ul#menu.open, nav.main ul.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 14px; align-items: flex-start; z-index: 60; }
  nav.main ul.open ul { display: flex; position: static; border: none; box-shadow: none; padding: 6px 0 6px 16px; min-width: 0; background: transparent; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0; }
  section.block { padding: 52px 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none; } }
