/* Ampel System Styles */
.ampel-container {
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-info {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-title {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
}

.event-description {
    color: #666;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.ampel {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 8px solid #444;
    border-radius: 25px;
    padding: 20px;
    margin: 20px auto;
    width: 140px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 8px 25px rgba(0,0,0,0.3);
    position: relative;
}

.ampel::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(145deg, #555, #333);
    border-radius: 5px 5px 0 0;
}

.ampel-light {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 15px auto;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid #666;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.5),
        0 4px 15px rgba(0,0,0,0.2);
}

.ampel-light::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
    border-radius: 50%;
}

.ampel-light::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.3);
}

/* Rot */
.ampel-light.red {
    background: radial-gradient(circle, #660000, #330000);
    border-color: #440000;
}

.ampel-light.red.active {
    background: radial-gradient(circle, #ff3333, #cc0000);
    border-color: #ff0000;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.3),
        0 0 30px #ff0000,
        0 0 60px #ff0000,
        0 4px 15px rgba(0,0,0,0.2);
    animation: redPulse 2s infinite ease-in-out;
}

@keyframes redPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 30px #ff0000,
            0 0 60px #ff0000,
            0 4px 15px rgba(0,0,0,0.2);
    }
    50% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 40px #ff0000,
            0 0 80px #ff0000,
            0 4px 15px rgba(0,0,0,0.2);
    }
}

/* Gelb */
.ampel-light.yellow {
    background: radial-gradient(circle, #665500, #332200);
    border-color: #444400;
}

.ampel-light.yellow.active {
    background: radial-gradient(circle, #ffdd33, #ccaa00);
    border-color: #ffcc00;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.3),
        0 0 30px #ffcc00,
        0 0 60px #ffcc00,
        0 4px 15px rgba(0,0,0,0.2);
    animation: yellowPulse 1.5s infinite ease-in-out;
}

@keyframes yellowPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 30px #ffcc00,
            0 0 60px #ffcc00,
            0 4px 15px rgba(0,0,0,0.2);
    }
    50% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 40px #ffcc00,
            0 0 80px #ffcc00,
            0 4px 15px rgba(0,0,0,0.2);
    }
}

/* Grün */
.ampel-light.green {
    background: radial-gradient(circle, #006600, #003300);
    border-color: #004400;
}

.ampel-light.green.active {
    background: radial-gradient(circle, #33ff33, #00cc00);
    border-color: #00ff00;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.3),
        0 0 30px #00ff00,
        0 0 60px #00ff00,
        0 4px 15px rgba(0,0,0,0.2);
    animation: greenPulse 2.5s infinite ease-in-out;
}

@keyframes greenPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 30px #00ff00,
            0 0 60px #00ff00,
            0 4px 15px rgba(0,0,0,0.2);
    }
    50% { 
        box-shadow: 
            inset 0 0 20px rgba(0,0,0,0.3),
            0 0 40px #00ff00,
            0 0 80px #00ff00,
            0 4px 15px rgba(0,0,0,0.2);
    }
}

.status-text {
    margin-top: 25px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.status-text p {
    margin: 5px 0;
    color: #333;
}

.current-status {
    font-weight: bold;
    font-size: 18px;
}

.last-updated {
    font-size: 12px;
    color: #888;
}

/* Status-spezifische Textfarben */
.ampel[data-status="red"] .current-status {
    color: #cc0000;
}

.ampel[data-status="yellow"] .current-status {
    color: #cc8800;
}

.ampel[data-status="green"] .current-status {
    color: #00aa00;
}

/* Loading Animation */
.ampel-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ampel-loading .ampel-light {
    animation: loadingPulse 1s infinite ease-in-out;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 600px) {
    .ampel-container {
        margin: 10px;
        padding: 20px;
    }
    
    .ampel {
        width: 120px;
    }
    
    .ampel-light {
        width: 65px;
        height: 65px;
        margin: 12px auto;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-description {
        font-size: 14px;
    }
}

/* Shortcode spezifische Klassen */
.ampel-shortcode-wrapper {
    margin: 20px 0;
}

/* Admin Styles (falls später Admin-Interface gewünscht) */
.ampel-admin-controls {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.ampel-admin-controls h3 {
    margin-top: 0;
    color: #333;
}

.ampel-control-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ampel-control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.ampel-control-button.red {
    background: linear-gradient(145deg, #f44336, #da190b);
}

.ampel-control-button.yellow {
    background: linear-gradient(145deg, #ff9800, #e68900);
}

.ampel-control-button.green {
    background: linear-gradient(145deg, #4CAF50, #45a049);
}