/* =========================================================
   TOKENS & BASICS
   ========================================================= */
:root {
  --primary: #3b5bb0;
  --primary-dark: #2f4ea0;
  --accent: #2f4ea0;
  --text: #0f172a;
  --muted: #5b6578;
  --border: #e6e8f0;
  --surface: #ffffff;
  --radius: 12px;
  --header-height: 78px;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 12px 28px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Prevent focus rings on mouse/touch while keeping keyboard accessibility */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  padding-top: var(--header-height);
}

[hidden] {
  display: none !important;
}

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

/* =========================================================
   SCROLL REVEAL (elements appear on scroll)
   Only active when JS is enabled (html.js)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  z-index: 11000;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  box-shadow: var(--shadow-soft);
  transition: opacity 180ms ease, transform 180ms ease, background 160ms ease;
}

.back-to-top.is-visible {
  opacity: 0.88;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-dark);
  opacity: 1;
}

.back-to-top:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 10000;
  transform: translateY(0);
  transition: transform 220ms ease;
  will-change: transform;
}

.header.is-hidden {
  transform: translateY(calc(-1 * var(--header-height) - 12px));
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .header {
    transition: none;
  }
}

.logo img {
  height: 50px;
  width: auto;
}

@media (max-width: 600px) {
  .logo img {
    height: 48px;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.contact-inline {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.contact-email-image {
  height: 19px;
  width: auto;
  display: block;
  object-fit: contain;
}

.contact-email-image--footer {
  filter: brightness(0) invert(1);
}


.nav {
  position: relative;
}

.nav-list {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* Three-dots (more) menu for desktop nav */
.nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

/* Prevent the menu from closing while moving the cursor
   from the trigger button to the dropdown (hover gap). */
.nav-more::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -10px;
  width: 270px;
  /* Bridge the space from the trigger to the header bottom
     so the menu doesn't close while moving the cursor down. */
  height: calc((var(--header-height) - 40px) / 2 + 14px);
  pointer-events: none;
}

.nav-more:hover::after,
.nav-more:focus-within::after,
.nav-more.is-open::after {
  pointer-events: auto;
}

.nav-more-trigger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.nav-more-trigger:hover,
.nav-more-trigger:focus-visible {
  background: #f4f6fb;
  border-color: var(--border);
}

.nav-more-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-more-dots span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.75;
}

.nav-more-menu {
  position: fixed;
  /* Start exactly at the header bottom edge */
  top: var(--header-height);
  /* Reach the right edge of the viewport */
  right: 0.75rem;
  z-index: 10010;
  min-width: 220px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  /* No rounding on top, rounded on bottom */
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 160ms ease;
}

.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu,
.nav-more.is-open .nav-more-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-more-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: background 140ms ease, color 140ms ease;
}

