.language-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 2px;
  border: 1px solid #93846a;
  border-radius: 7px;
  background: #18242c;
  font: 650 12px/1.1 var(--f-head, system-ui);
  letter-spacing: .04em;
}
.language-switch > * {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
}
.language-switch [aria-current] { background: #eed7a9; color: #17232a; }
.language-switch a:hover, .language-switch a:focus-visible { color: #ffdfa0; outline: 2px solid currentColor; }
.language-bar { display: flex; justify-content: flex-end; padding: .65rem 5vw; background: #18242c; }
.header-inner:not(:has(.main-nav)) > .language-switch { margin-inline-start: auto; }
html:is([lang="ru"], [lang="uk"]) .hero-heading, html:is([lang="ru"], [lang="uk"]) h1, html:is([lang="ru"], [lang="uk"]) h2 { overflow-wrap: break-word; }
@media (min-width: 769px) and (max-width: 1150px) {
  .site-header .header-inner { gap: 10px; }
  .site-header .main-nav ul { gap: 10px; }
  .site-header .header-cta { display: none; }
}
@media (max-width: 768px) {
  .header-inner > .language-switch { margin-inline-start: auto; }
  .site-header .nav-toggle { margin-inline-start: 0; flex: none; }
  .site-header .header-inner { gap: 8px; }
  .cc-banner { max-height: 85vh; max-height: 85dvh; overflow-y: auto; }
}
@media (max-width: 440px) {
  .header-inner:has(.language-switch) .service-home-link { display: none; }
  .header-inner:has(.language-switch) .header-trust { display: none; }
  html:is([lang="ru"], [lang="uk"]) .hero-heading { font-size: clamp(1.75rem, 7.5vw, 2.2rem); }
  .produkt-hero .hero-heading { overflow-wrap: anywhere; hyphens: auto; }
  .rechner-results h3 { overflow-wrap: anywhere; }
}
@media (max-width: 365px) {
  .site-header .header-inner { gap: 5px; padding-inline: 10px; }
  .site-header .logo { gap: 5px; }
  .site-header .logo img { width: 28px; height: 28px; }
  .site-header .logo-text { font-size: 1rem; }
}
@media (min-width: 769px) and (max-width: 880px) {
  .site-header .header-inner { padding-inline: 10px; gap: 7px; }
  .site-header .main-nav ul { gap: 7px; }
  .site-header .main-nav a { font-size: .76rem; line-height: 1.25; }
}

.berater-kontakt {
  font-size: .94rem;
  line-height: 1.55;
}
.form-page-header .berater-kontakt {
  margin: .55rem 0 0;
  color: #414b51;
}
.berater-kontakt a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
.berater-kontakt a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Wrap headings at words; use the width of the actual FAQ column for its type. */
html[lang] :is(.produkt-hero .hero-heading, .section-heading, .legal-heading, .legal-block h2, .produkt-text-content h3, .service-heading h1, .service-success h1) {
  word-break: normal;
  overflow-wrap: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.faq-header { container-type: inline-size; }
.faq-header .section-heading {
  font-size: clamp(1.5rem, 9.2cqi, clamp(1.9rem, 4vw, 3rem));
}
.page-anschlussfinanzierung .produkt-hero-content,
html[lang="ru"] .page-modernisierungskredit .produkt-hero-content { container-type: inline-size; }
html[lang] .page-anschlussfinanzierung .produkt-hero .hero-heading,
html[lang="ru"] .page-modernisierungskredit .produkt-hero .hero-heading {
  font-size: clamp(1.6rem, 9.2cqi, 3.6rem);
}
@media (max-width: 390px) {
  html[lang] .legal-heading,
  html[lang] :is(.service-heading, .service-success) h1 {
    font-size: clamp(1.55rem, 7.5vw, 1.85rem);
  }
}

@media (max-width: 365px) {
  html[lang="de"] .region-copy .section-heading { font-size: clamp(1.55rem, 8vw, 1.9rem); }
}

@media (max-width: 350px) {
  .page-impressum .legal-block h2 { font-size: 1.24rem; }
}

@media (min-width: 1440px) {
  html[lang="ru"] .page-privatkredit .produkt-hero .hero-heading { font-size: min(4.7vw, 4.4rem); }
}

.header-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-inline-start: auto;
}
.header-partner {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-inline: 2px;
  white-space: nowrap;
  color: #eed7a9;
  font: 600 .8rem/1.2 var(--f-head, system-ui);
  text-decoration: underline;
  text-decoration-color: #9c8b69;
  text-underline-offset: .2em;
}
.header-partner:hover, .header-partner:focus-visible { color: #fff; }
.header-partner:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media (max-width: 768px) {
  :root:has(.header-navigation) { --header-h: 76px; }
  .site-header .header-inner:has(.header-navigation) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 24px 44px;
    row-gap: 0;
    align-content: center;
  }
  .header-navigation { display: contents; }
  .header-inner:has(.header-navigation) > .logo { grid-area: 1 / 1 / 3 / 2; justify-self: start; }
  .header-navigation .header-partner { grid-area: 1 / 2 / 2 / 4; justify-self: end; }
  .header-inner:has(.header-navigation) > .language-switch { grid-area: 2 / 2; }
  .header-inner:has(.header-navigation) > .nav-toggle { grid-area: 2 / 3; }
}
