/* ========================================
   SUCHE - Styling für die Suchseite
   Farbschema: Türkis/Teal (Hauptfarbe der Website)
   ======================================== */

/* ========================================
   HERO SUBPAGE
   ======================================== */

.hero-suche {
    background: #e8f4f4;
    background: -webkit-linear-gradient(315deg, #e8f4f4 0%, #d4ebeb 100%);
    background: linear-gradient(135deg, #e8f4f4 0%, #d4ebeb 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #3d807f;
}

.hero-suche::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(61, 128, 127, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 128, 127, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-suche .container {
    position: relative;
    z-index: 1;
}

.hero-suche h1 {
    color: #2a5a59;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

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

.suche-formular-section {
    margin-bottom: 2rem;
}

.suche-formular {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* Hauptzeile: Suchfeld + Button */
.suche-hauptzeile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.suche-input-wrapper {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.suche-input-wrapper input[type="search"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.suche-input-wrapper input[type="search"]:focus {
    outline: none;
    border-color: #3d807f;
    -webkit-box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.2);
    box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.2);
}

/* Such-Button (wie Kontakt-Button) */
.suche-formular .btn-solid {
    background-color: #3d807f;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: "FS Me W01 Bold", Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.suche-formular .btn-solid:hover {
    background-color: #2a5a59;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 12px rgba(61, 128, 127, 0.3);
    box-shadow: 0 4px 12px rgba(61, 128, 127, 0.3);
}

.suche-formular .btn-solid:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

/* ========================================
   FILTER-ZEILE (kompakt mit Dropdowns)
   ======================================== */

.suche-filter-zeile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.filter-gruppe {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
}

.filter-gruppe label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.filter-gruppe select {
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-gruppe select:hover {
    border-color: #999;
}

.filter-gruppe select:focus {
    outline: none;
    border-color: #3d807f;
    -webkit-box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.15);
    box-shadow: 0 0 0 3px rgba(61, 128, 127, 0.15);
}

/* IE/Edge Dropdown-Pfeil entfernen */
.filter-gruppe select::-ms-expand {
    display: none;
}

/* ========================================
   ERGEBNISSE
   ======================================== */

.ergebnisse-header {
    margin-bottom: 1.25rem;
}

.ergebnisse-info {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.ergebnisse-info strong {
    color: #2a5a59;
}

.filter-aktiv {
    color: #888;
    font-size: 0.9rem;
}

.ergebnisse-liste {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
}

/* Ergebnis-Karten */
.ergebnis-karte {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ergebnis-karte:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.ergebnis-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.ergebnis-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-neuigkeit { 
    background-color: #3d807f; 
}
.badge-veranstaltung { 
    background-color: #CAA90B; 
    color: #333; 
}
.badge-gruppe { 
    background-color: #522CA2; 
}
.badge-seite { 
    background-color: #6c757d; 
}

/* Badge für Magazin 4B - in Magenta/Beere (#8C0E73) */
.ergebnis-badge.badge-magazin {
    background-color: #8C0E73;
    color: #ffffff;
}

/* Alternativ: Etwas hellerer Hover-Effekt */
.ergebnis-karte:hover .ergebnis-badge.badge-magazin {
    background-color: #a01084;
}

.ergebnis-datum {
    font-size: 0.85rem;
    color: #666;
}

.ergebnis-titel {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.ergebnis-titel a {
    color: #3d807f;
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}

.ergebnis-titel a:hover {
    color: #2a5a59;
    text-decoration: underline;
}

.ergebnis-auszug {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Hervorhebung */
.ergebnis-titel mark,
.ergebnis-auszug mark {
    background-color: #fff3cd;
    padding: 0.1em 0.2em;
    border-radius: 2px;
}

/* ========================================
   MELDUNGEN
   ======================================== */

.meldung {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
}

.meldung-warning {
    background: -webkit-linear-gradient(315deg, #fff8e6 0%, #fff3d6 100%);
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d6 100%);
    border: 1px solid #f0d58c;
    color: #8a6d3b;
}

.meldung-warning h2 {
    color: #8a6d3b;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.meldung-warning p {
    margin: 0;
}

/* ========================================
   KEINE ERGEBNISSE / WILLKOMMEN
   ======================================== */

.keine-ergebnisse,
.suche-willkommen {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.keine-ergebnisse h2,
.suche-willkommen h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #2a5a59;
}

.keine-ergebnisse p,
.suche-willkommen p {
    color: #555;
    max-width: 500px;
    margin: 0.5rem auto;
    line-height: 1.6;
}

/* ========================================
   SCHNELLZUGRIFF
   ======================================== */

.schnellzugriff {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.schnellzugriff h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 600;
}

.schnellzugriff-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.75rem;
}

.schnellzugriff-links .btn-outline {
    padding: 10px 18px;
    color: #3d807f;
    border: 2px solid #3d807f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.schnellzugriff-links .btn-outline:hover {
    background-color: #3d807f;
    color: #fff;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .hero-suche {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-suche h1 {
        font-size: 1.8rem;
    }
    
    .page-content {
        padding-bottom: 2rem;
    }
    
    .suche-formular {
        padding: 1.25rem;
    }
    
    .suche-filter-zeile {
        gap: 0.75rem;
    }
    
    .filter-gruppe {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(50% - 0.5rem);
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .filter-gruppe select {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .suche-hauptzeile {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .suche-formular .btn-solid {
        width: 100%;
    }
    
    .suche-filter-zeile {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-gruppe {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .filter-gruppe label {
        font-size: 0.85rem;
    }
    
    .ergebnis-karte {
        padding: 1rem;
    }
    
    .schnellzugriff-links {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
    }
    
    .schnellzugriff-links .btn-outline {
        text-align: center;
    }
    
    .keine-ergebnisse,
    .suche-willkommen {
        padding: 2rem 1rem;
    }
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .hero-suche {
        background: none;
        border-bottom: 2px solid #333;
        padding: 1rem 0;
    }
    
    .hero-suche h1 {
        color: #000;
    }
    
    .suche-formular,
    .schnellzugriff {
        display: none !important;
    }
    
    .ergebnis-karte {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}