/*
 Theme Name:     DIVI TJweb Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    DIVI TJweb Theme
 Author:         TJWeb
 Author URI:     https://www.tjweb.eu
 Template:       Divi
 Version:        1.0.0
*/

 
/* =Theme customization starts here
------------------------------------------------------- */

/* Defaults */
:root {
    font-size: 1rem;
    font-size: clamp(14px, .4rem + .6vw, 24px) !important;
    --primary-colour: #fb1716;
    --secondary-colour: #939393;
}

html,
body,
#page-container {
    max-width: 100%;
    overflow-x: hidden;
}

/*
body {
	background-size:auto 100% !important;
	background-position: center -2.5svh !important;
}
*/
body {
        background-size: 65% !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 80% !important;
}

* {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
}
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
    margin: .75rem 0 .25rem;
}
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Rubik',Helvetica,Arial,Lucida,sans-serif!important;
    font-weight: 400!important;
    line-height: 1em!important;
    display: block!important;
}
.h1 {
    font-size: 35px!important;
}
.h2 {
    font-size: 26px!important;
}
.h3 {
    font-size: 22px!important;
}
.h4 {
    font-size: 18px!important;   
}
.h5 {
    font-size: 16px!important;
}
.h6 {
    font-size: 14px!important;
}

.et_pb_menu .et_mobile_menu {
    max-height: 60vh;
    max-height: 60svh;
    overflow: auto;
}

/**
 * DIVI Flex Helfer
 */
.d-grid {
    display: grid!important;
}
.d-flex {
    display: flex!important;
}
/* DIVI Parallax Position */
.et_parallax_bg {
    background-position: center;
}

/* Firefox scrollbar styles */
:root {
    scrollbar-color: var(--secondary-colour) #fff;
    scrollbar-width: thick;
}

@media screen and (max-width:980px),
(orientation:portrait) {
    :root {
        scrollbar-width: thin;
    }

    ::-webkit-scrollbar {
        background-color: #fff;
        width: thin;
    }
}

::selection {
    background-color: var(--secondary-colour);
    color: white;
}


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

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

/* When a page in a dropdown is active, the parent gets styles */
#menu-main li:has(li.current-menu-item) > a {
  color: var(--primary-colour) !important;
}

.et_pb_menu_0_tb_header.et_pb_menu ul li.current-menu-item > a {
	color: var(--primary-colour) !important;
}
@media all and (max-width: 740px) {
    .et_pb_menu_0_tb_header.et_pb_menu ul .current-menu-ancestor:hover > a,
    .et_pb_menu_0_tb_header.et_pb_menu ul .current-menu-ancestor > a {
        color: var(--primary-colour)!important;
    }
	.et_pb_menu_0_tb_header.et_pb_menu ul li.current-menu-item .sub-menu a {
		color: #000!important;
	}
}
/**
 * DIVI MOBILE MENUE
 */
@media all and (max-width: 786px) and (orientation: portrait){
  .et_mobile_menu {
        top: 51px !important;
        left: -166px !important;
        width: 244px !important;
  }
}


/*-------------------------*/
/*- Contact form 7 Styles -*/
/*-------------------------*/
.wpcf7 .wpcf7-form-control-wrap input:not([type="checkbox"]),
textarea,
select {
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="password"],
.wpcf7 input[type="search"],
.wpcf7 input[type="number"],
.wpcf7 input[type="tel"],

