/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme, Bei Fragen Kontaktieren Sie uns gerne unter 02821-7203201 oder per E-Mail an info@tjweb.eu
 Author:         TJ Web GmbH
 Author URI:     https://www.tjweb.eu
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

:root {
    font-size: 1rem;
    font-size: clamp(14px, .4rem + .6vw, 24px) !important;
}

/* Fixes page-wide overflow issues */
html, body {overflow-x: hidden !important}

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

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

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

/* DIVI Parallax Position */
.et-pb-parallax-background {
    background-position: center !important;
}

/* Contact form */
/* Styles configuration */
:root {
    --cf7-input-text: #aaa;
    --cf7-accent: var(--gcid-primary-color);
    --cf7-accent-hover: var(--gcid-w6d4x53mur);
    --cf7-accent-outline: var(--gcid-primary-color);
    --cf7-accent-text: #ffffff;
    --cf7-warning: #ff2222;
    --cf7-warning-bg: #FFEDEC;
    --cf7-success: #00B474;
    --cf7-success-bg: #E6FFF0;
}

.wpcf7 .wps-form {
    display: grid;
    grid-template: auto / 1fr;
    place-items: stretch;
    gap: 1rem;
}

.wpcf7 .wps-form-row {
    display: grid;
    grid-template: auto / repeat(2, 1fr);
    gap: 1rem;
}

/* General Settings */
.wpcf7 {
    width: 100% !important;
}

.wpcf7-list-item {
    margin-left: 0 !important;
    margin-right: 15px !important;
}

.wpcf7 a {
    color: var(--cf7-accent) !important;
    text-decoration: none;
}

.wpcf7 a:hover {
    color: var(--cf7-accent-hover) !important;
}

/* General Inputs */
.wpcf7 input[type=color],
.wpcf7 input[type=date],
.wpcf7 input[type=datetime-local],
.wpcf7 input[type=datetime],
.wpcf7 input[type=email],
.wpcf7 input[type=month],
.wpcf7 input[type=number],
.wpcf7 input[type=search],
.wpcf7 input[type=tel],
.wpcf7 input[type=text],
.wpcf7 input[type=time],
.wpcf7 input[type=url],
.wpcf7 input[type=week],
.wpcf7 textarea {
    border: .15rem solid #D5E0EB;
    background-color: #ffffff;
    border-radius: 0;
    line-height: 1.25;
    padding: .5rem 1rem;
    color: var(--cf7-input-text);
    min-height: 35px;
    width: 100%;
    font-size: var(--gvid-4re7r2lvj2);
}

/* Other Inputs */
.wpcf7 input[type=submit] {
    background-color: var(--cf7-accent);
    color: var(--cf7-accent-text);
    border: 0;
    padding: 1em 2em;
    border-radius: 0;
    transition: .2s linear;
}

.wpcf7 input:hover[type=submit] {
    background-color: var(--cf7-accent-hover);
    transition: .2s linear;
    cursor: pointer;
}

.wpcf7 input:focus[type=submit] {
    background-color: var(--cf7-accent-hover);
    outline: none;
    border: 0;
    box-shadow: 0 0 0 3px var(--cf7-accent-outline);
}

.wpcf7 input[type=file] {
    color: var(--cf7-input-text);
}

.wpcf7 input:focus[type=file] {
    outline: none;
    border: 0;
}

.wpcf7 input[type=file]::file-selector-button,
.wpcf7 select {
    border: .15rem solid #D5E0EB;
    background-color: #ffffff;
    border-radius: 0;
    line-height: 1.25;
    padding: 0.7em 1em;
    color: var(--cf7-input-text);
    min-height: 35px;
}

.wpcf7 input[type=file]::file-selector-button {
    cursor: pointer;
    margin-right: 20px;
}

#acceptance-privacy-policy {
	margin-top:.3rem;
}

/* Custom Checkbox */
.wpcf7 input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: .2rem solid var(--cf7-accent);
    border-radius: 0;
    margin: 0;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.wpcf7 input[type="checkbox"]:before {
    content: "\f147";
    font-family: 'dashicons';
    font-weight: 300;
    font-size: 1rem;
    line-height: 1em;
    width: 1em;
    height: 1em;
    color: white;
    text-align: center;
    border-radius: 0;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--cf7-accent);
}

