:root {
    --primary-blue: #0077be;
    --dark-blue: #0056b3;
    --primary-blue-light: #e6f2fa;
    --light-gray: #f8f9fa;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --nav-dark-start: #2b2b2b;
    --nav-dark-end: #0f0f0f;
}

body {
    background-color: var(--light-gray);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    overflow-x: hidden;
}

* {
    box-shadow: none !important;
}

/* Navigation - Dunkler Gradient wie /result */
.navbar {
    background: linear-gradient(180deg, var(--nav-dark-start), var(--nav-dark-end)) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0;
}

.navbar-brand, .navbar-nav .nav-link { 
    color: white !important; 
}

.navbar-brand img { 
    height: 34px; 
    width: auto; 
    display: block; 
}

.navbar-brand { 
    padding: 0; 
    margin-right: 0.5rem; 
}

.navbar-nav .nav-link:hover { 
    color: rgba(255,255,255,.8) !important; 
}

.navbar-nav .nav-link.active { 
    color: #fff !important; 
    font-weight: 600; 
}

/* Home Link im Header */
.home-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.home-link:hover {
    opacity: 0.8;
    color: white;
}

/* Titelbar */
.title-bar { 
    width: 100%; 
    padding: 0.45rem 0 !important; 
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%); 
    color: #fff; 
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
    margin-bottom: 1.5rem; 
}

.title-bar h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.05rem;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.title-bar .kicker { 
    font-size: 1.05rem; 
    letter-spacing: 0.18rem; 
    font-weight: 400; 
    opacity: 0.95; 
    text-transform: uppercase; 
    margin-bottom: 0.05rem; 
}

.title-bar .events-meta { 
    color: rgba(255,255,255,.9); 
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.15rem;
    opacity: 0.9;
}

/* Cards und Boxen */
.card, .filter-card, .dropdown-box, .search-box {
    background: #fff !important;
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border: none !important;
    margin-bottom: 1rem;
}

/* Dropdown Boxes */
.dropdown-box {
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.dropdown-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.dropdown-box-header {
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%) !important;
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: none;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.dropdown-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dropdown-header-text {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: white;
}

.dropdown-header-button {
    flex: 1;
    margin-left: 1rem;
}

.dropdown-header-button .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    width: 100%;
}

.dropdown-header-button .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Page Title */
.page-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Search Box */
.search-header {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 0.75rem;
}

.search-header i {
    color: #0077be;
    font-size: 1.2rem;
}

