/*
 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
------------------------------------------------------- */

/* Root Styles */
:root {
    font-size: clamp(15px, .6rem + .4vw, 21px);
    line-height: 1.5em;
	--primary-colour: #6a130f;
}

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

/* Chromium Scrollbar styles */
body::-webkit-scrollbar {
    background-color: transparent;
    width: 20px;
}

body::-webkit-scrollbar-track {
    background-color: #222;
}

body::-webkit-scrollbar-thumb {
    background-color: #6a130f;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #3e0100;
}

body::-webkit-scrollbar-thumb:active {
    background-color: #dbaba0;
}

r-p rp-slider rp-review-text {
    scrollbar-color: #222 transparent;
    scrollbar-width: thin;
}

::selection {
    color: white;
    background-color: #6a130f;
}

* {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
}

/* DIVI Parallax Position */
.et_parallax_bg {
    background-position: center;
}

:root :where(a:where(:not(.wp-element-button))) {
  text-decoration: none;
}

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

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

a:focus,
button:focus,
.et_clickable:focus {
  outline: .25rem solid royalblue;
  outline: 5px auto -webkit-focus-ring-color;
}

/*-------------------------*/
/*- 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;
    /*Submit Farbe*/
    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 {
    /*Submit Hover Farbe*/
    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;
}


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

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


/* In Webseite enthaltenes Stil-Dokument #62 | https://tjweb-redesign.entwurf.dev/kontakt/ */

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


.wpcf7-not-valid-tip {
    position: absolute;
    top: 160%;
    right: 0;
    font-size: .6rem;
    font-weight: 900;
}

.wpcf7-spinner {
    display: none;
}

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

/* Cleverreach */
.cleverreach-custom .layout_form {
	margin:0;
}

.cleverreach-custom .cr_body *,
.cleverreach-custom .cr_body .cr_ipe_item,
.cleverreach-custom .cr_form .cr_header_text,
.cleverreach-custom .cr_form .cr_ipe_item.ui-sortable {
	margin:0;
	padding:0;
	max-width:100%;
	display:grid;
	place-items:center;
}

.cleverreach-custom .cr_body {
	color:white;
	background-color:rgba(0,0,0,0);
}

.cleverreach-custom .editable_content {
	display:grid;
	gap:.25rem;
	place-items:center;
}

.cleverreach-custom .editable_content label {
	font-size:1rem;
}

.cleverreach-custom .editable_content input {
	padding:.5em;
	border-radius: 10em;
}

.cleverreach-custom .editable_content button {
	padding:1em;
	height:auto;
	line-height:1em;
	display:block;
	border-radius: 10em;
}

/* 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;
}

/* Dropdown Menü Breite */
.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;
}

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

    #top-menu {
        display: none;
    }
}

/*add icon to Divi main menu items*/
nav li a:before,
.et_mobile_menu li a:before {
    text-align: center;
    vertical-align: top;
    margin-right: 10px;
    margin-left: -10px;
    color: currentcolor;
    font-size: 1em;
    transition: all .3s ease;
}

.home-link>a:before {
    content: '\e009';
    font-family: 'ETMODULES';
}

.service-icon>a:before {
    content: '\e0fe';
    font-family: 'ETMODULES';
}

.websites-link>a:before {
    content: '\e0e3';
    font-family: 'ETMODULES';
}

.online-shops-link>a:before {
    content: '\e015';
    font-family: 'ETMODULES';
}

.seo-link>a:before {
    content: '\55';
    font-family: 'ETMODULES';
}

.individual-link>a:before {
    content: '\e021';
    font-family: 'ETMODULES';
}

.company-link>a:before {
    content: '\70';
    font-family: 'ETMODULES';
}

.references-link>a:before {
    content: '\52';
    font-family: 'ETMODULES';
}

.about-us-link>a:before {
    content: '\e026';
    font-family: 'ETMODULES';
}

.contact-link>a:before {
    content: '\77';
    font-family: 'ETMODULES';
}

