/* =========================================================
   HEADER – SCHRADER BETREUUNG
   Logo links, Navigation rechts
   ========================================================= */

.site-header {
  width: 100%;
  min-height: 108px;
  padding: 14px 40px;

  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 40px;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ececec;
}

/* Logo */

.brand {
  flex: 0 0 auto;
  display: block;
}

.brand img {
  display: block;
  width: 250px;
  height: auto;
}

/* Navigation */

.main-nav {
  margin-left: auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

/* Navigationslinks */

.main-nav a {
  position: relative;

  padding: 10px 0;

  color: #222222;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease;
}

/* Rote Linie unter den Links */

.main-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;

  height: 2px;
  background-color: #d50012;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

/* Linie beim Berühren mit der Maus */

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

/* Schriftfarbe beim Berühren */

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #d50012;
}

/* Aktuell geöffnete Seite dauerhaft unterstreichen */

body.page-index .main-nav a[data-page="index"]::after,
body.page-leistungen .main-nav a[data-page="leistungen"]::after,
body.page-kontakt .main-nav a[data-page="kontakt"]::after {
  transform: scaleX(1);
}

/* Aktuell geöffnete Seite hervorheben */

body.page-index .main-nav a[data-page="index"],
body.page-leistungen .main-nav a[data-page="leistungen"],
body.page-kontakt .main-nav a[data-page="kontakt"] {
  color: #222222;
}

/* Menüschaltfläche */

.menu-toggle {
  display: none;
}

/* Mobile Darstellung */

@media (max-width: 700px) {
  .site-header {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .brand img {
    width: 210px;
  }
}