* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.5em;
}

.display-large {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    color: #2d3748;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
}

.btn-tertiary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: auto;
}

.alarm-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.alarm-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.alarm-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.alarm-toggle span {
    font-weight: 500;
    color: #4a5568;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.audio-info {
    text-align: center;
    margin-bottom: 20px;
}

.audio-info p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

#audio-status {
    font-weight: bold;
    color: #4a5568;
    font-size: 1.1em;
    padding: 10px;
    background: rgba(74, 85, 104, 0.1);
    border-radius: 20px;
    display: inline-block;
}

#hidden-player {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .display-large {
        font-size: 2.2em;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .audio-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .alarm-controls {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .display-large {
        font-size: 1.8em;
    }
    
    .section h2 {
        font-size: 1.3em;
    }
    
    header h1 {
        font-size: 1.8em;
    }
}

/* Animation für Timer */
.timer-running {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Spezielle Stile für verschiedene Timer-Zustände */
.timer-warning {
    color: #ff9800 !important;
}

.timer-danger {
    color: #f44336 !important;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.5;
    }
} 