
/* ========================================
   SUCHFORMULAR
======================================== */

.search-form {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin: 0.5rem;
}

/* Suchfeld */
.search-input {
    width: 100%;
    min-width: 0;
    padding: 0.4rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Suchbutton */
.search-button {
    padding: 0.4rem 1.2rem;
    border: none;
    border-radius: 6px;
    background: #5a3e2b;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.search-button:hover {
    background: #7a563c;
}

/* Suchbereiche / Checkboxen */
.search-options {
    display: grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 14px;
    row-gap: 5px;
    padding: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
    border-radius: 5px;
    border:1px solid grey;
}
.search-options-title {
    grid-column: 1 / -1;
}

/* ========================================
   SUCHERGEBNISSE
======================================== */

.search-result {
    background: #fff8f0;
    border: 1px solid #e0c9a6;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    cursor: pointer;
}

.search-result:hover {
    background: #f9e3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Überschrift eines Suchtreffers */
.search-result-title {
    margin: 0 0 0.5rem;
    color: #4a2c1a;
    font-size: 1.2rem;
}


.search-meta {
  color: darkgrey;
}
.search-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.search-date {
  font-size: 0.75rem;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #777;
}

.search-excerpt {
  flex: 1 1 auto;
  font-size: 0.85rem;
  color: #333;
  opacity: 0.85;
}
.search-date,
.search-excerpt {
  line-height: 1.3;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
    .search-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .search-options {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0;
    }
}
