/* sonnenverwalter.de — V2, Bürgerenergie-Dienstleister: Logo-Grün, Sonnengelb, Modulblau; Barlow + Source Sans 3 lokal */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/source-sans-3-400-700-latin.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; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/source-sans-3-400-700-latin-ext.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; }

:root {
    --gruen: #1a7921;
    --gruen-tief: #0f4a14;
    --gruen-hell: #eaf5ea;
    --sonne: #f8a200;
    --sonne-hell: #fff5dc;
    --sonne-text: #9a5800;
    --modul: #1e5f94;
    --nacht: #0e2537;
    --text: #1d2a33;
    --grau: #4e5d68;
    --flaeche: #f6f8f3;
    --linie: #dde5dc;
    --breite: 1200px;
    --rund: 14px;
    --titel: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.2em; height: 1.2em; flex: none; }
a { color: var(--gruen); text-underline-offset: .15em; }
a:hover { color: var(--gruen-tief); }
h1, h2, h3 { font-family: var(--titel); color: var(--nacht); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(28px, 3.3vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--modul); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--nacht); color: #fff; padding: .5rem 1rem; border-radius: 6px; }
.skip-link:focus { top: .5rem; color: #fff; }

.rahmen { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 20px; }

.kicker { font-family: var(--titel); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: 15px; color: var(--sonne-text); margin: 0 0 .6em; }
.kicker--hell { color: var(--sonne); }

.knopf { display: inline-flex; align-items: center; gap: .55rem; background: var(--gruen); color: #fff; text-decoration: none; font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--gruen); line-height: 1.2; }
.knopf:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); color: #fff; }
.knopf--rand { background: transparent; color: var(--gruen); }
.knopf--rand:hover { background: var(--gruen-hell); color: var(--gruen-tief); border-color: var(--gruen); }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--linie); backdrop-filter: blur(8px); }
.kopf-innen { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.marke { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; color: var(--nacht); }
.marke img { width: 50px; height: 50px; }
.marke span { font-family: var(--titel); font-weight: 700; font-size: 22px; line-height: 1.05; display: flex; flex-direction: column; }
.marke small { font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: 14px; color: var(--gruen); letter-spacing: .02em; }
.marke:hover { color: var(--nacht); }
.hauptnav ul { list-style: none; margin: 0; padding: 0; }
.hauptnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.hauptnav a:hover { color: var(--gruen); }
.nav-login a { display: inline-flex; align-items: center; gap: .4rem; color: var(--gruen); }
.tel-knopf { display: inline-flex; align-items: center; gap: .45rem; background: var(--sonne); color: var(--nacht); text-decoration: none; font-weight: 700; padding: .65rem 1.2rem; border-radius: 999px; white-space: nowrap; }
.tel-knopf:hover { background: #ffb52e; color: var(--nacht); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle-strich, .nav-toggle-strich::before, .nav-toggle-strich::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--nacht); content: ""; transition: transform .2s; }
.nav-toggle-strich { top: 21px; }
.nav-toggle-strich::before { top: -7px; left: 0; }
.nav-toggle-strich::after { top: 7px; left: 0; }
.nav-offen .nav-toggle-strich { background: transparent; }
.nav-offen .nav-toggle-strich::before { transform: translateY(7px) rotate(45deg); }
.nav-offen .nav-toggle-strich::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 66em) {
    .hauptnav ul { display: flex; align-items: center; gap: .2rem; }
    .hauptnav a { padding: .5rem .7rem; }
    .nav-login { margin-left: .4rem; padding-left: .6rem; border-left: 1px solid var(--linie); }
}

@media (max-width: 65.99em) {
    .nav-toggle { display: block; }
    .hauptnav { order: 3; }
    .hauptnav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: .5rem 20px 1rem; box-shadow: 0 10px 20px rgba(14, 37, 55, .12); }
    .nav-offen .hauptnav ul { display: block; }
    .hauptnav li a { display: flex; padding: .8rem 0; border-bottom: 1px solid var(--linie); font-size: 19px; }
}

@media (max-width: 34em) {
    .tel-knopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .tel-knopf { padding: .75rem; }
    .marke small { display: none; }
    .marke span { font-size: 20px; }
    .marke img { width: 42px; height: 42px; }
}

