body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Verbessertes Scrolling auf iOS */
}

h1 {
    color: #11567f;
    font-size: calc(1.5rem + 1vw);
    margin-bottom: 0.5rem;
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #11567f !important;
}

.card-header h2 {
    font-weight: 600;
}

.day-container {
    padding: 10px 0;
}

.day-container.confirmed {
    background-color: rgba(40, 167, 69, 0.15);
    border-radius: 8px;
    padding: 15px;
    border-left: 5px solid #28a745;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #11567f;
    border-color: #11567f;
}

.selected-label {
    font-weight: bold;
    color: #11567f;
}

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #11567f;
    border-color: #11567f;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.form-check {
    min-height: 2rem;
    padding-left: 2em;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.25em;
    cursor: pointer;
}

.form-check-label {
    font-size: 1.1em;
    padding-left: 0.5em;
    cursor: pointer;
}

.time-input {
    max-width: 200px;
    height: 44px; /* Größere Touch-Fläche für Mobile */
}

.confirmed-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    animation: pulse 2s infinite;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.day-header h3 {
    margin-bottom: 15px;
}

.input-group-text {
    background-color: #11567f;
    color: white;
    border-color: #11567f;
}

/* Neuer Player-Button Style */
.player-toggle {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 12px;
}

.player-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 40px;
    background-color: #f1f1f1;
    color: #555;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    padding: 0 15px;
}

.player-button.active {
    background-color: #11567f;
    color: white;
    border-color: #11567f;
    box-shadow: 0 2px 6px rgba(17, 86, 127, 0.3);
}

.player-button:active {
    transform: scale(0.95);
}

.player-button .icon {
    font-size: 1.2em;
    margin-right: 5px;
    opacity: 0;
    width: 0;
    transition: all 0.2s ease;
}

.player-button.active .icon {
    opacity: 1;
    width: 18px;
}

.player-button.override {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.player-button.override.active {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Welleneffekt beim Klicken */
.player-button .wave {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.player-button.wave-effect .wave {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Status-Indikator für Tage */
.status-indicator {
    display: flex;
    margin-top: 15px;
    margin-bottom: 10px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.status-dot.active {
    background-color: #11567f;
}

.status-dot:last-child.active {
    background-color: #28a745;
}

/* Verbesserte Zeitauswahl */
.time-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.time-label {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
    color: #495057;
}

.time-input-wrapper {
    position: relative;
    width: 180px;
}

.time-input-wrapper i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #11567f;
    pointer-events: none;
}

/* Mobile-optimierungen */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn {
        margin-bottom: 10px;
        width: 100%;
        height: 44px; /* Größere Touch-Fläche */
        font-size: 1rem;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .d-flex > div {
        margin-top: 15px;
        width: 100%;
    }
    
    .form-check {
        margin-right: 5px;
        margin-bottom: 12px;
    }
    
    .form-check-input {
        width: 24px;
        height: 24px;
        margin-top: 0;
    }
    
    .form-check-label {
        font-size: 1.2em;
        padding-left: 0.75em;
    }
    
    .day-container {
        padding: 15px 10px;
        margin-bottom: 20px !important;
    }
    
    .day-container.confirmed {
        padding: 18px 10px;
    }
    
    .day-header h3 {
        font-size: 1.2rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .confirmed-badge {
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
        width: auto;
    }
    
    .row {
        margin-right: -5px;
        margin-left: -5px;
    }
    
    .col-auto {
        padding-right: 5px;
        padding-left: 5px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 15px;
    }

    .time-input {
        max-width: none;
        width: 100%;
    }

    hr {
        margin: 1.5rem 0;
    }
    
    /* Fix für Bootstrap Layouts auf kleinen Bildschirmen */
    .col-md-4 {
        width: 100%;
    }

    .player-toggle {
        margin-right: 6px;
    }
    
    .player-button {
        min-width: 48px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.95rem;
    }
    
    .status-indicator {
        justify-content: center;
    }
}

/* Noch kleinere Bildschirme (Smartphones) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .card-header h2 {
        font-size: 1.1rem;
    }
    
    .day-header h3 {
        font-size: 1.1rem;
    }

    .day-container {
        padding: 12px 8px;
    }
    
    .form-check-input {
        width: 22px;
        height: 22px;
    }
    
    .form-check-label {
        font-size: 1.1em;
    }
    
    /* Bessere Checkbox-Anordnung für sehr kleine Displays */
    .row .col-auto {
        /* 3er Zeilen für Checkboxen auf sehr kleinen Bildschirmen */
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 8px;
    }

    .player-toggle-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .player-toggle {
        margin: 0 4px 10px;
    }
    
    .player-button {
        min-width: 42px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.9rem;
    }
} 