/*
 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 {
	--primary-color: #bf9c5b;
}

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

* {
    margin: 0;
    padding: 0;
}

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

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

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

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], select, textarea {
  margin: 0px 0px 20px 0px !important;
}

.wpcf7 input,
.wpcf7 textarea {
  padding: 1.2em;
  border: 2px solid var(--primary-color) !important;
  color: white !important;
  background: transparent;
  font-size: 1rem;
}

::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #fff !important;
  opacity: 1;
}

/*Contact form 7 Submit Button*/
.wpcf7 input[type=submit] {
  padding: 10px 20px;
  /*Submit Farbe*/
  background: transparent;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 1vw;
  transition-duration: 0.5s;
}

.wpcf7 input[type=submit]:hover {
  /*Submit Hover Farbe*/
  background: rgba(255, 255, 255, 0.25);
}

/*ENDE*/
/*Kontaktformular Spalten*/
/* Mobile / Desktop */
@media only screen and (min-width: 1100px) {
  .wps-form-row {
    flex-direction: row;
    display: flex;
    gap: 1rem;
  }

  .wps-form-column-left {
    padding-right: 10px;
    flex: 1;
    width: 100%;
  }

  .wps-form-column-right {
    padding-left: 10px;
    flex: 1;
    width: 100%;
  }

  .wps-form-column-center {
    padding: 0px 10px;
    flex: 1;
    width: 100%;
  }
}

/*ENDE*/
.ds-box {
  font-size: 15px;
  line-height: 1.4em;
}

.wpcf7 p {
  padding: 0px;
}

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

/* Custom aspect ratio for images */
.tj-custom-image-ratio {
    --custom-aspect-ratio: 16/9;
}

.tj-custom-image-ratio img {
    aspect-ratio: var(--custom-aspect-ratio);
    object-fit: cover;
    width: 100% !important;
}

/* Google Maps 2-Click-Lösung */
.map-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Adjust as needed */
  height: 500px; /* Adjust as needed */
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: stretch flex-end;
  gap: 0.25rem;
  border: none;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  container-type: inline-size;
}
.map-container .map-content-wrap {
  width: 100%;
  background-color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.map-container .map-content-wrap p {
  width: 95%;
  max-width:50ch;
  line-height: 1.4em;
  margin: 0;
}
.map-container button {
  padding: 0.75em 1.25em;
  font-size: 1rem;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  display: block;
}
.map-container .unload-maps-btn {
  font-size: 0.8em;
  font-weight: 500;
  padding: 0.5em 0.75em;
  background: #eee;
  color: #222;
  border-radius: 0;
}

@container (min-width:45rem) {
  .map-container .unload-maps-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 10;
    transform: translatey(calc(100% + 0.15rem));
  }
}

.map-container iframe {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}