.wpcf7 input[type="range"],
.wpcf7 input[type="date"],
.wpcf7 input[type="month"],
.wpcf7 input[type="week"],
.wpcf7 input[type="time"],
.wpcf7 input[type="datetime"],
.wpcf7 input[type="datetime-local"],
.wpcf7 input[type="color"],
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 input[type="checkbox"] {
    background: #ddd !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="password"],
.wpcf7 input[type="search"],
.wpcf7 input[type="number"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="range"],
.wpcf7 input[type="date"],
.wpcf7 input[type="month"],
.wpcf7 input[type="week"],
.wpcf7 input[type="time"],
.wpcf7 input[type="datetime"],
.wpcf7 input[type="datetime-local"],
.wpcf7 input[type="color"],
.wpcf7 select,
.wpcf7 textarea {
    padding: 1rem;
    border: 0px solid #f8f8f8;
    background-color: #f8f8f8;
    font-size: 1rem;
    line-height: 1.2em;
    transition: .3s;
    border-radius: 0px;
    margin-bottom: .5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="password"],
.wpcf7 input[type="search"],
.wpcf7 input[type="number"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="range"],
.wpcf7 input[type="date"],
.wpcf7 input[type="month"],
.wpcf7 input[type="week"],
.wpcf7 input[type="time"],
.wpcf7 input[type="datetime"],
.wpcf7 input[type="datetime-local"],
.wpcf7 input[type="color"],
.wpcf7 select,
.wpcf7 textarea {
    color: #3c3c3b;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="password"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="range"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="month"]:focus,
.wpcf7 input[type="week"]:focus,
.wpcf7 input[type="time"]:focus,
.wpcf7 input[type="datetime"]:focus,
.wpcf7 input[type="datetime-local"]:focus,
.wpcf7 input[type="color"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    /* Add styles for when the input field is in focus */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.wpcf7 input[type="text"]:not(:placeholder-shown),
.wpcf7 input[type="email"]:not(:placeholder-shown),
.wpcf7 input[type="url"]:not(:placeholder-shown),
.wpcf7 input[type="password"]:not(:placeholder-shown),
.wpcf7 input[type="search"]:not(:placeholder-shown),
.wpcf7 input[type="number"]:not(:placeholder-shown),
.wpcf7 input[type="tel"]:not(:placeholder-shown),
.wpcf7 input[type="range"]:not(:placeholder-shown),
.wpcf7 input[type="date"]:not(:placeholder-shown),
.wpcf7 input[type="month"]:not(:placeholder-shown),
.wpcf7 input[type="week"]:not(:placeholder-shown),
.wpcf7 input[type="time"]:not(:placeholder-shown),
.wpcf7 input[type="datetime"]:not(:placeholder-shown),
.wpcf7 input[type="datetime-local"]:not(:placeholder-shown),
.wpcf7 input[type="color"]:not(:placeholder-shown),
.wpcf7 textarea:not(:placeholder-shown) {
    /* Add styles for when the input field is not empty */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/*Contact form 7 Submit Button*/
/*
.wpcf7 input[type=submit] {
    margin-top: 1em;
    padding: .5rem 1rem;
    background: #555;
    color: #fff;
    font-size: 1rem;
    border: none;
    font-weight: 500;
    transition-duration: 0.5s;
    letter-spacing: 0.05em;
}

.wpcf7 input[type=submit]:hover {
    background: #a5a5a5;
    transition-duration: 0.5s;
}
*/
.wps-form {
    flex-direction: column;
    display: flex;
    gap: .5rem;
}

@media only screen and (min-width: 1100px) {
    .wps-form-row {
        flex-direction: row;
        display: flex;
        gap: .5rem;
    }

    .wps-form-row>* {
        flex: 1;
    }
}

.ds-box {
    font-size: .8rem;
    line-height: 1.4em;
}

.wpcf7 p {
    padding: 0px;
    margin: 0px;
}

.wpcf7-radio,
.wpcf7-form-control {
    display: flex !important;
    gap: 1rem;
}

input[type=radio] {
    width: unset !important;
    height: 1rem;
}

.wpcf7-list-item {
    display: inline-block;
    margin: 0;
}

.wpcf7-spinner {
    display: none;
}

/**
 * NEW FORM STYLE
 */
.wpcf7-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
}

/* Change New Form Style back to Default on Tablet & Mobile */
@media all and (max-width: 980px) {
	.wpcf7-form-row {
		display: flex;
		flex-direction: column;
	}
	.wpcf7-first-column .wpcf7-form-group-description {
		margin-left: 0px!important;
	}
}

.wpcf7-form-column {
  display: flex;
  flex-direction: column;
}
/
@media (max-width: 768px) {
  .wpcf7-form-row {
    grid-template-columns: 1fr;
  }
}

.wpcf7-form-group input,
.wpcf7-form-group textarea {
    box-shadow: none!important;
}

.wpcf7-form-group textarea {
    min-height: 300px;
}
.wpcf7-first-column { justify-content: center; }
.wpcf7-first-column .wpcf7-form-group { margin-bottom: 3rem; }
.wpcf7-first-column .wpcf7-form-group:last-child { margin-bottom: 0rem; }
.wpcf7-first-column .wpcf7-form-group-description {
    margin-left: 2.75rem;
}

.wpcf7-form-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.wpcf7-first-column .wpcf7-form-group .wpcf7-list-item-label {
    font-family: 'Rubik', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 200;
    font-size: 1.5rem;
}
.wpcf7-form-column .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: .75rem;
    line-height: 1.4;
}


.wpcf7-form-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.wpcf7-form-group .wpcf7-list-item-label {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: .75rem;
}
.wpcf7-form-group .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0.15rem solid #333;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
}
.wpcf7-form-group .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 1.2rem;
    height: 1.2rem;
    background-color: #333;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transition: transform 0.2s ease-in-out;
}

