/* Shared section width and rhythm: change these values once, not on every Elementor page.
   Defaults live at the document root so standalone Theme Builder previews inherit them too.
   The profiles preserve the accepted layouts. Native Padding overrides still win. */
:root {
  --ae-section-padding-y: clamp(64px, 7.2vw, 108px);
  --ae-section-padding-x: clamp(22px, 4vw, 64px);
  --ae-section-mobile-padding-x: 22px;
  --ae-section-home-padding-y: 92px;
  --ae-section-home-padding-x: 56px;
  --ae-section-intro-padding-top: 85px;
  --ae-section-intro-padding-bottom: 60px;
  --ae-section-facts-padding-bottom: 56px;
  --ae-section-detail-padding-top: 25px;
  --ae-section-stance-padding-y: 82px;
  --ae-section-events-padding-top: 20px;
  --ae-section-events-padding-bottom: 80px;
  --ae-section-compact-padding-y: 75px;
  --ae-section-contact-padding-y: 75px;
}

.ae-native-section {
  --ae-section-content-width: 1280px;
  --content-width: var(--ae-section-content-width);
  --padding-top: var(--ae-section-padding-y);
  --padding-right: var(--ae-section-padding-x);
  --padding-bottom: var(--ae-section-padding-y);
  --padding-left: var(--ae-section-padding-x);
}

.ae-native-section.ae-section-home {
  --padding-top: var(--ae-section-home-padding-y);
  --padding-right: var(--ae-section-home-padding-x);
  --padding-bottom: var(--ae-section-home-padding-y);
  --padding-left: var(--ae-section-home-padding-x);
}
.ae-native-section.ae-section-intro {
  --padding-top: var(--ae-section-intro-padding-top);
  --padding-bottom: var(--ae-section-intro-padding-bottom);
}
.ae-native-section.ae-section-facts {
  --padding-top: 0px;
  --padding-bottom: var(--ae-section-facts-padding-bottom);
}
.ae-native-section.ae-section-detail { --padding-top: var(--ae-section-detail-padding-top); }
.ae-native-section.ae-section-flush-y { --padding-top: 0px; --padding-bottom: 0px; }
.ae-native-section.ae-section-stance {
  --padding-top: var(--ae-section-stance-padding-y);
  --padding-bottom: var(--ae-section-stance-padding-y);
}
.ae-native-section.ae-section-events {
  --padding-top: var(--ae-section-events-padding-top);
  --padding-bottom: var(--ae-section-events-padding-bottom);
}
.ae-native-section.ae-section-compact {
  --padding-top: var(--ae-section-compact-padding-y);
  --padding-bottom: var(--ae-section-compact-padding-y);
}
.ae-native-section.ae-section-contact {
  --padding-top: var(--ae-section-contact-padding-y);
  --padding-bottom: var(--ae-section-contact-padding-y);
}

@media (max-width: 1024px) {
  :root {
    --ae-section-home-padding-x: 36px;
    --ae-section-events-padding-bottom: 20px;
  }
}
@media (max-width: 767px) {
  :root {
    --ae-section-home-padding-y: 55px;
    --ae-section-home-padding-x: 20px;
    --ae-section-intro-padding-top: 55px;
    --ae-section-intro-padding-bottom: 45px;
    --ae-section-stance-padding-y: 50px;
    --ae-section-events-padding-top: 10px;
    --ae-section-events-padding-bottom: 50px;
    --ae-section-compact-padding-y: 45px;
    --ae-section-contact-padding-y: 50px;
  }
  .ae-native-section.ae-section-mobile-gutter {
    --padding-right: var(--ae-section-mobile-padding-x);
    --padding-left: var(--ae-section-mobile-padding-x);
  }
}

/* Existing text arrows are SVGs from the render hook, sized as a text character.
   Native Icon/Button widgets use Elementor's icon controls instead. */
.ae-native-section .ae-arrow {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  flex: 0 0 auto;
}

/* Elementor Text Editor has no controls for the inner WYSIWYG list indentation
   or item spacing. The content and all typography remain in ACF/Elementor. */
.ae-native-section .elementor-widget-text-editor ul { margin: 0; padding-left: 24px; }
.ae-native-section .elementor-widget-text-editor li + li { margin-top: 13px; }

