/* Xtreme-Servers.de – saubere Kopf- und Hero-Darstellung auf Mobilgeräten.
   Diese Regeln werden bewusst nach den bestehenden Seiten-Bundles geladen. */

.local-language-flags a {
  display: inline-flex;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.local-language-wrapper,
.local-language-flags {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  min-width: 67px !important;
  white-space: nowrap !important;
  gap: 7px !important;
}

header .xsui-element-69ed37b,
header .xsui-element-69ed37b > .xsui-widget-wrap,
header .xsui-element-890bf93,
header .xsui-element-890bf93 .xsui-widget-container,
header .xsui-element-890bf93 .xsui-shortcode {
  overflow: visible !important;
}

@media (min-width: 768px) {
  header .xsui-element-69ed37b {
    min-width: 72px !important;
  }

  header .xsui-element-890bf93,
  header .xsui-element-890bf93 .xsui-widget-container,
  header .xsui-element-890bf93 .xsui-shortcode {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 67px !important;
  }
}

.local-language-flags a:hover,
.local-language-flags a:focus-visible,
.local-language-flags a.is-active-language {
  opacity: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.local-language-flags img,
.local-language-flags a.is-active-language img {
  display: block !important;
  width: 30px !important;
  height: 20px !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  object-fit: cover !important;
  box-shadow: none !important;
}

.xtreme-consent-manage {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.xtreme-consent-manage:hover,
.xtreme-consent-manage:focus-visible {
  color: #ff3838;
  text-decoration: underline;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  /* Der Kopfbereich liegt ruhig über dem Hero, ohne dessen Höhe künstlich zu
     vergrößern. Logo, Sprachen und Menü erhalten fest getrennte Flächen. */
  header.xsui-location-header {
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    z-index: 100000 !important;
  }

  header .xsui-element-d4e2272 {
    margin: 0 !important;
    padding: max(14px, env(safe-area-inset-top)) 12px 12px !important;
  }

  header .xsui-element-d4e2272 > .xsui-container {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 64px !important;
    margin: 0 !important;
  }

  header .xsui-element-b796cff {
    display: block !important;
    width: calc(100% - 150px) !important;
    max-width: 230px !important;
    min-height: 0 !important;
  }

  header .xsui-element-b796cff > .xsui-widget-wrap {
    padding: 0 !important;
  }

  header .xsui-element-341ad64,
  header .xsui-element-341ad64 > .xsui-widget-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  header .xsui-element-341ad64 img {
    display: block !important;
    width: min(230px, 100%) !important;
    height: auto !important;
  }

  /* Leere alte Spalten dürfen auf Smartphones keinen Platz belegen. */
  header .xsui-element-43048e4,
  header .xsui-element-763b370,
  header .xsui-element-69ed37b {
    width: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  /* Sprachwahl bleibt zwischen Logo und Menü sichtbar, ohne Überlagerung. */
  header .xsui-element-74c765b {
    display: block !important;
    position: fixed !important;
    top: max(20px, calc(env(safe-area-inset-top) + 10px)) !important;
    right: 72px !important;
    left: auto !important;
    width: auto !important;
    z-index: 100002 !important;
  }

  header .xsui-element-74c765b .local-language-flags {
    gap: 5px !important;
  }

  header .xsui-element-74c765b img {
    width: 30px !important;
    height: 20px !important;
  }

  /* Einheitlicher 64-Pixel-Menüknopf statt des übergroßen roten Blocks. */
  header .xsui-element-8e7a99d {
    position: fixed !important;
    top: max(0px, env(safe-area-inset-top)) !important;
    right: 0 !important;
    left: auto !important;
    width: 64px !important;
    max-width: 64px !important;
    z-index: 100003 !important;
  }

  header .xsui-element-8e7a99d > .xsui-widget-container {
    width: 64px !important;
    max-width: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  header .xsui-element-8e7a99d .xsui-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  header .xsui-element-8e7a99d .xsui-menu-toggle svg {
    width: 28px !important;
    height: 28px !important;
  }

  /* Das geoeffnete Menue ist ein echter rechter Drawer. Es darf weder den
     Viewport verbreitern noch Logo und Hero-Inhalt seitlich verschieben. */
  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown {
    position: fixed !important;
    top: max(64px, env(safe-area-inset-top)) !important;
    right: 0 !important;
    left: auto !important;
    width: min(86vw, 360px) !important;
    max-width: 360px !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    box-shadow: -14px 18px 34px rgba(0, 0, 0, 0.24) !important;
    transform-origin: top right !important;
    overscroll-behavior: contain;
  }

  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown .xsui-nav-menu {
    width: 100% !important;
  }

  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown .xsui-item {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 14px 26px !important;
    color: #242424 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown .xsui-item:hover,
  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown .xsui-item:focus,
  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown .xsui-item.xsui-item-active {
    color: #fff !important;
    background: #ff3838 !important;
  }

  /* Überschriften dürfen nicht mehr mitten im Wort auseinanderbrechen. */
  [data-xsui-type="xs-page"] h1,
  [data-xsui-type="xs-page"] h2,
  [data-xsui-type="xs-page"] h3,
  [data-xsui-type="xs-page"] h4 {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  /* Kompakter, ausgewogener Startbereich statt einer starren Höhe von 800px. */
  .xsui-2 .xsui-element.xsui-element-974eb56 {
    padding: 104px 0 44px !important;
    background-position: 56% center !important;
  }

  .xsui-2 .xsui-element.xsui-element-974eb56 > .xsui-container {
    min-height: clamp(560px, 78svh, 680px) !important;
    width: calc(100% - 28px) !important;
  }

  .xsui-2 .xsui-element.xsui-element-3e4cdce > .xsui-widget-wrap {
    align-content: center !important;
    padding: 0 !important;
  }

  .xsui-2 .xsui-element.xsui-element-08c0f15 .xsui-heading-title {
    font-size: clamp(28px, 8.2vw, 36px) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .xsui-2 .xsui-element.xsui-element-4457784 .xsui-heading-title {
    max-width: 660px !important;
    margin-inline: auto !important;
    font-size: clamp(28px, 8.4vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .xsui-2 .xsui-element.xsui-element-5bb2a89 .xsui-heading-title {
    display: block !important;
    max-width: 620px !important;
    margin-inline: auto !important;
    font-size: clamp(17px, 4.8vw, 21px) !important;
    line-height: 1.48 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: balance;
  }

  .xsui-2 .xsui-element.xsui-element-ec74c3e > .xsui-widget-container {
    margin-top: 30px !important;
  }

  .xsui-2 .xsui-element.xsui-element-ec74c3e .xsui-button {
    width: auto !important;
    min-width: 0 !important;
    padding: 15px 24px !important;
    font-size: 17px !important;
  }
}

/* Sehr schmale Geräte wie iPhone SE und kompakte Android-Smartphones. */
@media (max-width: 374px) {
  header .xsui-element-b796cff {
    width: calc(100% - 142px) !important;
    max-width: 205px !important;
  }

  header .xsui-element-74c765b {
    right: 62px !important;
  }

  header .xsui-element-74c765b img {
    width: 27px !important;
    height: 18px !important;
  }

  header .xsui-element-8e7a99d,
  header .xsui-element-8e7a99d .xsui-menu-toggle {
    width: 56px !important;
    max-width: 56px !important;
    height: 58px !important;
  }

  header .xsui-element-8e7a99d > .xsui-widget-container {
    width: 56px !important;
    max-width: 56px !important;
  }

  header .xsui-element-8e7a99d .xsui-nav-menu--dropdown {
    top: max(58px, env(safe-area-inset-top)) !important;
    max-height: calc(100dvh - 58px) !important;
  }

  .xsui-2 .xsui-element.xsui-element-974eb56 {
    padding-top: 94px !important;
  }

  .xsui-2 .xsui-element.xsui-element-974eb56 > .xsui-container {
    min-height: clamp(530px, 76svh, 620px) !important;
  }
}

/* Tablets behalten die Desktop-Navigation, erhalten aber proportionale
   Abstände und einen niedrigeren, vollständig sichtbaren Hero. */
@media (min-width: 768px) and (max-width: 1024px) {
  .xsui-2 .xsui-element.xsui-element-974eb56 {
    padding-top: 150px !important;
  }

  .xsui-2 .xsui-element.xsui-element-974eb56 > .xsui-container {
    min-height: clamp(650px, 76svh, 760px) !important;
  }

  .xsui-2 .xsui-element.xsui-element-08c0f15 .xsui-heading-title {
    font-size: clamp(46px, 7vw, 64px) !important;
  }

  .xsui-2 .xsui-element.xsui-element-4457784 .xsui-heading-title {
    max-width: 820px !important;
    margin-inline: auto !important;
    font-size: clamp(34px, 4.6vw, 42px) !important;
    line-height: 1.12 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }
}