.wpcf7-form-group input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  background-color: var(--primary-colour); 
  border-color: var(--primary-colour);
}

.wpcf7-form-group input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  transform: translateY(-50%) scale(1); 
  background-color: #fff;
}


/** Form Submit **/
/* Grundlegende Button-Struktur */
.wpcf7-form-submit {
  position: relative; /* Wichtig für die Positionierung des ::after-Elements */
  overflow: hidden;
  border-radius: 100em;
  max-width: max-content;
  margin: 0 0 0 auto !important;
  border: 0.15rem solid #222;
  transition: border-color var(--animation-duration); /* Übergang für den Rand */
}

/* Stil des Input-Buttons */
.wpcf7-submit {
  background-color: transparent; /* Macht den Button transparent */
  color: black;
  cursor: pointer;
  padding: 0.75em 1.5em;
  border: none; /* Entfernt den inneren Rand */
  width: 100%;
  height: 100%;
  transition: color var(--animation-duration); /* Übergang für die Textfarbe */
  z-index: 1; /* Stellt sicher, dass der Text über dem Hintergrundeffekt liegt */
  position: relative;
}

/* Definieren der CSS-Variable */
.wpcf7-form-submit {
  --animation-duration: .25s;
}

/* Hintergrundeffekt mit dem ::after-Pseudoelement */
.wpcf7-form-submit:after {
  content: "";
  background: var(--secondary-colour);
  position: absolute;
  inset: -1px;
  z-index: 0;
  transform: scalex(0%);
  transform-origin: center right;
  transition: transform var(--animation-duration);
  border-radius: inherit;
}

/* Hover-Zustand */
.wpcf7-form-submit:hover {
  border-color: var(--secondary-colour); /* Ändert die Randfarbe */
}

.wpcf7-form-submit:hover .wpcf7-submit {
  color: white !important; /* Ändert die Textfarbe */
}

.wpcf7-form-submit:hover:after {
  transform: scalex(100%);
  transform-origin: center left;
}


/*-------------------------*/
/*------ Styles Ende ------*/
/*-------------------------*/

/* Automatic dropdown width */
.nav li ul {
    width: max-content !important;
    display: flex;
    flex-direction: column;
}

.nav li li ul {
    left: max-content !important;
}

.et-menu li li a {
    width: max-content;
}

/* Box-Inhalt per Flexbox vertikal zentrieren */
.vertical-align {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* DIVI Controlls bullet position Fix */
.et-pb-controllers {
    bottom: 0%;
    height: unset !important;
    bottom: 1rem;
}

.clearfix::after {
    display: none;
}

.et-pb-controllers {
    line-height: 1.2em;
}

/* Eigener Breakpoint 1 */
@media (max-width: 1024px) {
    #et_mobile_nav_menu {
        display: block;
    }

    #top-menu {
        display: none;
    }
}

/* Image forced Aspect ratio */
.aspect-ratio-16-9 img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100% !important;
}

.aspect-ratio-4-3 img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100% !important;
}

.aspect-ratio-1-1 img {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100% !important;
}

.aspect-ratio-2-1 img {
    aspect-ratio: 2/1;
    object-fit: cover;
    width: 100% !important;
}

.aspect-ratio-3-4 img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100% !important;
}

/* ---------------------------- */
/* Collapsable DIVI mobile menu */
/* ---------------------------- */

/*change hamburger icon to x when mobile menu is open*/
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
    content: '\4d';
}

