/* ========= Reset & Base ========= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f6f8;
  color: #111827;
  line-height: 1.6;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; }

/* ========= Layout ========= */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ========= Header ========= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-logo{
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-text{ display: grid; line-height: 1.1; }
.brand-name{ font-weight: 700; }
.brand-sub{ font-size: 0.88rem; color: #4b5563; }

.nav{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-link{
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover{
  background: #f3f4f6;
  text-decoration: none;
}
.nav-link.is-active{
  background: #eaf0ff;
  color: #1F3A66;
}

.header-cta{ white-space: nowrap; }

/* ========= Buttons ========= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }

.btn-primary{
  background: #1F3A66;
  color: #fff;
}
.btn-primary:hover{ background: #182a4c; }

.btn-outline{
  background: transparent;
  border-color: #1F3A66;
  color: #1F3A66;
}
.btn-outline:hover{ background: #eaf0ff; }

.btn-ghost{
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}
.btn-ghost:hover{ background: #f9fafb; }

.btn-google{
  background: #0F9D58;
  color: #fff;
}
.btn-google:hover{ background: #0c7a45; }

/* ========= Hero ========= */
.hero{
  margin: 18px 0 0;
  background: #f7f9fc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
}

.badge{
  display: inline-block;
  background: #eaf0ff;
  color: #1F3A66;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: 2.1rem;
  line-height: 1.15;
  color: #111827;
}

.lead{
  margin: 0 0 16px;
  color: #374151;
  font-size: 1.05rem;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.trust-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #374151;
  font-weight: 600;
}

/* Hero image */
.hero-media img{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
}

/* ========= Sections ========= */
.section{
  padding: 34px 0;
  border-bottom: 1px solid #e5e7eb;
}
.section:last-of-type{ border-bottom: none; }

.section-head{
  margin-bottom: 14px;
}
.section h2{
  margin: 0 0 8px;
  color: #1F3A66;
}
.muted{ color: #4b5563; margin: 0; }

.section-actions{
  margin-top: 14px;
}

/* ========= Grid / Cards ========= */
.grid-3{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(17,24,39,0.05);
}

.card h3{ margin: 0 0 6px; }
.card p{ margin: 0 0 10px; color: #374151; }

/* Lists */
.list{
  margin: 0;
  padding-left: 18px;
  color: #374151;
}
.list li{ margin: 6px 0; }

/* ========= Split / Info Box ========= */
.split{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.info-box{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

/* ========= Reviews ========= */
.review{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  max-width: 700px;
  box-shadow: 0 6px 16px rgba(17,24,39,0.05);
}
.stars{ color: #f4b000; font-size: 1.1rem; margin-bottom: 6px; }
.review-text{ margin: 0 0 10px; color: #374151; }
.review-author{ margin: 0; font-weight: 700; color: #1F3A66; }

/* ========= Contact ========= */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.contact-item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.contact-label{
  margin: 0 0 6px;
  font-weight: 800;
  color: #374151;
  font-size: 0.9rem;
}

.contact-value{
  margin: 0;
  font-weight: 700;
  color: #111827;
}

/* ========= Footer ========= */
.site-footer{
  margin-top: 26px;
  background: #111827;
  color: #e5e7eb;
  padding: 18px 0 22px;
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand{ font-weight: 800; margin: 0 0 4px; }
.footer-muted{ margin: 0; opacity: 0.9; }
.footer-copy{ margin: 8px 0 0; opacity: 0.75; font-size: 0.9rem; }

.footer-links{
  display: flex;
  gap: 10px;
  align-items: center;
}
.footer-links span{ opacity: 0.5; }

/* ========= Responsive ========= */
@media (max-width: 900px){
  .header-inner{
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .nav{ justify-content: flex-start; }
  .header-cta{ width: 100%; }

  .hero{
    grid-template-columns: 1fr;
  }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Services Layout (für Leistungen-Seite) */
.service{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.service-media img{
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(17,24,39,0.08);
}

.service-reverse .service-media{ order: 2; }
.service-reverse .service-content{ order: 1; }

@media (max-width: 900px){
  .service{ grid-template-columns: 1fr; }
  .service-reverse .service-media,
  .service-reverse .service-content{ order: initial; }
}






/* ===================== */
/* PROJEKTE / REFERENZEN */
/* ===================== */

.projects-toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}

.filter-btn{
  padding:10px 12px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background:#fff;
  font-weight:700;
  cursor:pointer;
}

.filter-btn.is-active{
  border-color:#1F3A66;
  background:#eaf0ff;
  color:#1F3A66;
}

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.project-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(17,24,39,0.05);
  cursor:pointer;
  transition: transform .12s ease;
}

.project-card:hover{ transform: translateY(-2px); }

.project-media{
  position:relative;
}

.project-media img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}

.project-badge{
  position:absolute;
  left:12px;
  top:12px;
  background:#eaf0ff;
  color:#1F3A66;
  font-weight:800;
  font-size:0.85rem;
  padding:6px 10px;
  border-radius:999px;
}

.project-body{
  padding:14px 14px 16px;
}

.project-title{
  margin:0 0 4px;
}

.project-meta{
  margin:0 0 10px;
  color:#4b5563;
  font-weight:700;
  font-size:0.95rem;
}

.project-desc{
  margin:0 0 12px;
  color:#374151;
}

.project-link{
  font-weight:800;
  color:#1F3A66;
}

/* Modal */
.modal{
  display:none;
}

.modal.is-open{
  display:block;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index:200;
}

.modal-panel{
  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width:min(980px, 92vw);
  background:#fff;
  border-radius:18px;
  border:1px solid #e5e7eb;
  z-index:201;
  box-shadow:0 30px 80px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow: auto; 
}

.modal-close{
  position: sticky;
  top: 12px;
  margin-left: auto;     
  display: block;
  z-index: 5;

  border: none;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
}

.modal-body{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:16px;
  padding:16px;
}

.modal-media img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid #e5e7eb;
}

.modal-thumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.thumb{
  border:2px solid transparent;
  background:transparent;
  padding:0;
  border-radius:12px;
  cursor:pointer;
}

.thumb img{
  width:84px;
  height:64px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid #e5e7eb;
  display:block;
}

.thumb.is-active{
  border-color:#1F3A66;
}

.modal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* Responsive */
@media (max-width: 900px){
  .projects-grid{
    grid-template-columns: 1fr;
  }

  .modal-body{
    grid-template-columns: 1fr;
  }

  .modal-media img{
    height:280px;
  }
  .modal-panel{
    width: 94vw;
    max-height: 94vh;
  }
}

body.modal-open { overflow: hidden; }




.form-label{
  font-weight: 800;
  display: block;
  margin: 12px 0 6px;
}

.form-input,
.form-select,
.form-textarea{
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  background: #fff;
}

.form-select{
  height: 52px;
}

.form-textarea{
  resize: vertical;
  min-height: 140px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus{
  outline: none;
  border-color: #1F3A66;
  box-shadow: 0 0 0 2px rgba(31, 58, 102, 0.15);
}

.map-actions{
  padding:  12px 16px 18px; /* links + rechts + unten */
}



/* Kontakt-Seite: Formular + Map Grid */

.kontakt-grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* Desktop: 2 Spalten */
  gap: 24px;
  align-items: stretch;          /* gleiche Höhe */
}

/* wichtig: verhindert "zu schmal" Bugs in Grid */
.kontakt-form,
.kontakt-map{
  min-width: 0;
}

/* Map-Card füllt die Höhe besser aus */
.kontakt-map .card{
  padding: 0;
  overflow: hidden;
}

/* Header über der Map bleibt oben */
.kontakt-map .card > div:first-child{
  flex: 0 0 auto;
}

/* iframe nimmt den Rest */
.kontakt-map iframe{
  display: block;
  width: 100%;
  border: 0;
}

/* Mobile: untereinander statt nebeneinander */
@media (max-width: 900px){
  .kontakt-grid{
    grid-template-columns: 1fr;  /* 1 Spalte */
    gap: 18px;
  }

  .kontakt-map iframe{
    height: 340px;               /* gute Handy-Höhe */
    flex: 0 0 auto;
  }
}
