.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.center-content {
    padding-top: 10vw;
    max-width: 1320px;
}

.big.btn-primary {
    height: 4rem;
}

#searchterms {
    height: 100%;
    display: flex;
    justify-content: center; /* This is for horizontal centering */
    align-items: center;     /* This is for vertical centering */
}

#searchterms .col-md-4 .d-large {
    display: inline-block !important;
}

#searchterms .col-md-4 .d-mobile {
    display: none !important;
}

#searchterms .col-md-4:not(:last-child) {
    position: relative;
}

#searchterms .col-md-4:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0; /* Start des Trennstrichs oben */
    bottom: 0; /* Ende des Trennstrichs unten */
    right: 0; /* Trennstrich rechts des Buttons */
    width: 1px; /* Breite des Trennstrichs */
    background-color: #ccc; /* Farbe des Trennstrichs */
    height: 100%; /* Gesamte Höhe der Box */
}

input {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    background-color: transparent;
    width: 100%;
    font-weight: bold;
    font-size: x-large;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

input::placeholder {
    color: lightgray;
}

.rounded-5 {
    border-radius: .7rem !important;
}

#search-container {
    position: sticky; /* Fixiert die Leiste im Viewport */
}

/* Ergebnisse-Container */
#results-container {
    position: relative; /* Ergebnisse erscheinen relativ zum Container */
    overflow: hidden; /* Überlauf verhindern */
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    max-height: 0; /* Standard: Container geschlossen */
    opacity: 0; /* Unsichtbar */
    visibility: hidden; /* Unsichtbar */
}

/* Ergebnisse sichtbar */
#results-container:not(.hidden) {
    max-height: 1000px; /* Genug Platz für die Inhalte */
    opacity: 1; /* Sichtbar */
    visibility: visible; /* Sichtbar */
}

/* Ergebnisse */
#results-container .results {
    display: none; /* Standard: Ergebnisse ausgeblendet */
    padding: 15px;
    z-index: 50;
}

/* Sichtbare Ergebnisse */
#results-container .results:not(.hidden) {
    display: block;
}

/* Hover-Effekt für die Buttonleiste */
#searchterms button:hover ~ #results-container {
    max-height: 1000px; /* Genug Platz für Inhalte */
    opacity: 1; /* Sichtbar */
    visibility: visible; /* Sichtbar */
}

.center-content {
    height: 605px;
    margin-top: 73px;
}

/* Search hover effects */
#search-wrapper:not(:hover) #results-container {
    display: none;
}

#searchterms .search-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

#searchterms .search-item:not(:hover) {
    background-color: #fff;
    cursor: pointer;
}

#searchterms .search-item:first-of-type {
    border-top-left-radius: 0.7rem !important;
    border-bottom-left-radius: 0.7rem !important;
}

#searchterms .search-item:last-of-type {
    border-top-right-radius: 0.7rem !important;
    border-bottom-right-radius: 0.7rem !important;
}

#searchterms .search-item .btn,
#searchterms .search-item .btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Result hover effects */
.results.hidden .result-item span,
.results:hover .result-item:hover span {
    opacity: 1 !important;
}

.results:hover .result-item:not(:hover) span {
    opacity: 0.5 !important;
}

.result-item {
    background-color: #fff;
    padding-top: 2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 2rem !important;
    z-index: 100 !important;
}

.result-item-divider {
    border-right: 1px solid #ccc;
}

.result-wrapper {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100% !important;
}

.result-item-header:empty,
.result-item-header {
    color: #ccc !important;
    display: block !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
    font-size: 12px;
    height: 18px !important;
}

.result-item .menu-subtitle {
    color: #bbb !important;
    font-size: 14px;
}

.results-row .result-item:first-of-type {
    border-top-left-radius: 0.7rem !important;
    border-bottom-left-radius: 0.7rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.results-row .result-item:last-of-type {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.7rem !important;
    border-bottom-right-radius: 0.7rem !important;
}

.highlight {
    background-color: #ecf56a;
}

#scrollElement {
    transform: rotate(90deg) !important;
    background-image: url(../images/next.png);
    background-size: cover;
    width: 30px;
    height: 30px;
    bottom: 280px;
    z-index: 0;
    margin-left: -10px;
}

/* Mobile Ansicht (Accordion) */
@media (max-width: 768px) {
    #scrollElement {
        position: static !important;
        margin: 10vh auto 0 auto !important;
    }

    .center-content {
        display: flexbox;
        height: 100%;
        width: 100%;
        margin: 0 !important;
        padding: 25vh 0 0 0 !important;
        text-align: center !important;
    }

    #search-wrapper {
        margin-top: 2vh !important;
    }

    #search-container {
        top: 0;
        left: 0;
        width: 80% !important;
        @media (max-width: 375px) {
            width: 90% !important;
        }
        max-width: 550px !important;
        height: auto;
        margin: 0 auto;
    }

    #searchterms .col-md-4 .d-large {
        display: none !important;
    }
    
    #searchterms .col-md-4 .d-mobile {
        display: inline-block !important;
    }

    #searchterms .col-md-4:not(:last-child) {
        margin-bottom: 1rem;
    }

    #searchterms .col-md-4:not(:last-child)::after {
        border: none !important;
        width: 0;
    }

    #results-container .results {
        display: none;
    }
        
    /* Search rounded border */
    #searchterms .search-item:first-of-type,
    #searchterms .search-item:last-of-type,
    #searchterms .search-item {
        border-radius: .25rem !important;
        width: 100% !important;
        margin: 10px auto;
    }
}

/* USP Cards */
.usp-cards .card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 125px !important;
    background-color: #e1e1e1 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .usp-cards .card-body {
    flex: 1 1 auto !important;
  }


  @media (min-width: 768px) and (max-width: 1024px) {
      .usp-cards .card > img {
          width: 80%;
          height: auto;
          padding: 2.5vh 22% !important;
      }

      .usp-cards > .col {
          flex: 1 1 33% !important;
          max-width: 33% !important;
          width: 33% !important;
      }
  }

  @media (min-width: 576px) and (max-width: 767px) {
      .usp-cards .card > img {
          width: 100%;
          height: auto;
          padding: 22% !important;
      }

      .usp-cards > .col {
          flex: 1 1 50% !important;
          max-width: 50% !important;
          width: 50% !important;
      }
  }

  @media (max-width: 575.9px) {
      .usp-cards .card > img {
          width: 35%;
          height: auto;
          padding: 5% !important;
      }

      .usp-cards > .col {
          flex: 1 1 100% !important;
          max-width: 100% !important;
          width: 100% !important;
      }

      .usp-cards .card-body {
        margin-top: 0 !important;
        padding: 0  1.75rem 1.75rem 1.75rem !important;
      }
  }

  .usp-cards .card-text,
  .usp-cards .card-text p,
  .usp-cards p.card-text,
  .textcontent {
      line-height: 1.4em !important;
  }