/* Gutenberg Styles for EPI Theme */

/* ----- Font Optionen ----- */

.gb-bold {
    font-weight: 600;
}

/* ----- Abstände ----- */

.gb_margin_top_50, div.gb_margin_top_50 {
    margin-top: 50px;
} 

p.gb_margin_t_25 {
    margin-top: 25px;
}

p.gb_margin_top_15 {
    margin-top: 15px;
}

.gb_gap_50px{
    gap: 50px;
}

.gb-jc-center {
    justify-content: center;
}

/* ----- Standard Group ----- */

.gb_group {
    margin-top: 100px;
}

@media screen and (max-width: 768px) {

    .gb_group {
        margin-top: 50px;
    }

    .gb_mobile_img_first {
        order: -1;
    }
    
}

/* ----- Zwei Spalter ----- */

.gb_zwei_spalter {
    display: flex;
    align-items: normal;
    gap: 50px;
}

.gb_zwei_spalter .gb_spalte {
    display: flex;
    max-width: calc(50% - 25px);
    width: calc(50% - 25px);
    min-width: calc(50% - 25px);
    gap: 25px;
}

.gb_spalte.gb_2x2_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.gb_spalte.gb_w_33 {
    min-width: calc(33% - 25px);
    width: calc(33% - 25px);
    max-width: calc(33% - 25px);
}

.gb_spalte.gb_w_66 {
    min-width: calc(66% - 25px);
    width: calc(66% - 25px);
    flex-grow: 1;
    max-width: none;
}

@media screen and (max-width: 768px) {

    .gb_zwei_spalter {
        flex-direction: column;
        padding: 0px;
        width: 100%;
    }

    .gb_zwei_spalter .gb_spalte {
        max-width: 100%;
        width: 100%;
        align-items: stretch;
    }

    .gb_background_light.gb_zwei_spalter, .gb_background_light_no_img.gb_zwei_spalter {
        padding: 25px;
    }

    
}

/* ----- Div: Full Width ----- */

.gb_block_full_width {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* ----- Image Block ----- */

figure.gb_wp_img {
    border-radius: var(--standard-border-radius);
    box-shadow: var(--standard-box-shadow);
    margin-bottom: -100px;
}

figure.gb_wp_img.img_right {
    order: 2;
}

@media screen and (max-width: 768px) {
    
    figure.gb_wp_img {
        margin-bottom: 0;
    }
    
}

/* ----- Abstand nach Bild ----- */

.gb_after_img_block {
    margin-top: 150px;
}

@media screen and (max-width: 768px) {

    .gb_after_img_block {
        margin-top: 50px;
    }
    
}

/* ----- Background Light ----- */

.gb_background_light {
    background-color: var(--color-primary-light);
    padding: 50px;
    border-radius: var(--standard-border-radius);
}

.gb_background_light_no_img {
    background-color: var(--color-primary-light);
    padding: 50px;
    border-radius: var(--standard-border-radius);
}

.gb_background_light img {
    border-radius: var(--standard-border-radius);
    box-shadow: var(--standard-box-shadow);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 768px) {

    .gb_background_light, .gb_background_light_no_img {
        padding: 25px;
    }
    
}

/* ----- Zitat Block ----- */

.gb_quote_block {
    position: relative;
}

.gb_quote_block::before {
    content: "\f10d"; /* Font Awesome Icon */
    font-family: "Font Awesome 6 Free"; /* Font Awesome Schriftart */
    font-weight: 900; /* Font Awesome Schriftgewicht */
    color: var(--color-accent-50); /* Farbe des Markers */
    right: 50px;
    position: absolute;
    margin-top: -65px;
    font-size: 6rem;
}

p.company_desc_quote {
    font-size: 0.8rem;
}

.gb_spalte.gb_quote_content {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-top: 25px;
}

.gb_ref_logos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.gb_ref_logos img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease; /* Übergang hinzufügen */
}

.gb_ref_logos img:hover {
    filter: grayscale(0%);
}