.wpcf7 input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.wpcf7-checkbox label,
.wpcf7-acceptance label,
.wpcf7-radio label {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

/* Custom Radio */
.wpcf7 input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: var(--cf7-accent);
    width: 1rem;
    height: 1rem;
    border: .15rem solid var(--cf7-accent);
    border-radius: 0;
    display: grid;
    place-content: center;
    cursor: pointer;
}

.wpcf7 input[type="radio"]::before {
    content: "";
    width: .75rem;
    height: .75rem;
    border-radius: 100%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--cf7-accent);
}

.wpcf7 input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Other States */
.wpcf7 input:hover[type=color],
.wpcf7 input:hover[type=date],
.wpcf7 input:hover[type=datetime-local],
.wpcf7 input:hover[type=datetime],
.wpcf7 input:hover[type=email],
.wpcf7 input:hover[type=month],
.wpcf7 input:hover[type=number],
.wpcf7 input:hover[type=search],
.wpcf7 input:hover[type=tel],
.wpcf7 input:hover[type=text],
.wpcf7 input:hover[type=time],
.wpcf7 input:hover[type=url],
.wpcf7 input:hover[type=week],
.wpcf7 input:hover[type=file]::file-selector-button,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
    border: .15rem solid #92ACC7;
    outline: none;
    background-color: #ffffff;
}

.wpcf7 input:focus[type=color],
.wpcf7 input:focus[type=date],
.wpcf7 input:focus[type=datetime-local],
.wpcf7 input:focus[type=datetime],
.wpcf7 input:focus[type=email],
.wpcf7 input:focus[type=month],
.wpcf7 input:focus[type=number],
.wpcf7 input:focus[type=search],
.wpcf7 input:focus[type=tel],
.wpcf7 input:focus[type=text],
.wpcf7 input:focus[type=time],
.wpcf7 input:focus[type=url],
.wpcf7 input:focus[type=week],
.wpcf7 input:focus[type="checkbox"],
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.wpcf7 a:focus {
    border: .15rem solid #222;
    outline: none;
    box-shadow: 0 0 0 .15rem var(--cf7-accent-outline);
    background-color: #ffffff;
}

/* Invalid Fields */
.wpcf7-not-valid-tip {
    color: var(--cf7-warning) !important;
}

.wpcf7-not-valid:not(input[type=file]):not(span) {
    border-color: #FFBAB6 !important;
    background-color: #FFFAFA !important;
}

.wpcf7 input:disabled[type=submit],
.wpcf7 input:disabled[type=submit]:hover {
    color: #eee;
    background-color: #ccc;
    border: 0;
    cursor: not-allowed;
}

/* Response Messages */
.wpcf7 form.init .wpcf7-response-output {
    display: none;
}

.wpcf7 form .wpcf7-response-output {
    /* Default */
    margin: .75em 0 !important;
    padding: .5em 1em !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    /* Success */
    background-color: var(--cf7-success-bg) !important;
    color: var(--cf7-success) !important;
    border: 0 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    /* Failed */
    background-color: var(--cf7-warning-bg) !important;
    color: var(--cf7-warning) !important;
    border: 0 !important;
}

/* Turn DIVI element into a CSS grid */
.grid-convert {
    --column-count: 3;
    --column-count-mobile: 1;
    --gap: 1rem;
    --gap-mobile: 1rem;
    display: grid;
    grid-template: auto / repeat(var(--column-count), 1fr);
    gap: var(--gap);
    place-items: stretch;
}

.grid-convert.et_pb_row:after {
    display: none !important;
}

.grid-convert.et_pb_row .et_pb_column {
    width: 100% !important;
}

/* Mobile layout */
@media screen and (max-width:980px),
(orientation: portrait) {
    .grid-convert {
        grid-template: 1fr / repeat(var(--column-count-mobile), 1fr);
        gap: var(--gap-mobile);
    }
}

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

/* Miscellaneous fixes and changes */
.mfp-title {
	display:none;
}

/* REMOVES HPT CF7 FIELD & EMPTY <p> tags (removes unnecessary spacing) */
.wpcf7-form p {
	display: none;
	padding:0 !important;
}

.wpcf7-form br {
  display: none !important;
}

.wpcf7-form p:has(*) {
	display: block!important;
}

.wpcf7-form p:has(#adress) {
	display: none!important;
}


/**
 * Google Webfonts
 */
/* 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-v20-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-v20-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-v20-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-v20-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-v20-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-v20-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-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/oswald-v57-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/oswald-v57-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/oswald-v57-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/oswald-v57-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/oswald-v57-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/oswald-v57-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}