/*
 * Zweispaltiges Layout für Filter und Inhalt
 */
.yaspa-layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.yaspa-filter-column {
    flex: 1 1 220px;
}

.yaspa-content-column {
    flex: 3 1 60%;
}

@media (max-width: 768px) {
    .yaspa-layout-container {
        flex-direction: column;
        margin-top: 0;
    }
}

/* =================================================================== */
/* Styling für die Filter-Form                                         */
/* =================================================================== */

.yaspa-filters-form {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yaspa-filter-group {
    margin-bottom: 0;
}

.yaspa-filter-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.yaspa-filter-select {
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Container für die Aktionsbuttons am Ende des Formulars */
.yaspa-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Basis-Styling für die Filter-Buttons */
.yaspa-filter-button {
    flex-grow: 1;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* "Filtern"-Button (Submit) */
.yaspa-filter-button[type="submit"] {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}
.yaspa-filter-button[type="submit"]:hover {
    background-color: #218838;
    border-color: #218838;
}

/* "Zurücksetzen"-Button */
.yaspa-filter-button.reset {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}
.yaspa-filter-button.reset:hover {
    background-color: #5a6268;
}


/* =================================================================== */
/* Styling für die Angebotskarten (Offer Cards)                      */
/* =================================================================== */

.lazy-card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ANPASSUNG: .lazy-loader wird jetzt als Platzhalter-Hook verwendet.
   Die .lazy-card-placeholder-Klasse kann für den Ladezustand innerhalb des .lazy-loader verwendet werden. */
.lazy-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 2px dashed #eee;
    color: #ccc;
    border-radius: 8px;
    text-align: center;
}

.lazy-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lazy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lazy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.lazy-card-header-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0;
    padding-right: 10px; /* Abstand zur Toolbar */
}

.lazy-card-header-toolbar {
    display: flex;
    gap: 10px;
}

/* ANPASSUNG: Stile für <button> statt <a> in der Toolbar */
.lazy-card-header-toolbar button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.3s ease;
    line-height: 1; /* Verhindert Höhenprobleme */
}

.lazy-card-header-toolbar button:hover {
    color: #34495e;
}

.lazy-card-header-toolbar button svg {
    display: block; /* Verhindert zusätzlichen Leerraum unter dem SVG */
}

.lazy-card-content {
    padding: 1rem;
    flex-grow: 1;
    color: #34495e;
    font-size: 0.85rem;
    line-height: 1.6;
}
.lazy-card-content ul{
    list-style: none;
    padding: 0;
    margin: 0;
}
/* ANPASSUNG: Flexiblere Stile, da keine feste ul/li-Struktur mehr vorhanden ist. */
.lazy-card-content > div {
    margin-bottom: 12px;
}

.lazy-card-content > div:last-child {
    margin-bottom: 0;
}

/* Stile für eine Zeile mit Icon (z.B. der Link) */
.lazy-card-content div[class*="icon-inline"] ~ a,
.lazy-card-content div > svg {
    display: inline-flex;
    align-items: flex-start;
}

.lazy-card-content svg {
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #95a5a6;
}

.lazy-card-content-value {
    font-weight: 500;
}

.lazy-card-footer {
    padding: 15px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 8px 8px;
    font-size: 0.7rem;
    color: #7f8c8d;
}

/* NEU: Stile für die neuen Footer-Toolbar-Klassen */
.lazy-card-footer-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}