/*
 Theme Name:   Infratouch Divi Child
 Theme URI:    http://www.elegantthemes.com
 Description:  Infratouch Divi Child Theme
 Author:       Sabrina Schulz
 Author URI:   https://infratouch.de
 Template:     Divi
 Version:      1.0
*/

:root {
  	--gold:#a3801a;
	 --gold-hover: #c59b2a;
     --text-light: #fff;
}

/* Fonts */

h1 {hyphens: none!important}
h1, h2, h3, h4, h5,  h6 {   font-family: 'Merriweather';}
body {font-family: 'Roboto'Helvetica,Arial,Lucida,sans-serif}



body h1 {font-size: calc(34px + (40 - 34) * (100vw - 400px) / (1200 - 400))!important}
body h2 {font-size: calc(28px + (34 - 28) * (100vw - 400px) / (1200 - 400))!important}
body h3 {font-size: calc(20px + (30 - 20) * (100vw - 400px) / (1200 - 400))!important}
body h4 {font-size: calc(16px + (20 - 16) * (100vw - 400px) / (1200 - 400))}
body h5,
body h6 {font-size: 1.1em}



/* Globaler Flex Container */
.flex-container {display: -ms-flex;display: -webkit-box;display: -ms-flexbox;display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;}
.flex-container-row {display: -ms-flex;display: -webkit-box;display: -ms-flexbox;display: flex;-ms-flex-direction: row; -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; flex-wrap: nowrap;-ms-flex-wrap: nowrap;}
.flex-container-row-wrap {display: -ms-flex;display: -webkit-box;display: -ms-flexbox;display: flex;-ms-flex-direction: row; -webkit-box-orient: horizontal; -webkit-box-direction: normal; flex-direction: row; flex-wrap: wrap;-ms-flex-wrap: wrap;flex-wrap: wrap;}
.flex-item {-ms-flex-order: 0; -webkit-box-ordinal-group: 1; order: 0; -ms-flex: 0 1 auto; -webkit-box-flex: 0; flex: 0 1 auto; -webkit-align-self: auto; -ms-flex-item-align: auto; -ms-grid-row-align: auto; align-self: auto;}

.space {justify-content: space-between;}


/* Flipbox */

#leistungen  {width:80%;  perspective: 1000px;display:flex;flex-direction: row;
    flex-wrap: wrap; gap:20px;justify-content:center; margin: 0 auto; padding:50px 0 }

#leistungen .et_pb_row {
  position: relative;
flex: 1 1 250px;  

  height: 250px!important;
  margin: 0px;
  padding:0;
}

.flipbox {height:100%}

.flipbox .flip-front,
.flipbox .flip-back {
	width:100%;height:100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.flipbox .flip-front {background: #fff;z-index: 2;transform: rotateY(0deg)}
.flipbox .flip-back {background: var(--gold);color: #fff;transform: rotateY(180deg);z-index: 1; font-weight:600}
.flipbox:hover .flip-front {transform: rotateY(-180deg)}
.flipbox:hover .flip-back {transform: rotateY(0deg)}





/* Kontaktformular */
/* Basis */
.cf7-fahrschule {
  font-family: sans-serif;
}

.cf7-fahrschule label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
}

/* Eingabefelder */
.cf7-fahrschule input,
.cf7-fahrschule select,
.cf7-fahrschule textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.cf7-fahrschule input:focus,
.cf7-fahrschule select:focus,
.cf7-fahrschule textarea:focus {
  border-color: #a07f25;
  outline: none;
}

/* Grid Layouts */
.cf7-fahrschule .form-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 20px;
}

.cf7-fahrschule .form-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.cf7-fahrschule .form-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* Adresse */
.cf7-fahrschule .address-grid {
  display: grid;
  grid-template-columns: 50% 15% 35%;
  gap: 15px;
  margin-bottom: 20px;
}

/* Options (Radio) */
.cf7-fahrschule .options {
  display: flex;
  gap: 15px 25px;
}

.cf7-fahrschule .options input[type="radio"] {
  display: none;
}

.cf7-fahrschule .options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 15px;
}

.cf7-fahrschule .options label::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid #a07f25;
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
}

.cf7-fahrschule .options input[type="radio"]:checked + span::before {
  background: #a07f25;
  box-shadow: inset 0 0 0 5px #fff;
}

/* Submit Button */
.cf7-fahrschule input[type="submit"] {
  background: #a07f25;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cf7-fahrschule input[type="submit"]:hover {
  background: #8c6e1e;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .cf7-fahrschule .form-grid.two-col,
  .cf7-fahrschule .form-grid.three-col,
  .cf7-fahrschule .address-grid {
    grid-template-columns: 1fr;
  }
}



/* Button-Style */

.et_pb_menu__menu, .et_pb_menu__menu>nav, .et_pb_menu__menu>nav>ul {align-items: flex-end!important;}


.btnanmelden a {
  display: inline-block;
padding-left:1em!important;
	padding-right:1em!important;
  background-color: var(--gold);
  color: var(--text-light)!important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.et_mobile_menu .btnanmelden a { color: var(--text-light)!important;}

/* Hover-Effekt */
.btnanmelden a:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.et-pb-arrow-next:before , .et-pb-arrow-prev:before, .et_mobile_menu a {color:var(--gold)!important}

.et_pb_button_one, .et_pb_button_two {width:100%; max-width:300px}