/*adjust the new toggle element which is added via jQuery*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
    width: 44px;
    height: 100%;
    padding: 0px !important;
    max-height: 44px;
    border: none;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 999;
    background-color: transparent;
}

/*some code to keep everyting positioned properly*/
ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
    position: relative;
}

/*remove default background color from menu items that have children*/
.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
    background-color: transparent;
}

/*hide the submenu by default*/
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
    display: none !important;
    visibility: hidden !important;
}

/*show the submenu when toggled open*/
ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
    display: block !important;
    visibility: visible !important;
}

/*adjust the toggle icon position and transparency*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
    text-align: center;
    opacity: 1;
}

/*submenu toggle icon when closed*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
    top: 10px;
    position: relative;
    font-family: "ETModules";
    content: '\33';
    color: currentColor;
    background: transparent;
    font-size: 1.2rem;
    border-radius: 50%;
    padding: 3px;
}

/*submenu toggle icon when open*/
ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
    content: '\32';
}

/*add point on top of the menu submenu dropdown*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
    position: absolute;
    right: 5%;
    margin-left: -20px;
    top: -14px;
    width: 0;
    height: 0;
    content: '';
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #ffffff;
}

/*adjust the position of the hamburger menu*/
.mobile_menu_bar {
    position: relative;
    display: block;
    bottom: 10px;
    line-height: 0;
}

/*force the background color and add a rounded border*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
    background-color: #ffffff !important;
    border-radius: 10px;
}

.et_pb_menu__wrap .mobile_menu_bar {
    transform: translateY(0%);
}

@media (max-width: 980px) {
    .et_pb_menu .et_mobile_nav_menu {
        margin: 0;
    }
}

.mobile_menu_bar {
    bottom: 0;
}

/**
 * Search
 */
@media (max-width: 980px) {
	.et_pb_menu .et_pb_menu__search-container {
		min-width: 300px;
		left: -250px;
		top: 50px;
		background: #fff;
	}
}
/* -------------------------------- */
/* Collapsable DIVI mobile menu End */
/* -------------------------------- */

/* Divi Controlls Styles */
.et-pb-arrow-prev {
    color: white !important;
}

.et-pb-arrow-next {
    color: white !important;
}

.et-pb-controllers a {
    border: .15rem solid black;
    width: 1rem;
    min-height: 1rem;
    background: var(--primary-colour) !important;
    border-radius: 0rem;
    margin: 0px .2rem;
    transition: .5s cubic-bezier(.55, .05, .40, 2.5) !Important;
}

.et-pb-controllers a:not(.et-pb-active-control) {
    width: 1rem;
    min-height: 1rem;
    opacity: 1;
    background: white !important;
    transform: translateY(.2rem);
}


/**
 * DIVI Row Grid 
 */
.tj_divi_grid_2 {
    display: grid;
    grid-template: auto / repeat(2, 1fr);
    gap: 1rem;
}
.tj_divi_grid_3 {
    display: grid;
    grid-template: auto / repeat(3, 1fr);
    gap: 2rem;
}
.tj_divi-grid_2 .et_pb_column,
.tj_divi_grid_3 .et_pb_column {
    width: 100% !important;
}
.tj_divi_grid_2:after,
.tj_divi_grid_3:after {
    display: none !important;
}
/* Mobile layout */
@media screen and (max-width:980px),
(orientation: portrait) {
    .tj-divi-grid-2,
    .tj_divi_grid_3 {
        grid-template: 1fr / 1fr;
    }
}
/** ################## **/

/* DIVI Gallery Grid Layout */
/* With DIVI Booster The gallery needs to be set to one image per row */
.grid-gallery-two {
    --gallery-grid-columns: repeat(2, 1fr);
}

.grid-gallery-three {
    --gallery-grid-columns: repeat(3, 1fr);
}

.grid-gallery-four {
    --gallery-grid-columns: repeat(4, 1fr);
}

.grid-gallery-five {
    --gallery-grid-columns: repeat(5, 1fr);
}

.grid-gallery .et_pb_gallery_items {
    display: grid;
    gap: .4rem;
    grid-template-columns: var(--gallery-grid-columns)
}



.grid-gallery .et_pb_gallery_item {
    width: 100% !important;
}

