/* ==========================================================================
   Angebote Seite (angebote.php)
   ========================================================================== */

.offers-section {
    padding: 40px 0;
    text-align: center;
}

.offers-section .section-intro {
    max-width: 800px;
    margin: 20px auto 40px auto;
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 30px; /* Abstand zwischen den Karten */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Innenabstand für kleine Bildschirme */
}

.offer-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Für abgerundete Ecken des Bildes */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.offer-image-wrapper {
    width: 100%;
    height: 200px; /* Feste Höhe für Bilder */
    overflow: hidden;
    background-color: #f0f0f0; /* Fallback Farbe */
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt den Container ohne Verzerrung */
    display: block;
}

.offer-content {
    padding: 20px;
    text-align: left; /* Text linksbündig innerhalb der Karte */
    flex-grow: 1; /* Inhalt füllt verfügbaren Platz */
    display: flex;
    flex-direction: column;
}

.offer-title {
    font-size: 1.8em;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.offer-description {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Beschreibung nimmt den meisten Platz ein */
}

.offer-details {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    font-size: 0.95em;
    color: #444;
}

.offer-details li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.offer-details li:last-child {
    margin-bottom: 0;
}

.offer-details li strong {
    flex-shrink: 0; /* Verhindert, dass "strong" umbricht */
    margin-right: 8px;
    color: #333;
}

/* Stil für den Fall, dass keine Angebote vorhanden sind */
.no-offers {
    text-align: center;
    font-size: 1.2em;
    color: #888;
    margin-top: 50px;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf kleineren Bildschirmen */
    }
    .offer-card {
        margin: 0 auto; /* Zentrieren der Karte */
        max-width: 400px; /* Max Breite für einzelne Karten */
    }
}