.header-height {
	min-height: 600px !important;
}


.header-transition {
    /*background-color: #f0e6e6; /* Initial color */
    /*color: white;*/
    /*padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;*/
    transition: all 0.15s ease;
	/*visibility: hidden;*/
	/*background-color: #FFFFFF; /* Color after scrolling */
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /*height: 80%;*/
}

/* Scrolled header style */
.header-transition.scrolled {
	padding-top: 0px;
    background-color: #FFFFFF; /* Color after scrolling */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: black !important;
	visibility: visible;
}

.header-transition p,
.header-transition a {
    transition: color 0.3s ease;
}

.header-transition.scrolled p,
.header-transition.scrolled a {
    color: black !important;
	visibility: visible;
}

.header-transition .wp-block-button a,
.header-transition.scrolled .wp-block-button a {
    /*color: white !important;*/
    transition: none;
}

.header-transition .sticky-header {
    transition: padding 0.3s ease;
	padding-top: 40px !important;
}

.header-transition.scrolled .sticky-header {
    padding-top: 0px !important;
    padding-bottom: 5px;
}

.yikes {
    top: -120px;
}

.remove-deco a {
	text-decoration: none !important;
}

:root {
    --primary-color: #262626;
}

form.wpcf7-form label {
	color: white;
}

input.wpcf7-form-control {
    color: #fff;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    padding: 13px;
    margin-bottom: 15px;
    width:100%;
    box-sizing: border-box;
    outline:0;
}

textarea.wpcf7-form-control {
    color: #fff;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    padding: 13px;
    margin-bottom: 15px;
    width:100%;
    box-sizing: border-box;
    outline:0;
}

input[type=submit] {
  background-color: #FFFFFF;
  color: black;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
}

input[type="checkbox"] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {

  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  box-shadow: inset 1em 1em var(--form-control-color);
    background-color: CanvasText;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

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

/* Select box container */
.wpcf7-select {
  appearance: none; /* Remove default styling on some browsers */
  -webkit-appearance: none; /* For Safari and Chrome */
  -moz-appearance: none; /* For older versions of Firefox */
  
  width: 100%;
  max-width: 400px; /* Adjust as needed */
  padding: 12px 15px;
  margin: 8px 0;
  
  background-color: #ffffff;
  border: 1px solid #ffffff;

  font-size: 16px;
  color: #ffffff;
  
  background-image: linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%),
    linear-gradient(to right, #fff, #fff);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    100% 0;
  background-size:
    5px 5px,
    5px 5px,
    2.5em 2.5em;
  background-repeat: no-repeat;
}

/* Styling for when the select box is focused */
.wpcf7-select:focus, .wpcf7-text:focus, .wpcf7-textarea:focus {
  outline: none;
  border-color: #000000;
}

/* Optional: Style for invalid inputs if using form validation */
.wpcf7-not-valid {
  border-color: #ff0000;
  background-color: #fff0f0;
}

/* Option styling */
.wpcf7-select option {
  background-color: #fff;
  color: #333;
}

/* For better accessibility, you might want to style when an option is selected */
.wpcf7-select option:checked {
  background: #007bff linear-gradient(0deg, #007bff 0%, #007bff 100%);
  color: white;
}

/* Hover effect for options */
.wpcf7-select option:hover {
  background: #f0f0f0;
}

/* Error messages */
.wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 0.9em;
  display: block;
  margin-top: 5px;
  background-color: #ffebee;
  padding: 5px 10px;
  border-left: 4px solid #dc3232;
  border-radius: 0 4px 4px 0;
}

/* Response output container (for all messages) */
.wpcf7-response-output {
  margin: 2em 0.5em 1em;
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1em;
  color: black;
}

/* Success messages */
.wpcf7-mail-sent-ok {
  background-color: #e8f5e9;
  color: #388e3c;
  border-left: 4px solid #4caf50;
}

/* Error messages for the entire form submission */
.wpcf7-validation-errors, 
.wpcf7-acceptance-missing {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffeb3b;
}

/* Styling for the 'X' close button if you want to add one */
.wpcf7-response-output .close-button {
  float: right;
  cursor: pointer;
  font-size: 1.2em;
  line-height: 1;
  color: #000;
  opacity: 0.5;
}

.wpcf7-response-output .close-button:hover {
  opacity: 1;
}

/* If you're using a screen reader only text for validation */
.screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sticky-header {
  padding-top: 20px;
  padding-bottom: 20px;
  position: sticky;
  top: 0px;
}

.header-inner {
  padding-right: 1rem;
  padding-left: 1rem;
}

