.ct-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--gradient-header); /* DUNKELBRAUN */
  color: #f8fafc;
  border-bottom: 1px solid rgba(75, 62, 50, 0.45);
  box-shadow: 0 12px 24px rgba(40, 30, 20, 0.35);
}

.ct-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  min-height: 64px;
}

.ct-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ct-header__logo {
  display: block;
  height: auto;
}

.ct-main-nav {
  flex: 0 0 auto; /* Nur so breit wie Menüs, nicht volle Breite */
  width: fit-content; /* Dynamisch nach Menü-Inhalt */
  display: flex;
  justify-content: center;
}

.ct-main-nav__list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.ct-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ct-header__user-name {
  font-weight: 600;
  color: #e2e8f0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fbi-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.16);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  padding: 0;
}

.fbi-badge:focus-visible,
.fbi-badge:hover {
  background: rgba(148, 163, 184, 0.32);
  outline: none;
  transform: translateY(-1px);
}

.fbi-badge img {
  display: block;
}

.ct-header__logout {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  color: #4a3f2f;
  background: #f8fafc;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.ct-header__logout:hover,
.ct-header__logout:focus-visible {
  background: #e2e8f0;
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .ct-header__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }

  .ct-main-nav {
    order: 3;
    width: 100%;
  }

  .ct-main-nav__list {
    justify-content: flex-start;
  }

  .ct-header__actions {
    margin-left: auto;
  }
}
