/* Jump & Fly – Wolken-Video (fixed, unter Slider/Nav/Inhalt) */

/*
 * iPhone-Lücken: html bleibt Markenblau (kein weißer Streifen beim Overscroll).
 * Body bewusst transparent — sonst deckt background-color das fixed Video zu
 * (z-index:-1 lag hinter dem Body-Blau; auch z-index:0 bleibt riskant mit opaker Fläche).
 */
html {
    background-color: #0d587f;
    height: -webkit-fill-available;
}

body.jf-body {
    background-color: transparent;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    --jf-blue-surface-gradient: linear-gradient(
        to right,
        rgba(13, 88, 127, 0) 0%,
        rgba(13, 88, 127, 0.7) 18%,
        rgba(13, 88, 127, 0.7) 82%,
        rgba(13, 88, 127, 0) 100%
    );
}

/* Desktop: bewährtes Cover (nicht anfassen — Mobile siehe Media Query + JS) */
.jf-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.jf-bg-video__media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100.5%;
    min-height: 100.5%;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
}

/*
 * Nur Handy / Safari Portrait: -webkit-fill-available und reine vh/dvh reichen nicht
 * (Chrome/Firefox ok). Kette html→body→Video auf 100% / --jf-vvh; JS setzt px-Höhe
 * primär auf html, body und .jf-bg-video (visualViewport + innerHeight).
 */
