/* 
   Modern Container Styles for BGM Rheinland-Pfalz 
   
   This file contains enhanced styling for container sections on the index page
   to create a more modern, visually appealing design.
*/

/* Proof Bar (Statistics) Styling */
.proof-bar {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.proof-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    position: relative;
    z-index: 2;
}

.proof-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 100%;
    transform: translateY(0);
}

.proof-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.proof-number {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.proof-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 80%;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-md) auto var(--space-sm);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-size: 1.8rem;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
    text-align: center;
    padding: 0 var(--space-sm);
}

.feature-card p {
    padding: 0 var(--space-md);
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.card-link {
    margin-top: auto;
    text-align: center;
    padding: var(--space-sm);
    border-top: 1px solid var(--gray-light);
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(29, 67, 115, 0.05);
    transition: var(--transition);
}

.card-link:hover {
    background-color: rgba(29, 67, 115, 0.1);
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* USP Section */
.usp-section {
    padding: var(--space-xl) 0;
    background-color: var(--gray-light);
    position: relative;
}

.usp-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--white);
    border-radius: 0 0 50% 50%;
}

.usp-section h2 {
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.usp-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.usp-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 67, 115, 0.03), rgba(29, 67, 115, 0.08));
    z-index: -1;
    clip-path: circle(0% at 100% 100%);
    transition: clip-path 0.6s ease;
}

.usp-card:hover::before {
    clip-path: circle(150% at 100% 100%);
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.usp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    transition: var(--transition);
}

.usp-card:hover .usp-icon {
    transform: scale(1.1);
}

.usp-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-size: 1.4rem;
}

.usp-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Comparison Section */
.comparison-section {
    padding: var(--space-xl) 0;
    background-color: var(--white);
    position: relative;
}

.comparison-section h2 {
    margin-bottom: var(--space-md);
}

.comparison-table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: var(--space-md) auto;
    overflow: hidden;
    max-width: 800px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-dark);
}

.comparison-table th {
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--gray-light);
    color: var(--text-dark);
}

.comparison-table th.highlight {
    background-color: var(--primary);
    color: var(--white);
}

.comparison-table td {
    font-size: 1rem;
    color: var(--text-light);
}

.comparison-table td.highlight {
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(29, 67, 115, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.download-box {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    text-align: center;
    margin: var(--space-md) auto;
    max-width: 600px;
    box-shadow: var(--box-shadow);
}

.download-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Location Map Section */
.location-map {
    padding: var(--space-xl) 0;
    background-color: var(--gray-light);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: var(--space-md) 0;
    border: 5px solid var(--white);
    position: relative;
}

#map {
    height: 100%;
    width: 100%;
}

.location-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.location-item {
    background-color: var(--white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.location-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.location-item h4 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.location-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--gray-light);
    border-radius: 0 0 50% 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 2.2rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.cta-button-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.cta-small {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .proof-grid, .usp-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .proof-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .proof-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .cta-button-group {
        flex-direction: column;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
    }
    
    .proof-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .proof-grid {
        grid-template-columns: 1fr;
    }
    
    .location-list {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}