.header-social-links {
  --wp--style--block-gap: 0 var(--wp--preset--spacing--10);
  margin-right: var(--wp--preset--spacing--10);
  margin-left: var(--wp--preset--spacing--10);
}

.wp-block-navigation {
  margin-top: 0;
  --wp--style--block-gap: var(--wp--preset--spacing--10);
}


@media only screen and (max-width: 600px) {
    #modal-1-content > ul > li {
        font-size: 1.5em !important;
        color: black !important;
        line-height: 2em;
		visibility: visible !important;
    }
	
	#modal-1-content > ul {
        align-items: center !important;
    }
	
	#modal-1-content {
		align-items: center !important;
	}
	
	.header-transition.scrolled nav > button {
		visibility: visible;
		color: black;
	}
    
    #modal-1 > div > div > button {
        margin-top: 20px;
        margin-right: 20px
    }
    .m4ster-mobile h3 {
      text-align: center;
    }
    .m4ster-mobile p {
        text-align: center;
    }
    .m4ster-mobile div {
        justify-content: center;
    }
    .m4ster-mobile-gap {
      /*margin-top: 0 !important;*/
      margin-bottom: 0 !important;
    }
  }


  .reviews-slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.reviews-slider {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    touch-action: pan-y;
}

.review-item {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.slider-dot.active {
    background-color: #262626;
}

.blur-cover {
    position: relative;
    overflow: hidden;
}

.blur-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
	transform: scale(1.05);
    transition: all 0.3s ease;
}

.blur-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.blur-cover:hover img {
    filter: blur(0);
}

.blur-cover > *:not(img) {
    position: relative;
    z-index: 2;
}

.cover-text-mobile a{
	text-decoration: none !important;
}

.grayscale {
	filter: grayscale(100%);
}

.contrast {
	filter: contrast(1%);
}

.rotate90 {
	rotate: 90deg;
}

.remove-underline a {
	text-decoration: none !important;
}

@media (min-width: 769px) { 
	.not-desktop {
		display: none;
	}
}

@media (max-width: 768px) {
	.header-height {
		min-height: 342px !important;
	}
	
   .gallery-item {
       flex: 0 0 100%; /* Jedes Bild nimmt die volle Breite ein */
   }

   .blur-cover {
		min-height: 42vh !important;	
   }
   
	#modal-1 a  {
    	color: white !important;
		visibility: visible !important;
	}
	
	#modal-1 {
		visibility: visible;
		/*background-color: #7D2C4C !important;*/
		align-items: center !important;
	}
	
	.cover-text-mobile-1 {
		font-size: 2.5rem !important;
	}
	.cover-text-mobile-2 {
		font-size: 2.1rem !important;
	}
	.cover-text-mobile-3 {
		font-size: 1.5rem !important;
	}
	.cover-button-mobile {
		width: 45px !important;
	}
	.nav-mail-tel p {
		padding-inline: 10px !important;
	}
	.nav-mail-tel div {
		justify-content: space-evenly !important;
	}
	.nav-items {
		gap: 40px !important
	}
	.grid-home {
		grid-template-columns: repeat(1, minmax(0, 1fr))
	}
	
.mobile-2x2-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Two equal-width columns */
        grid-gap: 20px; /* Space between grid items */
        padding: 0 var(--wp--preset--spacing--10); /* Maintain existing padding */
    }

    .mobile-2x2-grid .wp-block-column {
        flex-basis: 100% !important; /* Override flex-basis */
        max-width: 100% !important; /* Ensure columns fit within grid */
        margin: 0; /* Remove default margins */
    }

    .mobile-2x2-grid .wp-block-column .wp-block-image img {
        width: 100% !important; /* Make images responsive */
        height: auto !important; /* Maintain aspect ratio */
        max-height: 90px; /* Consistent height */
        object-fit: contain; /* Ensure images fit without cropping */
    }

    .mobile-2x2-grid .wp-block-button__link {
        text-align: center;
        /*padding: var(--wp--preset--spacing--10) !important;*/
        line-height: 1.1 !important; /* Adjust for better appearance */
    }
	
	.mobile-2x2-grid .wp-block-button {
        width: 100% !important;
    }

    .mobile-2x2-grid .wp-block-spacer {
        height: 20px !important; /* Reduce spacer size for mobile */
    }
	
	.mobile-2x2-grid a {
		padding-inline: 20px !important;
		
	}
	
	.not-mobile {
		display: none;
	}

	.nav-logo {
		margin-bottom: 10px !important;
		margin-top: 10px !important;
	}
}