
.news-grid-section-search {
    border-radius: var(--border-radius);
    background: white;
    padding: 40px;
    margin-top: 80px;
    margin-bottom: 40px;
    flex-direction: column;
    position: relative;
}

.news-grid-section-search .search-input {
    display: flex;
    align-items: center;
    background-color: #f4f4f1; /* helles Grau */
    border-radius: 9999px; /* komplett rund */
    width: 100%;
    box-sizing: border-box;
    position: relative;
}
.news-grid-section-search .search-input form {
    width: calc(100% - 120px);
}

.news-grid-section-search .search-input input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.1rem;
  color: #111;
  width: 100%;
  padding: 20px 20px 20px 100px;
  font-size: 30px;
  font-family: var(--font-family-text);
  caret-color: #0A9DDF;
  position: relative;
}

.news-grid-section-search .search-input input::placeholder {
  color: #888;
}

.news-grid-section-search .search-input svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: #000000;
  opacity: 1;
  position: absolute;
  top: 20px;
  left: 29px;
}

.news-grid-section-search .search-input button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #737373;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 10%;
    right: 40px;
    font-family: var(--font-family-text);
}

.news-grid-section-search .search-input input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; /* deaktiviert Standardstil */
  height: 20px;
  width: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M6 6l12 12M6 18L18 6'/></svg>") no-repeat center center;
  background-size: 100%;
  opacity: 0.5;
  cursor: pointer;
  margin-right: 0.5rem; /* Abstand zur Feldkante */
}

.news-grid-section-search .search-input input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 0.8;
}

.fruit-loader {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  height: 100px;
  font-size: 2rem;
  position: absolute;
  z-index: 999;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  color: black;
  background: rgba(255,255,255,0.9);
}

.fruit-loader.is-active {
  display: flex;
}

.fruit-loader__item {
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  animation: fruit-pop 2s infinite;
  width: 40px; 
  height: auto;
}

.fruit-loader__item:nth-child(1) { animation-delay: 0s; }
.fruit-loader__item:nth-child(2) { animation-delay: 0.3s; }
.fruit-loader__item:nth-child(3) { animation-delay: 0.6s; }
.fruit-loader__item:nth-child(4) { animation-delay: 0.9s; }
.fruit-loader__item:nth-child(5) { animation-delay: 1.2s; }

@keyframes fruit-pop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-20deg); }
  20%  { opacity: 1; transform: scale(1.2) rotate(10deg); }
  40%  { transform: scale(1) rotate(0deg); }
  80%  { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.5) rotate(20deg); }
}

@media (max-width: 880px) {
  .news-grid-section-search {
    margin: 30px 0;
    padding: 20px;
  }
  
  .news-grid-section-search .search-input form {
    width: calc(100% - 70px);
  }

  .news-grid-section-search h2 {
    margin-bottom: 20px;
  }

  .news-grid-section-search .search-input svg {
    width: 25px;
    height: 25px;
    top: 10px;
    left: 14px;
  }

  .news-grid-section-search .search-input input[type="search"] {
    padding: 10px 10px 10px 50px;
    font-size: 18px;
  }

  .news-grid-section-search .search-input button {
    right: 10px;
    font-size: 14px;
  }
}