
#leistungsfinder-formular form * {
    font-size: 16px;
}

#leistungsfinder-formular form {
  font-family: 'Roboto', 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
}

#leistungsfinder-formular label span {
  display: none;
}

#leistungsfinder-formular input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 5px 20px;
    transition: all 0.2s ease;
    border: unset;
}


#leistungsfinder-formular input[type="text"]:focus {
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
  outline: none;
}


#leistungsfinder-formular button {
  height: 54px;
  padding: 5px 20px;
  border: none;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.has-red-background-color #leistungsfinder-formular button[type=submit] {
    background-color: #32373C; 
}

.has-red-background-color #leistungsfinder-formular button[type="submit"]:hover {
    background-color: #4a4f55; 
}

.order-button {
    text-decoration: none;
    background-color: #E20D19;
    width: fit-content;
    padding: 15px 20px;
    border: none;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: block;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#leistungsfinder-formular button[type="submit"]:hover {
    background-color: #BB0015;
}

#leistungsfinder-formular button[type="submit"] {
    background-color: #E20D19;
    width: fit-content;
    padding: 5px 40px;
}

#leistungsfinder-formular button[type="submit"]:active {
  transform: scale(0.98);
}

/* "Use my location" button */
#leistungsfinder-formular #use_my_location {
  background-color: #32373C;
}

#leistungsfinder-formular #use_my_location:hover {
  background-color: #4a4f55;
}

.has-red-background-color #leistungsfinder-formular button.open-info-modal {
    display: none;
}

.has-red-background-color #leistungsfinder-formular #use_my_location {
    background-color: #E20D19;
    border: 2px solid white;
}

#leistungsfinder-formular #use_my_location:active {
  transform: scale(0.98);
}

/* Dropdown styling */
#leistungsfinder-formular select {
    width: 100%;
    height: 42px;
    padding: 5px 20px;
    border: unset;
    background-color: #fff;
    appearance: none; /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.2);
    border-radius: 5px;
}

/* Custom arrow using pseudo-element */
#leistungsfinder-formular select {
    background-image: url("../img/acc-arrow.svg");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 17px;
    width: 360px;
    height: 48px;
}

#leistungsfinder-formular #user_location_autocomplete {
    width: 360px!important;
}

/* Hover and focus states */
#leistungsfinder-formular select:hover {
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

#leistungsfinder-formular select:focus {
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

option#placeholder {
    color:red!important;
}

#leistungsfinder-formular select:invalid {
    color: #757575; /* placeholder color */
}

/* =========================
   Layout Wrappers
========================= */
#locationwrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Specific width overrides for layout balance */
#leistungsfinder-formular #search {
  width: 360px;
}

#leistungsfinder-formular #user_location {
  width: 350px;
}

/* AJAX STYLES */

/* Autocomplete suggestions */
.autocomplete-suggestions {
    position: absolute;
    background: white;
    color: black;
    margin-top: 2px;
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    width: 450px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.autocomplete-suggestions li {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.autocomplete-suggestions li:hover {
  background-color: #f5f5f5;
}

.autocomplete-suggestions li.selected {
    background-color: #e0e0e0; /* Highlight for keyboard navigation */
}



ul.standort-results-list {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 0;
}

ul.standort-results-list.single {
    grid-template-columns: 2fr 2fr;
}

ul.standort-results-list li {
    background-color: #F2F2F2;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

ul.standort-results-list h3 {
    margin: 0 0 10px 0;
    font-size: 21px;
}

ul.standort-results-list h4 {
    margin: 0 0 10px 0;
}

.tagcloud span {
    background-color: white;
    padding: 5px 12px;
}

.tagcloud span:hover {
    background-color: #cccccc;
    pointer-events: auto;
}

.tagcloud span a {
    text-decoration: none;
}

.tagcloud {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.standort-results-list .company-link:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("../img/arrow-right-circle.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 9px;
    left: 10px;
}

.standort-results-list .company-link {
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

span.distance {
    margin-bottom: 5px;
    display: block;
    position: relative;
    top: -8px;
}

span.distance:before {
    content: '';
    display: inline-block;
    width: 21px;
    height: 25px;
    background-image: url("../img/location.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 6px;
    left: -4px;
    background-position: center;
}

.company-info address {
    font-style: normal;
}

.company-info address a {
    text-decoration: none;
    font-weight: 400;
}


#standort-search-banner {
    background: #2C2C2C;
    padding: 27px;
    position: relative;
    margin-top: 30px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

#standort-search-banner * {
    color: white;
    font-size: 18px;
}

#standort-search-banner strong {
    font-weight: 500;
}

#close-search-banner {
    top: -5px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    font-weight: 100;
    font-family: inherit;
    line-height: 0;
    position: relative;
}

/* Pulse animation definition */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* Apply animation when targeted */
#buchen:target {
  animation: pulse 0.6s ease-in-out 3; /* duration, easing, repeat count */
}

/* MODAL */

.info-modal {
    display: none;
}

.info-modal.active {
    display: block;
}


.info-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw!important;
    height: 100%;
}

.info-modal:before {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background: rgba(0,0,0,0.6);
    content: '';
    display: block;
}

.info-modal-content > h2 {
    color: #E20D19;
}

#leistungsfinder button.open-info-modal {
    padding: 9px 12px;
    height: unset;
    color: white;
    background-color: #E20D19;
    position: relative;
    top: -1px;
    left: 6px;
}

button.open-info-modal.is-style-outline {
    color: white;
    background: unset;
    padding: 18px 26px;
    border: 2px solid white;
    font-size: 18px;
    font-family: inherit;
}

button.open-info-modal.is-style-outline:hover {
    cursor: pointer;
}

button.open-info-modal.is-style-outline img {
    margin-left: 10px;
}


#leistungsfinder .open-info-modal img {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

.info-modal-content {
    background: white;
    padding: 20px;
    position: relative;
    overflow-y: auto; /* scroll inside if content is tall */
    transform: translateY(-50%);
    top: 50%;
    width: 60%;
    margin: 0 auto!important;
}

.info-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
}



.info-modal {
    display: none; /* keep hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    overflow: auto;
}


.info-modal-content {
    background: white;
    padding: 20px;
    max-height: 90vh;       /* limit height to viewport */
    overflow-y: auto;       /* scroll inside modal */
    width: 60%;
    border-radius: 5px;
    position: relative;
}


.info-modal:before {
    z-index: 1; /* behind content */
}

.info-modal-content {
    z-index: 2;
}

