/* PV-Energie-Invest – gemeinsames Stylesheet für alle Seiten */

:root {
  --green: #8FA79C;
  --green-dark: #2E3B36;
  --green-dark-text: #3E4C46;
  --yellow: #F4B400;
  --yellow-text: #4a3800;
  --bg-light: #F5F6F3;
  --text-main: #1c1c1c;
  --text-muted: #4a4a4a;
  --text-soft: #6b6b6b;
  --border: #ececec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.5;
}

a { color: inherit; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  background: var(--green);
  padding: 20px 0;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-block;
  margin-right: 12px;
  flex-shrink: 0;
}
.logo-text {
  color: var(--green-dark);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: bold;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--green-dark-text);
  flex-wrap: wrap;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb {
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: #9a9a9a;
}
.breadcrumb a { color: #9a9a9a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb b { color: var(--text-soft); }

/* Page / hero header (dunkler Bereich mit Überschrift) */
.page-hero {
  background: var(--green-dark);
  padding: 40px 0;
}
.hero-flex {
  display: flex;
  gap: 16px;
}
.hero-flex .bar {
  width: 4px;
  background: var(--yellow);
  flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: bold;
  margin: 0 0 12px;
  color: #ffffff;
}
.page-hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: #d3dcd7;
  max-width: 600px;
  margin: 0;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}

/* Homepage hero: gleiches Muster wie page-hero, Balken links neben dem Text */
.home-hero {
  background: var(--green-dark);
  padding: 48px 0;
}
.home-hero h1 {
  font-size: clamp(24px, 4vw, 28px);
  font-weight: bold;
  margin: 0 0 14px;
  color: #ffffff;
}
.home-hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: #d3dcd7;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

/* Content mit Text + Bild nebeneinander */
.content {
  background: #ffffff;
  padding: 40px 0;
}
.content-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.text-col {
  flex: 1 1 500px;
  min-width: 280px;
}
.content-image {
  flex: 1 1 400px;
  min-width: 280px;
  border-radius: 12px;
  overflow: hidden;
  align-self: flex-start;
}
.content-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 780px) {
  .content-flex { flex-direction: column; }
  .content-image { width: 100%; order: 1; flex-basis: auto; }
  .text-col { order: 2; }
}

.intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 22px;
  text-align: justify;
  hyphens: auto;
}
.section-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-block h2 {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 8px;
  color: var(--green-dark);
}
.section-block h2 .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 1px;
}
.section-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  text-align: justify;
  hyphens: auto;
}

/* Kacheln (Startseite) */
.tiles-section { background: var(--bg-light); padding: 40px 0; }
.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.tile {
  flex: 1 1 220px;
  background: #ffffff;
  border: 1px solid #dde3df;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.tile-img {
  height: 140px;
  overflow: hidden;
}
.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tile-body { padding: 16px; }
.tile-body p.t { font-size: 16px; font-weight: bold; margin: 0 0 5px; color: var(--green-dark); }
.tile-body p.s { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.5; }

/* Referenzobjekt */
.ref-section {
  background: #ffffff;
  padding: 40px 0;
}
.ref-flex { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.ref-img {
  flex: 0 0 320px;
  width: 320px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.ref-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
@media (max-width: 700px) {
  .ref-img { width: 100%; height: 320px; }
}
.ref-dot {
  position: absolute; top: 14px; left: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow);
}
.ref-text-col { flex: 2 1 400px; min-width: 280px; }
.ref-label { font-size: 12px; color: #8a6f1a; font-weight: bold; letter-spacing: 0.03em; margin: 0 0 6px; }
.ref-title { font-size: 20px; font-weight: bold; margin: 0 0 10px; color: var(--green-dark); }
.ref-text { font-size: 16px; color: var(--text-soft); line-height: 1.6; margin: 0 0 12px; text-align: justify; hyphens: auto; }
.ref-meta { font-size: 13px; color: var(--text-soft); display: flex; gap: 18px; flex-wrap: wrap; }

/* CTA-Bereich */
.cta-band { background: var(--bg-light); padding: 30px 0; text-align: center; }
.cta-band p { color: var(--green-dark); font-size: 17px; margin: 0 0 16px; }
.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--yellow-text);
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  padding: 14px 26px;
  border-radius: 6px;
  border: none;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

/* Kontaktbereich */
.contact-section { background: #ffffff; padding: 44px 0; }
.contact-grid { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-info { flex: 1 1 260px; min-width: 240px; }
.contact-block { margin-bottom: 18px; }
.contact-block .label { font-size: 12px; color: #8a6f1a; font-weight: bold; letter-spacing: 0.03em; margin: 0 0 4px; }
.contact-block .value { font-size: 15px; color: var(--text-main); margin: 0; line-height: 1.6; }
.form-col { flex: 2 1 320px; min-width: 260px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 4px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  border: 1px solid #d8d6cc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.hp-field {
  display: none;
}
input[type="hidden"] {
  display: none;
}
.form-consent label {
  font-size: 13px; color: var(--text-soft);
  display: flex; gap: 8px; align-items: flex-start;
}
.form-consent input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}
.form-consent span { flex: 1; }

/* Footer */
.footer { background: var(--green); padding: 26px 0; }
.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--green-dark);
}
.footer-links a { color: var(--green-dark); text-decoration: none; margin-left: 16px; }
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover { text-decoration: underline; }

/* Über-uns Bio */
.bio-flex { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.bio-text { flex: 1 1 460px; min-width: 280px; }
.bio-image {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
}
.bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Impressum / Datenschutz: einfache Textseiten */
.legal-page { background: #ffffff; padding: 48px 0; }
.legal-page h1 { font-size: 26px; color: var(--green-dark); margin: 0 0 24px; }
.legal-page h2 { font-size: 18px; color: var(--green-dark); margin: 28px 0 8px; }
.legal-page p, .legal-page address { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin: 0 0 8px; font-style: normal; }
.legal-page a { color: var(--green-dark-text); }