/* Native text widgets have no control for wrapping a long application URL. */
.ae-native-section.ae-career-detail .elementor-widget-text-editor a { overflow-wrap:anywhere; }

/* Central profiles for existing approved native spacing variants. */
:root{--ae-spacing-hero-wide-padding-top:0px;--ae-spacing-hero-wide-padding-right:0px;--ae-spacing-hero-wide-padding-bottom:0px;--ae-spacing-hero-wide-padding-left:0px;--ae-spacing-hero-wide-width:1440px;}
.ae-native-section.ae-spacing-hero-wide{--padding-top:var(--ae-spacing-hero-wide-padding-top);--padding-right:var(--ae-spacing-hero-wide-padding-right);--padding-bottom:var(--ae-spacing-hero-wide-padding-bottom);--padding-left:var(--ae-spacing-hero-wide-padding-left);--content-width:var(--ae-spacing-hero-wide-width);}
:root{--ae-spacing-subject-first-padding-top:25px;--ae-spacing-subject-first-padding-right:24px;--ae-spacing-subject-first-padding-bottom:25px;--ae-spacing-subject-first-padding-left:24px;--ae-spacing-subject-first-padding-top-mobile:22px;--ae-spacing-subject-first-padding-right-mobile:22px;--ae-spacing-subject-first-padding-bottom-mobile:22px;--ae-spacing-subject-first-padding-left-mobile:22px;}
.ae-native-section.ae-spacing-subject-first{--padding-top:var(--ae-spacing-subject-first-padding-top);--padding-right:var(--ae-spacing-subject-first-padding-right);--padding-bottom:var(--ae-spacing-subject-first-padding-bottom);--padding-left:var(--ae-spacing-subject-first-padding-left);}
@media(max-width:767px){.ae-native-section.ae-spacing-subject-first{--padding-top:var(--ae-spacing-subject-first-padding-top-mobile);--padding-right:var(--ae-spacing-subject-first-padding-right-mobile);--padding-bottom:var(--ae-spacing-subject-first-padding-bottom-mobile);--padding-left:var(--ae-spacing-subject-first-padding-left-mobile);}}
:root{--ae-spacing-bleed-padding-top:0px;--ae-spacing-bleed-padding-right:0px;--ae-spacing-bleed-padding-bottom:0px;--ae-spacing-bleed-padding-left:0px;}
.ae-native-section.ae-spacing-bleed{--padding-top:var(--ae-spacing-bleed-padding-top);--padding-right:var(--ae-spacing-bleed-padding-right);--padding-bottom:var(--ae-spacing-bleed-padding-bottom);--padding-left:var(--ae-spacing-bleed-padding-left);}
:root{--ae-spacing-header-padding-top:20px;--ae-spacing-header-padding-right:46px;--ae-spacing-header-padding-bottom:20px;--ae-spacing-header-padding-left:46px;--ae-spacing-header-width:1440px;--ae-spacing-header-padding-top-tablet:12px;--ae-spacing-header-padding-right-tablet:32px;--ae-spacing-header-padding-bottom-tablet:12px;--ae-spacing-header-padding-left-tablet:32px;--ae-spacing-header-padding-top-mobile:11px;--ae-spacing-header-padding-right-mobile:20px;--ae-spacing-header-padding-bottom-mobile:11px;--ae-spacing-header-padding-left-mobile:20px;}
.ae-native-site.ae-spacing-header{--padding-top:var(--ae-spacing-header-padding-top);--padding-right:var(--ae-spacing-header-padding-right);--padding-bottom:var(--ae-spacing-header-padding-bottom);--padding-left:var(--ae-spacing-header-padding-left);--content-width:var(--ae-spacing-header-width);}
@media(max-width:1024px){.ae-native-site.ae-spacing-header{--padding-top:var(--ae-spacing-header-padding-top-tablet);--padding-right:var(--ae-spacing-header-padding-right-tablet);--padding-bottom:var(--ae-spacing-header-padding-bottom-tablet);--padding-left:var(--ae-spacing-header-padding-left-tablet);}}
@media(max-width:767px){.ae-native-site.ae-spacing-header{--padding-top:var(--ae-spacing-header-padding-top-mobile);--padding-right:var(--ae-spacing-header-padding-right-mobile);--padding-bottom:var(--ae-spacing-header-padding-bottom-mobile);--padding-left:var(--ae-spacing-header-padding-left-mobile);}}
:root{--ae-spacing-footer-padding-top:40px;--ae-spacing-footer-padding-right:56px;--ae-spacing-footer-padding-bottom:40px;--ae-spacing-footer-padding-left:56px;--ae-spacing-footer-width:1280px;--ae-spacing-footer-padding-top-mobile:var(--ae-section-padding-y);--ae-spacing-footer-padding-right-mobile:20px;--ae-spacing-footer-padding-bottom-mobile:var(--ae-section-padding-y);--ae-spacing-footer-padding-left-mobile:20px;}
.ae-native-site.ae-spacing-footer{--padding-top:var(--ae-spacing-footer-padding-top);--padding-right:var(--ae-spacing-footer-padding-right);--padding-bottom:var(--ae-spacing-footer-padding-bottom);--padding-left:var(--ae-spacing-footer-padding-left);--content-width:var(--ae-spacing-footer-width);}
@media(max-width:767px){.ae-native-site.ae-spacing-footer{--padding-top:var(--ae-spacing-footer-padding-top-mobile);--padding-right:var(--ae-spacing-footer-padding-right-mobile);--padding-bottom:var(--ae-spacing-footer-padding-bottom-mobile);--padding-left:var(--ae-spacing-footer-padding-left-mobile);}}
/* The link padding already separates the rows inside the stretched grid cell. */
.ae-native-site.ae-spacing-footer .elementor-element-000000e {
  align-content: flex-start;
  row-gap: 0;
}
:root{--ae-spacing-subject-mobile-padding-top-mobile:22px;--ae-spacing-subject-mobile-padding-right-mobile:22px;--ae-spacing-subject-mobile-padding-bottom-mobile:22px;--ae-spacing-subject-mobile-padding-left-mobile:22px;}
@media(max-width:767px){.ae-native-section.ae-spacing-subject-mobile{--padding-top:var(--ae-spacing-subject-mobile-padding-top-mobile);--padding-right:var(--ae-spacing-subject-mobile-padding-right-mobile);--padding-bottom:var(--ae-spacing-subject-mobile-padding-bottom-mobile);--padding-left:var(--ae-spacing-subject-mobile-padding-left-mobile);}}

