/* =========================================================
   Baobab Energy – Stylesheet
   Hausfarbe: Petrol #1A3D45 (aus dem Logo)
   Schrift: Nunito (lokal eingebunden, keine Verbindung zu Google)
   ========================================================= */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petrol: #1A3D45;        /* Hausfarbe aus dem Logo */
  --petrol-tief: #10292F;   /* dunklere Variante für Footer */
  --petrol-mittel: #2E5F6A; /* Hover / Akzente */
  --petrol-hell: #6E949C;   /* Linien, Punkte auf dunklem Grund */
  --nebel: #EEF4F5;         /* heller Hintergrund */
  --nebel-dunkel: #DCE8EA;
  --text: #1A2B2F;
  --text-leise: #4E6267;
  --weiss: #ffffff;
  --linie: #D5E2E4;
  --radius: 16px;
  --breite: 1160px;
  --schrift: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--petrol-mittel); }
a:hover { color: var(--petrol); }

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--petrol); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(var(--breite), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--hell { background: var(--nebel); }
.section--petrol { background: var(--petrol); color: #D6E4E7; position: relative; overflow: hidden; }
.section--petrol h2, .section--petrol h3 { color: var(--weiss); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-mittel); margin-bottom: .9em;
}
/* drei Punkte vor der Dachzeile – angelehnt an das Punktmuster im Logo */
.eyebrow::before { content: ""; width: 28px; height: 6px; background: radial-gradient(circle, currentColor 2.6px, transparent 3px) 0 0 / 10px 6px repeat-x; }
.section--petrol .eyebrow, .hero .eyebrow { color: #A9C6CC; }
.lead { font-size: 1.15rem; color: var(--text-leise); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* Punktraster als dezenter Hintergrund (Logo-Motiv) */
.punkte { position: absolute; pointer-events: none; opacity: .14;
  background-image: radial-gradient(circle, #fff 2.4px, transparent 2.8px); background-size: 18px 18px; }

/* ---------- Kopfzeile / Navigation ---------- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linie); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: block; color: var(--petrol); text-decoration: none; }
.logo svg { height: 52px; width: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul > li { position: relative; }
.nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 10px 13px; border-radius: 10px; display: block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--petrol); background: var(--nebel); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 8px; box-shadow: 0 14px 34px rgba(16,41,47,.10); flex-direction: column; align-items: stretch; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--petrol); cursor: pointer; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linie); padding: 12px 20px 20px; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}
@media (max-width: 420px) { .logo svg { height: 38px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-family: inherit; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-size: 1rem; }
.btn--primary, .nav a.btn--primary { background: var(--petrol); color: #fff; }
.btn--primary:hover, .nav a.btn--primary:hover { background: var(--petrol-mittel); color: #fff; }
.btn--ghost { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.btn--ghost:hover { background: var(--petrol); color: #fff; }
/* auf dunklem Grund */
.section--petrol .btn--primary, .hero .btn--primary { background: #fff; color: var(--petrol); }
.section--petrol .btn--primary:hover, .hero .btn--primary:hover { background: var(--nebel-dunkel); color: var(--petrol); }
.section--petrol .btn--ghost, .hero .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.section--petrol .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--petrol); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { background: var(--petrol); color: #D6E4E7; overflow: hidden; position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: clamp(60px, 8vw, 110px) 0; position: relative; }
.hero h1 { color: #fff; }
.hero .lead { color: #C3D6DA; }
.hero__bild { color: #fff; justify-self: center; width: 100%; max-width: 400px; }
.hero__bild circle { animation: glimmen 4s ease-in-out infinite; }
@keyframes glimmen { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__bild circle, .fluss * { animation: none !important; } }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__bild { max-width: 260px; justify-self: start; } }

.seitenkopf { background: var(--nebel); padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--linie); position: relative; overflow: hidden; }
.seitenkopf .punkte { opacity: .5; background-image: radial-gradient(circle, var(--nebel-dunkel) 2.4px, transparent 2.8px); right: -40px; top: 0; bottom: 0; width: 320px; }
.seitenkopf .container { position: relative; }
.seitenkopf .lead { margin-bottom: 0; }
.breadcrumb { font-size: .88rem; color: var(--text-leise); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-leise); }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--nebel); border-bottom: 1px solid var(--linie); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--petrol); font-size: .98rem; }
.trust li::before, .vorteile li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/13px no-repeat; }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.section--hell .card { border-color: transparent; }
.card p { color: var(--text-leise); }
.card .mehr { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .mehr::after { content: " →"; }
.icon { width: 50px; height: 50px; border-radius: 14px; background: var(--nebel); display: grid; place-items: center; margin-bottom: 18px; color: var(--petrol); }
.section--hell .icon { background: var(--nebel-dunkel); }
.icon svg { width: 26px; height: 26px; }
.section-head { margin-bottom: 40px; }

/* ---------- Schritte ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding-top: 66px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--petrol); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 60px; right: -12px; height: 6px; background: radial-gradient(circle, var(--petrol-hell) 2.4px, transparent 2.8px) 0 0 / 12px 6px repeat-x; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; margin-bottom: .4em; }
.steps p { font-size: .95rem; color: #BCD0D4; margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 4px 0 0 66px; }
  .steps li::after { display: none; }
}

/* ---------- Animierte Grafik "So funktioniert Mieterstrom" ---------- */
.fluss-box { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px; }
.section--hell .fluss-box { border-color: transparent; }
.fluss { width: 100%; height: auto; }
.fluss .strom { stroke-dasharray: 2 12; stroke-linecap: round; animation: fliessen 1.4s linear infinite; }
.fluss .strom--langsam { animation-duration: 2.4s; }
@keyframes fliessen { to { stroke-dashoffset: -28; } }
.fluss .sonne { animation: glimmen 4s ease-in-out infinite; }
.fluss-legende { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; font-size: .95rem; color: var(--text-leise); }
.fluss-legende strong { display: block; color: var(--petrol); }
@media (max-width: 640px) { .fluss-legende { grid-template-columns: 1fr; } }

/* ---------- Inhaltsseiten ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.leistung-liste { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.leistung-liste li { background: #fff; border: 1px solid var(--linie); border-left: 4px solid var(--petrol); border-radius: 12px; padding: 20px 24px; }
.leistung-liste h3 { margin-bottom: .3em; font-size: 1.12rem; }
.leistung-liste p { margin: 0; color: var(--text-leise); }

.vorteile { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vorteile li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.vorteile li::before { margin-top: 3px; }

.layout-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.aside { background: var(--nebel); border-radius: var(--radius); padding: 28px; position: sticky; top: 104px; }
@media (max-width: 860px) { .layout-2 { grid-template-columns: 1fr; } .aside { position: static; } }

.weiter { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--linie); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--linie); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--petrol); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--petrol-mittel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-leise); }

/* ---------- Formular ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form .voll { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #BFD0D3; border-radius: 10px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(26,61,69,.18); border-color: var(--petrol); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.form .check input { width: auto; margin-top: 5px; accent-color: var(--petrol); }
.form .hinweis { font-size: .85rem; color: var(--text-leise); font-weight: 400; }
.form .hp { position: absolute; left: -5000px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.kontakt-box { background: var(--petrol); color: #D6E4E7; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden; }
.kontakt-box h3 { color: #fff; }
.kontakt-box a { color: #fff; }
.kontakt-box dl { margin: 0; display: grid; gap: 14px; position: relative; }
.kontakt-box dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #A9C6CC; font-weight: 700; }
.kontakt-box dd { margin: 0; font-weight: 700; }
.kontakt-box p { position: relative; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .container { position: relative; }
.cta .lead { color: #C3D6DA; margin-inline: auto; }
.cta .buttons { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--petrol-tief); color: #A9BFC4; padding: 56px 0 28px; font-size: .95rem; }
.footer a { color: #E3EDEF; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer .logo svg { height: 50px; }
.footer__unten { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
