/* Main Wrapper */
.termin-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Common Item Styles */
.termin-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.termin-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.termin-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.termin-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.termin-title a {
    text-decoration: none;
    color: inherit;
}

.termin-time {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.termin-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.termin-actions {
    margin-top: auto;
}

.termin-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.termin-button:hover {
    background-color: #005177;
    color: #fff;
}

/* Layout: Grid (Default) */
.termin-list-wrapper.skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Layout: List */
.termin-list-wrapper.skin-list {
    flex-direction: column;
}

.termin-list-wrapper.skin-list .termin-item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.termin-list-wrapper.skin-list .termin-date {
    min-width: 120px;
    margin-bottom: 0;
}

.termin-list-wrapper.skin-list .termin-content {
    flex-grow: 1;
}

.termin-list-wrapper.skin-list .termin-actions {
    margin-top: 0;
}

/* Layout: Table (Fake Table) */
.termin-list-wrapper.skin-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.termin-list-wrapper.skin-table .termin-item {
    display: table-row;
    border: none;
    border-bottom: 1px solid #eee;
    background: none;
    padding: 0;
}

.termin-list-wrapper.skin-table .termin-item:hover {
    background-color: #f9f9f9;
    transform: none;
    box-shadow: none;
}

.termin-list-wrapper.skin-table .termin-date,
.termin-list-wrapper.skin-table .termin-content,
.termin-list-wrapper.skin-table .termin-item > div { /* Wrapper fix */
    display: table-cell;
    padding: 15px;
    vertical-align: middle;
}
