.language-switch {
  align-items: center;
  display: inline-flex;
  flex: none;
  gap: .15rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}
.language-switch a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 32px;
  text-decoration: none;
}
.language-switch a[aria-current="page"], .language-switch a:hover {
  text-decoration: underline;
  text-underline-offset: .28em;
}
.language-switch a[aria-current="page"] { font-weight: 700; }
.language-switch a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.header > .language-switch { margin-inline-start: clamp(.5rem, 1.4vw, 1.5rem); }
.site-head { position: relative; }
.site-head > .language-switch { position: absolute; top: 0; inset-inline-end: 4%; min-height: 4.45rem; }
.site-head:has(> .language-switch) .site-bar { padding-inline-end: 5.6rem; }
.site-head:has(> .language-switch a:nth-of-type(3)) .site-bar { padding-inline-end: 8rem; }
.guide-bar nav a:is([href="/it/cagliari/stay"], [href="/es/cagliari/stay"], [href="/de/cagliari/stay"]) { color: var(--rust); font-weight: 700; }
@media (max-width: 690px) {
  .site-head > .language-switch { min-height: 3.85rem; }
}
@media (max-width: 480px) {
  .site-head:has(> .language-switch) .site-bar { gap: .35rem .75rem; }
  .site-head:has(> .language-switch a:nth-of-type(3)) .site-bar { padding-block: .4rem; }
  .site-head .plan-link { text-align: center; }
}
@media (max-width: 360px) {
  .site-head:has(> .language-switch a:nth-of-type(3)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-head:has(> .language-switch a:nth-of-type(3)) .site-bar {
    grid-column: 1 / -1;
    padding-inline-end: 0;
  }
  .site-head:has(> .language-switch a:nth-of-type(3)) .guide-bar { grid-area: 2 / 1 / 3 / -1; }
  .site-head:has(> .language-switch a:nth-of-type(3)) .guide-bar .journal-mark {
    max-inline-size: calc(100% - 7.7rem);
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .site-head > .language-switch:has(a:nth-of-type(3)) {
    grid-area: 2 / 2;
    position: relative;
    inset: auto;
    align-self: start;
    margin-inline-end: 4vw;
    min-height: 44px;
    z-index: 1;
  }
}

.site-head:has(> .language-switch a:nth-of-type(4)) .site-bar { padding-inline-end: 10.4rem; }
@media (max-width: 520px) {
  .header:has(> .language-switch a:nth-of-type(4)) {
    flex-wrap: wrap;
    height: auto;
    min-height: 5rem;
    gap: .15rem .6rem;
    padding-block: .4rem;
  }
  .header > .language-switch:has(a:nth-of-type(4)) { margin-inline-start: auto; }
  .site-head:has(> .language-switch a:nth-of-type(4)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-head:has(> .language-switch a:nth-of-type(4)) .site-bar {
    grid-column: 1 / -1;
    padding-inline-end: 0;
  }
  .site-head:has(> .language-switch a:nth-of-type(4)) .guide-bar { grid-area: 2 / 1 / 3 / -1; }
  .site-head:has(> .language-switch a:nth-of-type(4)) .guide-bar .journal-mark {
    max-inline-size: calc(100% - 10.2rem);
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .site-head > .language-switch:has(a:nth-of-type(4)) {
    grid-area: 2 / 2;
    position: relative;
    inset: auto;
    align-self: start;
    margin-inline-end: 4vw;
    min-height: 44px;
    z-index: 1;
  }
}

html[lang="de"] main { overflow-wrap: anywhere; }
html[lang="de"] main :is(h1, h2, h3) { hyphens: auto; }
@media (max-width: 480px) {
  html[lang="de"] #hero-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    hyphens: manual;
  }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .header:has(> .language-switch a:nth-of-type(4)) .navigation { gap: .7rem; }
  .header:has(> .language-switch a:nth-of-type(4)) .nav-cta { padding-inline: .75rem; }
}
