/* ============================================================
   header.css – Sanitär Löffler
   ============================================================ */

/* TOPBAR */
.sl-topbar {
  background: var(--anthrazit);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-family: var(--font-body);
  padding: .5rem 0;
  border-bottom: 3px solid var(--orange);
}

.sl-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
}

.sl-topbar a {
  color: rgba(255,255,255,.85);
}

.sl-topbar-left,
.sl-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.sl-topbar-item {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.sl-topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--orange);
}

/* HEADER */
.sl-header {
  background: var(--weiss);
  box-shadow: 0 2px 20px rgba(26,58,92,.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sl-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* LOGO */
.sl-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.sl-logo img {
  height: 68px;
  width: auto;
}

.sl-logo-text {
  display: none;
}

/* NOTFALL */
.sl-header-notfall {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--rot), #c0301a);
  color: var(--weiss);
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.sl-header-notfall svg {
  width: 20px;
  height: 20px;
  fill: var(--weiss);
}

/* NAV DESKTOP */
.sl-nav {
  background: var(--blau-dunkel);
  position: relative;
  z-index: 999;
}

.sl-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sl-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.sl-nav-list li {
  margin: 0;
  padding: 0;
}

.sl-nav-list li a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--weiss);
  text-decoration: none;
  font-weight: 600;
}

.sl-nav-list li a:hover {
  background: rgba(255,255,255,.08);
  color: var(--orange);
}

/* BURGER */
.sl-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .8rem;
  margin-left: auto;
}

.sl-burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--weiss);
  border-radius: 2px;
}

.sl-burger.offen span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.sl-burger.offen span:nth-child(2) {
  opacity: 0;
}

.sl-burger.offen span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 900px) {
  .sl-topbar-left {
    display: none;
  }
}

@media (max-width: 768px) {
  .sl-header .container {
    height: 72px;
  }

  .sl-logo img {
    height: 56px;
  }

  .sl-header-notfall .notfall-label {
    display: none;
  }

  .sl-header-notfall {
    font-size: .8rem;
    padding: .45rem .8rem;
  }

  .sl-nav .container {
    justify-content: flex-end;
  }

  .sl-burger {
    display: flex;
  }

  .sl-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blau-dunkel);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }

  .sl-nav.offen .sl-nav-list {
    display: flex;
  }

  .sl-nav-list li {
    width: 100%;
  }

  .sl-nav-list li a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}