/*
 Theme Name:     Divi 5 Child by blueMarketing
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    a Divi 5 Child Theme by BlueMarketing
 Author:         blueMarketing GmbH
 Author URI:     https://www.blue-marketing.de
 Template:       Divi
 Version:        1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */
:root {
    /*font-size: clamp(16px, 11.9px + 0.27vw, 22px) !important;*/
    font-size: clamp(16px, -2.2857px + 0.9524vw, 22px) !important;
    /* Primary Palette */
    --primary: #09102b; /* Basis-Farbton */
    --primary-2: #1f3c8a;
    /* Secondary Palette */
    --secondary: #278e25; /* Basis-Farbton */
    --secondary-2: #41a741;
    --color-white: #ffffff;
    --color-black: #1c1c1c; /* Ein weiches Schwarz wirkt edler als #000 */
    --color-gray: #ebebee;
    --color-gray-dark: #ebebee;
    --wpforms-button-background-color-alt: #09102b;
    --gcid-primary-color: #09102b;
    --gcid-secondary-color: #278e25;
    --gcid-heading-color: #1f3c8a;
    --gcid-body-color: #1c1c1c;
    --gcid-zgm45i0mje: #38539a;
    --gcid-l8zoxobrog: #1f3c8a;
    --gcid-fgb3nwplb8: #ebebee;
    --gcid-fl88t17zvb: #ffffff;
    --gcid-6hk0ktwz38: #1c1c1c;
    --gcid-y3utc7sri6: #41a741;
}

body {
    font-size: 1rem !important;
    /*text-rendering: optimizelegibility;*/
    line-height: 1.65;
    font-weight: 400 !important;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--color-black);
    letter-spacing: 0.02em;
}
address {
    font-style: normal;
}
/**
 * Headlines
 */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
    font-family: 'Manrope', serif;
    color: #1f3c8a;
    letter-spacing: var(--gvid-aeyyik28d1);
    line-height: var(--gvid-ocsccb21en);
    text-align: left;
    margin-bottom: 1rem;
    font-weight: 600;
    display: block;
}
/* Die Skalierung in REM */
h1,
.h1 {
    font-size: 3.2rem; /* Entspricht ca. 58px bei 18px Basis */
}

h2,
.h2 {
    font-size: 2.4rem; /* Entspricht ca. 43px bei 18px Basis */
}

h3,
.h3 {
    font-size: 1.6rem; /* Entspricht ca. 32px bei 18px Basis */
}

h4,
.h4 {
    font-size: 1.4rem; /* Entspricht ca. 25px bei 18px Basis */
}
.preset--group--divi-text--divi-font-header--default .et_pb_text_inner h1,
.preset--group--divi-text--divi-font-header--default .et_pb_text_inner h2,
.preset--group--divi-text--divi-font-header--default .et_pb_text_inner h3,
.preset--group--divi-text--divi-font-header--default .et_pb_text_inner h4 {
    font-family: var(----et_global_heading_font), Helvetica, Arial, Lucida, sans-serif !important;
}
/**
 * Buttons
 */

.btn-primary,
.btn-secondary,
.more-link,
.wpforms-form .wpforms-submit,
div.wpforms-container-full button[type='submit'] {
    transition-duration: 0.5s;
    transition-property: all !important;
    background-size: 200% auto;
}
.btn-primary:hover,
.btn-secondary:hover,
.more-link:hover,
.wpforms-form .wpforms-submit:hover,
div.wpforms-container-full button[type='submit']:hover,
.et_pb_button:hover {
    background-position: right center !important;
    text-decoration: none !important;
}