@media (max-width: 1024px) {
    html {
        height: var(--jf-vvh, 100%);
        min-height: var(--jf-vvh, 100%);
        /* Safari: globales height:-webkit-fill-available hier bewusst überschreiben */
    }

    body.jf-body {
        height: 100%;
        min-height: var(--jf-vvh, 100%);
        /* kein -webkit-fill-available — verzerrt die Kette in Safari Portrait */
    }

    .jf-bg-video {
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 100%;
        height: var(--jf-vvh, 100%);
        min-height: 100%;
        min-height: var(--jf-vvh, 100%);
    }

    .jf-bg-video__media {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        transform: none;
        object-fit: cover;
    }

    .jf-footer .ibl-footer__bottom {
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Decoder für rVFC-Slow-Motion (sichtbar bleibt das Canvas mit .jf-bg-video__media) */
.jf-bg-video__decoder {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: 0;
    top: 0;
}

.jf-main {
    position: relative;
    z-index: 1;
}

.jf-body .ibl-main {
    padding-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

/* colPos 0 (Hauptinhalt): 1200px zentriert */
.jf-body .jf-stage {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.jf-body .ibl-content:not(.jf-content-main) > .ibl-content__inner {
    max-width: 1400px;
}

.jf-stage > .frame {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.jf-site-logo__link {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.jf-site-logo__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Logo in der Nav-Leiste (Desktop + Mobile) */
.jf-site-logo--bar {
    display: block;
    flex: 0 0 auto;
    margin-right: auto;
}

.jf-site-logo--bar .jf-site-logo__img {
    width: clamp(6.5rem, 36vw, 8.5rem);
    filter: none;
}

@media (min-width: 992px) {
    .jf-site-logo--bar .jf-site-logo__img {
        width: clamp(10.5rem, 16vw, 14rem);
    }
}

@media (max-width: 991px) {
    .jf-nav-below-slider .ibl-header__inner {
        justify-content: space-between;
        gap: 0.75rem;
    }
}

/*
 * Layer-Slider (Start): an .frame-hero-box (Unterseiten) angleichen.
 * Unterschied war: Slider overflow:visible + Desktop 70vh — Hero-Box
 * overflow:hidden + 50vh. Ab der Breite, wo 21:9 > max-height greift,
 * wirkte die Nav auf der Startseite „über“ dem Hero; Unterseiten nicht.
 */
.jf-stage .ids-layer-slider,
.jf-body .jf-content-main .ids-layer-slider {
    margin: 0;
    border-radius: 0;
    max-height: 50vh;
    overflow: hidden;
}

.jf-body .jf-content-main .ids-layer-slider__viewport {
    border-radius: 0;
}

.jf-stage .frame {
    overflow: visible;
}

.jf-nav-below-slider .ibl-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Unter dem Hero/Slider; kein fixed + Scroll-Hide (siehe navigation.js) */
.ibl-header.jf-nav-below-slider {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 100;
    pointer-events: auto;
}

/*
 * Desktop: sticky/fixed würde über den Hero gleiten — wie auf Unterseiten
 * relative im Fluss unter content-main. Mobil: sticky unverändert.
 */
@media (min-width: 992px) {
    .ibl-header.jf-nav-below-slider {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
}

.jf-nav-below-slider.is-header-hidden .ibl-header__bar {
    transform: none;
    pointer-events: auto;
}

.jf-nav-below-slider {
    margin-top: 0;
    box-shadow: none;
}

.jf-nav-below-slider .ibl-header__bar {
    background: var(--jf-blue-surface-gradient);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

/* colPos 1 (Hero): volle Breite wie früher .jf-stage — Text auf Wolken-Video */
.jf-body .jf-content-main {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 0;
    background: transparent;
}

.jf-body .jf-content-main .ibl-content__inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: none;
    margin: 0;
    padding-block: 0;
    padding-inline: 0;
    background: transparent;
}

.jf-body .jf-content-main .frame,
.jf-body .jf-stage .frame {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 1.35rem;
    line-height: 1.55;
    color: #fff;
}

/* FSC space before/after: über margin:0 an .frame (Hero ausgenommen) */
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-before-extra-small {
    margin-top: 1rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-before-small {
    margin-top: 1.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-before-medium {
    margin-top: 2.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-before-large {
    margin-top: 3.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-before-extra-large {
    margin-top: 5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-after-extra-small {
    margin-bottom: 1rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-after-small {
    margin-bottom: 1.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-after-medium {
    margin-bottom: 2.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-after-large {
    margin-bottom: 3.5rem;
}
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box).frame-space-after-extra-large {
    margin-bottom: 5rem;
}

/* H1-Größe: ids_basic_layout/content.css (--ibl-h1-size-*) */

/* colPos 0: Seitenüberschrift (CE-Header h1, z. B. Startseite c7) — volle Spaltenbreite */
.jf-body .jf-stage .frame > header:has(h1) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    text-align: center;
}

.jf-body .jf-stage .frame > header h1 {
    margin: 0 0 clamp(2rem, 5vw, 3.5rem);
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* H2 über Fließtext (.frame 1.35rem): min. 1.65rem, Desktop max 3.125rem = 50px */
.jf-body :is(.jf-content-main, .jf-stage) .frame h2 {
    font-size: clamp(1.65rem, calc(3.25vw + 0.5rem), 3.125rem);
    line-height: 1.15;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame h3 {
    font-size: 1.85rem;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame h4 {
    font-size: 1.65rem;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame h5 {
    font-size: 1.4rem;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame h6 {
    font-size: 1.3rem;
}

/* Stroke nur Überschriften — Fließtext ohne Stroke (Android: Kontur frisst weiße Schrift) */
.jf-body :is(.jf-content-main, .jf-stage) .frame :is(h1, h2, h3, h4, h5, h6) {
    color: #fff;
    -webkit-text-stroke: 2px #0d587f;
    text-stroke: 2px #0d587f;
    paint-order: stroke fill;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.jf-body :is(.jf-content-main, .jf-stage) .frame :is(p, li, td, th, figcaption) {
    color: #fff;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.jf-body :is(.jf-content-main, .jf-stage) .frame figcaption,
.jf-body :is(.jf-content-main, .jf-stage) .frame .image-caption {
    font-size: 1rem;
    text-align: center;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame a:not(.ibl-nav-desktop__link) {
    color: #fff;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    text-decoration: none;
    background-image: linear-gradient(#fff, #fff);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 0 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition:
        color 0.2s ease,
        background-size 0.35s var(--ibl-ease, cubic-bezier(0.16, 1, 0.3, 1));
}

.jf-body :is(.jf-content-main, .jf-stage) .frame a:not(.ibl-nav-desktop__link):hover,
.jf-body :is(.jf-content-main, .jf-stage) .frame a:not(.ibl-nav-desktop__link):focus-visible {
    color: rgba(255, 255, 255, 0.92);
    background-size: 100% 2px;
}

/*
 * Galerie: Backend data-ce-columns steuert alles.
 * Flex-Zeile teilt Spalten gleich (flex 1 1 0), Bilder immer 100 % der Spalte — keine Bildgrößen-Logik.
 */
.jf-body :is(.jf-content-main, .jf-stage) .ce-intext::after {
    content: "";
    display: table;
    clear: both;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) :is(.ce-textpic, .ce-image) {
    overflow: visible;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) .ce-gallery,
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) .ce-row {
    overflow: visible;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-row,
.jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 12px;
}

/* Gleiche Spaltenbreite: flex 0 1 auto + img width 100% → zyklische Breite, Kacheln kollabieren zu Kreisen */
.jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-column,
.jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-column[style*="width"],
.jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-column,
.jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-column[style*="width"] {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-column figure.image {
    display: block;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-column figure.image .ibl-image-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-column figure.image :is(a, .jnlightbox) {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-column figure.image :is(img.image-embed-item, .image-embed-item) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.jf-body :is(.jf-content-main, .jf-stage) .ce-column figure.image :is(figcaption, .image-caption) {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.4rem;
}

@media (min-width: 769px) {
    /* Feste Galeriebreite — nicht fit-content (das hing an Bildpixeln) */
    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext:not(.ce-nowrap) .ce-gallery,
    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext:not(.ce-nowrap) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) {
        width: 50% !important;
        max-width: 50% !important;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext.ce-right:not(.ce-nowrap) .ce-gallery {
        float: right;
        margin: 0 0 1rem 2rem;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext.ce-left:not(.ce-nowrap) .ce-gallery {
        float: left;
        margin: 0 2rem 1rem 0;
    }
}

/* ≤768: Galerie einspaltig, volle Breite + seitliches Padding (kein klemmiger Rand) */
@media (max-width: 768px) {
    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext.ce-right .ce-gallery,
    .jf-body :is(.jf-content-main, .jf-stage) .ce-intext.ce-left .ce-gallery,
    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]),
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-gallery {
        float: none !important;
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1rem;
        padding-inline: clamp(0.75rem, 4vw, 1.25rem);
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-row,
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-column,
    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-column[style*="width"],
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-column,
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-column[style*="width"] {
        flex: 0 0 auto;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ce-column figure.image,
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ce-column figure.image {
        width: 100%;
        max-width: 100%;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) .ibl-image-frame,
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 .ibl-image-frame {
        width: 100%;
        max-width: 100%;
    }

    .jf-body :is(.jf-content-main, .jf-stage) .ce-gallery[data-ce-columns]:not([data-ce-columns="1"]) :is(img.image-embed-item, .image-embed-item),
    .jf-body :is(.jf-content-main, .jf-stage) .frame-layout-2 :is(img.image-embed-item, .image-embed-item) {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Jump & Fly Farben — Bild füllt den Frame und clippt in der Rundung (auch ≤768px) */
.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) .ibl-image-frame {
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    background-color: #0d587f;
    border: 2px solid #0d587f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) .ibl-image-frame :is(a, .jnlightbox) {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
    overflow: hidden;
    border-radius: inherit;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame:not(.frame-hero-box) .ibl-image-frame :is(img.image-embed-item, .image-embed-item) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    vertical-align: top;
    border-radius: inherit;
    box-shadow: none;
    object-fit: cover;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame .ce-intext .ce-gallery :is(figcaption, .image-caption) {
    text-align: left;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame video.video-embed-item {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    box-shadow: 0 0 0 2px #0d587f, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.jf-nav-below-slider__bar {
    width: 100%;
    max-width: none;
    margin: 0;
}

.jf-nav-below-slider .ibl-header__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.jf-nav-below-slider .ibl-nav-desktop__link,
.jf-nav-below-slider .ibl-nav-desktop__toggle {
    color: #fff;
    font-size: 1.125rem; /* was 1rem / 16px → 18px */
}

.jf-nav-below-slider .ibl-nav-mobile__link,
.jf-nav-below-slider .ibl-nav-mobile__open {
    font-size: 1.35rem; /* was 1.25rem / 20px → 21.6px */
}

.jf-nav-below-slider .ibl-nav-desktop__item {
    background-image: linear-gradient(#fff, #fff);
}

.jf-nav-below-slider .ibl-nav-desktop__link:hover,
.jf-nav-below-slider .ibl-nav-desktop__toggle:hover,
.jf-nav-below-slider .ibl-nav-desktop__item:hover > .ibl-nav-desktop__link,
.jf-nav-below-slider .ibl-nav-desktop__item:hover > .ibl-nav-desktop__toggle,
.jf-nav-below-slider .ibl-nav-desktop__item.is-active > .ibl-nav-desktop__link,
.jf-nav-below-slider .ibl-nav-desktop__item.is-open > .ibl-nav-desktop__link {
    color: rgba(255, 255, 255, 0.92);
}

/* Aktuelle Seite Desktop: helles Blau auf blauer Leiste */
.jf-nav-below-slider .ibl-nav-desktop__item.is-current > .ibl-nav-desktop__link,
.jf-nav-below-slider .ibl-nav-desktop__link.is-current {
    color: #b8e8ff;
}

/* Aktuelle Seite Mobil: kräftiges Dunkelblau auf weißem Drawer (nicht #b8e8ff) */
.jf-nav-below-slider .ibl-nav-mobile__link.is-current {
    color: #0d587f;
}

.jf-nav-below-slider .ibl-nav-mobile__toggle-line {
    background: #fff;
}

.jf-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.jf-footer .ibl-footer__contact {
    text-align: left;
}

@media (min-width: 768px) {
    .jf-footer .ibl-footer__contact {
        text-align: left;
    }

    .jf-footer .ibl-footer__contact .ce-bodytext table,
    .jf-footer .ibl-footer__contact table,
    .jf-footer .ibl-footer__contact figure.table {
        margin-left: 0;
    }
}

/* Original-Layout: Kontakt links, Footer-Menü rechts */
.jf-footer__grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .jf-footer__grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 2rem 3rem;
    }

    .jf-footer .ibl-footer__nav {
        text-align: right;
        justify-self: end;
    }

    .jf-footer .ibl-footer__menu {
        justify-content: flex-end;
    }
}

.jf-footer__text {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

/* Hero-Box (CE 21–23 u. a.): schmales Band, kein Abstand nach unten, Cover trotz Jump-Fly-Bildregeln */
.jf-body .jf-content-main .ibl-content__inner {
    gap: 0;
}

.jf-body .jf-content-main .frame-hero-box {
    margin: 0;
    width: 100%;
    max-width: none;
}

/* Hero-Spalte: Text & Bild wie Layer-Slider — Vollbreite, 450px, ohne Karten-Look */
.jf-body .jf-content-main .frame-hero-box.frame-type-textpic .ce-textpic,
.jf-body .jf-content-main .frame-hero-box.frame-type-textmedia .ce-textpic {
    margin: 0;
}

.jf-body .jf-content-main .frame-hero-box :is(.ce-gallery a, .jnlightbox) {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box .ibl-image-frame {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.jf-body .jf-content-main .frame-hero-box figcaption,
.jf-body .jf-content-main .frame-hero-box .ce-bodytext {
    display: none;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box :is(.ce-gallery, .ce-textpic, .ce-image, .ce-row) {
    overflow: hidden;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box.ce-above .ce-gallery,
.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box .ce-gallery {
    margin: 0;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box .ce-textpic {
    position: relative;
    height: 100%;
}

.jf-body :is(.jf-content-main, .jf-stage) .frame-hero-box :is(.ce-gallery img.image-embed-item, .ce-textpic img.image-embed-item, figure.image img.image-embed-item) {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    box-shadow: none;
}

/* Hero-Box in .jf-stage: Vollbreite-Cover auch auf Mobile */
@media (max-width: 768px) {
    .jf-body .jf-stage .frame-hero-box .ce-column,
    .jf-body .jf-stage .frame-hero-box .ce-column[style*="width"] {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .jf-body .jf-stage .frame-hero-box .ce-gallery img,
    .jf-body .jf-stage .frame-hero-box .image-embed-item {
        max-width: none !important;
        width: 100% !important;
        margin-inline: 0;
    }
}
