/* TAQA Solar – Demo-Version (nicht live) */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #163d6e;
  --navy-dark: #0f2a4d;
  --blue: #1452a0;
  --green: #4f9a3a;
  --green-dark: #3d7d2c;
  --sun: #f6c431;
  --whatsapp: #25d366;
  --ink: #1c2633;
  --muted: #566273;
  --line: #dde3ea;
  --soft: #f3f6f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 77, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.eyebrow {
  display: inline-block;
  font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 10px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: #2b2b2b; color: #fff; font-size: .85rem;
  padding: 8px 20px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.demo-bar strong { color: var(--sun); }
.demo-bar button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--sun); color: #222; border: 0; border-radius: 999px; padding: 4px 12px;
}
.demo-bar a { color: #fff; }

/* Prüfpunkte: Inhalte, die Ahmad bestätigen muss */
.show-checks .check {
  outline: 2px dashed #e0a800; outline-offset: 3px; background: rgba(246, 196, 49, .18); border-radius: 4px;
  position: relative;
}
.show-checks .check[data-note]:hover::after {
  content: attr(data-note);
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 50;
  background: #2b2b2b; color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.4;
  padding: 6px 10px; border-radius: 6px; width: max-content; max-width: 260px; text-transform: none; letter-spacing: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--green-dark); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px; padding: 14px 22px; min-height: 52px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-whatsapp { background: var(--whatsapp); color: #0b3d1e; }
.btn-small { padding: 9px 16px; min-height: 44px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 20px;
}
.hero-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hero p.lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item b { font-size: 1.6rem; color: var(--navy); font-weight: 800; line-height: 1.1; }
.trust-item span { font-size: .92rem; color: var(--muted); }
.stars { color: #f2a900; letter-spacing: 1px; }
.hero-photo { position: relative; }
.hero-photo img { height: auto; object-position: 78% center; border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.hero-photo .badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 290px;
}
.badge .icon { width: 44px; height: 44px; border-radius: 12px; background: #eaf5e6; display: grid; place-items: center; flex: none; }
.badge .icon svg { width: 24px; height: 24px; color: var(--green-dark); }
.badge b { display: block; color: var(--navy); font-size: 1rem; }
.badge span { font-size: .85rem; color: var(--muted); }

/* ---------- Regionen ---------- */
.regions { background: var(--navy); color: #fff; padding: 22px 0; }
.regions-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: center; font-weight: 600; }
.regions-inner .label { color: var(--sun); }
.regions-inner span.city::before { content: "•"; margin-right: 10px; color: rgba(255,255,255,.4); }

/* ---------- Zielgruppen ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.03); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 26px 28px 30px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); position: relative; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.step .time { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--green-dark); background: #eaf5e6; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.step p { font-size: .98rem; color: var(--muted); margin: 0; }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; margin-top: 40px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(10, 25, 45, .8)); color: #fff; font-size: .9rem; font-weight: 600;
}
.note { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* ---------- Bewertungen ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.g-score { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.g-score b { font-size: 2rem; color: var(--navy); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review p { flex: 1; font-size: 1rem; }
.review .who { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review .who b { color: var(--ink); display: block; }

/* ---------- Partner ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; margin-top: 30px; }
.partners img { height: 56px; width: auto; object-fit: contain; filter: grayscale(.2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--green-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.contact-list .ico { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.contact-list .ico svg { width: 22px; height: 22px; color: var(--navy); }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list small { display: block; color: var(--muted); font-size: .88rem; }
form.quote { background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #c9d2dc; border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(79, 154, 58, .25); border-color: var(--green); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; color: var(--ink); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 16px; border: 1.5px solid #c9d2dc; border-radius: 999px; cursor: pointer; font-size: .95rem; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid rgba(79, 154, 58, .4); }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-success { display: none; background: #eaf5e6; border: 1px solid #b9dcae; color: var(--green-dark); border-radius: 12px; padding: 18px; font-weight: 600; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band .inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 40px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Schwebende Kontakt-Buttons ---------- */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.float-wa svg { width: 34px; height: 34px; color: #fff; }
.mobile-bar { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(1.8rem, 7vw, 2.2rem); hyphens: auto; }
.legal a { overflow-wrap: anywhere; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
.legal p, .legal li { color: #333d4a; }
.draft-note { background: #fff7db; border: 1px solid #f0d980; border-radius: 12px; padding: 16px 20px; font-size: .95rem; margin-bottom: 32px; }

/* ---------- Änderungsliste ---------- */
.changes { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .97rem; }
.changes th, .changes td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.changes th { background: var(--soft); color: var(--navy); font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.changes td.old { color: #a33a2a; }
.changes td.new { color: var(--green-dark); font-weight: 600; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.legal-risk { background: #fde4e0; color: #a33a2a; }
.pill.trust { background: #e3edf9; color: var(--blue); }
.pill.leads { background: #eaf5e6; color: var(--green-dark); }
.pill.todo { background: #fff3c4; color: #7a5c00; }

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo .badge { left: 12px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; padding-bottom: 72px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 66px; }
  .logo img { height: 40px; }
  .header-cta .btn-outline { display: none; }
  .hero { padding-top: 36px; }
  .hero-actions .btn { width: 100%; }
  .two-col, .steps, .reviews, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; }
  .gallery figure.wide { grid-column: span 2; }
  form.quote { padding: 22px 18px; }
  .float-wa { display: none; }
  .changes thead { display: none; }
  .changes, .changes tbody, .changes tr, .changes td { display: block; width: 100%; }
  .changes tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .changes td { border: 0; padding: 4px 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .mobile-bar .btn { min-height: 50px; padding: 10px; }
}
