@media (max-width: 800px) {
  #nav-close {
    display: none !important;
    position: fixed !important;
    top: 18px;
    right: 18px;
    z-index: 30000;
    background: none;
    border: none;
    font-size: 2.4rem;
    color: #00a3c4;
    line-height: 1;
    cursor: pointer;
  }
  body.nav-open #nav-close {
    display: block !important;
  }
  #nav-call-mobile {
    display: none;
    margin: 24px auto 0 auto;
    background: var(--turquoise, #00a3c4);
    color: #fff;
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 16px 0 rgba(0,163,196,0.13);
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    text-align: center;
    width: max-content;
    align-self: center;
  }
  .main-nav.open #nav-call-mobile {
    display: block !important;
  }
}
/* page-specific mobile nav rules removed */
@media (max-width: 600px) {
  /* page-specific nav-toggle rules removed */
}
@media (max-width: 600px) {
  /* page-specific header overrides removed */
}
/* Hero-Text auf der Startseite weiß */
#top-hero .hero-tagline,
#top-hero .lead {
  color: #fff !important;
}
/* Hero-Text nur auf Startseite weiß */
body.index-page .hero-copy h1 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
/* Hero-Text auf anderen Seiten schwarz */
body:not(.index-page) .hero-copy h1,
body:not(.index-page) .hero-copy p,
body:not(.index-page) .hero-copy a {
  color: #072b2c !important;
  text-shadow: none !important;
}
.hero-copy h1,
.hero-copy p,
.hero-copy a {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {

    .nav-toggle span {
      width: 28px !important;
      height: 2px !important;
      background: #888 !important;
      border-radius: 2px !important;
      margin: 0 0 0 0 !important;
      transition: transform .25s, opacity .2s;
      display: block;
      box-shadow: none;
    }
    .nav-toggle span:nth-child(1) {
      margin-top: 7px !important;
    }
    .nav-toggle span:nth-child(3) {
      margin-bottom: 7px !important;
    }
}
.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slideshow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  min-height: 440px;
  overflow: hidden;
  z-index: 1;
  margin: 0;
  padding: 0;
}
.hero-bg-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s;
}
@media (max-width: 900px) {
  .hero-slideshow-bg { height: 340px; }
}
@media (max-width: 600px) {
  .hero-slideshow-bg { height: 180px; }
  .hero-bg-slide { background-position: center center; }
}
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  margin-top: 0;
  padding-top: 0;
}
@media (max-width: 900px) {
  .hero { min-height: 340px; }
}
@media (max-width: 600px) {
  .hero { min-height: 180px; }
}
@media (max-width: 900px) {
  .hero-slideshow-bg { height: 340px; min-height: unset; width: 100%; position: relative; }
  .hero-inner { flex-direction: column; }
}
@media (max-width: 600px) {
  .hero-slideshow-bg {
    height: 220px;
    min-height: unset;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 1;
  }
  .hero {
    min-height: 220px;
    margin-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 800px) {
  header.site-header {
    position: relative;
  }
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 9999;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed;
    top: 14px;
    right: 14px;
    margin: 0;
    border-radius: 8px;
  }
  .nav-toggle span {
    width: 28px !important;
    height: 3.5px !important;
    background: #888 !important;
    border-radius: 2px !important;
    margin: 0 0 0 0 !important;
    transition: transform .25s, opacity .2s;
    display: block;
    box-shadow: none;
  }
  .nav-toggle span:nth-child(1) {
    margin-top: 7px !important;
  }
  .nav-toggle span:nth-child(3) {
    margin-bottom: 7px !important;
  }
}
/* Nur eine Zeile Bilder für Baden-Württemberg auf Desktop */
.referenzen-projektbilder.bawue-row {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 16px;
}
@media (max-width: 600px) {
  .referenzen-projektbilder.bawue-row {
    flex-wrap: wrap !important;
    overflow-x: visible;
  }
}
.mobile-only { display: none !important; }
.desktop-only { display: inline-block !important; }
@media (max-width: 600px) {
  .mobile-only { display: inline-block !important; }
  .desktop-only { display: none !important; }
  .referenz-hochkant {
    width: 100%;
    height: 220px;
    max-width: 340px;
    margin: 0 auto;
  }
}
.referenz-hochkant {
  width: 160px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: block;
}
@media (max-width: 600px) {
  .referenz-hochkant {
    width: 100%;
    height: 220px;
    max-width: 340px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .referenzen-projektbilder img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block;
  }
}
body.nav-open main,
body.nav-open .site-footer {
  display: none !important;
}
.service-tab-header:hover h2 {
  color: var(--turquoise-dark, #007b86);
  transition: color 0.2s;
}
.service-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: transparent;
  color: var(--text-color);
  cursor: pointer;
  user-select: none;
}
.service-tab-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}
.service-tab-toggle {
  font-size: 1.2rem;
  color: #248A91;
  margin-left: 1.5rem;
  align-self: flex-start;
  height: 1.2em;
  display: flex;
  align-items: center;
}
/* Referenzen Tabs wie Leistungen */
.service-tab-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.service-tab.active .service-tab-content {
  max-height: none;
  height: auto;
  opacity: 1;
  margin-top: 0.6rem;
}
/* Referenzen Tabs wie Leistungen */
.service-tab-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.service-tab.active .service-tab-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.6rem;
}
/* Ausklappbarer Bereich für Referenzen */
.reference-category-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.32s cubic-bezier(.4,0,.2,1);
}
.reference-category-block.active .reference-category-content {
  max-height: 300px;
  opacity: 1;
  margin-top: 0.6rem;
}
/* Referenzen Kategorie-Block Layout */
.reference-category-block {
  background: #f7fdff;
  margin-bottom: 2rem;
  padding: 2.2rem 2.5rem 1.2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(36,138,145,0.08);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.22s, background 0.22s;
  position: relative;
}
.reference-category-block:hover,
.reference-category-block.active {
  background: #eaf7fa;
  box-shadow: 0 8px 32px rgba(36,138,145,0.13);
}
.reference-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0f4f6;
  padding-bottom: 1.2rem;
}
.reference-category-title h2 {
  color: #248A91;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.reference-category-subtitle {
  color: #666;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}
.reference-category-arrow {
  font-size: 2rem;
  color: #248A91;
  transition: transform 0.22s;
}
.reference-category-block.active .reference-category-arrow {
  transform: rotate(180deg);
}
@media (max-width: 900px) {
  .reference-category-block {
    padding: 1.2rem 1rem;
  }
  .reference-category-title h2 {
    font-size: 1.1rem;
  }
  .reference-category-subtitle {
    font-size: 0.98rem;
  }
}
/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Nav link lift effect on hover */
.main-nav a {
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s cubic-bezier(0.4,0,0.2,1);
}
.main-nav a:hover,
.main-nav a:focus {
  transform: translateY(-4px) scale(1.04);
  color: var(--turquoise, #00a3c4);
}
/* Animated underline for navigation links */
.main-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  overflow: hidden;
}
.main-nav a::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--turquoise, #00a3c4);
  border-radius: 2px;
  transition: width 0.32s cubic-bezier(0.4,0,0.2,1);
  z-index: 1;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
/* Unterstreichung bei Links in Referenzkarten komplett entfernen */
.reference-card,
.reference-card a,
.reference-card a:visited,
.reference-card a:hover,
.reference-card a:active {
  text-decoration: none !important;
}
/* Unterstreichung bei Links in Referenzkarten entfernen */
.reference-card a {
  text-decoration: none !important;
}
.reference-card h3 {
  text-decoration: none !important;
}
/* Strich unter Referenz-Kategorie-Header entfernen */
.reference-category-header {
  border-bottom: none !important;
}
/* Referenz-Modal */
.reference-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(36,138,145,0.13);
  backdrop-filter: blur(2px);
}
.reference-modal[style*="display: flex"] {
  display: flex !important;
}
.modal-content {
  background: var(--bg,#f4fdff);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(36,138,145,0.13);
  max-width: 410px;
  width: 96vw;
  padding: 2.2rem 1.5rem 1.2rem 1.5rem;
  position: relative;
  animation: modalIn .32s cubic-bezier(.7,1.6,.5,1) 1;
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(40px) scale(.98); }
  100% { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #248A91;
  cursor: pointer;
  transition: color .2s;
  z-index: 2;
}
.modal-close:hover { color: #007b86; }
.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.modal-details > div {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}
.modal-details strong { color: #248A91; font-weight: 600; }
.modal-image-placeholder {
  background: #e6f5f7;
  color: #248A91;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 18px;
  min-height: 120px;
}
.reference-card.clickable {
  cursor: pointer;
  transition: box-shadow .18s, transform .18s;
}
.reference-card.clickable:hover {
  box-shadow: 0 4px 18px rgba(36,138,145,0.10);
  transform: translateY(-2px) scale(1.025);
  /* border-color entfernt */
}
:root{
  --turquoise:#00a3c4; /* deeper turquoise */
  --turquoise-dark:#007b86; /* stronger contrast */
  --muted:#435e61; /* darker muted text */
  --text-color:#072b2c; /* main text color stronger */
  --bg:#f4fdff;
  --max-width:1100px;
}
*{box-sizing:border-box}
body{font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin:0; color:var(--text-color); background:var(--bg);}
.container{max-width:var(--max-width);margin:0 auto;padding:20px;}
.site-header{border-bottom:1px solid #eef6f7;background:linear-gradient(90deg, rgba(0,188,212,0.03), rgba(0,188,212,0.01));}
.header-inner{display:flex;align-items:center;gap:20px;justify-content:space-between}
.logo img{height:48px}
.main-nav a{margin:0 10px;color:var(--muted);text-decoration:none;font-weight:600}
.call{
  background:var(--turquoise);
  color:white;
  padding:12px 24px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  font-size:1.08rem;
  box-shadow: 0 6px 24px 0 rgba(0,163,196,0.16);
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s cubic-bezier(0.4,0,0.2,1);
  display: inline-block;
}
.call:hover,
.call:focus {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 32px 0 rgba(0,163,196,0.20);
}
.hero{padding:80px 0;background:linear-gradient(180deg, rgba(0,188,212,0.06), transparent);}
.hero-inner{text-align:left}
.hero h1{font-size:48px;margin:0 0 10px;color:#02373a}
.lead{font-size:18px;color:var(--muted);margin-bottom:20px}
.hero-inner{display:flex;align-items:center;gap:28px}
.hero-image{width:320px;max-width:40%;border-radius:12px;box-shadow:0 10px 30px rgba(3,50,53,0.06);border:1px solid #e6f5f7;background:#f7fbfc}
.btn{display:inline-block;padding:10px 16px;border-radius:8px;border:none;background:#f0f6f6;color:#02373a;text-decoration:none}
.btn.primary{background:var(--turquoise);color:#fff}
.section{padding:60px 0}
.services .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:20px}
.card{background:#fff;border:1px solid #eef6f7;padding:18px;border-radius:10px;box-shadow:0 6px 18px rgba(3,50,53,0.03)}
.card h3{margin-top:0;color:#02373a}
.about p{max-width:800px;color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.contact-form label{display:block;margin-bottom:10px;color:var(--muted)}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border:1px solid #dfeff0;border-radius:6px}
.contact-form button{margin-top:8px;background:var(--turquoise-dark);color:#fff;padding:10px 14px;border-radius:8px;border:none}
.site-footer{border-top:1px solid #eef6f7;padding:18px 0;background:#fff}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.footer-nav a{margin-left:12px;color:var(--muted);text-decoration:none}
@media(max-width:800px){
  .header-inner{flex-direction:row;}
  .main-nav{display:none;}
  body .main-nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #fff;
    z-index: 20000;
    box-shadow: 0 8px 32px rgba(36,138,145,0.13);
    padding-top: 80px;
    overflow-y: auto;
  }
  .contact-grid{grid-template-columns:1fr}
  .hero h1{font-size:34px}
  .footer-inner{flex-direction:column;gap:8px}
}
@media(max-width:900px){.hero-inner{flex-direction:column}.hero-image{max-width:92%;width:auto;}}