.more-link {
    font-family: var(--et_global_heading_font) !important;
    font-weight: 700 !important;
    color: var(--gcid-fl88t17zvb) !important;
    letter-spacing: var(--gvid-gisgoykbcj) !important;
    line-height: var(--gvid-m4dsnur4v8) !important;
    cursor: pointer;
    background-image: linear-gradient(
        to right,
        var(--gcid-primary-color) 0%,
        var(--gcid-l8zoxobrog) 51%,
        var(--gcid-zgm45i0mje) 100% 100%
    );
    padding-top: 0.75rem !important;
    padding-right: 1.8rem !important;
    padding-bottom: 0.75rem !important;
    padding-left: 1.8rem !important;
    margin-top: 2rem !important;
    display: inline-block !important;
    animation-duration: 0.2s;
}
/** WP Forms **/
/* WPForms Buttons im DIVI5 Button Style */
div.wpforms-container-full input[type='submit']:not(:hover):not(:active),
div.wpforms-container-full button[type='submit']:not(:hover):not(:active),
div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full input[type='submit']:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full button[type='submit']:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active),
.wpforms-form .wpforms-submit,
.wpforms-form button[type='submit'],
.wpforms-form .wpforms-page-button {
    background-image: linear-gradient(
        to right,
        var(--gcid-primary-color) 0%,
        var(--gcid-l8zoxobrog) 51%,
        var(--gcid-zgm45i0mje) 100% 100%
    );
    font-family: var(--et_global_heading_font) !important;
    font-weight: 700 !important;
    color: var(--gcid-fl88t17zvb) !important;
    font-size: 1.2rem !important;
    letter-spacing: var(--gvid-gisgoykbcj) !important;
    line-height: var(--gvid-m4dsnur4v8) !important;

    border-width: 0 !important;
    border-style: solid !important;
    border-color: transparent !important;
    height: auto !important;
    padding: 0.8em 1.6em !important;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Falls DIVI abgerundete Buttons nutzt */
    border-radius: var(--gvid-global-button-radius, 4px) !important;
}

/* Optional: Hover-Effekt wie DIVI */
.wpforms-form .wpforms-submit:hover,
.wpforms-form button[type='submit']:hover,
.wpforms-form .wpforms-page-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
div.wpforms-container-full button[type='submit']:hover {
    background-color: none !important;
    background-image: linear-gradient(
        to right,
        var(--gcid-primary-color) 0%,
        var(--gcid-l8zoxobrog) 51%,
        var(--gcid-zgm45i0mje) 100% 100%
    ) !important;
    filter: none;
    transform: none;
}

div.wpforms-container input[type='text'],
div.wpforms-container input[type='email'],
div.wpforms-container select,
.wpforms-form textarea.wpforms-field-medium {
    background: var(--color-gray) !important;
    border: 0 !important;
    font-size: 1rem;
    color: var(--color-black);
    line-height: var(--gvid-m4dsnur4v8) !important;
    letter-spacing: var(--gvid-gisgoykbcj) !important;
    padding: 1.5rem 1rem !important;
}
.wpforms-form a {
    color: var(--primary-2);
    font-weight: bold;
}

div.wpforms-container-full select > option.placeholder,
div.wpforms-container-full select > option[disabled],
.wp-core-ui div.wpforms-container-full select > option.placeholder,
.wp-core-ui div.wpforms-container-full select > option[disabled] {
    background: #ebebee !important;
    color: #1c1c1c !important;
}

/**
 * Mega Menü Styles
 */
