/* ================= BASIS ================= */

@font-face{
  font-family:"Montserrat";
  src:url("/fonts/montserrat-400.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Montserrat";
  src:url("/fonts/montserrat-500.woff2") format("woff2");
  font-weight:500;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Montserrat";
  src:url("/fonts/montserrat-600.woff2") format("woff2");
  font-weight:600;
  font-style:normal;
  font-display:swap;
}

@font-face{
  font-family:"Montserrat";
  src:url("/fonts/montserrat-700.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

body{
  font-family:"Montserrat", Arial, sans-serif;
}

:root{
  --accent:#3d8175;
  --accent-dark:#2f665d;
  --bg:#f5f7f6;
  --text:#222;
  --headline:#1d2a2a;
  --border:#dfe7e5;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Montserrat", sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.7;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.site-shell{
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

/* ================= SECTION SPACING ================= */

.section{
  padding: 50px 0;
}

/* mehr Luft vor Überschriften */

.section-heading{
  margin-bottom: 50px;
}

/* H2 hochwertiger */

.section-heading h2{
  font-size: 30px;
  line-height: 1.1;
  color: #3d8175;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* introbereich noch ruhiger */

.content-narrow p + p{
  margin-top: 26px;
}

/* ================= LOGO NAV ================= */

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,0.05);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:18px 0;
}

.logo img{
  width:220px;
  height:auto;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:28px;
}

.main-nav a{
  text-decoration:none;
  color:var(--text);
  font-size:16px;
  transition:0.2s ease;
}

.main-nav a:hover{
  color:var(--accent);
}

.nav-button{
  background:var(--accent);
  color:#fff !important;
  padding:12px 18px;
  border-radius:4px;
}

.nav-button:hover{
  background:var(--accent-dark);
}

/* ================= HERO ================= */

.hero{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  margin-top: 24px;
  background: #f3f3f3;
}

.hero-image{
  position: relative;
}

.hero-image picture,
.hero-image img{
  display:block;
  width:100%;
}

.hero-image img{
  width:100%;
  height:auto;
  display:block;
}

/* nur leichter Verlauf im unteren Viertel */

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to top,
    rgba(246,246,246,0.82) 0%,
    rgba(246,246,246,0.70) 12%,
    rgba(246,246,246,0.42) 22%,
    rgba(246,246,246,0.16) 28%,
    rgba(246,246,246,0) 32%
  );
  pointer-events:none;
}

/* content unten links */

.hero-content{
  position: absolute;
  left: 70px;
  bottom: 10px;
  z-index: 2;
  max-width: 760px;
}

/* subtitle deutlich kleiner + weiter unten */

.hero-subtitle{
  font-size: 20px;
  color: #3d8175;
  margin-bottom: 14px;
  font-weight: 600;
}

/* headline */

.hero h1{
  font-size: 30px;
  line-height: 0.95;
  font-weight: 700;
  color: #3d8175;
  margin-bottom: 26px;
}

/* text */

.hero-text{
  font-size: 20px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 34px;
  max-width: 620px;
}

/* button */

.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3d8175;
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.btn-primary:hover{
  background: #326b61;
}

/* ================= INTRO ================= */

.intro{
  padding:110px 0;
  background:var(--bg);
}

.intro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

.intro h2{
  font-size:42px;
  line-height:1.15;
  margin-bottom:26px;
  color:var(--headline);
}

.intro p{
  margin-bottom:18px;
  font-size:18px;
}

.intro-image{
  border-radius:12px;
  overflow:hidden;
}

.intro-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ================= LEISTUNGEN ================= */

.services{
  padding:110px 0;
}

.section-head{
  text-align:center;
  margin-bottom:64px;
}

.section-head h2{
  font-size:44px;
  margin-bottom:18px;
  color:var(--headline);
}

.section-head p{
  max-width:720px;
  margin:0 auto;
  font-size:18px;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}

.service-card{
  border:1px solid var(--border);
  padding:42px;
  border-radius:12px;
  background:#fff;
}

.service-card h3{
  margin-bottom:18px;
  font-size:26px;
  color:var(--headline);
}

/* ================= TEAM KARTEN ================= */

.team-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
}

.team-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(61,129,117,0.12);
  transition:0.25s ease;
}

.team-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(0,0,0,0.06);
}

.team-card img{
  width:100%;
  aspect-ratio: 4 / 6;
  object-fit:cover;
}

.team-card-content{
  padding:28px 30px 32px;
}

.team-card h3{
  font-size:25px;
  line-height:1.1;
  margin-bottom:14px;
  color:var(--headline);
  font-weight:600;
  letter-spacing:-0.02em;
}

.team-card p{
  font-size:17px;
  line-height:1.6;
  color:#4d4d4d;
}

/* ================= KONTAKT ================= */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-text h2{
  margin-bottom: 24px;
  color: var(--accent);
}

.contact-text p{
  font-size: 19px;
  line-height: 1.7;
}

.contact-details{
  font-size: 17px;
  line-height: 1.8;
}

.contact-details p + p{
  margin-top: 26px;
}

.contact-details a{
  color: var(--accent);
  text-decoration: none;
}

.contact-details a:hover{
  text-decoration: underline;
}

/* ================= FOOTER ================= */

footer{
  padding:34px 0;
  border-top:1px solid var(--border);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.footer-links{
  display:flex;
  gap:22px;
}

.footer-links a{
  text-decoration:none;
  color:var(--text);
}

.legal-page h1{
  color:var(--accent);
  margin-bottom:32px;
}

.legal-page h2{
  color:var(--headline);
  font-size:22px;
  margin:36px 0 12px;
}

.legal-page p{
  margin-bottom:22px;
}

.legal-page a{
  color:var(--accent);
  text-decoration:none;
}

.legal-page a:hover{
  text-decoration:underline;
}

.legal-list{
  margin: 18px 0 26px 20px;
}

.legal-list li{
  margin-bottom: 10px;
}

/* ================= MOBILE ================= */

@media (max-width: 960px){

  .services-grid,
  .team-grid{
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px){

  .hero{
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f5f4;
  }

  .hero-image{
    aspect-ratio: 4 / 3;
  }

  .hero-image img{
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .hero-overlay{
    display: none;
  }

  .hero-content{
    position: static;
    width: 100%;
    max-width: none;
    padding: 24px 22px 30px;
    box-sizing: border-box;
  }

  .hero h1{
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
    margin-bottom: 16px;
  }

  .hero-subtitle{
    font-size: 16px;
    line-height: 1.45;
  }

  .service-card{
    padding: 30px 22px;
  }

  .service-card h3,
  .legal-page h1,
  .legal-page h2{
    font-size: clamp(18px, 4.3vw, 22px);
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
  
  .legal-page h2{
    font-color: 000;
  }
}
  
@media (max-width: 420px){

  .site-shell,
  .container{
    width: calc(100% - 28px);
  }

  .contact{
    overflow-x: hidden;
  }

  .contact-grid,
  .contact-text,
  .contact-details,
  .footer-inner,
  .footer-links{
    min-width: 0;
  }

  .contact-details,
  .contact-details a,
  .site-footer,
  .footer-links a{
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .footer-inner{
    align-items: flex-start;
  }

  .footer-links{
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  
  .section{
    padding-left: 0;
    padding-right: 0;
  }
}