/*
 * Das obere Farbfeld entspricht dem Fenster „Einfacher Einstieg“.
 * Fuer den langen Haupttext wird derselbe Eindruck nach unten sanft und
 * zunehmend neutral fortgefuehrt.
 */
.homepage-main-window {
  --main-window-reference-height: clamp(600px, 50.5vw, 700px);
  background:
    linear-gradient(
      180deg,
      transparent 0,
      transparent calc(var(--main-window-reference-height) - 96px),
      #edf3f6 var(--main-window-reference-height),
      transparent calc(var(--main-window-reference-height) + 1px)
    ),
    radial-gradient(circle at 8% 12%, rgba(239, 117, 0, .13), transparent 25%)
      0 0 / 100% var(--main-window-reference-height) no-repeat,
    linear-gradient(135deg, #e7eef3 0%, #f8fafb 56%, #edf3f6 100%)
      0 0 / 100% var(--main-window-reference-height) no-repeat,
    linear-gradient(
      180deg,
      #edf3f6 0,
      #edf3f6 var(--main-window-reference-height),
      #f7f9fa calc(var(--main-window-reference-height) + 720px),
      #fbfcfd 58%,
      #f6f9fa 100%
    );
}

/* Kein zweiter Orange-Schimmer ueber dem exakt angeglichenen oberen Feld. */
.homepage-main-window::before {
  content: none;
}

/* Google darf den übersetzten Fließtext nicht mit berechneten Höhen strecken. */
html.translated-ltr body .homepage-main-window,
html.translated-rtl body .homepage-main-window,
html.renner-translation-active body .homepage-main-window,
html.translated-ltr body .homepage-main-window #LayoutDiv12,
html.translated-rtl body .homepage-main-window #LayoutDiv12,
html.renner-translation-active body .homepage-main-window #LayoutDiv12,
html.translated-ltr body .homepage-main-window #LayoutDiv12 > div,
html.translated-rtl body .homepage-main-window #LayoutDiv12 > div,
html.renner-translation-active body .homepage-main-window #LayoutDiv12 > div,
html.translated-ltr body .homepage-main-window p,
html.translated-rtl body .homepage-main-window p,
html.renner-translation-active body .homepage-main-window p,
html.translated-ltr body .homepage-main-window span,
html.translated-rtl body .homepage-main-window span,
html.renner-translation-active body .homepage-main-window span,
html.translated-ltr body .homepage-main-window font,
html.translated-rtl body .homepage-main-window font,
html.renner-translation-active body .homepage-main-window font {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Die Höhenbereinigung für übersetzte Texte darf die runden Rubrik-Icons
   nicht zusammendrücken. Breite und Höhe bleiben auf jedem Gerät identisch. */
.homepage-main-window .legacy-section-heading > .legacy-section-icon {
  flex: 0 0 58px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: center;
  box-sizing: border-box;
  border-radius: 50% !important;
  line-height: 0;
}

@media (max-width: 720px) {
  .homepage-main-window .legacy-section-heading > .legacy-section-icon {
    flex-basis: 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
}

/* Von Google geleerte historische Zeilenhalter duerfen keinen Raum belegen. */
html.renner-translation-active .homepage-main-window .translation-empty-placeholder,
html.renner-translation-active .homepage-main-window .translation-empty-break,
html.translated-ltr .homepage-main-window .translation-empty-placeholder,
html.translated-ltr .homepage-main-window .translation-empty-break,
html.translated-rtl .homepage-main-window .translation-empty-placeholder,
html.translated-rtl .homepage-main-window .translation-empty-break {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.site-header:not(.is-compact-nav) .main-nav a { white-space: nowrap; }

/* Bei übersetzungsbedingt längerer Navigation wird sofort das kompakte Menü aktiv. */
.site-header.is-compact-nav .menu-toggle {
  display: block;
  flex: 0 0 46px;
}

.site-header.is-compact-nav .main-nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 16px 24px 24px;
  background: #fff;
  border-top: 1px solid rgba(2, 44, 66, .12);
  box-shadow: var(--shadow);
}

.site-header.is-compact-nav .main-nav.is-open { display: flex; }
.site-header.is-compact-nav .main-nav a {
  padding: 14px 3px;
  border-bottom: 1px solid rgba(2, 44, 66, .12);
  white-space: normal;
}