.et_pb_menu .et-menu > li {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}
.nav li ul {
    width: 16rem !important;
}
.nav li ul.sub-menu li {
    width: 100% !important;
}
.et-menu li li a {
    width: 100% !important;
}
.et-menu-nav li.mega-menu > ul {
    padding: 1.5rem;
    width: 80vw !important;
    max-width: 1800px !important;
    left: -61% !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
@media screen and (max-width: 1920px) {
    .et-menu-nav li.mega-menu > ul {
        left: -40% !important;
    }
}
@media screen and (max-width: 1440px) {
    .et-menu-nav li.mega-menu > ul {
        left: -30% !important;
    }
}
@media screen and (max-width: 1024px) {
    .et-menu-nav li.mega-menu > ul {
        left: -28% !important;
    }
}
@media screen and (max-width: 768px) {
    .et-menu-nav li.mega-menu > ul {
        left: -43% !important;
    }
}
.et-menu-nav li.mega-menu > ul .et-menu-nav li.mega-menu > ul > li {
    width: 100% !important;
}
.et-menu-nav li.mega-menu li > a {
    width: 100% !important;
    display: block;
}
/*
.et-menu-nav li.mega-menu > ul > li > a:first-child {
    font-size: 1.2rem !important;
}
*/
.et-menu-nav li.mega-menu.et-hover li ul,
.et-menu-nav li.mega-menu:hover li ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: space-evenly;
    align-items: stretch;
    width: 100% !important;
}
.et_mobile_menu {
    width: 90vw !important;
    left: -216% !important;
}

/**
 * Effects
 */
.services-boxes > .et_pb_column {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.services-boxes > .et_pb_column:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}
.services-boxes > .et_pb_column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-2), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.services-boxes > .et_pb_column:hover::before {
    transform: scaleX(1);
}

/**
 * Home Styles
 */

.services-boxes p {
    /* Berechnung: 1rem (Schrift) * 1.65 (Zeilenhöhe) * 3 (Zeilenanzahl) */
    min-height: calc(1rem * 1.65 * 3);

    /* Moderner Fallback für 3 Zeilenhöhen */
    min-height: 3lh;
}
.services-boxes h3,
.row-home-column-borders h3 {
    padding-bottom: 0;
    min-height: calc(2.074rem * 1.2 * 2);
}
@media screen and (min-width: 1440px) {
    .row-home-column-borders .et_pb_column {
        position: relative;
    }

    .row-home-column-borders .et_pb_column:not(.et-last-child)::after {
        content: '';
        position: absolute;
        right: calc(var(--horizontal-gap-parent) * -0.5); /* Hälfte von --horizontal-gap: 6rem */
        top: 0;
        width: 2px;
        height: 100%;
        background: white;
        clip-path: polygon(50% 0%, 100% 3%, 100% 97%, 50% 100%, 0% 97%, 0% 3%);
        z-index: 10;
    }
}
.img-round-grey .et_pb_image_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem !important; /* gleich wie max-height des Bildes */
    height: 10rem !important;
    border-radius: 50% !important;
    background-color: var(--color-gray-dark); /* oder deine gewünschte Farbe */
}
.img-round-blue .et_pb_image_wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem !important; /* gleich wie max-height des Bildes */
    height: 10rem !important;
    border-radius: 50% !important;
    background-color: var(--primary-2); /* oder deine gewünschte Farbe */
}
.img-round-grey img,
.img-round-blue img {
    max-height: 5rem; /* etwas kleiner als der Kreis für Padding-Effekt */
    width: auto;
}

/* Better spacing for lists */
#et-main-area .et_pb_module :is(ol, ul):not(:last-child) {
    padding: 0em 0 1em 1em !important;
}

#et-main-area .et_pb_module :is(ol, ul):last-child {
    padding: 0 0 0 1em !important;
}

.list-style-edc {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.list-style-edc li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.list-style-edc li::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('assets/images/checked-blue.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 0;
    top: 0.15em;
}

/* Fixes Divider position */
.et_pb_top_inside_divider {
    top: -0.5px !important;
}

.et_pb_bottom_inside_divider {
    bottom: -0.5px !important;
}

/**
 * KOrrektur Toggle Modul
 */
.preset--module--divi-toggle--default.et_pb_toggle_close .et_pb_toggle_title:before,
.preset--module--divi-toggle--default.et_pb_toggle_close .et_vb_toggle_overlay {
    right: 0 !important;
}

/**
 * Webfonts Lokal
 */
/* source-sans-3-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 400;
    src: url('assets/fonts/source-sans-3-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/source-sans-3-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-700italic - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 700;
    src: url('assets/fonts/source-sans-3-v19-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/manrope-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
