/* ===================== DESIGN SYSTEM ===================== */
:root{
  --brand: #0f6b31;
  --brand-2: #0b5326;
  --bg: #f6f6f6;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}

/* ===================== RESET ===================== */
*{ box-sizing: border-box; margin:0; padding:0; }
html, body{ height: 100%; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  /*background: var(--bg);*/
  background: #f3f4f6;
  line-height: 1.6;
}

/* Sticky footer */
body{ display:flex; flex-direction:column; }
main{ flex:1; }

/* ===================== LINKS (NO "HTTP LOOK") ===================== */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(15,107,49,0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===================== LAYOUT UTILS ===================== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

@media (min-width: 1200px){
  .container{ padding: 0 28px; }
}

.section{ padding: 64px 0; }

.section-title{
  color: var(--brand);
  text-align:center;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 2.1rem);
  margin-bottom: 18px;
}

.section-lead{
  max-width: 850px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: var(--brand); color:#fff; }
.btn-primary:hover{ background: var(--brand-2); }

.btn-ghost{
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover{ opacity: 0.92; }

/* ===================== HEADER / NAV ===================== */
header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* IMPORTANT: Header soll volle Breite nutzen (Logo links, Links rechts am Browserrand) */
header .container{
  max-width: none;      /* nur im Header Container-Begrenzung aufheben */
  padding: 0 24px;      /* Abstand zum Browserrand (premium look) */
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 72px;
  padding: 0;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:#fff;
  min-width: 0;
}

.brand img{
  height: 48px;
  width: auto;
  display:block;
}

@media (max-width: 760px){
  .brand img{ height: 40px; }
}

/* Desktop Nav */
.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: auto; /* rechtsbündig */
}

.nav-links a{
  color:#fff;
  font-weight: 800;
  opacity: 0.95;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s ease, opacity .15s ease;
}

.nav-links a:hover{
  opacity: 1;
  background: rgba(255,255,255,0.12);
}
/* ===================== NAV: SUBMENU (LEISTUNGEN) ===================== */
.nav-item{ position: relative; display:flex; align-items:center; }

.nav-link-btn{
  color:#fff;
  font-weight: 800;
  opacity: 0.95;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: background .15s ease, opacity .15s ease;
}
.nav-link-btn:hover{ opacity: 1; background: rgba(255,255,255,0.12); }

.chev{ font-size: 0.9rem; opacity: 0.95; }

.submenu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  z-index: 1100;
}

.submenu a{
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 800;
}
.submenu a:hover{
  background: rgba(15,107,49,0.08);
}

/* open state */
.has-submenu.open .submenu{ display:block; }
.has-submenu.open .nav-link-btn{ background: rgba(255,255,255,0.12); opacity:1; }

/* Mobile: submenu als normaler Block im Menü */
@media (max-width: 760px){
  .nav-item{ width: 100%; }
  .nav-link-btn{ width: 100%; justify-content: space-between; }

  .submenu{
    position: static;
    top:auto; right:auto;
    min-width: 100%;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 6px;
    padding: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
  }

  .submenu a{
    color:#fff;
    font-weight: 800;
  }
  .submenu a:hover{
    background: rgba(255,255,255,0.12);
  }
}


/* Hamburger */
.hamburger{
  display:none;
  appearance:none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.hamburger span{
  display:block;
  width: 26px;
  height: 2px;
  background:#fff;
  margin: 6px 0;
}

/* Mobile Menü */
@media (max-width: 760px){
  .hamburger{ display:block; }

  .nav-links{
    position:absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--brand);
    border-top: 1px solid rgba(255,255,255,0.16);
    padding: 12px 18px 16px;
    display:none;
    flex-direction: column;
    align-items:flex-start;
    gap: 8px;
  }
  .nav-links.active{ display:flex; }
  .nav-links a{ width:100%; }

  /* Header padding auf mobile etwas enger */
  header .container{ padding: 0 18px; }
}

/* ===================== HERO ===================== */
.hero{
  position:relative;
  min-height: clamp(420px, 55vh, 640px);
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    var(--hero-image) center/cover no-repeat;
  transform: scale(1.02);
}

.hero-content{
  position:relative;
  padding: 56px 0;
  width: 100%;
}

.hero h1{
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 3rem);
  max-width: 900px;
  margin: 0 auto 18px;
  text-align:center;
  text-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.hero p{
  max-width: 850px;
  margin: 0 auto 26px;
  text-align:center;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px){
  .hero p{ font-size: 1rem; }
  .section{ padding: 52px 0; }
}

/* ===================== GRIDS + CARDS ===================== */
/*.grid{
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}*/
.grid{
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;   /* hinzufügen */
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;

  height: 100%;                 /* NEU */
  display:flex;                 /* NEU */
  flex-direction: column;       /* NEU */
}

/*
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 140px;
}*/

.card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card h3{
  color: var(--brand);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card p{ color: var(--muted); }

.card-link{
  text-decoration:none;
  color: inherit;
  display:block;
}
/*
.card img{
  width:100%;
  height:auto;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}*/
.card img{
  width:100%;
  height: 220px;        /* feste Höhe */
  object-fit: cover;    /* verhindert Verzerrung */
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.grid-services > *{ grid-column: span 4; }
.grid-projects  > *{ grid-column: span 4; }

@media (max-width: 980px){
  .grid-services > *{ grid-column: span 6; }
  .grid-projects  > *{ grid-column: span 6; }
}

@media (max-width: 760px){
  .grid-services > *{ grid-column: span 12; }
  .grid-projects  > *{ grid-column: span 12; }
}

/* ===================== CONTENT / LISTS ===================== */
.center-text{
  text-align:center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
}

.bullet-list{
  max-width: 900px;
  margin: 0 auto;
  padding-left: 18px;
}
.bullet-list li{
  margin: 10px 0;
  color: var(--text);
}

/* ===================== CONTACT ===================== */
.contact-grid{
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
}

.contact-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 22px;
}

.contact-card h3{
  color: var(--brand);
  margin-bottom: 10px;
}

.contact-card p{
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-card a{
  color: var(--brand);
  font-weight: 800;
}
.contact-card a:hover{ text-decoration: underline; }

.contact-left{ grid-column: span 5; }
.contact-right{ grid-column: span 7; }

.map iframe{
  width:100%;
  height: 420px;
  border:0;
  border-radius: var(--radius);
}

@media (max-width: 980px){
  .contact-left{ grid-column: span 12; }
  .contact-right{ grid-column: span 12; }
  .map iframe{ height: 360px; }
}

/* ===================== FOOTER ===================== */
footer{
  background: var(--brand);
  color:#fff;
  padding: 26px 0;
  margin-top: 30px;
}
footer p{
  text-align:center;
  opacity: 0.95;
  font-size: 0.95rem;
}

/* ===================== LIGHTBOX ===================== */
#lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.86);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 24px;
}

#lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

#lightbox .close{
  position:absolute;
  top: 18px;
  right: 18px;
  font-size: 2.2rem;
  color:#fff;
  cursor:pointer;
  user-select:none;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
}
#lightbox .close:hover{ background: rgba(255,255,255,0.16); }

.lightbox-img{ cursor: zoom-in; }

/* ===================== MOTION ===================== */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
/* ===================== WDVS: EXTRA CONTENT BLOCKS ===================== */

.section-muted{
  background: rgba(15,107,49,0.04);
}

/* Intro Cards */
.info-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.info-card{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.info-card h3{
  color: var(--brand);
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.info-card p{ color: var(--muted); }

/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.feature{
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.feature h3{
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 1.05rem;
}
.feature p{ margin:0; color: var(--muted); }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.step{
  grid-column: span 6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.step .num{
  display:inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  background: rgba(15,107,49,0.12);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 10px;
}
.step h3{ margin: 0 0 6px; color: var(--brand); font-size: 1.05rem; }
.step p{ margin: 0; color: var(--muted); }

/* Materials */
.materials{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.material{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.material h3{ margin: 0 0 6px; color: var(--brand); font-size: 1.05rem; }
.material p{ margin: 0; color: var(--muted); }

/* FAQ */
.faq{
  max-width: 900px;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.faq-item summary{
  cursor:pointer;
  font-weight: 900;
  color: var(--text);
}
.faq-item p{
  margin-top: 10px;
  color: var(--muted);
}

/* CTA block */
.cta{
  background: linear-gradient(135deg, rgba(15,107,49,0.12), rgba(15,107,49,0.04));
  border: 1px solid rgba(15,107,49,0.18);
  border-radius: var(--radius);
  padding: 24px;
  text-align:center;
}
.cta p{
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 16px;
}

/* Gallery polish: equal image height*/
.gallery .card img{
  height: 220px;
  object-fit: cover;
}
/* ===== Galerie: eigenes Grid, unabhängig vom 12-Spalten-System ===== */

/* WICHTIG: überschreibt das "grid-column: span 4" aus deiner Haupt-CSS */
.gallery-page #galleryGrid > *{
  grid-column: auto !important;
}

/* eigenes Galerie-Grid */
.gallery-page #galleryGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* responsive */
@media (max-width: 980px){
  .gallery-page #galleryGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  .gallery-page #galleryGrid{ grid-template-columns: 1fr; }
}

/* Cards: clean + foto-fokus */
.gallery-page #galleryGrid .card{
  padding: 0;
  border-left: 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Bilder: gleiche Optik über alle Formate */
.gallery-page #galleryGrid img{
  display:block;
  width: 100%;
  aspect-ratio: 4 / 3;   /* macht’s viel ruhiger als feste Höhe */
  height: auto;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;
}


/* Responsive */
@media (max-width: 980px){
  .info-card{ grid-column: span 6; }
  .material{ grid-column: span 6; }
}

@media (max-width: 760px){
  .info-card{ grid-column: span 12; }
  .feature{ grid-column: span 12; }
  .step{ grid-column: span 12; }
  .material{ grid-column: span 12; }
  .gallery .card img{ height: 200px; }
}

/* ===================== INDEX: EXTRA CONTENT ===================== */

/* Anchor offsets for sticky header */
section[id]{
  scroll-margin-top: 90px;
}

/* Trust bar in hero */
.trust-bar{
  margin: 26px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.trust-item{
  grid-column: span 3;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
}
.trust-icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(255,255,255,0.18);
  color: #fff;
  flex: 0 0 auto;
}
.trust-item strong{ display:block; line-height: 1.2; }
.trust-item small{ color: rgba(255,255,255,0.88); }

@media (max-width: 980px){
  .trust-item{ grid-column: span 6; }
}
@media (max-width: 760px){
  .trust-item{ grid-column: span 12; }
}

/* Why-us highlights */
.highlights{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.highlight{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.highlight h3{
  color: var(--brand);
  margin-bottom: 6px;
  font-size: 1.05rem;
}
.highlight p{ color: var(--muted); margin:0; }

@media (max-width: 980px){
  .highlight{ grid-column: span 6; }
}
@media (max-width: 760px){
  .highlight{ grid-column: span 12; }
}

/* Mini CTA after services */
.mini-cta{
  margin-top: 22px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,107,49,0.18);
  background: linear-gradient(135deg, rgba(15,107,49,0.10), rgba(15,107,49,0.03));
}
.mini-cta h3{
  margin: 0 0 4px;
  color: var(--brand);
}
.mini-cta p{ margin:0; color: var(--muted); }
@media (max-width: 760px){
  .mini-cta{ flex-direction: column; align-items:flex-start; }
}

/* Process steps */
.process{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.process-step{
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.badge{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,107,49,0.12);
  color: var(--brand);
  font-weight: 900;
  margin-bottom: 10px;
}
.process-step h3{ margin: 0 0 6px; color: var(--brand); font-size: 1.05rem; }
.process-step p{ margin:0; color: var(--muted); }

@media (max-width: 980px){
  .process-step{ grid-column: span 6; }
}
@media (max-width: 760px){
  .process-step{ grid-column: span 12; }
}

/* Center buttons on muted section (dark ghost) */
.center-actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}
.dark-ghost{
  background: rgba(15,107,49,0.10);
  color: var(--brand);
  border-color: rgba(15,107,49,0.20);
}
.dark-ghost:hover{ opacity: 0.9; }

/* Wide CTA inside projects */
.cta-wide{
  margin-top: 22px;
}