@media screen and (max-width: 768px) {
    .gb_ref_logos {
        flex-wrap: wrap !important;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 25px;
    }

    .gb_ref_logos img {
        width: 60px;
        /* height: 40px; */
        object-fit: contain;
        filter: grayscale(100%);
        transition: filter 0.5s ease; /* Übergang hinzufügen */
    }

    .gb_spalte.gb_quote_content {
        margin-top: 0px;
    }

    .gb_quote_block::before {
        content: "\f10d"; /* Font Awesome Icon */
        font-family: "Font Awesome 6 Free"; /* Font Awesome Schriftart */
        font-weight: 900; /* Font Awesome Schriftgewicht */
        color: var(--color-accent-50); /* Farbe des Markers */
        right: 25px;
        position: absolute;
        margin-top: -35px;
        font-size: 5rem;
    }
    
}

/* Person und Position */
.gb_quote_block_person {
    display: flex;
    gap: 10px;
}

.gb_quote_block img {
    width: 80%;
    object-fit: contain;
}

.gb_quote_block figure {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- Image Grid ----- */

.gb_img_grid_wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--standard-border-radius);
}

.gb_img_grid_wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); /* Schwarzer Verlauf */
    border-radius: var(--standard-border-radius);
    z-index: 1; /* Über dem Bild, aber unter dem Text */
}

.gb_grid_img img {
    height: 175px;
    object-fit: cover;
    border-radius: var(--standard-border-radius);
}

.gb_img_grid_wrapper .gb_grid_img_content {
    z-index: 2; /* Über dem Bild */
    width: 100%;
    padding: 25px;
    margin-top: -175px ;
    display: flex;
    justify-content: center;
    height: 175px;
    color: white;
    border-radius: var(--standard-border-radius);
}

.gb_img_grid_wrapper .gb_grid_img_content p:first-child {
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .gb_spalte.gb_2x2_grid {
        grid-template-columns: 1fr;
    }
    
}

/* ----- Ihre Vorteile ----- */

.gb_vorteil_item {
    display: flex;
    align-items: normal;
    gap: 25px;
    margin-bottom: 50px;
}

.gb_vorteil_item_img {
    width: 50px;
    min-width: 50px;
    height: 100px;
    object-fit: fill;
    color: var(--color-primary);
}

.gb_vorteil_item_img img {
    filter: invert(72%) sepia(34%) saturate(7467%) hue-rotate(13deg) brightness(105%) contrast(101%);
}

/* ----- Facts Liste ----- */

.gb_spalte.gb_facts_list { 
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gb_facts_list .wp-block-list {
    padding: 0;
}

.gb_facts_list li {
    list-style-type: none; /* Entfernt die Standard-Marker */
    position: relative;
    margin-bottom: 25px;
    font-weight: 600;
}

.gb_facts_list li::before {
    content: "\f058"; /* Font Awesome Icon */
    font-family: "Font Awesome 6 Free"; /* Font Awesome Schriftart */
    font-weight: 900; /* Font Awesome Schriftgewicht */
    color: var(--color-primary); /* Farbe des Markers */
    position: absolute;
    left: -1.5em; /* Abstand zum Text */
}

.gb_facts_list ul {
    margin-top: 10px;
}

.gb_facts_list li li {
    list-style-type: none;
    padding: 0;
    font-weight: 400;
    margin-bottom: 0;
}

.gb_facts_list li li::before {
    content: "";
}

/* ----- Fast Facts: EPI ----- */

.gb-ff-epi-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--default-gap-small);
    padding: var(--default-padding-equal);
    border-radius: var(--standard-border-radius);
    background-color: var(--color-primary);
    color: var(--color-text);   /* auf Orange: 5,67:1 */
}

.gb-ff-epi-wrapper i {
    font-size: 2rem;
}

/* ----- Kontakt ----- */

.iframe_osm { /* Stil für die OpenStreetMap */
    border-radius: var(--standard-border-radius);
    box-shadow: var(--standard-box-shadow);
    border: none;
}

.gb_contact_item_img {
    width: 25px;
    min-width: 25px;
    height: 25px;
    object-fit: fill;
    color: var(--color-primary);
}

.gb_contact_item_img img {
    filter: invert(72%) sepia(34%) saturate(7467%) hue-rotate(13deg) brightness(105%) contrast(101%);
}
