/* ===========================
   HEADER – extrahiert aus HTML
   Layout & Spacing wie valantic.com
   Variante A: Brand-Text rechtsbündig, Position bleibt zwischen Logo und Nav
   =========================== */

.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: clamp(16px, 2vw, 24px) 0;
}

/* horizontale Leiste */
.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 32px);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 20px);
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* Branding-Block */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;

  /* nimmt den Platz zwischen Logo und Nav ein, ohne "full width" zu erzwingen */
  flex: 1 1 auto;
  min-width: 0;

  /* rechtsbündig innerhalb */
  align-items: flex-end;
  text-align: right;

  margin-right: clamp(16px, 3vw, 36px);
}

/* wichtig: children über volle Breite, damit right-align sichtbar wird */
.brand strong,
.brand span {
  display: block;
  width: 100%;
  text-align: right;
}

.brand strong {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.brand span {
  font-size: 14px;
  color: var(--muted);
}

/* Navigation rechts */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CTA im Header */
.header-cta {
  margin-left: 12px;
  white-space: nowrap;
}

/* Responsive Verhalten */
@media (max-width: 760px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Mobile: wieder linksbündig (passend zu deinem bisherigen Verhalten) */
  .brand {
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .brand strong,
  .brand span {
    text-align: left;
  }

  .site-nav {
    width: 100%;
    padding-top: 8px;
  }
}

/* Language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.lang-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.globe-icon {
  width: 29px;
  height: 29px;
  display: block;
  pointer-events: none;
}

.lang-switch-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.lang-switch-btn:hover .lang-text {
  opacity: 0.7;
}

.lang-text {
  color: var(--Black, #100C2A);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "Maven Pro", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
}
