.next-termin-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 1rem 0;
}

.widget-header {
    background: linear-gradient(135deg, #c41e3a, #8b0000);
    color: white;
    padding: 0.75rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.widget-content {
    padding: 1rem 1.1rem;
}

.termin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.termin-item {
    padding: 0.9rem;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.termin-item.is-last {
    padding: 0.9rem;
    margin-bottom: 0;
    border: 1px solid #eee;
}

.termin-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.date-box {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0.55rem 0.6rem;
    text-align: center;
    min-width: 52px;
    border: 2px solid #e0e0e0;
}

.date-box .day {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c41e3a;
    line-height: 1;
}

.date-box .month {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.date-info {
    flex: 1;
}

.badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-red {
    background: #c41e3a;
}

.days-until {
    color: #666;
    font-weight: 600;
}

.termin-details h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
}

.termin-time,
.termin-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.85rem;
    margin: 0.4rem 0;
}

.termin-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.termin-kategorie {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.kategorie-aktive { background: #ffebee; color: #c62828; }
.kategorie-atemschutz { background: #fff3e0; color: #e65100; }
.kategorie-verein { background: #e3f2fd; color: #1565c0; }
.kategorie-jugend { background: #f3e5f5; color: #6a1b9a; }

.widget-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: #c41e3a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.widget-link:hover {
    color: #8b0000;
    text-decoration: underline;
}