.site-notice-link>a:before {
    content: '\74';
    font-family: 'ETMODULES';
}

.blog-link>a:before {
    content: '\68';
    font-family: 'ETMODULES';
}

.unclickable>a {
    pointer-events: none;
}

/* Menu Flexbox */
#menu-main {
    display: flex;
    gap: 1.5vw;
}

#menu-main li {
    padding: 0 !important;
}

.et_pb_menu .et-menu {
    margin-left: 0;
    margin-right: 0;
}

/* 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;
}

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

/* Image 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;
}

/* Highlight grid */
.highlight-grid * {
    will-change: transform, opacity;
    transition: .25s;
}

.highlight-grid:hover>*:not(*:hover) {
    opacity: 25%;
}

/* Card Styles */
.line-card {
    --_animationspeed: 250ms;
    --_card-padding: 1.5rem;
    max-width: 35ch;
    color: black;
    overflow: hidden;
    transition: var(--_animationspeed) ease;
    display: grid;
    place-items: flex-end center;
    border-bottom: .2rem solid #6a130f;
    height: 100%;
}

.line-card * {
    margin: 0;
    font-weight: 600;
}

.line-card .et-pb-icon {
    font-size: 2em;
}

.line-card-content h2 {
    font-size: 1.2em;
    color: currentcolor;
}

.line-card-content {
    padding: var(--_card-padding);
}

@media (hover) {
    .line-card-content {
        transform: translateY(calc(100% - var(--_card-padding) - (var(--_card-padding) * 3)));
        transition: var(--_animationspeed) ease;
    }

    .line-card:hover .line-card-content,
    .line-card:focus-within .line-card-content {
        transform: translateY(0.5%);
        transition-delay: 0ms;
    }

    .line-card:focus-within .line-card-content {
        transition-duration: 0ms;
    }

    .line-card-content>*:not(.line-card-title, .et-pb-icon) {
        opacity: 0;
        transition: opacity var(--_animationspeed) ease-in-out;
    }

    .line-card:hover .line-card-content>*:not(.line-card-title),
    .line-card:focus-within .line-card-content>*:not(.line-card-title) {
        opacity: 1;
        transition-delay: var(--_animationspeed);
    }
}

/*
Styles for References:
https://tjweb.eu/referenzen/
*/

/* Entfernt die Orte Auswahl */
/* Diesen Code entfernen, wenn Orte wieder rein sollen */
#referenceFilter>div:nth-child(1) {
    display: none;
}

#main-content.reference-page {
    padding: 5rem 0rem 10rem;
}

.reference-page * {
    font-size: 1rem;
    position: relative;
}

.title-area {
    position: sticky;
    top: 10rem;
    left: 0;
}

.reference-title {
    text-align: center;
    font-weight: 900;
    font-size: 2.5vw;
    font-size: clamp(2rem, 2.5vw, 4rem);
    position: relative;
    max-width: max-content;
    margin: auto;
}

.reference-text {
    max-width: 60ch;
    text-align: center;
    margin: auto;
}

.reference-text a {
    text-decoration: underline;
    color: currentcolor;
}

#referenceContainer {
    max-width: 1500px;
    width: 95%;
    margin: auto;
}

.reference-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    gap: 1vw;
    margin-top: 4rem;
}

@media screen and (max-width: 1280px) {
    .reference-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    .reference-row {
        grid-template-columns: repeat(1, 1fr);
    }
}

.reference-row>* {
    display: grid;
    place-items: center;
}

.reference-row img {
    display: block;
    max-width: 15rem;
    max-height: 12rem;
    aspect-ratio: 4/3;
    object-fit: contain;
}

@media screen and (max-width: 500px) {
    .reference-row img {
        aspect-ratio: 16/9;
    }
}

#referenceFilter {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

#referenceFilter select,
#referenceFilter button {
    font-size: 1rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: .25em;
    border: .15em solid black;
    box-shadow: .2em .2em 0em #222;
}

