/* Styles spezifisch für die OL-Auswahlseite (index.html) */

#ol-list-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

#ol-cards-container {
    display: grid;
    gap: 20px;
    padding-bottom: 20px; /* Fügt etwas Abstand am unteren Ende hinzu */
}

.ol-card {
    background-color: #ffffff; /* Leichter Blauton */
    border: 1px solid #96b522; /* Hellblauer Rand */
    border-radius: 10px;
    padding: 20px;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    display: flex; /* Für Flexbox-Layout innerhalb der Karte */
    flex-direction: column; /* Elemente untereinander */
}

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

.ol-card h3 {
    color: #96b522;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.ol-card p {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1; /* Erlaubt der Beschreibung, den verfügbaren Platz einzunehmen */
}

.ol-card-map-preview {
    width: 100%;
    height: 250px; /* HÖHE WURDE AUF 250px ERHÖHT */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #e0e0e0; /* Fallback Farbe */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-style: italic;
}

.ol-card-map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover; /* Stellt sicher, dass das iframe den Bereich ausfüllt */
}

/* Neue Styles für den Eigenschaften-Bereich */
.ol-properties {
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: left; /* Text linksbündig innerhalb dieses Bereichs */
}

.ol-properties h4 {
    color: #916b57;
    font-size: 1em;
    margin-bottom: 8px;
    text-align: center; /* Überschrift zentrieren */
}

.ol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* Tags zentrieren */
}

.ol-tag {
    background-color: #ffffff; /*#aa8e7f; /* Hellblauer Hintergrund für Tags */
    color: #916b57; /* Blauer Text für Tags */
    border: 1px solid #916b57; /* Heller blauer Rand */
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.85em;
    white-space: nowrap; /* Verhindert Zeilenumbruch innerhalb eines Tags */
}


.ol-card .select-ol-button {
    background-color: #96b522;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    width: auto;
    align-self: center; /* Zentriert den Button im Flex-Container */
    margin-top: auto; /* Drückt den Button nach unten, wenn flex-grow auf p gesetzt ist */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ol-card .select-ol-button:hover {
    background-color: #628d0e;
}

.ol-card.error-card {
    background-color: #ffe0e0; /* Hellroter Hintergrund für Fehlerkarten */
    border-color: #ff9999; /* Roter Rand */
    cursor: default; /* Zeigt an, dass die Karte nicht klickbar ist */
}

.ol-card.error-card:hover {
    transform: none; /* Keine Animation bei Hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Standard-Schatten beibehalten */
}

.ol-card.error-card .select-ol-button {
    background-color: #cccccc; /* Grauer Button für deaktivierte OLs */
    cursor: not-allowed; /* Zeigt an, dass der Button deaktiviert ist */
}

.ol-card.error-card .select-ol-button:hover {
    background-color: #cccccc; /* Kein Hover-Effekt */
}

/* Responsive Anpassungen */
@media (min-width: 600px) {
    #ol-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}