/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*
	INHALTSVERZEICHNIS

	Hintergrundfarbe der Seitenelemente
	Überschriften innerhalb des site-content-DIV
	Footer Widgets 
	Contact Form
	SliderRevolution


*/



/***********************************************************************************************
 Hintergrundfarbe der Seitenelemente
***********************************************************************************************/
body {
	background-color: #E8E1D7;
	color: #333333;						/* Schriftfarbe */
}



/***********************************************************************************************
 Überschriften innerhalb des DIV #content
***********************************************************************************************/
#content h1, h2, h3, h4, h5 {
/*  color: #BF3918;                     /* Schriftfarbe edles Rot */
  font-weight: 400;                   /* Font etwas stärker, weil sonst sehr dünn als Überschrift*/
}



/***********************************************************************************************
 Footer Widgets
***********************************************************************************************/

#footer-widgets h3 {
  font-size: 17px;
  font-weight: 700;
  color: #BF3918;
  font-variant: small-caps;
  letter-spacing: 1px;
}

#footer-widgets p {
  font-size: 13px;
  font-weight: 400;
}
  
/***********************************************************************************************
 SliderRevolution
***********************************************************************************************/



/***********************************************************************************************
 Contact Form 7 – Finales CSS mit animiertem SVG-Haken
***********************************************************************************************/

/* Formularrahmen */
.wpcf7 form {
  max-width: 600px;
  margin: 0 auto;
  font-family: inherit;
}

/* Eingabefelder & Buttons */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 .wpcf7-submit {
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: all 0.2s ease;
  margin: 0;
}

/* Fokus-Stil: ANTHRAZIT */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border: 2px solid #2c2c2c;
  background-color: #f5f5f5;
}

/* Labels */
.wpcf7 .CF7_label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  margin-top: 8px;
  font-size: 1rem;
  color: #333;
  padding-left: 10px;
}

.wpcf7 .CF7_text {
  margin-bottom: 8px;
}

.wpcf7 input[name="your-phone"] {
  margin-bottom: 16px;
}

/* Textareas */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
  margin-top: 48px;
}

/* Submit-Button */
.wpcf7 .wpcf7-submit {
  background-color: #BF3918;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.wpcf7 .wpcf7-submit:hover {
  background-color: #9E2000;
}

/* Zweispalten-Struktur */
.wpcf7 .CF7_row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.wpcf7 .CF7_half {
  flex: 1;
}

.wpcf7 .CF7_plz {
  flex: 0 0 100px;
}

.wpcf7 .CF7_ort {
  flex: 1;
}

@media (max-width: 600px) {
  .wpcf7 .CF7_row {
    flex-direction: column;
  }

  .wpcf7 .CF7_plz {
    flex: 1 1 auto;
  }
}

/* ===============================
   Checkboxen: Layout & Optik
=============================== */

.wpcf7 .CF7_checkbox-group {
  margin-top: 16px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 10px;
}

.wpcf7 .CF7_checkbox-group:last-of-type {
  margin-bottom: 16px;
}

.wpcf7 .CF7_label-flex {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  position: relative;
}

/* Einheitlicher Checkbox-Stil */
.wpcf7 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #aaa;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}

/* ✅ Aktiv: grüner Hintergrund */
.wpcf7 input[type="checkbox"]:checked {
  background-color: #4CAF50 !important;
  border-color: #4CAF50 !important;
}

/* 🔲 Fokus */
.wpcf7 input[type="checkbox"]:focus {
  outline: 2px solid #2c2c2c;
  outline-offset: 2px;
  background-color: #4CAF50 !important;
  border-radius: 10px;
}

/* ✔ Animierter, fetter, weißer SVG-Haken */
.wpcf7 input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M4 10l4 4 8-8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;

  /* Animation */
  opacity: 0;
  transform: scale(0.8);
  animation: checkmarkFade 0.3s ease-out forwards;
}

@keyframes checkmarkFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text neben Checkbox */
.wpcf7 .CF7_label-flex span {
  display: inline-block;
  flex: 1;
  word-break: break-word;
  max-width: calc(100% - 28px);
}

/* ===============================
   Fehlerdarstellung
=============================== */
input.wpcf7-not-valid,
textarea.wpcf7-not-valid,
select.wpcf7-not-valid {
  border: 3px solid #ff0000 !important;
}

/* ===============================
   Acceptance (Datenschutz)
=============================== */

.wpcf7 .wpcf7-acceptance {
  margin-top: 48px !important;
  margin-bottom: 16px;
  padding-left: 0;
}

.wpcf7 .wpcf7-acceptance label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 100%;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #aaa;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease, border-color 0.2s ease;
  z-index: 1;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: #4CAF50 !important;
  border-color: #4CAF50 !important;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:focus {
  outline: 2px solid #2c2c2c;
  outline-offset: 2px;
  background-color: #4CAF50 !important;
  border-radius: 10px;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M4 10l4 4 8-8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  animation: checkmarkFade 0.3s ease-out forwards;
}



