.ct-week-calendar {
max-width: 100%;
margin: 20px 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
} .ct-calendar-legend {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-bottom: 20px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}
.legend-item {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}
.legend-color {
width: 16px;
height: 16px;
border-radius: 50%;
display: inline-block;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.legend-name {
font-weight: 500;
} .ct-week-nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 20px;
padding: 15px;
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ct-week-nav button {
padding: 8px 16px;
background: #fff;
border: 1px solid #d0d0d0;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
color: #333;
}
.ct-week-nav button:hover {
background: #f5f5f5;
border-color: #b0b0b0;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.ct-week-nav button:active {
transform: translateY(0);
box-shadow: none;
}
.ct-week-nav .today {
background: #007bff;
color: white;
border-color: #0056b3;
}
.ct-week-nav .today:hover {
background: #0056b3;
}
.ct-week-nav .current-week {
font-weight: 600;
font-size: 16px;
color: #333;
flex: 1;
text-align: center;
} .ct-week-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 10px;
background: #fff;
padding: 15px;
border: 1px solid #e0e0e0;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
} .day-header {
text-align: center;
font-weight: 700;
font-size: 15px;
padding: 12px 8px;
background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
border-radius: 6px;
color: #333;
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.day-header .date {
display: block;
font-size: 18px;
font-weight: 800;
color: #007bff;
margin-top: 4px;
} .day-cell {
min-height: var(--day-height, 150px);
background: #fafafa;
border: 1px solid #e0e0e0;
border-radius: 6px;
padding: 8px;
display: flex;
flex-direction: column;
gap: 6px;
overflow-y: auto;
}
.day-cell:empty {
background: linear-gradient(135deg, #f9f9f9 25%, transparent 25%, transparent 50%, #f9f9f9 50%, #f9f9f9 75%, transparent 75%, transparent);
background-size: 20px 20px;
} .ct-event-card {
padding: 10px;
border-radius: 6px;
border-left: 4px solid;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ct-event-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.ct-event-card:active {
transform: translateY(0);
}
.event-time {
font-size: 12px;
font-weight: 700;
margin-bottom: 4px;
opacity: 0.9;
}
.event-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
line-height: 1.3;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.event-calendar {
font-size: 11px;
opacity: 0.8;
font-weight: 500;
} .ct-modal {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.6);
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.ct-modal-content {
background-color: #fff;
margin: 5% auto;
padding: 0;
border-radius: 12px;
width: 90%;
max-width: 600px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.ct-modal-close {
color: #aaa;
float: right;
font-size: 32px;
font-weight: 700;
line-height: 1;
padding: 15px 20px;
cursor: pointer;
transition: color 0.2s ease;
}
.ct-modal-close:hover,
.ct-modal-close:focus {
color: #333;
}
.ct-modal-body {
padding: 30px;
padding-top: 60px;
}
.ct-modal-body h2 {
margin-top: 0;
margin-bottom: 15px;
color: #333;
font-size: 24px;
}
.ct-modal-body .modal-field {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #e0e0e0;
}
.ct-modal-body .modal-field:last-child {
border-bottom: none;
}
.ct-modal-body .modal-label {
font-weight: 700;
color: #666;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 5px;
display: block;
}
.ct-modal-body .modal-value {
color: #333;
font-size: 16px;
line-height: 1.5;
}
.ct-modal-body .calendar-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
} @media (max-width: 1024px) and (min-width: 768px) {
.ct-week-grid {
gap: 8px;
padding: 10px;
}
.day-header {
font-size: 13px;
padding: 10px 6px;
}
.day-header .date {
font-size: 16px;
}
.event-title {
font-size: 13px;
}
.event-time,
.event-calendar {
font-size: 11px;
}
.ct-event-card {
padding: 8px;
}
} @media (max-width: 767px) {
.ct-week-grid {
display: flex;
flex-direction: column;
gap: 15px;
}
.day-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 15px;
font-size: 16px;
}
.day-header .date {
display: inline;
margin-top: 0;
margin-left: 10px;
font-size: 16px;
}
.day-cell {
min-height: auto;
padding: 12px;
}
.ct-event-card {
padding: 12px;
}
.event-title {
font-size: 15px;
-webkit-line-clamp: 3;
}
.event-time {
font-size: 13px;
}
.event-calendar {
font-size: 12px;
}
.ct-week-nav {
flex-wrap: wrap;
}
.ct-week-nav .current-week {
order: -1;
flex-basis: 100%;
margin-bottom: 10px;
font-size: 15px;
}
.ct-week-nav button {
flex: 1;
min-width: 100px;
}
.ct-calendar-legend {
gap: 10px;
padding: 12px;
}
.legend-item {
font-size: 13px;
}
.ct-modal-content {
margin: 10% auto;
width: 95%;
}
.ct-modal-body {
padding: 20px;
padding-top: 50px;
}
.ct-modal-body h2 {
font-size: 20px;
}
} .ct-week-calendar.loading .ct-week-grid {
opacity: 0.5;
pointer-events: none;
}
.ct-week-calendar.loading::after {
content: "Lädt...";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 255, 255, 0.95);
padding: 15px 30px;
border-radius: 8px;
font-weight: 600;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
} @media print {
.ct-week-nav,
.ct-calendar-legend {
display: none;
}
.ct-event-card {
break-inside: avoid;
page-break-inside: avoid;
}
.ct-week-grid {
box-shadow: none;
border: 1px solid #000;
}
}