/*
 * search-common.css — stoiker.net
 * Suchfeld + erweiterte Suche
 * Einbinden auf: /lernen/themen, /suche
 */

.search-container {
  margin-bottom: 2rem;
}

.search-input-group {
  display: flex;
  gap: 0;
  border: 1px solid #e8e6e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.search-input {
  flex: 1;
  border: none;
  padding: 1.2rem 1rem;
  font-size: .95rem;
  color: #1a1714;
  background: transparent;
  outline: none;
}

.search-input::placeholder {
  color: #a09880;
}

.search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-btn {
  border: none;
  background: #1a1714;
  color: #f0ede5;
  padding: .65rem 1.1rem;
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
}

.search-btn:hover {
  background: #333;
}

.search-toggle {
  margin-top: .5rem;
  background: none;
  border: none;
  font-size: .8rem;
  color: #7a7060;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}

.search-toggle:hover {
  color: #1a1714;
}

.search-advanced {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e8e6e0;
  border-radius: 6px;
}

.search-advanced.show {
  animation: searchSlideDown .2s ease;
}

@keyframes searchSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.search-filters-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
  min-width: 180px;
}

.form-label {
  font-size: .8rem;
  color: #7a7060;
  font-weight: normal;
}

.form-select {
  border: 1px solid #e8e6e0;
  border-radius: 4px;
  padding: .4rem .6rem;
  font-size: .875rem;
  color: #1a1714;
  background: #fff;
}

.search-actions {
  margin-top: 1rem;
  display: flex;
  gap: .75rem;
}

.search-highlight {
  background: #fef3c7;
  padding: .1rem .2rem;
  border-radius: 2px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .search-filters-row {
    flex-direction: column;
  }
  .search-actions {
    flex-direction: column;
  }
}

@media print {
  .search-container,
  .search-advanced,
  .search-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}