/* Bühne */
.buehne { background: linear-gradient(160deg, var(--sonne-hell) 0%, #fff 55%, var(--gruen-hell) 100%); padding: clamp(40px, 6vw, 80px) 0; }
.buehne-innen { display: grid; gap: 36px; align-items: center; }
.buehne h1 { margin-bottom: .35em; }
.buehne h1 span { display: block; color: var(--gruen); font-size: .55em; font-weight: 600; margin-top: .2em; }
.buehne .lead { font-size: 20px; color: var(--grau); margin: 0; }
.buehne-bild { margin: 0; }
.buehne-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rund); box-shadow: 0 24px 48px -20px rgba(14, 37, 55, .45); }
@media (min-width: 56em) {
    .buehne-innen { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

/* Zahlenband */
.zahlenband { background: var(--nacht); color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.zahlen-titel { color: #fff; font-size: 22px; font-weight: 600; margin-bottom: 1.2em; }
.zahlen-titel small { font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: 15px; color: #b9c8d4; margin-left: .5em; display: inline-block; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px 22px; margin: 0; }
.zahl { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .2rem; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: .9rem; }
.zahl dd { margin: 0; font-family: var(--titel); font-weight: 700; font-size: clamp(28px, 2.6vw, 36px); color: var(--sonne); line-height: 1.1; white-space: nowrap; }
.zahl dt { font-size: 16px; color: #dbe5ec; line-height: 1.35; }

/* Abschnitte */
.abschnitt { padding: clamp(56px, 8vw, 104px) 0; }
.flaeche { background: var(--flaeche); }
.abschnitt-kopf { margin-bottom: clamp(28px, 4vw, 48px); }
.abschnitt-kopf p:last-child { color: var(--grau); font-size: 19px; margin: 0; }

.leistungen { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.leistung { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); padding: 28px 24px; }
.leistung-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px; background: var(--gruen); }
.leistung-icon img { width: 42px; height: 42px; }
.leistung--betrieb .leistung-icon { background: var(--sonne); }
.leistung--wartung .leistung-icon { background: var(--modul); }
.leistung p { color: var(--grau); margin: 0; }

.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: schritt; }
.schritte li { counter-increment: schritt; background: #fff; border-radius: var(--rund); padding: 26px 24px; box-shadow: 0 1px 2px rgba(14, 37, 55, .06), 0 8px 24px -12px rgba(14, 37, 55, .18); }
.schritte li::before { content: counter(schritt); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sonne-hell); color: var(--sonne-text); font-family: var(--titel); font-weight: 700; font-size: 22px; margin-bottom: 14px; border: 2px solid var(--sonne); }
.schritte h3 { font-size: 21px; }
.schritte p { color: var(--grau); margin: 0; font-size: 17px; }

.zwei { display: grid; gap: 32px 56px; align-items: center; }
.zwei--oben { align-items: start; }
@media (min-width: 56em) {
    .zwei { grid-template-columns: 1fr 1fr; }
    .zwei--rechts > :first-child { order: 2; }
}
.foto { margin: 0; }
.foto a { display: block; }
.foto--rund img { width: 100%; border-radius: var(--rund); aspect-ratio: 3 / 2; object-fit: cover; }

.haken { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: .55rem; }
.haken li { display: flex; gap: .6rem; align-items: flex-start; }
.haken svg { color: var(--gruen); margin-top: .2em; }

.chips-gruppe { margin: 0 0 1.2em; }
.chips-gruppe h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); margin-bottom: .5em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--gruen); color: #fff; border-radius: 999px; padding: .35rem .95rem; font-weight: 600; font-size: 16px; }
.chips--hell li { background: #fff; color: var(--nacht); border: 1px solid var(--linie); }

.projekte { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.projekt { background: #fff; border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; }
.projekt-bild { margin: 0; }
.projekt-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.projekt-text { padding: 24px; }
.projekt-text p { font-size: 17px; color: var(--grau); }
.projekt-text p:last-child { margin: 0; }

.bilderpaar { display: grid; gap: 22px; }

/* Kontakt */
.kontakt { background: var(--gruen-tief); color: #fff; padding: clamp(56px, 7vw, 90px) 0; }
.kontakt h2 { color: #fff; }
.kontakt p { color: #d7ead8; font-size: 19px; }
.kontakt-innen { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 56em) { .kontakt-innen { grid-template-columns: 1.1fr 1fr; } }
.kontakt-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kontakt-liste li { display: flex; gap: .9rem; align-items: center; background: rgba(255, 255, 255, .08); border-radius: var(--rund); padding: 14px 18px; }
.kontakt-liste svg { color: var(--sonne); width: 1.5em; height: 1.5em; }
.kontakt-liste span { display: flex; flex-direction: column; line-height: 1.35; }
.kontakt-liste small { color: #b8d4ba; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.kontakt-liste a { color: #fff; font-weight: 600; }
.kontakt-liste a:hover { color: var(--sonne); }

/* Seitenkopf + Textseiten */
.seitenkopf { background: linear-gradient(160deg, var(--sonne-hell), var(--gruen-hell)); padding: clamp(32px, 5vw, 56px) 0; }
.seitenkopf h1 { margin: 0; font-size: clamp(32px, 4.4vw, 50px); }
.pfad { font-size: 15px; color: var(--grau); margin: 0 0 .5em; }
.textseite { padding-top: clamp(32px, 4vw, 56px); }
.textseite h2 { font-size: 26px; margin-top: 1.5em; }
.textseite h3 { font-size: 21px; margin-top: 1.2em; }
.textseite ul { padding-left: 1.2em; }

/* Fuß */
.fuss { background: var(--nacht); color: #c4d1db; padding: 32px 0; font-size: 16px; }
.fuss-innen { display: grid; gap: 14px; justify-items: center; text-align: center; }
.fuss p { margin: 0; }
.fuss-marke { display: flex; align-items: center; gap: .6rem; }
.fuss-marke img { background: #fff; border-radius: 50%; padding: 2px; }
.fuss-marke strong { color: #fff; font-family: var(--titel); font-size: 19px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--sonne); }
@media (min-width: 62em) {
    .fuss-innen { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; }
    .fuss-innen > p:nth-child(2) { justify-self: center; }
}

/* Modal (Fotos) */
.modal { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.modal::backdrop { background: rgba(14, 37, 55, .88); }
.modal figure { margin: 0; }
.modal img { max-width: min(1100px, 94vw); max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
.modal figcaption { color: #fff; text-align: center; padding-top: .6rem; font-size: 16px; }
.modal-zu { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.modal-pfeil { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .5); color: #fff; border: 0; font-size: 34px; width: 48px; height: 64px; cursor: pointer; border-radius: 6px; }
.modal-zurueck { left: 8px; }
.modal-weiter { right: 8px; }
.modal--einzeln .modal-pfeil { display: none; }

/* FAQ */
.textseite .stand { color: var(--grau); font-size: 16px; margin-top: 0; }
.textseite .einleitung { font-size: 20px; }
.hinweis { background: var(--sonne-hell); border-radius: var(--rund); padding: 18px 22px; margin: 1em 0 1.4em; }
.hinweis ul { margin: 0; }
.hinweis li + li { margin-top: .4em; }
.faq-inhalt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 18px 22px; margin: 1.6em 0; }
.faq-inhalt ol { margin: 0; padding-left: 1.6em; columns: 2 22em; column-gap: 36px; }
.faq-inhalt li { break-inside: avoid; }
.faq-inhalt a { font-weight: 600; }
.textseite h2[id] { padding-top: .8em; border-top: 1px solid var(--linie); }
.textseite h2#kommunikation { border-top: 0; padding-top: 0; }
.tabelle-scroll { overflow-x: auto; margin: 1em 0 2em; border: 1px solid var(--linie); border-radius: var(--rund); }
.zustaendig { width: 100%; border-collapse: collapse; font-size: 17px; }
.zustaendig th, .zustaendig td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.zustaendig tbody tr:last-child td { border-bottom: 0; }
.zustaendig thead th { background: var(--gruen); color: #fff; font-family: var(--titel); }
.zustaendig a { overflow-wrap: anywhere; }

/* Bewegung – dezent, nur mit JS und ohne „weniger Bewegung“ */
@keyframes auftauchen { from { opacity: 0; transform: translateY(1.1rem); } }
@keyframes bild-auf { from { opacity: 0; transform: scale(1.04); } }
@keyframes schweben { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.anim .buehne-text > * { animation: auftauchen .8s cubic-bezier(.2, .7, .2, 1) both; }
.anim .buehne-text > :nth-child(2) { animation-delay: .08s; }
.anim .buehne-text > :nth-child(3) { animation-delay: .16s; }
.anim .buehne-text > :nth-child(4) { animation-delay: .24s; }
.anim .buehne-bild { animation: bild-auf 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }

.anim [data-einblenden] { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.anim [data-einblenden].sichtbar { opacity: 1; transform: none; }
.anim [data-einblenden].sofort { transition: none; }
.anim [data-staffel] { transform: none; }
.anim [data-staffel] > * { opacity: 0; transform: translateY(.9rem); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.anim [data-staffel].sichtbar > * { opacity: 1; transform: none; }
.anim [data-staffel].sofort > * { transition: none; }

.leistung, .projekt { transition: transform .25s ease, box-shadow .25s ease; }
.leistung:hover, .projekt:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(14, 37, 55, .35); }
.anim [data-staffel].sichtbar > .leistung:hover, .anim [data-staffel].sichtbar > .projekt:hover { transform: translateY(-4px); }
.leistung:hover .leistung-icon { animation: schweben 1.6s ease-in-out infinite; }
.projekt-bild img, .foto--rund img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.projekt:hover .projekt-bild img, .foto a:hover img { transform: scale(1.03); }
.projekt-bild, .foto a { overflow: hidden; border-radius: inherit; }
.knopf svg { transition: transform .2s ease; }
.knopf:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
    .anim [data-einblenden], .anim [data-staffel] > *, .anim .buehne-text > *, .anim .buehne-bild { opacity: 1 !important; transform: none !important; animation: none !important; }
}