/* Single-side adjustments follow the shared profiles. */
.ae-native-section.ae-section-flush-top { --padding-top: 0px; }
.ae-native-section.ae-section-flush-bottom { --padding-bottom: 0px; }

/* AI disclosure is attached to the rendered image, including carousel slides. */
.ae-native-section .ae-list-photo[data-ae-ai-image] { position: relative; }
.ae-native-section [data-ae-ai-image] + .elementor-widget-text-editor[data-ae-ai-caption] { display: none; }
.ae-native-section [data-ae-ai-image]::after {
  --ae-ai-label-text: "KI-generiertes Bild";
  content: "✦  " var(--ae-ai-label-text);
  position: absolute;
  inset-inline-end: 12px;
  inset-block-end: 12px;
  z-index: 3;
  color: var(--e-global-color-ae-white, #fff);
  font-family: var(--e-global-typography-ae-text-body-font-family), sans-serif;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgb(0 0 0 / .85), 0 0 4px rgb(0 0 0 / .55);
  white-space: nowrap;
  pointer-events: none;
}
.ae-native-section [data-ae-ai-image]:lang(fr)::after { --ae-ai-label-text: "Image générée par IA"; }
.ae-native-section [data-ae-ai-image]:lang(en)::after { --ae-ai-label-text: "AI-generated image"; }
.ae-hero-slider .swiper-slide[data-ae-ai-image]::after { inset-block: 10px auto; }

/* The inset photo covers the lower-right corner of the main photo. */
.ae-native-section#haltung .elementor-element-b000042 > [data-ae-ai-image]::after {
  inset-block: 12px auto;
}

/* Keep the longer login label on one line at the lower desktop breakpoint. */
.ae-header .elementor-widget-button .elementor-button-text { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1199px) {
  .ae-native-site.ae-spacing-header {
    --ae-spacing-header-padding-left: clamp(24px, calc(24px + (100vw - 1025px) * .125), 46px);
    --ae-spacing-header-padding-right: var(--ae-spacing-header-padding-left);
  }
}