.grid-gallery .clearfix:after {
    display: none;
}

@media screen and (max-width:980px),
(orientation:portrait) {
    .grid-gallery .et_pb_gallery_items {
        grid-template-columns: repeat(2, 1fr);
    }
}

selector .et_pb_gallery_items {
    gap: .4rem;
    --gallery-grid-columns: repeat(4, 1fr);
}

@media screen and (max-width:980px) {
    selector .et_pb_gallery_items {
        gap: .4rem;
        --gallery-grid-columns: repeat(2, 1fr);
    }
}

/* Simple exlcusive vanishing */
@media (hover) {
    .vanish>* {
        transition: .25s;
    }

    .vanish:hover:has(> *:hover)>*:not(:hover) {
        opacity: 50%;
    }
}

/* DIVI fix blurb icon width */
@media only screen and (min-width: 1024px) {
    .et_pb_blurb .et_pb_image_wrap {
        max-width: max-content !important;
    }

    .et_pb_blurb_position_left .et_pb_main_blurb_image,
    .et_pb_blurb_position_right .et_pb_main_blurb_image {
        max-width: max-content !important;
    }

    /* Optional */
    /* Change spacing between title and icon */
    .et_pb_blurb_position_left .et_pb_blurb_container {
        padding-left: .5em !important;
    }
}


/* Apply everywhere */
.icon-width-fix.et_pb_blurb .et_pb_image_wrap {
    max-width: max-content !important;
}

.icon-width-fix.et_pb_blurb_position_left .et_pb_main_blurb_image,
.icon-width-fix.et_pb_blurb_position_right .et_pb_main_blurb_image {
    max-width: max-content !important;
}

.bullet-red {
    display: inline-block;
    height: .5rem;
    width: .5rem;
    background: var(--primary-colour);
    border-radius: 100rem;
    vertical-align: middle;
    margin-top: -3px;
}


/* Button selbst */
.tj-tholey-btn,
.more-link {
  color: #222!important;
  position: relative;
  cursor: pointer;
  padding: 0.75em 1.5em!important;
  overflow: hidden!important;
  border: 0.15rem solid #222!important;
  max-width: max-content;
  margin: 0 auto 0 0 !important;
  border-radius: 100em!important;
  font-size: 0.8rem!important;
  font-weight: 600!important;
  line-height: 1.6em!important;
  background: transparent !important;
  display: flex!important; /* Füge dies hinzu, um den Inhalt zu zentrieren */
  align-items: center;
  gap: .5em;
}

@media (hover) {
  .tj-tholey-btn,
  .more-link {
    --animation-duration: .25s;
    transition: transform var(--animation-duration), color var(--animation-duration)!important;
    z-index: 0;
  }

  .tj-tholey-btn::after,
  .more-link::after {
    content: "";
    background: var(--secondary-colour);
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scalex(0%);
    transform-origin: center right;
    transition: inherit!important;
    border-radius: inherit;
  }

  .tj-tholey-btn:hover,
  .more-link::hover {
    color: white !important;
  }

  .tj-tholey-btn:hover::after,
  .more-link:hover::after {
    transform: scalex(100%);
    transform-origin: center left;
  }
}

/**
 * Scroll to Top Button
 */
/* Ersetzt das ICON durch ein Hintergrundbild */
.et_pb_scroll_top {
    /* Versteckt das ursprüngliche Font-Awesome-Icon */
    text-indent: -9999px;
    
    /* Fügt Ihr Hintergrundbild hinzu */
    background: rgba(0,0,0,0.4) url(assets/images/Pfeilball.png) no-repeat center center!important;
    background-size: contain!important; /* Oder cover, je nach Bedarf */

    /* Stellt sicher, dass der Button groß genug für das Bild ist */
    width: 3rem!important; /* Passen Sie die Größe an */
    height: 3rem!important; /* Passen Sie die Größe an */
}
.et_pb_scroll_top.et-pb-icon {
	bottom: 80px;
}
/**
 * blog Styling
 */

 /** Blog List **/
.tj-et-bloglist { }
.tj-et-bloglist .post-content-inner {
    margin-bottom: 1rem;
}



/**
 * TJ Web DIVI 3D Carousel Slider
 */