.nav-more-menu a::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 180ms ease;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus-visible {
  color: var(--primary-dark);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-more-menu a:hover::after,
.nav-more-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-more-menu li {
  display: flex;
  justify-content: center;
}

.nav-list a {
  display: inline-block;
  padding: 6px 6px 10px;
  font-weight: 600;
  color: var(--text);
  transition: color 150ms ease, text-shadow 150ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--primary-dark);
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-underline {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  border-radius: 3px;
  transform: translateX(0);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.2, .9, .2, 1), width 220ms cubic-bezier(.2, .9, .2, 1), opacity 120ms ease;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .nav-more-trigger,
  .nav-more-menu {
    transition: none;
  }

  .nav-more-menu a::after {
    transition: none;
  }
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-bar {
  width: 26px;
  height: 3px;
  background: #969696;
  border-radius: 2px;
  transition: none;
}

.burger-close {
  display: none;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #969696;
  user-select: none;
}

.burger.active .burger-bar {
  display: none;
}

.burger.active .burger-close {
  display: block;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-height: 0;
  transition: max-height 280ms cubic-bezier(.4, 2, .6, 1);
  z-index: 9000;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem 1rem;
  align-items: center;
}

.mobile-nav-list a {
  font-weight: 700;
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  background: #f4f6fb;
  color: var(--primary-dark);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 89vh;
  background-color: #ffffff;
  /* Hero background */
  --hero-bg-image: url("Bilder/Koeln\ Hintergrund.webp");
  --hero-parallax-offset: 0px;
  background-image: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1.25rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center calc(50% + var(--hero-parallax-offset));
  background-repeat: no-repeat;
  opacity: 0.6;
  filter: none;
  transform: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  color: var(--text);
}

.hero-logo {
  width: min(560px, 88vw);
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  margin-top: 0.85rem;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 800;
  color: #000;
  opacity: 1;
}

.hero-smalltext {
  margin-top: 1.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero-content p {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: #000;
}

/* Ensure dedicated hero text styles win over the generic hero paragraph rule */
.hero-content p.hero-tagline {
  margin-top: 0.85rem;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 800;
  color: #000;
  opacity: 1;
}

.hero-content p.hero-smalltext {
  margin-top: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-buttons {
  margin-top: 4rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hero-buttons .hero-btn {
  min-width: 0;
  width: auto;
  max-width: 92vw;
  text-align: center;
}

/* Welcome animation (runs once on load; gated by .js so no-JS stays readable) */
.js .hero-logo,
.js .hero-tagline,
.js .hero-smalltext,
.js .hero-buttons {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
}

.js .hero-logo {
  transform: translateY(18px) scale(0.985);
  transform-origin: 50% 40%;
  animation: hero-welcome-logo 760ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.js .hero-tagline {
  animation: hero-welcome-in 640ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: 90ms;
}

.js .hero-smalltext {
  animation: hero-welcome-in 640ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: 170ms;
}

.js .hero-buttons {
  animation: hero-welcome-in 640ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: 260ms;
}

@keyframes hero-welcome-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-welcome-logo {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-btn--phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.hero-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1) saturate(0) contrast(0.9) brightness(0.85);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid #2f4da0a6;
  border-width: 0.15rem;
}

.hero-btn--primary {
  background: var(--primary);
  border: 1px solid var(--primary-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


.hero-btn:hover,
.hero-btn:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: #2f4da0;
  transform: translateY(-1px);
}

.hero-btn--primary:hover,
.hero-btn--primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.hero-btn--primary:active {
  transform: translateY(0);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-scroll.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.hero-scroll::before {
  content: "";
  width: 16px;
  height: 16px;
  border-right: 3px solid var(--primary-dark);
  border-bottom: 3px solid var(--primary-dark);
  transform: translateY(0) rotate(45deg);
  animation: hero-scroll-float 1.6s ease-in-out infinite;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  opacity: 0.95;
}

@keyframes hero-scroll-float {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(6px) rotate(45deg);
  }

  100% {
    transform: translateY(0) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll::before {
    animation: none;
  }

  .js .hero-logo,
  .js .hero-tagline,
  .js .hero-smalltext,
  .js .hero-buttons {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero .hero-buttons .hero-btn {
    min-width: 0;
    padding: 0.66rem 0.95rem;
  }
}

/* =========================================================
   INFO BAR
   ========================================================= */
.info-bar {
  padding: 0.85rem 0;
  background: var(--primary);
  color: #fff;
}

.info-bar .container {
  max-width: 1200px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 0.8rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-align: left;
}

.info-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-text strong {
  font-weight: 700;
  color: #fff;
}

.info-text span {
  font-size: 0.9rem;
  color: #f3f6ff;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  padding: 3.4rem 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.services .container {
  max-width: 1000px;
  text-align: center;
}

.services h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.services .lead {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

/* Wenn eine ungerade Anzahl an Leistungen vorhanden ist, soll die letzte Karte mittig stehen */
.service-grid>.service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 480px);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
}

.service-card--wide {
  grid-column: 1 / -1;
  align-items: stretch;
  text-align: left;
  min-height: auto;
  padding: 1.5rem 1.6rem;
}

/* =========================================================
   AKTUELLES (separater Bereich)
   ========================================================= */
.aktuelles-section {
  padding: 3.4rem 0 clamp(4.5rem, 7vh, 7rem);
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.aktuelles-container {
  max-width: 900px;
  text-align: center;
}

.aktuelles-section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 0.5rem;
  color: #fff;
}

.aktuelles-section .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.4rem;
}

.aktuelles-card {
  align-items: stretch;
  text-align: left;
  min-height: auto;
  padding: 1.6rem 1.6rem;
}

.service-card--aktuelles {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(255, 255, 255, 0.20),
    0 0 22px rgba(255, 255, 255, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.06);
}

.aktuelles-body {
  margin-top: 0.15rem;
}

.aktuelles-updated {
  margin-top: 0.75rem;
  text-align: right;
}

.aktuelles-body ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.aktuelles-body li {
  margin: 0.25rem 0;
}

.service-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.service-icon-spacer {
  width: 96px;
  height: 96px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Aktuelles: Text bewusst dunkel/schwarz halten (überschreibt auch .service-card p und .muted) */
.aktuelles-section .service-card--aktuelles,
.aktuelles-section .service-card--aktuelles p,
.aktuelles-section .service-card--aktuelles li,
.aktuelles-section .service-card--aktuelles .muted {
  color: #000;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #ffffff00, #fbfbfd);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.contact-inner h2 {
  margin-bottom: 0.8rem;
}

.contact-inner .lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card--accent {
  position: relative;
  padding-left: 1.6rem;
}

.contact-card--accent::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.contact-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-note {
  margin: -0.4rem 0 1.1rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #111;
}

.contact-row .small {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-row a {
  color: var(--accent);
  font-weight: 600;
}

.contact-row .contact-email-image {
  display: inline-block;
  height: 18px;
  width: auto;
  vertical-align: middle;
}

.contact-mapbox {
  display: flex;
  flex-direction: column;
}

.contact-mapbox .route {
  color: var(--muted);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eee;
}

.map-embed {
  flex: 1 1 auto;
  min-height: 260px;
  margin: 1rem calc(-1.6rem) calc(-1.6rem);
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-consent {
  display: block;
  width: 100%;
  height: 100%;
}

.map-placeholder {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.map-placeholder p {
  margin: 0.2rem 0;
}

.map-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.9rem;
}

.map-placeholder-meta {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* =========================================================
   REFERENCES
   ========================================================= */
.references {
  padding: 3.4rem 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.references-container {
  max-width: 1000px;
  text-align: center;
}

.references h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.references .lead {
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}

.partner-logo-box {
  width: 100%;
  height: 120px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f3f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card--logo-box-black .partner-logo-box {
  background: #1f1f1f;
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-initial {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.partner-card--no-logo .partner-name {
  display: none;
}

.partner-card--no-logo .partner-initial {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  padding: 0.6rem;
}

.partner-desc {
  margin-top: -0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.partner-name {
  font-weight: 700;
  color: var(--text);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--primary-dark), #25407a);
  color: #fff;
  padding: 2.3rem 1.25rem;
}

.site-footer .container {
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-col {
  min-width: 220px;
  flex: 1;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  height: 55px;
  width: auto;
  margin-bottom: 0.6rem;
}

@media (max-width: 600px) {
  .footer-logo img {
    height: 56px;
  }
}

.footer-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.96rem;
  margin-top: 0.35rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: #ffffff;
  font-weight: 700;
  padding: 2px 0;
  transition: color 120ms ease, text-decoration 120ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-contact .contact-link {
  color: #e8f2ff;
  font-weight: 700;
}

.footer-contact .contact-link:hover,
.footer-contact .contact-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.25rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (max-width: 1100px) {

  #main-nav,
  #contact-inline {
    display: none !important;
  }

  .burger {
    display: flex;
  }

  .mobile-nav {
    display: block;
    max-height: 0;
  }


  .info-grid {
    grid-template-columns: 1fr;
  }

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

  .map-embed {
    min-height: 220px;
  }

  .header {
    padding-inline: 1rem;
  }
}

@media (max-width: 767.98px) {

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-content,
  .hero-content * {
    animation: none !important;
    transition: none !important;
  }

  /* Ensure hero content stays visible when animations are disabled on mobile */
  .js .hero-logo,
  .js .hero-tagline,
  .js .hero-smalltext,
  .js .hero-buttons {
    opacity: 1 !important;
    transform: none !important;
  }
}