/*
 * Kleine Ergänzungen für die statische ALL-INKL-Fassung.
 * Das eigentliche Layout stammt aus den bereitgestellten Original-CSS-Dateien.
 */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
}

/* #top sitzt garantiert auf Dokumentposition 0. */
#top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Im Original ist der Header transparent über dem Hero angeordnet. */
#header .container-fluid {
  min-height: 40px;
}

/* Das alte Blade-Template zeigt das Logo groß und mittig im Hero. */
#hero .hero-container > a {
  display: inline-block;
  max-width: min(500px, calc(100vw - 60px));
}

#hero .hero-container img.hero-logo {
  display: block;
  width: 500px;
  max-width: 100%;
  height: auto;
}

/* Die Original-CSS-Datei erwartet ../../img relativ zu css/siimple/.
   Für die statische Struktur liegt das Bild unter assets/img/. */
#hero {
  background-image: url("../img/hero-bg.jpg");
}

/* Hamburger ist bewusst auf JEDEM Viewport sichtbar. */
.nav-toggle {
  display: block !important;
}

/* Etwas robuster bei sehr schmalen Viewports. */
.nav-toggle-active {
  right: min(275px, calc(100vw - 45px));
}

.nav-menu {
  max-width: calc(100vw - 45px);
}

/* Projektbilder exakt im vom alten Layout verwendeten 3:2-Format. */
.projekte .card-img-top {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

/* Original-Hovereffekt zusätzlich auch für Tastaturfokus. */
.projekte .card:focus-within .card-icon i {
  background: #fff;
  color: #336699;
}

/* Korrektur des .contact/.kontakt-Tippfehlers aus dem Original-CSS. */
.kontakt .php-email-form input,
.kontakt .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
}

.kontakt .php-email-form input:focus,
.kontakt .php-email-form textarea:focus {
  border-color: #336699;
  box-shadow: none;
}

.kontakt .php-email-form .loading.is-visible,
.kontakt .php-email-form .sent-message.is-visible,
.kontakt .php-email-form .error-message.is-visible {
  display: block;
  margin-bottom: 15px;
}

.kontakt .php-email-form button[type="submit"][disabled] {
  opacity: .65;
  cursor: wait;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Originaler Jump-to-top: per JS eingeblendet und weich animiert. */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9997;
  display: none;
  padding: 8px 12px;
  border-radius: 2px;
  color: #fff !important;
  background: #6c757d;
  border: 1px solid #6c757d;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.back-to-top.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  background: #5a6268;
}

/* Rechtsseiten verwenden denselben Header, Hero, Drawer und Footer. */
.legal-content {
  max-width: 900px;
}

.legal-content h1 {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 30px;
  padding-bottom: 15px;
  position: relative;
  text-align: center;
}

.legal-content h1::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 1px;
  background: #336699;
  left: calc(50% - 40px);
  bottom: 0;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 32px;
}

.legal-note {
  padding: 15px;
  background: rgba(51, 102, 153, .08);
  border-left: 3px solid #336699;
}

/* Screenreader-Helfer. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767.98px) {
  #hero {
    height: 54vh;
    min-height: 420px;
  }

  section {
    padding: 60px 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Fontfreie Nachbildung der im alten Layout verwendeten Boxicons. */
.menu-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle-active .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle-active .menu-icon span:nth-child(2) { opacity: 0; }
.nav-toggle-active .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ueberuns ul .legacy-check {
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 15px;
  letter-spacing: -3px;
  padding-right: 8px;
  color: #336699;
}

.projekte .card-icon .card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.projekte .card-icon .card-check svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kontakt .info .contact-icon {
  width: 32px;
  height: 32px;
  display: block;
  font-style: normal;
}

.kontakt .info .contact-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