/* Container und allgemeine Layout-Einstellungen */
[class*="tj_3d_carousel"] {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    height: 25rem;
}

[class*="tj_3d_carousel"] .bullet-container {
    position: absolute;
    bottom: -1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
}

[class*="tj_3d_carousel"] .bullet-container .bullet {
    height: 1rem;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 100%;
    background-color: black;
    opacity: 0.5;
}

[class*="tj_3d_carousel"] .bullet-container .bullet.active {
    opacity: 1;
}

/* Divi gallery grid layout adjustments */
[class*="tj_3d_carousel"] .et_pb_gallery_items {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 100%;
    margin: auto;
}

/* Individual slide item */
[class*="tj_3d_carousel"] .et_pb_gallery_item {
    position: absolute !important;
    inset: auto;
    z-index: 0;
    width: auto;
    height: 100%;
    transition: z-index 0ms 250ms;
    display: grid !important;
    grid-template: 1fr auto / 1fr;
    margin-right: 0 !important;
    float: none !important;
    opacity: 0 !important;
}

/* Image within the slide */
[class*="tj_3d_carousel"] .et_pb_gallery_item .et_pb_gallery_image img {
    position: relative;
    width: 25vw;
    height: 100%;
    display: block;
    object-fit: cover;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
    transition: 500ms cubic-bezier(0.17, 0.67, 0.55, 1.43);
    border: .15rem solid #222;
    border-radius: 1.25rem;
}

/* Titel within the slide */
[class*="tj_3d_carousel"] .et_pb_gallery_item h3.et_pb_gallery_title {
    display: block;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    transition: 500ms cubic-bezier(0.17, 0.67, 0.55, 1.43);
    opacity: 0;
}

/* Position und Aussehen der Slides, gesteuert durch JS-Klassen */

