/* ==========================================================================
   xp-lasi.de – Nachbau-Stylesheet
   Design-Tokens aus Original-Screenshots gesampelt + Logo-SVG bestätigt.
   Selbst gehostete Schriften (kein Google/Adobe-CDN) -> DSGVO-sauber.
   ========================================================================== */

/* ----- Selbst gehostete Schrift (Platzhalter: Open Sans, spaeter ersetzbar) ----- */
@font-face {
  font-family: "XPSans";
  src: url("../fonts/opensans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "XPSans";
  src: url("../fonts/opensans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "XPSans";
  src: url("../fonts/opensans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----- Design-Tokens ----- */
:root {
  --gelb:        #FEEC34;
  --gruen:       #49AB4E;
  --gruen-dark:  #3d9142;
  --hellgruen:   #E9F2E2;
  --weiss:       #FFFFFF;
  --text:        #444444;
  --text-hell:   #6b6b6b;
  --schatten:    0 8px 24px rgba(0,0,0,.14);
  --maxbreite:   1180px;
}

/* ----- Reset / Grundlagen ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "XPSans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  background: var(--weiss);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxbreite);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   HEADER (sticky, gelber Balken + gedrehte Logo-Karte)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gelb);
  min-height: 90px;
}
.header-inner {
  max-width: var(--maxbreite);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  min-height: 90px;
  position: relative;
}

/* Logo als weisse, leicht gedrehte Karte, die unten herausragt */
.logo-card {
  position: absolute;
  left: 24px;
  top: 14px;
  background: var(--weiss);
  padding: 18px 30px;
  transform: rotate(-3deg);
  box-shadow: var(--schatten);
  z-index: 5;
}
.logo-card img { width: 300px; max-width: 42vw; }

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--gruen); text-decoration: none; }
.main-nav a.active {
  color: var(--gruen);
  border-bottom-color: var(--gruen);
}

/* Sprachumschalter */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  position: absolute;
  right: 24px;
  top: 8px;
}
.lang-switch img { width: 26px; border: 1px solid rgba(0,0,0,.15); }

/* Mobile-Navigation Toggle (versteckt auf Desktop) */
.nav-toggle { display: none; }

/* ==========================================================================
   HERO (Startseite): Truck-Foto + gruenes Overlay
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(73,171,78,.86), rgba(73,171,78,.86)),
    var(--hero-bg, #49AB4E) center/cover no-repeat;
  color: var(--weiss);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxbreite);
  margin-inline: auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 26px;
}
.hero .hero-sub {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 34px;
  max-width: 30em;
}
.hero-phone { justify-self: center; }
.hero-phone img { width: 420px; max-width: 100%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); }

/* Weisser Button (Hero) */
.btn-weiss {
  display: inline-block;
  background: var(--weiss);
  color: var(--gruen);
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 2px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-weiss:hover { text-decoration: none; box-shadow: var(--schatten); transform: translateY(-1px); }

/* Gruener Button (CTA) */
.btn-gruen {
  display: inline-block;
  background: var(--gruen);
  color: var(--weiss);
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 2px;
  transition: background .15s ease, transform .15s ease;
}
.btn-gruen:hover { background: var(--gruen-dark); text-decoration: none; transform: translateY(-1px); }

/* ==========================================================================
   SEKTIONEN
   ========================================================================== */
.section { padding: 70px 0; }
.section.hellgruen { background: var(--hellgruen); }

/* Zentrierte Ueberschrift mit Trennlinie + Icon-Kreis */
.section-head { text-align: center; margin-bottom: 40px; }
.icon-circle {
  width: 74px; height: 74px;
  border: 2px solid var(--gruen);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gruen);
}
.icon-circle svg { width: 34px; height: 34px; }
h2.gruen, h3.gruen {
  color: var(--gruen);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.2;
}
.trennlinie {
  width: 90px; height: 3px;
  background: var(--gruen);
  border: 0;
  margin: 0 auto 8px;
}
.subhead-fett {
  text-align: center;
  font-weight: 700;
  color: var(--text);
  font-size: 20px;
  margin: 22px 0;
}

/* Drei-Spalten mit Check-Icons */
.drei-spalten {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.spalte { text-align: center; }
.spalte .check {
  width: 62px; height: 62px;
  border: 2px solid var(--gruen);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gruen);
  margin-bottom: 18px;
}
.spalte .check svg { width: 28px; height: 28px; }
.spalte p { color: var(--text-hell); margin: 0; }

/* Fliesstext-Bloecke */
.textblock { max-width: 900px; margin-inline: auto; }
.textblock p { margin: 0 0 18px; }
.textblock p.gruen-text { color: var(--gruen); }
.textblock h4 { color: var(--text); font-size: 20px; margin: 30px 0 10px; }

/* Aufzaehlungen mit Slash-Bullet (Logo-Element) */
.slash-liste { list-style: none; padding: 0; margin: 0; max-width: 900px; margin-inline: auto; }
.slash-liste li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 18px;
}
.slash-liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background:
    linear-gradient(115deg, transparent 40%, var(--gruen) 40% 58%, var(--gelb) 58% 76%, transparent 76%);
}

/* Definitionslisten-Bloecke (Elemente der Doku) */
.gruppen { max-width: 900px; margin-inline: auto; }
.gruppe { margin-bottom: 24px; }
.gruppe strong { display:block; color: var(--gruen); margin-bottom: 6px; }

/* CTA-Bereich */
.cta-center { text-align: center; padding-top: 20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--gruen);
  color: var(--weiss);
  padding: 40px 0 26px;
  border-bottom: 8px solid var(--gelb);
}
.footer-inner {
  max-width: var(--maxbreite);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-social { display: flex; gap: 14px; order: 2; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 34px; height: 34px; fill: var(--gelb); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.9); order: 1; }
.footer-links { font-size: 13px; order: 3; }
.footer-links a { color: var(--weiss); }
.footer-links a:hover { color: var(--gelb); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-phone { order: -1; }
  .drei-spalten { grid-template-columns: 1fr; gap: 30px; }

  .nav-toggle {
    display: inline-flex;
    background: none; border: 0; cursor: pointer;
    padding: 10px; margin-left: auto;
  }
  .nav-toggle span {
    display: block; width: 26px; height: 3px; background: var(--text);
    margin: 5px 0; border-radius: 2px;
  }
  .main-nav {
    position: absolute; top: 90px; left: 0; right: 0;
    background: var(--gelb);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid rgba(0,0,0,.08); }
  .main-nav a { display: block; padding: 14px 24px; border-bottom: 0; }
  .logo-card { top: 10px; }
  .logo-card img { width: 200px; }
  .lang-switch { top: 4px; right: 70px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
