/* ==========================================================================
   Database Enhancement — gemeinsame Aufwertung für seed-drops, soils, fertilizers
   Wird NACH den jeweiligen *-styles.css geladen und überschreibt gezielt.
   ========================================================================== */

/* === HERO MODERNISIERUNG === */
.seed-drops-hero,
.soils-hero,
.fertilizers-hero {
    position: relative;
    background:
        radial-gradient(1000px 400px at 10% -10%, rgba(214, 230, 187, 0.55), transparent 60%),
        radial-gradient(800px 380px at 100% 0%, rgba(192, 217, 159, 0.35), transparent 60%),
        linear-gradient(135deg, #f0f5e3 0%, #ffffff 100%) !important;
    padding: 56px 24px 56px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 230, 187, 0.4) !important;
}

.seed-drops-hero::before,
.soils-hero::before,
.fertilizers-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(143, 176, 61, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

.seed-drops-hero .container,
.soils-hero .container,
.fertilizers-hero .container {
    position: relative;
}

.hero-content h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem) !important;
    margin-bottom: 10px !important;
    letter-spacing: -0.02em !important;
}

.hero-content > p {
    font-size: 1rem !important;
    color: #555 !important;
    margin-bottom: 28px !important;
    font-weight: 400 !important;
    line-height: 1.55;
}

/* Eyebrow Badge (per JS injiziert) */
.db-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 176, 61, 0.25);
    color: #3d6b1f;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.db-eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8fb03d;
    box-shadow: 0 0 0 0 rgba(143, 176, 61, 0.7);
    animation: db-pulse 2s infinite;
}
@keyframes db-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(143, 176, 61, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(143, 176, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 176, 61, 0); }
}

/* === STAT-CARDS aufgewertet === */
.seed-stats,
.soil-stats,
.fertilizer-stats {
    gap: 16px !important;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 14px !important;
    border: 1px solid rgba(214, 230, 187, 0.5) !important;
    padding: 18px 28px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(143, 176, 61, 0.15) !important;
}
.stat-card .stat-number {
    font-size: 1.8rem !important;
    line-height: 1 !important;
    margin-bottom: 6px !important;
}
.stat-card .stat-label {
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555 !important;
    font-weight: 500 !important;
}

/* === FILTER BAR (sticky + modern) === */
.seed-drops-filter,
.soils-filter,
.fertilizers-filter {
    position: static;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(214, 230, 187, 0.4) !important;
    padding: 18px 24px !important;
}

/* Such-Pille – Flex-Layout */
.search-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    padding: 8px 8px 8px 16px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 999px !important;
    border: 1px solid rgba(214, 230, 187, 0.7) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
}

.search-box .search-field,
.search-box input[type="text"] {
    flex: 1 !important;
    min-width: 0 !important;
    border: none !important;
    outline: none !important;
    padding: 8px 4px !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    color: #1a1a1a !important;
}
.search-box .search-field:focus,
.search-box input[type="text"]:focus {
    outline: none;
}

/* Such-Icon via SVG-Lupe im Button */
.search-box .search-btn {
    background: linear-gradient(135deg, #8fb03d, #6f8f25) !important;
    border: none !important;
    color: white !important;
    width: auto !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 10px rgba(143, 176, 61, 0.3) !important;
}
.search-box .search-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 14px rgba(143, 176, 61, 0.4) !important;
}

/* Filter-Auswahl modernisiert */
.filter-options {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.filter-group label {
    font-size: 0.8rem;
    color: #555;
    margin-right: 8px;
    font-weight: 500;
}
.filter-select {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(214, 230, 187, 0.7) !important;
    border-radius: 999px !important;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: var(--transition);
}
.filter-select:focus {
    outline: none;
    border-color: #8fb03d !important;
    box-shadow: 0 0 0 3px rgba(143, 176, 61, 0.15) !important;
}

/* Landingpage-Footer auf Datenbankseiten beibehalten */
.database-footer {
    background: var(--bg-white) !important;
    color: var(--text-primary) !important;
    padding: 60px 0 30px !important;
    border-top: 1px solid var(--border-color) !important;
    margin-top: 60px !important;
    text-align: initial !important;
}

.database-footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    text-align: initial !important;
    color: inherit !important;
}

.database-footer .footer-brand span,
.database-footer .footer-links h4,
.database-footer .footer-contact h4 {
    color: var(--text-primary) !important;
}

.database-footer .footer-brand p,
.database-footer .footer-links a,
.database-footer .footer-contact a,
.database-footer .footer-contact li,
.database-footer .footer-bottom p {
    color: var(--text-secondary) !important;
}

.database-footer .footer-bottom {
    border-top: 1px solid var(--border-color) !important;
}

/* Privat & Werbefrei Badge auf DB-Seiten ausblenden */
.hero-eyebrow {
    display: none !important;
}

/* === RESULT BAR === */
.db-result-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: #555;
}
.db-result-bar .count strong { color: #3d6b1f; font-weight: 700; }
.db-result-bar .reset {
    background: transparent;
    border: 1px solid rgba(214, 230, 187, 0.7);
    color: #3d6b1f;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}
.db-result-bar .reset.visible { display: inline-block; }
.db-result-bar .reset:hover {
    background: var(--primary-green);
    border-color: var(--primary-light);
}

/* === EMPTY STATE === */
.db-empty-state {
    display: none;
    text-align: center;
    padding: 60px 24px;
    color: #555;
}
.db-empty-state.visible { display: block; }
.db-empty-state .emoji { font-size: 3rem; margin-bottom: 12px; }
.db-empty-state h3 { margin: 0 0 6px; color: #1a1a1a; font-size: 1.2rem; }
.db-empty-state p { margin: 0; font-size: 0.92rem; }

/* === KARTEN-ANIMATION (kurzer Fade-Up) === */
.seed-drop-card,
.soil-card,
.fertilizer-card {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease,
                box-shadow 0.3s ease, border-color 0.3s ease;
}
.seed-drop-card.in-view,
.soil-card.in-view,
.fertilizer-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .seed-drop-card,
    .soil-card,
    .fertilizer-card { opacity: 1; transform: none; transition: none; }
    .db-eyebrow .pulse { animation: none; }
}

/* === MOBILE === */
@media (max-width: 600px) {
    .seed-drops-hero,
    .soils-hero,
    .fertilizers-hero {
        padding: 40px 20px !important;
    }
    .filter-options { flex-direction: column; align-items: stretch; }
    .db-result-bar { flex-direction: column; align-items: flex-start; }
    .search-box {
        flex-wrap: nowrap !important;
        padding: 6px 6px 6px 12px !important;
    }
    .search-box .search-btn {
        font-size: 0.75rem !important;
        height: 32px !important;
        padding: 0 10px !important;
    }
}
