/* Emergency Guide Section */
.emergency-guide-section {
    background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%);
    position: relative;
    overflow: hidden;
}

.emergency-guide-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.05) 0%, transparent 70%);
    animation: emergencyPulse 4s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.emergency-alert {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.emergency-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: alertShimmer 3s infinite;
}

@keyframes alertShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    animation: alertBlink 2s infinite;
}

@keyframes alertBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

.alert-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.alert-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

/* Emergency Cards */
.emergency-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    border-top: 4px solid #0066cc;
}

.emergency-card.rohrbruch {
    border-top-color: #17a2b8;
}

.emergency-card.heizung {
    border-top-color: #fd7e14;
}

.emergency-card.gas {
    border-top-color: #dc3545;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.emergency-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.emergency-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
}

.emergency-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.emergency-steps {
    flex-grow: 1;
    margin-bottom: 16px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e3f2fd;
}

.step.danger {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.step.danger:hover {
    background: rgba(220, 53, 69, 0.15);
}

.step-number {
    width: 24px;
    height: 24px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step.danger .step-number {
    background: #dc3545;
    animation: dangerPulse 2s infinite;
}

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

.step-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #2c3e50;
}

.step-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.phone-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #004499;
    text-decoration: underline;
}

.emergency-tip {
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #495057;
    text-align: center;
    margin-top: auto;
}

.emergency-tip.danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #721c24;
    animation: tipBlink 3s infinite;
}

@keyframes tipBlink {
    0%, 90% { opacity: 1; }
    91%, 100% { opacity: 0.7; }
}

/* Expert Promise */
.expert-promise {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid #e9ecef;
}

.promise-content {
    flex: 2;
}

.promise-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.promise-text {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
    margin: 0 0 24px 0;
}

.expert-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 24px;
    font-weight: 900;
    color: #0066cc;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-cta {
    flex: 1;
    text-align: center;
    min-width: 280px;
}

.cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emergency-call-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.emergency-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.emergency-call-btn:hover::before {
    left: 100%;
}

.emergency-call-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.btn-line1 {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-line2 {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.response-time {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
    margin: 0;
    animation: responseTimeBlink 2s infinite;
}

@keyframes responseTimeBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 991px) {
    .emergency-alert {
        padding: 24px;
    }
    
    .alert-title {
        font-size: 26px;
    }
    
    .alert-subtitle {
        font-size: 16px;
    }
    
    .emergency-card {
        margin-bottom: 24px;
    }
    
    .expert-promise {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 32px 24px;
    }
    
    .expert-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .emergency-cta {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .emergency-alert {
        padding: 20px;
    }
    
    .alert-icon {
        font-size: 36px;
    }
    
    .alert-title {
        font-size: 22px;
    }
    
    .alert-subtitle {
        font-size: 15px;
    }
    
    .emergency-card {
        padding: 20px;
    }
    
    .emergency-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .emergency-icon {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .emergency-title {
        font-size: 18px;
    }
    
    .step {
        padding: 10px;
    }
    
    .step-text {
        font-size: 13px;
    }
    
    .expert-promise {
        padding: 24px 20px;
    }
    
    .promise-title {
        font-size: 20px;
    }
    
    .promise-text {
        font-size: 15px;
    }
    
    .expert-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-text {
        font-size: 11px;
    }
    
    .emergency-call-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .btn-text {
        align-items: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .emergency-alert::before,
    .alert-icon,
    .step.danger .step-number,
    .emergency-tip.danger,
    .response-time {
        animation: none;
    }
}