/* LB Alternative Energien – Website, Fassung v2, Stand 30.11.2026
   Nachbau der bisherigen WordPress-Seite (Divi) als statisches HTML.
   Maße und Farben aus der Originalseite ausgelesen. */

@font-face {
  font-family: "Abel";
  src: url("schrift/abel-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #0c0c0c;
  color: #666;
  font: 20px/36px "Abel", Helvetica, Arial, Lucida, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #ea5b0b; text-decoration: none; }

p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

h1, h2, h3 {
  margin: 0;
  padding-bottom: 10px;
  color: #333;
  font-weight: 400;
  line-height: 1em;
}
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 24px; }

img { max-width: 100%; height: auto; border: 0; }

/* ---------- Kopf ---------- */

.kopf {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 63px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  z-index: 99;
  transition: height .4s ease-in-out, box-shadow .4s ease-in-out;
}
.kopf .innen {
  width: 80%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.kopf a { display: block; margin-left: 5px; line-height: 0; }
.kopf img {
  display: block;
  width: auto;
  height: auto;
  max-height: 34px;
  transition: max-height .4s ease-in-out;
}
.kopf.klein { height: 50px; box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
.kopf.klein img { max-height: 27px; }

.seite { padding-top: 63px; }

/* ---------- Inhalt ---------- */

.abschnitt { background: #fff; padding: 4% 0; }

.reihe {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2% 0;
}

.reihe.spalten { display: flex; }
.spalte-3-5 { width: 57.8%; }
.spalte-2-5 { width: 36.7%; }
.spalten > .spalte:first-child { margin-right: 5.5%; }

/* Inhalt der Textspalten senkrecht mittig, wie im Original */
.mittig { display: flex; flex-direction: column; justify-content: center; }

/* leerer Absatz über den Bildwechslern (20 px Abstand im Original) */
.oben-abstand { padding-top: 20px; }

.zentriert { text-align: center; }

.modul { margin-bottom: 2.75%; }
.spalte-2-5 .modul { margin-bottom: 7.5%; }
.modul:last-child { margin-bottom: 0; }

/* ---------- Bildwechsler (Ersatz für „Smart Slider“) ---------- */

.wechsler {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buehne {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  overflow: hidden;
  container-type: inline-size;
}
/* Produkte: 10 px Einzug links, Bild höchstens 530 px breit und mittig,
   Pfeile außen daneben (dürfen wie im Original über die Spalte ragen) */
.produkt-wechsler { display: block; margin-left: 10px; }
.rahmen { position: relative; max-width: 530px; margin: 0 auto; }
.buehne.produkte { aspect-ratio: 530 / 390; }

.bild {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.bild.aktiv { position: relative; visibility: visible; }
.buehne.produkte .bild.aktiv { position: absolute; }
.bild img { display: block; width: 100%; height: auto; }
.bild.laeuft { visibility: visible; transition: transform .8s cubic-bezier(.25, .46, .45, .94); }

.beschriftung {
  position: absolute;
  padding: 5px;
  background: rgba(255, 255, 255, .8);
  color: #333;
  line-height: 1.5;
  white-space: nowrap;
}
.foto .beschriftung { bottom: 7.2%; font-size: 3.85cqw; }
.foto .links { left: 2.56%; }
.foto .rechts { right: 2.56%; }
.produkte .beschriftung { left: 50%; bottom: 8.97%; font-size: 5.66cqw; }

.pfeil {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.pfeil.zurueck { right: calc(100% + 15px); }
.pfeil.weiter { left: calc(100% + 15px); }
.pfeil svg { width: 32px; height: 32px; }

/* ---------- Fuß ---------- */

.fuss { background: #222; }
.fuss .innen {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}
.fuss-spalten {
  display: flex;
  flex-wrap: wrap;
  padding: 6% 0 0;
  font-size: 16px;
  line-height: 22.4px;
}
.fuss-spalte {
  width: 20.875%;
  margin: 0 5.5% 5.5% 0;
}
.fuss-spalte:last-child { margin-right: 0; }
.fuss-spalte p { padding: 0; }
.fuss-spalte ul { margin: 0; padding: 0; list-style: none; }
.fuss-spalte li { position: relative; padding-left: 14px; margin-bottom: 8px; }
.fuss-spalte li::before {
  content: "";
  position: absolute;
  top: 8.2px;
  left: 0;
  border: 3px solid #ea5b0b;
  border-radius: 3px;
}
.fuss-spalte a { color: #666; }
.fuss-spalte a:hover { color: #ea5b0b; }
.fuss-unten { background: #0c0c0c; height: 20px; }

/* ---------- Nach oben ---------- */

.nach-oben {
  position: fixed;
  right: 0;
  bottom: 125px;
  z-index: 999;
  display: none;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 5px 0 0 5px;
  background: rgba(0, 0, 0, .4);
  line-height: 0;
}
.nach-oben.sichtbar { display: block; animation: rein 1s cubic-bezier(.77, 0, .175, 1); }
.nach-oben svg { width: 30px; height: 30px; }
@keyframes rein {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: none; }
}

/* ---------- Bildschirmbreiten wie im Original ---------- */

@media (min-width: 1350px) {
  .abschnitt { padding: 54px 0; }
  .reihe { padding: 27px 0; }
}

@media (max-width: 980px) {
  .kopf { position: absolute; height: 80px; }
  .kopf a { flex: 0 1 auto; max-width: 50%; }
  .kopf img { max-height: 43px; max-width: 100%; }
  .seite { padding-top: 79px; }

  .abschnitt { padding: 50px 0; }
  .reihe { padding: 30px 0; }
  .reihe.spalten { display: block; }
  .spalte-3-5, .spalte-2-5 { width: 100%; }
  .spalten > .spalte:first-child { margin: 0 0 30px; }
  .modul, .spalte-2-5 .modul { margin-bottom: 30px; }
  .modul:last-child, .spalte-2-5 .modul:last-child { margin-bottom: 0; }

  /* zwei Spalten; die leere dritte Spalte nimmt im Original keinen Platz
     ein, deshalb steht „Impressum/Kontakt“ dort links in der zweiten Zeile */
  .fuss-spalten { padding: 8% 0; }
  .fuss-spalte { width: 46.25%; margin: 0 7.5% 7.5% 0; }
  .fuss-spalte:nth-child(2) { margin-right: 0; }
  .fuss-spalte:nth-child(3) { display: none; }
  .fuss-spalte:nth-child(4) { margin: 0; }
}

@media (max-width: 767px) {
  .fuss-spalten { padding: 10% 0; }
  .fuss-spalte,
  .fuss-spalte:nth-child(2),
  .fuss-spalte:nth-child(3) { display: block; width: 100%; margin: 0 0 9.5%; }
  .fuss-spalte:nth-child(4) { margin: 0; }
}

@media (max-width: 700px) {
  .pfeil { display: none; }
}

@media (max-width: 479px) {
  .fuss-spalten { padding: 12% 0; }
  .fuss-spalte,
  .fuss-spalte:nth-child(2),
  .fuss-spalte:nth-child(3),
  .fuss-spalte:nth-child(4) { margin: 0 0 11.5%; }
}

@media (prefers-reduced-motion: reduce) {
  .kopf, .kopf img, .bild.laeuft { transition: none; }
  .nach-oben.sichtbar { animation: none; }
}
