/* aluminiumfenster24.com · canonical responsive header wordmark */
.brand.af24-brand,
.cs-brand.af24-brand {
  --af24-logo-width: clamp(330px, 24vw, 430px);
  position: relative;
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 var(--af24-logo-width);
  width: var(--af24-logo-width) !important;
  min-width: var(--af24-logo-width) !important;
  max-width: var(--af24-logo-width) !important;
  height: clamp(56px, 4.8vw, 70px) !important;
  overflow: visible !important;
  text-decoration: none;
}

.brand.af24-brand::before,
.brand.af24-brand::after,
.cs-brand.af24-brand::before,
.cs-brand.af24-brand::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  flex: 0 0 0 !important;
  background: none !important;
}

.af24-brand-logo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: visible;
  isolation: isolate;
}

/* The SVG contains one permanent, generously padded safe viewBox. The build
   must never crop it again and the navigation must never shrink the wordmark. */
.af24-brand-logo__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  object-position: left center;
  transition: opacity 180ms ease, visibility 180ms ease;
  filter: drop-shadow(0 2px 7px rgb(0 0 0 / 0.14));
}

.af24-brand-logo__image--on-light {
  opacity: 1;
  visibility: visible;
}

.af24-brand-logo__image--on-dark {
  opacity: 0;
  visibility: hidden;
}

html[data-theme="dark"] .af24-brand-logo__image--on-light,
body[data-theme="dark"] .af24-brand-logo__image--on-light,
.af24-brand[data-logo-theme="dark"] .af24-brand-logo__image--on-light {
  opacity: 0;
  visibility: hidden;
}

html[data-theme="dark"] .af24-brand-logo__image--on-dark,
body[data-theme="dark"] .af24-brand-logo__image--on-dark,
.af24-brand[data-logo-theme="dark"] .af24-brand-logo__image--on-dark {
  opacity: 1;
  visibility: visible;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .af24-brand-logo__image--on-light {
    opacity: 0;
    visibility: hidden;
  }

  html:not([data-theme="light"]) .af24-brand-logo__image--on-dark {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1480px) {
  .brand.af24-brand,
  .cs-brand.af24-brand {
    --af24-logo-width: clamp(280px, 27vw, 380px);
  }
}

@media (max-width: 1120px) {
  .brand.af24-brand,
  .cs-brand.af24-brand {
    --af24-logo-width: clamp(250px, 34vw, 330px);
  }
}

@media (max-width: 760px) {
  .brand.af24-brand,
  .cs-brand.af24-brand {
    --af24-logo-width: clamp(190px, 56vw, 270px);
    height: clamp(42px, 12vw, 54px) !important;
  }

  .nav .nav__tools > .btn { display: none !important; }
}

@media (max-width: 390px) {
  .brand.af24-brand,
  .cs-brand.af24-brand {
    --af24-logo-width: clamp(170px, 52vw, 205px);
    height: 42px !important;
  }
}

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

/* Direct language switch for the separate English site. */
.nav .language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: rgba(8,18,26,.9);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.nav .language-switch:hover,
.nav .language-switch:focus-visible {
  border-color: rgba(33,157,207,.8);
  background: rgba(255,255,255,.5);
  outline: 0;
  transform: translateY(-1px);
}

html[data-theme="dark"] .nav .language-switch {
  border-color: rgba(255,255,255,.34);
  background: rgba(8,20,30,.28);
  color: rgba(255,255,255,.94);
}

.mobile-menu .language-switch--mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid rgba(33,157,207,.34);
  border-radius: 14px;
  background: rgba(33,157,207,.09);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.mobile-menu .language-switch--mobile > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-control, #0b628f);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
}

@media (max-width: 390px) {
  .nav .language-switch {
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    font-size: .64rem;
  }
}
