/* Semu IT – global stylesheet */

* { box-sizing: border-box; }
body { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Sticky site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 41, 60, 0.08);
  box-shadow: 0 1px 0 rgba(23, 41, 60, 0.02);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 24px;
}

.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: 72px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #17293c;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1e4d8b;
  border-bottom-color: #1e4d8b;
}

@media (max-width: 860px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px 20px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .site-logo img {
    height: 52px;
  }
  #kontakt {
    scroll-margin-top: 140px;
  }
}

/* Highlight a service card / the Sicherheitsabo block when jumped to via a "Leistungen im Überblick" link */
.leistung-target {
  scroll-margin-top: 110px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Offset so the sticky header never covers the top of this section when
   jumped to natively (e.g. a cross-page "index.html#kontakt" nav link) */
#kontakt {
  scroll-margin-top: 110px;
}

.leistung-target:target {
  border-color: #3b6fb5 !important;
  box-shadow: 0 0 0 3px rgba(59, 111, 181, 0.35);
  animation: leistung-flash 1.8s ease;
}

@keyframes leistung-flash {
  0% { box-shadow: 0 0 0 6px rgba(59, 111, 181, 0.45); }
  100% { box-shadow: 0 0 0 3px rgba(59, 111, 181, 0.35); }
}

/* Carried over from the Design Canvas mockup – existing mobile responsive rules */
@media (max-width: 780px) {
  .hero-flex {
    flex-direction: column !important;
    text-align: center;
    gap: 40px !important;
  }
  .hero-text { max-width: 100% !important; align-items: center; }
  .hero-copy { max-width: 100% !important; }
  .hero-cta { justify-content: center !important; }
  .cards-grid { grid-template-columns: 1fr !important; }
  .h1 { font-size: 32px !important; }
  .detail-flex { flex-direction: column !important; gap: 36px !important; }
  .detail-text { max-width: 100% !important; }
  .detail-photo { flex: 0 0 auto !important; width: 100% !important; max-width: 420px; }
  #kontakt {
    scroll-margin-top: 220px;
  }
  .site-footer-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 22px !important;
  }
}

/* Bottom "Kontaktformular" -> inline, expandable contact-form panel */
.contact-panel {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.45s ease, visibility 0s linear 0.45s;
}

.contact-panel.open {
  visibility: visible;
  transition: max-height 0.45s ease, visibility 0s linear 0s;
}

.contact-panel-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 24px;
}

.cf-row { margin-bottom: 18px; }

.cf-label {
  display: block;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #bcd3ec;
  margin-bottom: 6px;
}

.cf-input {
  width: 100%;
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  resize: vertical;
}

.cf-input::placeholder { color: rgba(255, 255, 255, 0.45); }

.cf-input:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* Honeypot field: hidden from real visitors, still reachable by simple bots */
.cf-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.cf-submit {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: #1e4d8b;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cf-submit:hover { background: #dbe6f2; }
.cf-submit:disabled { opacity: 0.65; cursor: default; }

.cf-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 1.4em;
}

.cf-status-success { color: #7be3a4; font-weight: 600; }
.cf-status-error { color: #ff9a90; font-weight: 600; }

/* "Was Kunden sagen" – auto-scrolling row of Google-review cards */
.reviews-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: reviews-scroll 32s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 300px;
  background: #eef2f6;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 22px 24px;
  box-sizing: border-box;
}

@media (max-width: 780px) {
  .review-card { flex-basis: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none !important; }
}
