/* ============================================================
   BSM – Zaun- & Torsysteme | Finales Layout mit optimiertem Kontaktbereich
   ============================================================ */

:root {
  --green: #0e492f;
  --yellow: #dcce14;
  --light: #fafafa;
  --dark: #222;
}

/* ============================================================
   GRUNDLAYOUT
   ============================================================ */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: #fff;
  text-align: center;
  line-height: 1.6;
}
a {
  color: var(--green);
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease;
}
a:hover {
  color: var(--yellow);
  opacity: .9;
}

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
.hero-slideshow {
  position: relative;
  height: 80vh;
  overflow: hidden;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease, transform 8s ease;
}
.hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,73,47,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 2rem;
}
.hero-text {
  max-width: 700px;
}
.hero-text h1 {
  font-size: clamp(1.8rem,4vw,3rem);
  margin-bottom: 1rem;
}
.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--green);
  padding: .8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 1rem;
  transition: .3s ease;
}
.btn-primary:hover {
  background: var(--green);
  color: #fff;
}

/* ============================================================
   SECTIONS & GRADIENTS
   ============================================================ */
section {
  padding: 5rem 1rem;
}
h2 {
  color: var(--green);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  color: #333;
}
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}
.section-gradient-light {
  background: linear-gradient(180deg,#ffffff 0%,#f3f7f4 100%);
}
.section-gradient-green {
  background: linear-gradient(180deg,#f7f9f8 0%,#e0ece5 100%);
}
.section-gradient-greenish {
  background: linear-gradient(180deg,#e0ece5 0%,#d1e3d8 100%);
}

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 2rem;
  justify-items: center;
}
@media(max-width:850px){
  .grid-2x2{grid-template-columns:1fr;}
}
.card {
  background: var(--light);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  max-width: 480px;
  transition: .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(14,73,47,.35);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.card-content { padding: 1rem; }

/* ============================================================
   REFERENZEN
   ============================================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 2rem;
}
.ref-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  padding: 1rem;
  transition: .3s;
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(14,73,47,.35);
}
.ref-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .8rem;
}

/* ============================================================
   PARTNER
   ============================================================ */
.partner-highlight {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(14,73,47,0.25);
  padding: 1.8rem 1rem;
  margin: 0 auto 4rem;
  max-width: 360px;
}
.partner-highlight .highlight-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  justify-items: center;
}
@media(max-width:900px){.partner-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:600px){.partner-grid{grid-template-columns:1fr;}}
.partner-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  padding: 1rem;
  max-width: 280px;
  transition: .3s;
}
.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(14,73,47,.35);
}
.partner-item img {
  max-width: 120px;
  margin-bottom: 1rem;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;              /* mehr Abstand zwischen Formular und Portraitkarte */
  justify-content: center;
  align-items: flex-start;
  margin-top: 4rem;         /* mehr Abstand nach oben */
}
.kontakt-form {
  flex: 1 1 320px;
  max-width: 480px;
}
.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: .7rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.kontakt-form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: .8rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.kontakt-form button:hover {
  background: #0b3d27;
}
.kontakt-person {
  flex: 1 1 260px;
  max-width: 340px;
  text-align: center;
  background: #fafafa;
  padding: 2rem 1.5rem;      /* mehr Innenraum */
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.portrait {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid var(--green);
  object-fit: cover;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER & CTA-BUTTON
   ============================================================ */
footer {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 1.2rem;
}
footer a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover { opacity: .8; }

#cta-scroll {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--yellow);
  color: var(--green);
  padding: .9rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: all .3s;
}
#cta-scroll:hover {
  background: var(--green);
  color: #fff;
}