/* Vergangener Slide (links vom aktiven) */
[class*="tj_3d_carousel"] .et_pb_gallery_item.preactive {
    z-index: 1;
    opacity: 1 !important;
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.preactive .et_pb_gallery_image img {
    opacity: 0.5 !important;
    transform: translateX(-80%) scale(0.8);
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.preactive h3.et_pb_gallery_title {
    transform: translateX(-150px);
}

/* Zukünftiger Slide (rechts vom aktiven) */
[class*="tj_3d_carousel"] .et_pb_gallery_item.proactive {
    z-index: 1;
    opacity: 1 !important;
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.proactive .et_pb_gallery_image img {
    opacity: 0.5 !important;
    transform: translateX(80%) scale(0.8);
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.proactive h3.et_pb_gallery_title {
    transform: translateX(150px);
}

/* Aktiver Slide (im Vordergrund) */
[class*="tj_3d_carousel"] .et_pb_gallery_item.active {
    z-index: 2;
    opacity: 1 !important;
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.active .et_pb_gallery_image img {
    opacity: 1 !important;
    transform: translateX(0%) scale(1);
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.active h3.et_pb_gallery_title {
    opacity: 1 !important;
    transition-delay: 200ms;
    transform: translateX(0px);
}

/* Slides außerhalb des sichtbaren Bereichs */
[class*="tj_3d_carousel"] .et_pb_gallery_item.preactivede .et_pb_gallery_image img {
    transform: translateX(-50%) scale(0);
}

[class*="tj_3d_carousel"] .et_pb_gallery_item.proactivede .et_pb_gallery_image img {
    transform: translateX(50%) scale(0);
}

[class*="tj_3d_carousel"] .not-visible {
    display: none !important;
}

/* Pfeil-Styling */
[class*="tj_3d_carousel"] .slider-left,
[class*="tj_3d_carousel"] .slider-right {
    position: absolute;
    z-index: 3;
    display: block;
    top: 50%;
    color: #fff;
    transform: translateY(-50%);
    padding: 15px 15px;
    border-radius: 50%;
    background: #222;
    cursor: pointer;
}

[class*="tj_3d_carousel"] .slider-left:after {
    content: "←";
    position: absolute;
    display: grid;
    place-items: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: translatey(-0.15em);
}

[class*="tj_3d_carousel"] .slider-left {
    right: 90%;
}

[class*="tj_3d_carousel"] .slider-right {
    left: 90%;
}
@media all and (min-width: 1024px) {
    [class*="tj_3d_carousel"] .slider-left {
        right: 80.5%;
    }

    [class*="tj_3d_carousel"] .slider-right {
        left: 80.5%;
    }
}

[class*="tj_3d_carousel"] .slider-right:after {
    content: "→";
    position: absolute;
    display: grid;
    place-items: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    font-size: 1rem;
    transform: translatey(-0.15em);
}

.tj_3d_carousel .et_pb_gallery_image {
    border: 0!important;
    overflow: inherit!important;
}


/* Change Icon spacing from margin-auto back to 0 */
@media all and (max-width: 980px) {
	.et_pb_icon_4 {
		margin-left: 0px!important;
		margin-right: 0px!important;
	}
}

/* Reset white-space property on Dynamic text for Mobile (prevent overflowing text) */
@media all and (max-width: 980px) {
  #type-text {
    white-space: pre-wrap!important;
    overflow-wrap: break-word; /* Oder word-break: break-all; falls nötig */
  }
}


/* Column Order on Mobile */
@media all and (max-width: 980px) {
    .custom-row {
     display: -webkit-box;
     display: -moz-box;
     display: -ms-flexbox;
     display: -webkit-flex;
     display: flex;
    -webkit-flex-wrap: wrap; /* Safari 6.1+ */
    flex-wrap: wrap;
    }
    .first-on-mobile {
    -webkit-order: 1;
    order: 1;
    }
    .second-on-mobile {
    -webkit-order: 2;
    order: 2;
    }
    .third-on-mobile {
    -webkit-order: 3;
    order: 3;
    }
    .fourth-on-mobile {
    -webkit-order: 4;
    order: 4;
    }
    .fifth-on-mobile {
    -webkit-order: 5;
    order: 5;
    }
    .custom-row:last-child .et_pb_column:last-child {
    margin-bottom: 30px;
    }
}


/* === Divi Blog Modul in echtes CSS Grid umwandeln === */
.custom-blog-grid .more-link {
	margin-top: 1rem!important;
}
/*****************************************************
🧩 DIVI BLOG GRID – 3 Spalten, gleiche Höhe, Hover, Responsive
*****************************************************/

/* 1️⃣ Hauptcontainer in echtes CSS Grid umwandeln */
.custom-blog-grid .et_pb_salvattore_content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch; /* sorgt für gleiche Höhe */
}

/* 2️⃣ Die Divi-Spalten (.column) neutralisieren */
.custom-blog-grid .et_pb_salvattore_content .column {
  width: 100% !important;
  float: none !important;
  display: contents; /* entfernt visuell die Spalten, behält aber die Artikel */
}

/* 3️⃣ Blog-Post-Karten stylen */
.custom-blog-grid .et_pb_post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* 4️⃣ Hover-Effekt */
.custom-blog-grid .et_pb_post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 5️⃣ Titel leicht betonen */
.custom-blog-grid .et_pb_post h2.entry-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-blog-grid .et_pb_post h2.entry-title a:hover {
  color: #0073e6; /* deine Akzentfarbe */
}

/* 6️⃣ "Mehr lesen"-Button unten fixieren */
.custom-blog-grid .et_pb_post .post-content {
  flex-grow: 1; /* Inhalt füllt den Raum */
  display: flex;
  flex-direction: column;
}

.custom-blog-grid .et_pb_post .more-link {
  margin-top: auto;
  align-self: flex-start;
  background: #0073e6;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.custom-blog-grid .et_pb_post .more-link:hover {
  background: #005bb5;
}

/* 7️⃣ Responsives Verhalten */
@media (max-width: 980px) {
  .custom-blog-grid .et_pb_salvattore_content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .custom-blog-grid .et_pb_salvattore_content {
    grid-template-columns: 1fr;
  }
}




/* rubik-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: 'Rubik';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/rubik-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-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: 'Rubik';
  font-style: italic;
  font-weight: 400;
  src: url('assets/fonts/rubik-v31-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-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: 'Rubik';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/rubik-v31-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rubik-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: 'Rubik';
  font-style: italic;
  font-weight: 700;
  src: url('assets/fonts/rubik-v31-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/manrope-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-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: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/manrope-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('assets/fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-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: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('assets/fonts/open-sans-v44-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}