/* Lübeck Zwischenzeilen Filter Styles */

.luebeck-filter-wrapper {
    width: 100%;
}

/* Radio-Button Gruppe */
.luebeck-filter-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
    justify-content: center;
}

.luebeck-filter-radio {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    font-weight: bold;
    background: #fff;
    transition: all 0.2s ease;
}

.luebeck-filter-radio:hover {
    border-color: #000;
    background: #5B0A37;
    color: #fff;
}

.luebeck-filter-radio input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.luebeck-filter-radio input[type="radio"]:checked + .luebeck-filter-radio-text {
    font-weight: bold;
    color: #fff;
}

.luebeck-filter-radio:has(input[type="radio"]:checked) {
    border-color: #5B0A37;
    background: #5B0A37;
}

.luebeck-filter-radio-text {
    font-size: 1rem;
    line-height: 1.5;
}

.luebeck-filter-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    min-width: 2rem;
    text-align: center;
}

.luebeck-filter-radio:has(input[type="radio"]:checked) .luebeck-filter-badge {
    background: #ffff;
    color: #000;
}

/* Karten-Link: Grid-Item (Server-Render + „Mehr laden“) */
.luebeck-filter-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

/* Ergebnisse Container */
.luebeck-filter-results {
    transition: opacity 0.3s ease;
}

.luebeck-filter-results[aria-live="polite"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card Styles */
.luebeck-card {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: top center;
    background-color: #f5f5f5;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.luebeck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.luebeck-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.luebeck-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.luebeck-card-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    margin: 0;
    z-index: 2;
    font-size: 1.35rem;
    line-height: 1.6;
}

.luebeck-card-title-text {
    display: inline;
    background: #fff;
    color: #000;
    padding: 0.35rem 0.5rem 0.2rem 0.5rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Empty State */
.luebeck-filter-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.125rem;
}

/* Fehlermeldung */
.luebeck-filter-error {
    color: #5B0A37;
    text-align: center;
    margin-top: 1rem;
}

/* Load More Button */
.luebeck-filter-load-more-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.luebeck-filter-load-more {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #5B0A37;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: auto;
}

.luebeck-filter-load-more:hover:not(:disabled) {
    background: #ffff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.luebeck-filter-load-more:active:not(:disabled) {
    transform: translateY(0);
}

.luebeck-filter-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .luebeck-filter-radios {
        gap: 0.5rem;
    }
    
    .luebeck-filter-radio {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .luebeck-filter-results[aria-live="polite"] {
        grid-template-columns: 1fr;
    }
}