/* The full-screen search skin has no width, alignment or submit button controls. */
.ae-header .elementor-search-form--skin-full_screen .elementor-search-form__container {
  --ae-search-width: min(34rem, calc(100% - 2.5rem));
  --ae-search-height: 60px;
  justify-content: center;
  padding-inline: 0;
}
.ae-header .elementor-search-form--skin-full_screen .elementor-search-form input[type="search"].elementor-search-form__input {
  box-sizing: border-box;
  flex: 0 1 var(--ae-search-width);
  width: var(--ae-search-width);
  min-width: 0;
  height: var(--ae-search-height);
  padding-inline: 22px 64px;
  background-color: var(--e-global-color-ae-white);
  text-align: start;
}
.ae-header .elementor-search-form--skin-full_screen .elementor-search-form__input::placeholder { opacity: .76; }
.ae-header .elementor-search-form__container .ae-search-submit { display: none; }
.ae-header .elementor-search-form--full-screen .ae-search-submit {
  display: grid;
  place-items: center;
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: calc((100% - var(--ae-search-width)) / 2 + 8px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--e-global-color-ae-blue);
  color: var(--e-global-color-ae-white);
}
.ae-header .elementor-search-form--full-screen .ae-search-submit:is(:hover, :focus-visible) {
  background-color: var(--e-global-color-ae-ink);
}
.ae-header .ae-search-submit svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

@media (max-width: 767px) {
  .ae-header .elementor-search-form--skin-full_screen .elementor-search-form__container {
    --ae-search-top: max(clamp(4rem, 10svh, 6rem), env(safe-area-inset-top) + 1.5rem);
    align-items: flex-start;
    padding-block-start: var(--ae-search-top);
  }
  .ae-header .elementor-search-form--full-screen .ae-search-submit {
    inset-block-start: calc(var(--ae-search-top) + var(--ae-search-height) / 2);
  }
}

/* Section links must clear the sticky header when scrolling into view. */
.ae-native-section:is(#google-bewertungen, #academia-laedt-ein, #infoanlaesse) {
  scroll-margin-top: 8rem;
}

/* Native Swiper has no external navigation slot or per-card star display. */
.ae-native-section#google-bewertungen .ae-review-tools,
.ae-native-section#google-bewertungen .ae-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}
.ae-native-section#google-bewertungen .ae-review-tools p,
.ae-native-section#google-bewertungen .ae-review-footer p {
  margin: 0;
}
.ae-native-section#google-bewertungen .ae-review-stars {
  position: relative;
  display: inline-block;
  color: var(--e-global-color-ae-c17264126);
  white-space: nowrap;
  letter-spacing: .12em;
  font-size: 1.2em;
}
.ae-native-section#google-bewertungen .ae-review-stars > span {
  position: absolute;
  inset: 0;
  color: var(--e-global-color-ae-blue);
}
.ae-native-section#google-bewertungen .ae-review-summary > .ae-review-stars {
  margin-inline-end: .65em;
}
.ae-native-section#google-bewertungen .elementor-testimonial {
  display: flex;
  flex-direction: column;
}
.ae-native-section#google-bewertungen .elementor-testimonial__footer {
  order: -1;
  margin: 0 0 .5em;
}
.ae-native-section#google-bewertungen .elementor-testimonial__text {
  font-style: normal;
}
.ae-native-section#google-bewertungen .ae-review-copy details {
  margin-block-start: .35em;
}
.ae-native-section#google-bewertungen .ae-review-copy summary {
  color: var(--e-global-color-ae-blue);
  cursor: pointer;
}
.ae-native-section#google-bewertungen .ae-review-copy details p {
  margin-block: .4em 0;
}
.ae-native-section#google-bewertungen .ae-review-nav {
  display: flex;
  margin-inline-start: auto;
  gap: 8px;
}
.ae-native-section#google-bewertungen .ae-review-nav .elementor-swiper-button {
  position: static;
  transform: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--e-global-color-ae-blue);
  border: 1px solid currentColor;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ae-native-section#google-bewertungen .ae-review-nav .swiper-button-disabled {
  color: var(--e-global-color-ae-ink);
  opacity: .55;
  cursor: default;
}
.ae-native-section#google-bewertungen .ae-review-nav .swiper-button-lock {
  display: none;
}
.ae-native-section#google-bewertungen[data-ae-review-ready] .elementor-main-swiper {
  width: 100%;
}
