/* --- UI --- */






.filter-bar {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Filter-Bar --- */
.filter-bar select,
.filter-bar input {
    padding: 8px 12px;       /* mehr Innenabstand */
    font-size: 1em;          /* größere Schrift */
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 150px;        /* Grundbreite */
}

/* Dropdown-Optionen erweitern (Browser unterstützen dies unterschiedlich) */
.filter-bar select option {
    padding: 6px 12px;       /* mehr Abstand in den Optionen */
    font-size: 1em;          /* gleiche Schriftgröße wie das select */
}

/* Timeline Buttons etwas größer */
.timeline button {
    padding: 8px 18px;       /* größer als vorher */
    font-size: 0.95em;
}

/* Optional: Filter-Bar responsive machen */
@media (max-width: 600px) {
    .filter-bar select,
    .filter-bar input {
        min-width: 100%;
        font-size: 0.95em;
    }
}

/* Timeline */
.timeline {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 6px 0;
    white-space: nowrap;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}
.timeline button {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #f2f2f2;
    border-radius: 20px;
    cursor: pointer;
    transition: .2s;
    font-size: 0.9em;
}
.timeline button.active {
    background: #007acc;
    color: white;
    border-color: #007acc;
}

/* --- Cards --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 12px 16px 32px 16px;
}

.card {
    background: #c9d2c6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px;
    text-align: left;
    transition: transform .25s, box-shadow .25s, opacity .25s;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 170px;
    color:#007aac;
}

.card.hidden {
    opacity: 0.25;
    transform: scale(.995);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;

}

.overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    font-size: 0.85em;
    pointer-events: none;
}

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    color: #fff;
    background: #007acc;
    border-radius: 4px;
    font-size: 0.85em;
    pointer-events: none;
}

.flag {
    display: inline-block;
    font-size: 1.1em;
    margin-right: 8px;
}

.title-text {
    font-size: 1.05em;
    margin-bottom: 8px;
    font-weight: 600;
}

.meta-line {
    color: #555;
    font-size: 0.9em;
    margin-top: auto;
}

/* ensure anchor wrappers behave as grid items */
.card-link {
    display: block; /* so the anchor is a grid item and can be hidden */
    text-decoration: none;
    color: inherit;
}
