.teog-wg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tablet */
@media (max-width: 900px) {
    .teog-wg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .teog-wg-grid {
        grid-template-columns: 1fr;
    }
}

.teog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.teog-card:hover .teog-card-title {
    text-decoration: underline;
}

.teog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bildbereich */

.teog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.teog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inhalt */

.teog-card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teog-card-title {
    margin: 0 0 .4rem 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.teog-card-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: .8rem;
}

/* Excerpt wächst und drückt Karten gleich hoch */

.teog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-top: auto;
}

.teog-card {
    position: relative;
}

.teog-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Inhalt bleibt darüber für Textauswahl */

.teog-card-content,
.teog-card-image {
    position: relative;
    z-index: 3;
}

.teog-card-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 4px;
}

.teog-card-image,
.teog-card-content {
    pointer-events: none;
}

.teog-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;   /* Anzahl Zeilen */
    -webkit-box-orient: vertical;
    overflow: hidden;
}