/* LenkFrei Energie — Anfrageseite. Farben aus dem Logo: Blau #25a4da, Grün #2ea65c. */
:root { --blau: #25a4da; --blau-dunkel: #1683b3; --gruen: #2ea65c; --text: #16202a; --leise: #5b6673; --linie: #d9dee4; --grund: #f4f7f9; --rot: #b3261e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
.kopf { background: #fff; border-bottom: 1px solid var(--linie); padding: 12px 16px; text-align: center; }
.logo { height: 54px; width: auto; }
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 27px; line-height: 1.2; margin: 6px 0 10px; }
/* Titelbild: auf dem Handy randlos und hochkant, am Rechner als abgerundete Karte im Querformat */
.held { position: relative; margin: -20px -16px 0; overflow: hidden; background: #1c4e73; aspect-ratio: 4 / 5; max-height: 600px; }
.held img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.held::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,28,46,.72) 0%, rgba(6,28,46,.5) 30%, rgba(6,28,46,.12) 52%, rgba(6,28,46,0) 64%, rgba(6,28,46,.2) 100%); }
.held-text { position: absolute; z-index: 1; left: 0; right: 0; top: 0; padding: 26px 22px; color: #fff; }
.held-text .marke { display: inline-block; padding: 5px 11px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.held-text h1 { margin: 14px 0 10px; font-size: 30px; line-height: 1.12; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.held-text p { margin: 0; max-width: 26em; font-size: 16px; line-height: 1.45; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.vorteile { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -22px 0 18px; padding: 0; list-style: none; }
.vorteile li { padding: 8px 13px 8px 30px; border-radius: 99px; background: #fff; box-shadow: 0 4px 16px rgba(16,40,60,.12); font-size: 14px; font-weight: 700; position: relative; }
.vorteile li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen); transform: rotate(-45deg); }
.kooperation { margin: -4px 0 18px; text-align: center; font-size: 14px; color: var(--leise); }
.kooperation a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(91,102,115,.35); }
.kooperation b { color: var(--text); font-weight: 700; }
.koop-fuss { margin: 0 0 8px; color: var(--leise); }
.koop-fuss a { margin: 0; color: var(--text); font-weight: 600; }
.projekte { margin-top: 30px; }
.projekte h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); text-align: center; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.galerie figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: #dfe6ec; box-shadow: 0 2px 10px rgba(16,40,60,.10); }
.galerie img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
@media (min-width: 640px) {
  .held { margin: 0; border-radius: 22px; aspect-ratio: 16 / 10; box-shadow: 0 12px 34px rgba(16,40,60,.18); }
  .held img { object-position: 50% 42%; }
  .held-text { padding: 34px 36px; }
  .held-text h1 { font-size: 40px; }
  .held-text p { font-size: 17px; }
}
.einleitung { color: var(--leise); margin: 0 0 18px; }

button.haupt, button.neben { min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 700; cursor: pointer; border: 0; }
button.haupt { background: var(--blau); color: #fff; }
button.haupt:active { background: var(--blau-dunkel); }
button.haupt:disabled { opacity: .6; }
button.neben { background: #fff; border: 1.5px solid var(--linie); }
button.gross { width: 100%; min-height: 58px; font-size: 19px; }

.fortschritt { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 14px; color: var(--leise); }
.balken { flex: 1; height: 8px; border-radius: 99px; background: #e2e7ec; overflow: hidden; }
.balken i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gruen), var(--blau)); border-radius: 99px; transition: width .25s; }

fieldset.schritt { border: 0; margin: 0; padding: 18px 16px; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font-size: 21px; font-weight: 800; line-height: 1.25; }
label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 12px; clear: both; }
label small, .freiwillig { font-weight: 400; color: var(--leise); }
input:not([type=checkbox]):not([type=file]), textarea { display: block; width: 100%; margin-top: 5px; padding: 12px 13px; border: 1.5px solid var(--linie); border-radius: 10px; background: #fff; font-weight: 400; font-size: 17px; }
input:focus, textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(37,164,218,.18); }
textarea { resize: vertical; }
/* clear: Ein Raster weicht der links geschobenen Überschrift (legend) sonst seitlich aus, statt darunter zu beginnen */
.zwei { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.plz { clear: both; display: grid; grid-template-columns: 7em 1fr; gap: 0 10px; }
.adressfeld { position: relative; }
.vorschlaege { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1.5px solid var(--linie); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.vorschlaege li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 1.3; }
.vorschlaege li small { display: block; font-weight: 400; font-size: 14px; color: var(--leise); }
.vorschlaege li.an, .vorschlaege li:hover { background: #e9f6fc; }
.vorschlaege .google { padding: 4px 12px 2px; font-size: 11px; color: var(--leise); text-align: right; cursor: default; background: none; font-weight: 400; }
.zeilentitel { display: block; font-size: 15px; margin: 4px 0 8px; }

.kacheln { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 16px; }
.kacheln.mehrfach button.aktiv::after { content: "✓"; position: absolute; top: 6px; right: 9px; font-weight: 800; color: var(--blau-dunkel); }
.kacheln.mehrfach button { position: relative; padding-left: 20px; padding-right: 20px; }
.kacheln.vier { grid-template-columns: repeat(2, 1fr); }
.kacheln.drei { grid-template-columns: repeat(3, 1fr); }
.anzahlwahl { clear: both; display: grid; grid-template-columns: repeat(4, 1fr) 1.7fr; gap: 8px; margin: 0 0 16px; }
.anzahlwahl input#anzahlFrei { margin: 0; height: 54px; text-align: center; -moz-appearance: textfield; }
.anzahlwahl input#anzahlFrei::-webkit-inner-spin-button, .anzahlwahl input#anzahlFrei::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.anzahlwahl input#anzahlFrei.aktiv { border-color: var(--blau); background: #e9f6fc; box-shadow: inset 0 0 0 1.5px var(--blau); }
.anzahlwahl button { font-size: 19px !important; font-weight: 800 !important; }
@media (max-width: 420px) { .anzahlwahl { grid-template-columns: repeat(4, 1fr); } .anzahlwahl input#anzahlFrei { grid-column: 1 / -1; } }
.kacheln button, .anzahlwahl button { min-height: 54px; padding: 8px 10px; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.25; }
.kacheln button small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--leise); }
.kacheln button.aktiv small { color: #0d5f84; }
.kacheln button.aktiv, .anzahlwahl button.aktiv { border-color: var(--blau); background: #e9f6fc; color: #0d5f84; box-shadow: inset 0 0 0 1.5px var(--blau); }

.fotoblock { clear: both; margin: 0 0 14px; padding: 12px; border: 1.5px dashed #bcd9e8; border-radius: 12px; background: #f8fcfe; }
.fotoblock b { font-size: 15px; }
.pflicht { font-weight: 600; color: var(--blau-dunkel); font-size: 13px; margin-left: 4px; }
.tipp { clear: both; margin: 4px 0 10px; font-size: 14px; color: var(--leise); }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.fotos:empty { display: none; }
.fotos figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e8edf1; }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos .weg { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 17px; cursor: pointer; }
.fotos .laedt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--leise); }
.fotoknopf { display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; border-radius: 12px; background: var(--blau); color: #fff; font-weight: 700; cursor: pointer; }
.fotoknopf.voll { background: #c5ccd3; cursor: default; }

.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-top: 6px; }
.haken input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blau); }
.haken a { color: var(--blau-dunkel); }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.fehler { margin: 12px 0 0; padding: 11px 14px; border-radius: 10px; background: #fdecea; color: var(--rot); font-weight: 600; font-size: 15px; }
.fuss { display: flex; gap: 10px; margin-top: 14px; }
.fuss .haupt { flex: 1; }

.danke { text-align: center; padding: 30px 6px; }
.hakenkreis { width: 82px; height: 82px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(135deg, var(--gruen), var(--blau)); color: #fff; font-size: 46px; font-weight: 800; display: grid; place-items: center; }
.danke p { color: var(--leise); }

.unten { text-align: center; padding: 10px 16px 28px; font-size: 13px; }
.unten a { color: var(--leise); margin: 0 10px; }
@media (max-width: 420px) { .zwei { grid-template-columns: 1fr; } .kacheln.mehrfach, .kacheln.vier { grid-template-columns: 1fr; } .kacheln.drei { grid-template-columns: 1fr; } h1 { font-size: 24px; } }