.search-box {
    padding: 1rem;
    height: 100%;
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Search Input Container */
.search-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Kalender-Button neben dem Suchfeld */
.search-calendar-btn {
    flex-shrink: 0;
    padding: 0.55rem 0.75rem;
    height: auto;
    color: #0077be !important;
    border-color: #0077be !important;
}

.search-calendar-btn:hover {
    background-color: #0077be !important;
    border-color: #0077be !important;
    color: white !important;
}

/* Search Icons */
.search-icon-left {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.search-icon-right {
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    color: #6c757d;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    transition: color 0.2s ease;
}

.search-icon-right:hover {
    color: #dc3545;
}

/* Quick Actions Box */
.quick-actions-box {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border: none;
    padding: 1rem;
    height: 100%;
}

.quick-actions-header {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-align: left;
}

.quick-actions-header i {
    color: #201f1d;
    font-size: 1.2rem;
}

.quick-actions-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-actions-content .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-actions-content .btn-outline-primary {
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.quick-actions-content .btn-outline-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    border: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

.quick-actions-content .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.quick-actions-content .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.search-input {
    border-radius: 0;
    border: 2px solid #e9ecef;
    border-left: none;
    border-right: none;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 400;
}

/* iOS Safari Zoom-Fix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .search-input {
        font-size: 16px !important;
    }
}

.search-input:focus {
    border-color: #0077be !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 190, 0.25) !important;
}

/* Event Cards */
.event-card-new {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    min-height: 140px;
    height: 140px;
}

/* Vergangene Events - Dunkelgrauer Hintergrund */
.event-card-new.past-event .event-date-new {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Klickbare Daten - nur für aktuelle Events */
.clickable-date {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-date:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: scale(1.02);
}

.event-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.event-date-new {
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    flex-shrink: 0;
}

.event-day-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-month-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.event-weekday {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Separator für 2-Tage-Events */
.event-date-range-separator {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.15rem 0;
    opacity: 0.95;
    line-height: 1.2;
    white-space: nowrap;
}

.event-info-new {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    justify-content: space-between;
}

.event-icon-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 190, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(0, 119, 190, 0.2);
}

.event-icon-new img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.event-details {
    flex: 1;
    margin-right: 60px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-title-new {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-subtitle-new {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-location-new {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-buttons-new {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.event-buttons-new .btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

    /* Section Titles */
    .section-title {
        font-size: 1rem;
        font-weight: 700;
        color: #343a40;
        margin-bottom: 1.5rem;
        text-align: left;
        display: flex;
        align-items: center;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #2c3e50;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #0077be;
        padding-bottom: 0.5rem;
        margin-bottom: 0;
    }

/* Event-Statistik Leiste */
.event-stats-bar {
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stats-container {
    padding: 1rem 1.5rem;
}

.stats-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.stats-active {
    color: #90EE90;
    font-weight: 600;
}

.stats-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.stats-total {
    color: white;
    font-weight: 400;
}

/* Footer */
.site-footer { 
    background: linear-gradient(180deg, var(--nav-dark-start), var(--nav-dark-end)); 
    color: #fff; 
    padding: 1.5rem 0; 
    margin-top: 3rem; 
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer .footer-links a { 
    color: rgba(255,255,255,.9); 
    text-decoration: none; 
    margin: 0 .75rem; 
    font-size: .95rem; 
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus { 
    color: #fff; 
    text-decoration: underline; 
}

/* Buttons - Angepasst an Header-Farbe */
.btn-primary {
    background: linear-gradient(135deg, #0077be 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    border: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    color: white;
    font-weight: 500;
}

.btn-success:hover {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    border: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Mobile Responsive - iPhone Optimiert */
@media (max-width: 768px) {
    .title-bar {
        padding: 0.5rem 0;
    }
    
    .title-bar h1 {
        font-size: 1.75rem;
        font-weight: 400;
        margin-bottom: 0.05rem;
    }
    
    .title-bar .kicker {
        font-size: 0.8rem;
        margin-bottom: 0.05rem;
    }
    
    .title-bar .events-meta {
        font-size: 0.9rem;
        margin-top: 0.1rem;
    }
    
    /* Event Cards - Mobile Stack Layout */
    .event-card-new {
        min-height: 140px;
        height: 140px;
        flex-direction: row;
        margin-bottom: 0.75rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        border: 1px solid #e9ecef;
    }
    
    .event-date-new {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        padding: 0.75rem;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        border-radius: 8px 0 0 8px;
        background: linear-gradient(135deg, #0077be 0%, #0056b3 100%);
        flex-shrink: 0;
    }
    
    /* Vergangene Events - Mobile */
    .event-card-new.past-event .event-date-new {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    }
    
    .event-day-number {
        font-size: 1.4rem;
        margin-bottom: 0.1rem;
        color: white;
    }
    
    .event-month-name {
        font-size: 0.7rem;
        margin-bottom: 0.1rem;
        color: white;
    }
    
    .event-weekday {
        font-size: 0.6rem;
        margin-bottom: 0;
        color: white;
    }
    
    .event-info-new {
        padding: 0.75rem;
        position: relative;
        flex: 1;
        background: white;
        border-radius: 0 8px 8px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 0;
    }
    
    .event-icon-new {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
    
    .event-icon-new img {
        width: 20px;
        height: 20px;
    }
    
    .event-details {
        margin-right: 40px;
        margin-bottom: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 0;
    }
    
    .event-title-new {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .event-subtitle-new {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        white-space: normal;
    }
    
    .event-location-new {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    .event-buttons-new {
        flex-direction: row;
        gap: 0.25rem;
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .event-buttons-new .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        flex: 1;
        text-align: center;
    }
    
    /* Search und Quick Actions */
    .search-box, .quick-actions-box {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .quick-actions-content .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Event-Statistik Leiste - Mobile */
    .event-stats-bar .stats-container {
        padding: 0.75rem 1rem;
    }
    
    .stats-content {
        font-size: 0.95rem;
        gap: 0.4rem;
    }
}

@media (max-width: 576px) {
    .title-bar {
        padding: 0.4rem 0;
    }
    
    .title-bar h1 {
        font-size: 1.45rem;
        font-weight: 400;
        margin-bottom: 0.05rem;
    }
    
    .title-bar .kicker {
        font-size: 0.7rem;
        margin-bottom: 0.05rem;
    }
    
    .title-bar .events-meta {
        font-size: 0.8rem;
        margin-top: 0.05rem;
    }
    
    /* Event Cards - iPhone Optimiert */
    .event-card-new {
        margin-bottom: 0.5rem;
        flex-direction: row;
        min-height: 130px;
        height: 130px;
    }
    
    .event-date-new {
        padding: 0.6rem;
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        flex-direction: column;
        align-items: center;
        border-radius: 8px 0 0 8px;
        flex-shrink: 0;
    }
    
    /* Vergangene Events - iPhone */
    .event-card-new.past-event .event-date-new {
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    }
    
    .event-day-number {
        font-size: 1.2rem;
    }
    
    .event-month-name {
        font-size: 0.65rem;
    }
    
    .event-weekday {
        font-size: 0.55rem;
    }
    
    .event-info-new {
        padding: 0.6rem;
    }
    
    .event-icon-new {
        width: 28px;
        height: 28px;
    }
    
    .event-icon-new img {
        width: 18px;
        height: 18px;
    }
    
    .event-details {
        margin-right: 35px;
    }
    
    .event-title-new {
        font-size: 0.9rem;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .event-subtitle-new {
        font-size: 0.7rem;
    }
    
    .event-location-new {
        font-size: 0.85rem;
    }
    
    .event-buttons-new {
        gap: 0.2rem;
        margin-top: 0.4rem;
    }
    
    .event-buttons-new .btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Container Spacing */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Section Titles - Mobile Hervorhebung */
    .section-title h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        font-weight: 700;
        color: #2c3e50;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #0077be;
        padding-bottom: 0.5rem;
    }
}

/* iPhone Querformat */
@media (orientation: landscape) and (max-height: 480px) {
    .title-bar {
        padding: 0.45rem 0 !important;
    }
    
    .title-bar h1 {
        font-size: 1.3rem;
        margin-bottom: 0.05rem;
    }
}

/* Weihnachtsnachricht Box */
.christmas-message-box {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #e9ecef;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.christmas-message-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc3545 0%, #28a745 50%, #dc3545 100%);
    background-size: 200% 100%;
    animation: christmas-gradient 3s ease infinite;
}

@keyframes christmas-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.christmas-icon {
    font-size: 2.5rem;
    color: #0077be;
    animation: snowflake-rotate 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes snowflake-rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.christmas-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.christmas-title i {
    color: #dc3545;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.christmas-content {
    color: #495057;
    font-size: 1rem;
    line-height: 1.7;
}

.christmas-content p {
    margin-bottom: 1rem;
}

.christmas-signature {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    color: #0077be;
    font-size: 1.05rem;
}

.christmas-signature strong {
    color: #0056b3;
    font-weight: 600;
}

/* Mobile Anpassungen für Weihnachtsnachricht */
@media (max-width: 768px) {
    .christmas-message-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .christmas-icon {
        font-size: 2rem;
        margin-right: 0.75rem !important;
    }
    
    .christmas-title {
        font-size: 1.25rem;
    }
    
    .christmas-content {
        font-size: 0.95rem;
    }
    
    .christmas-signature {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .christmas-message-box {
        padding: 0.75rem;
    }
    
    .christmas-icon {
        font-size: 1.75rem;
        margin-right: 0.5rem !important;
    }
    
    .christmas-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .christmas-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .christmas-content p {
        margin-bottom: 0.75rem;
    }
    
    .christmas-signature {
        font-size: 0.9rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
}

/* Kalender Modal Styles */
.calendar-container {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-weekday {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6c757d;
    border-right: 1px solid #dee2e6;
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #dee2e6;
}

.calendar-week:last-child {
    border-bottom: none;
}

.calendar-day {
    position: relative;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.empty {
    background-color: #f8f9fa;
    cursor: default;
}

.calendar-day.empty:hover {
    background-color: #f8f9fa;
}

.calendar-day.past-day {
    color: #6c757d;
    background-color: #f8f9fa;
}

.calendar-day.has-events {
    background-color: #e3f2fd;
    font-weight: 600;
}

.calendar-day.has-events:hover {
    background-color: #bbdefb;
}

.event-dot {
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #0077be;
    border-radius: 50%;
}

.event-dot.multiple-events {
    background-color: #dc3545;
    width: 8px;
    height: 8px;
}

.calendar-navigation h4 {
    color: #0077be;
    font-weight: 600;
}

.calendar-legend {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.calendar-legend small {
    color: #6c757d;
    font-size: 0.8rem;
}

.calendar-legend .event-dot {
    position: static;
    transform: none;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Mobile Kalender Anpassungen */
@media (max-width: 768px) {
    .calendar-day {
        padding: 0.5rem 0.25rem;
        min-height: 2.5rem;
        font-size: 0.8rem;
    }
    
    .calendar-weekday {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
        bottom: 0.15rem;
    }
    
    .event-dot.multiple-events {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        padding: 0.4rem 0.15rem;
        min-height: 2rem;
        font-size: 0.75rem;
    }
    
    .calendar-weekday {
        padding: 0.4rem 0.15rem;
        font-size: 0.7rem;
    }
    
    .calendar-legend {
        padding-top: 0.75rem;
    }
    
    .calendar-legend .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Day Events Container */
.day-events-container {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.day-events-header h5 {
    color: #0077be;
    font-weight: 600;
    margin-bottom: 1rem;
}

.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.day-event-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #0077be;
    transition: all 0.2s ease;
}

.day-event-item.past-event {
    background: #e9ecef;
    border-left-color: #6c757d;
    opacity: 0.8;
}

.day-event-item:hover {
    background: #e3f2fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-event-time {
    flex-shrink: 0;
    width: 80px;
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.day-event-details {
    flex: 1;
    margin: 0 1rem;
}

.day-event-title {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
}

.day-event-location {
    margin: 0 0 0.25rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.day-event-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.day-event-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.day-event-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Mobile Anpassungen für Day Events */
@media (max-width: 768px) {
    .day-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .day-event-time {
        width: auto;
        text-align: left;
    }
    
    .day-event-details {
        margin: 0;
    }
    
    .day-event-actions {
        align-self: flex-end;
    }
}

/* LIVE Button - Roter blinkender Effekt mit Corona */
.live-button {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    animation: live-blink 2s ease-in-out infinite !important;
    font-weight: 600;
    position: relative !important;
    z-index: 2 !important;
    overflow: visible !important;
}

/* Corona-Effekt um den Button - weicher Glow */
.live-button::before,
.live-button::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    display: block !important;
    will-change: transform, opacity !important;
}

/* Innerer Corona-Ring */
.live-button::before {
    width: 120% !important;
    height: 140% !important;
    background: radial-gradient(ellipse, rgba(220, 53, 69, 0.7) 0%, rgba(220, 53, 69, 0.4) 40%, transparent 70%) !important;
    animation: corona-pulse-inner 2s ease-in-out infinite !important;
    z-index: -1 !important;
    transform: translate(-50%, -50%) !important;
}

/* Äußerer Corona-Ring */
.live-button::after {
    width: 150% !important;
    height: 170% !important;
    background: radial-gradient(ellipse, rgba(220, 53, 69, 0.5) 0%, rgba(220, 53, 69, 0.2) 40%, transparent 70%) !important;
    animation: corona-pulse-outer 2s ease-in-out infinite !important;
    animation-delay: 0.3s !important;
    z-index: -1 !important;
    transform: translate(-50%, -50%) !important;
}

.live-button:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

@keyframes live-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px rgba(220, 53, 69, 0.7),
                    0 0 20px rgba(220, 53, 69, 0.5),
                    0 0 30px rgba(220, 53, 69, 0.3);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.9),
                    0 0 30px rgba(220, 53, 69, 0.7),
                    0 0 45px rgba(220, 53, 69, 0.5);
    }
}

@keyframes corona-pulse-inner {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes corona-pulse-outer {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.7);
    }
}

/* Pulsierender Effekt für das Icon im LIVE Button */
.live-button .glyphicon-record {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}
