/*
 * Semantic heading compatibility layer.
 * Keeps Xanadu's established visual typography while non-heading slogans,
 * captions and quotes use appropriate HTML elements.
 */

.xanadu-h2-style {
  margin-top: 5px;
  font: 400 28px/38px var(--ka-font-family-di);
  letter-spacing: 0;
  text-transform: uppercase;
}

.xanadu-h3-style {
  margin: 15px 0 5px;
  font: 500 24px/28px var(--ka-font-family-di);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.xanadu-h4-style {
  margin-top: 5px;
  font: 400 16px/28px var(--ka-font-family-ar);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.xanadu-h5-style {
  margin-top: 35px;
  font: 400 20px/30px var(--ka-font-family-ar);
  letter-spacing: 0;
}

.xanadu-h6-style {
  margin: 15px 0 5px;
  font: 400 28px/32px var(--ka-font-family-eu);
  letter-spacing: .02em;
  text-transform: none;
}

/* Preserve the former h3 presentation after promoting two-column titles to h2. */
.text2cols h2.hl.xanadu-h3-style {
  margin-bottom: 15px;
  color: inherit;
}

/* Content-editor promotions: retain their former visual levels. */
#article-98 > h2.ce_headline.limit1000 {
  margin: 15px 0 5px;
  font: 500 24px/28px var(--ka-font-family-di);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: inherit;
}

#article-847 .ce_hyperlink.center.limit800 > h3 {
  margin: 35px 0 12px;
  font: 400 20px/30px var(--ka-font-family-ar);
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}

.ce_text h2.xanadu-h3-style,
.ce_text h2.xanadu-h4-style {
  color: inherit;
}

/* WCAG 2.1 AA: retain Xanadu green while giving white body text >= 4.5:1. */
#footer,
.kavillas .slidervillasbox {
  background-color: #478071;
}

#main section.kavillas .slidervillasbox {
  background-color: #478071;
}

#footer .kontakt .strong,
#footer .mod_customnav strong.active {
  color: #fff;
}

#footer .mod_customnav strong.active {
  text-decoration: underline;
  text-underline-offset: .2em;
}

#banner section.bannertext.slogan p.headline2 {
  margin: 15px 0 5px;
  font: 400 24px/28px var(--ka-font-family-ar);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

#main .textimg.scalimg .bottomblock .xanadu-h6-style {
  transform: rotate(-5deg);
}

/* The helicopter overlay title is now a dialog-level h2 in Contao. */
.euf_overlay__content .ce_text > h2 {
  margin: 35px 0 33.4px;
  font: 400 20px/30px var(--ka-font-family-ar);
  letter-spacing: 0;
  text-transform: none;
}

@media only screen and (max-width: 1020px) {
  .xanadu-h2-style { font-size: 26px; line-height: 30px; }
  .xanadu-h3-style { font-size: 20px; line-height: 24px; }
  .xanadu-h4-style { font-size: 16px; line-height: 22px; }
  .xanadu-h5-style { font-size: 16px; line-height: 20px; }

  #article-98 > h2.ce_headline.limit1000 {
    font-size: 20px;
    line-height: 24px;
  }

  #article-847 .ce_hyperlink.center.limit800 > h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .euf_overlay__content .ce_text > h2 {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 26.72px;
  }
}

@media only screen and (max-width: 850px) {
  #banner section.bannertext.slogan p.headline2 {
    text-align: center;
    font-size: 16px;
    line-height: 20px;
  }
}

@media only screen and (max-width: 600px) {
  .xanadu-h2-style { font-size: 24px; line-height: 28px; }
  .xanadu-h3-style { font-size: 20px; line-height: 24px; }
  .xanadu-h4-style { font-size: 14px; line-height: 18px; }
  .xanadu-h5-style { font-size: 16px; line-height: 20px; }
  .xanadu-h6-style { font-size: 16px; line-height: 22px; }

  #banner section.bannertext.slogan p.headline2 {
    font-size: 14px;
    line-height: 18px;
  }
}