#referenceFilter button {
    margin: 0;
    border: none;
    background: rgb(106, 19, 15);
    background: linear-gradient(135deg, rgba(106, 19, 15, 1) 0%, rgba(62, 1, 0, 1) 100%);
    color: white;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5em;

    &:after {
        content: '\55';
        font-family: 'ETMODULES';
        font-size: 1em;
    }
}

@media (hover) {
    .reference-row img {
        transition: .25s;
        will-change: scale;

        &:hover {
            scale: 110%;
        }
    }

    #referenceFilter select,
    #referenceFilter button {
        transition: .25s;
        will-change: transform;
    }

    #referenceFilter select:hover,
    #referenceFilter button:hover {
        transform: translateY(-.2em);
    }
}

/* Referenzen Ladesymbol */
.filterLoader {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(200%);
}

.filterLoader.show {
    display: block;
}

.filter-wrap {
    max-width: max-content;
    margin: auto;
}

.loader {
    width: 2rem;
    height: 2rem;
    border: .2rem solid transparent;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation .5s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: .15rem solid transparent;
    border-bottom-color: rgb(106, 19, 15);
    border-top-color: rgb(106, 19, 15);
}

@keyframes rotation {
    to {
        transform: rotate(1turn);
    }
}

@media screen and (max-width:720px) {
    .filterLoader {
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translate(50%, 150%);
    }
}

@media screen and (max-width:500px) {
    #referenceFilter {
        grid-template-columns: repeat(1, auto);
    }

    .filterLoader {
        transform: translate(50%, 120%);
    }
}

/* Amelia Styles */
.am-fs__wrapper {
	margin: 0 auto !important;
}

div.el-form-item:nth-child(7),
div.el-form-item:nth-child(8) {
	display: block !important;
}

.am-fs__congrats-info-app-employee {
    display: none !important;
}

.am-fs__congrats-info-app-location {
    display: none !important;
}

@media screen and (max-width:980px),
(orientation:portrait) {
    .amelia-v2-booking #amelia-container .am-fs__info-form {
        grid-template-columns: repeat(1, 1fr);
        gap: .5rem !important;
    }

    div.el-form-item:nth-child(7) {
        grid-column: span 1;
    }
}

footer {
	position:relative;
	z-index:0;
}

/* Borlabs Styles */
#BorlabsCookieBoxWidget svg {
  color:transparent;
  background-image: url(/wp-content/uploads/fingerprint-regular.png);
  background-size: contain;
}

#BorlabsCookieBoxWidget svg {
  width:60px;
  height:60px;
}

/* Reviews styles */
.rplg-list .rplg-review-text {
	color:black !important
}

/* Link and Button image cursor */
a,
button,
.et_clickable {
	cursor:url('/wp-content/uploads/tjwebicon.png') 16 16, auto;
}


/** LOGO TILT **/
.js-tilt-glare-inner { background: none!important; }

/* attention seeker button */
.notice-me {
    --iterations: 10;
    /* How often should it shake */
    --shake-speed: 0.2s;
    /* How fast should it shake */
    --shake-strength: 5deg;
    /* How strong should it shake */
    --interval: 15s;
    /* How long should it wait between shakes */
    /* To avoid a visual bug, the interval is adjusted in the JS */
    /* interval + (iterations * shake-speed) = total waiting time */
}

@keyframes attention-please {

    0%,
    50%,
    100% {
        transform: rotate(var(--shake-strength));
    }

    25%,
    75% {
        transform: rotate(calc(var(--shake-strength) * -1));
    }
}

/* manrope-200 - 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: 200;
    src: url('fonts/manrope-v15-latin-200.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-300 - 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: 300;
    src: url('fonts/manrope-v15-latin-300.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('fonts/manrope-v15-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-500 - 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: 500;
    src: url('fonts/manrope-v15-latin-500.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('fonts/manrope-v15-latin-600.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('fonts/manrope-v15-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* manrope-800 - 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: 800;
    src: url('fonts/manrope-v15-latin-800.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}