/* ==========================================
   BILD UND CONTAINER
   ========================================== */

#containercolumn-184320,
#containercolumn-139775 {
    padding: 0 !important;
}

#elementbox-344167 .fg-text-widget-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

#elementbox-344167 .fg-text-widget-wrapper > p {
    grid-area: 1 / 1;
    margin: 0;
    padding: 0;
    line-height: 0;
}

#elementbox-344167 .fg-text-widget-wrapper > p > img {
    display: block;
    width: 100%;
    height: auto;
}

#elementbox-344167 .fg-text-widget-wrapper > p > br {
    display: none;
}

/* ==========================================
   ÜBERSCHRIFT: STICKY INNERHALB DES BILDES
   ========================================== */

#elementbox-344167 h3 {
    grid-area: 1 / 1;
    
    position: sticky;
    top: 90vh;
    align-self: start;

    z-index: 2;
    width: 100%;

    margin: 0;
    margin-bottom: 15px;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;

    animation: titleFadeIn 0.6s ease-out both;
}



/* ==========================================
   TEXTBOX UND SCHRIFT
   ========================================== */

#elementbox-344167 h3 > span > span {
    display: inline-block;
    max-width: 100%;

    background-color: rgba(20, 30, 40, 0.85) !important;
    color: #fff !important;

    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.15px;

    padding: 10px 20px;
    box-sizing: border-box;
}


/* ==========================================
   ANIMATION
   ========================================== */

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   MOBILGERÄTE
   ========================================== */

@media (max-width: 767px) {
    #elementbox-344167 h3 {
        top: 35vh;
        font-size: 18px;
    }

    #elementbox-344167 h3 > span > span {
        padding: 8px 12px;
    }
}


/* ==========================================
   BARRIEREFREIHEIT
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    #elementbox-344167 h3 {
        animation: none;
    }
}



/* Personenbild: feste Position, vollständige Bildhöhe */
body .fg-columnbox.fg-Mitglieder-2026-5438 {
    min-height: 100vh !important;
    background-attachment: fixed !important;
    background-size: auto 100vh !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* quick and dirty */
body .fg-marg-top-30 {
    margin-top: 0px !important;
}





/* ==========================================
   KSGR – CINEMATIC TITLE REVEAL
   ========================================== */

/* Sticky-Positionierung bleibt erhalten */
#elementbox-344167 h3 {
    animation: none;
}

/* Container für die Hintergrundfläche */
#elementbox-344167 h3 > span {
    display: inline-block;
    position: relative;
    max-width: 100%;
    isolation: isolate;
}

/* Hintergrund erscheint zuerst */
#elementbox-344167 h3 > span::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: rgba(20, 30, 40, 0.85);

    animation: ksgrPanelIn 0.9s
        cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Schrift erscheint leicht verzögert */
#elementbox-344167 h3 > span > span {
    background-color: transparent !important;

    animation: ksgrTextIn 1.1s
        cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Hintergrund: sanftes Aufbauen */
@keyframes ksgrPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scaleX(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleX(1);
    }
}

/* Schrift: sanftes Auftauchen */
@keyframes ksgrTextIn {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    #elementbox-344167 h3 > span::before,
    #elementbox-344167 h3 > span > span {
        animation: none;
    }
}

/* Button → back to top */

/* Back-to-Top – Original-Icon hervorheben */

.fg-web-go-top.show {
    opacity: 1 !important;
}

.fg-web-go-top .fa-arrow-circle-up {
    color: #78819e !important;



    transition:
        color .2s ease,
        filter .2s ease;
}

/* Dezenter Hover */
.fg-web-go-top:hover .fa-arrow-circle-up {
    color: #535d7d !important;

    filter:
        drop-shadow(0 0 2px rgba(255,255,255,1))
        drop-shadow(0 4px 7px rgba(0,0,0,.5));
}