/* AdresLeverancier - Haupt-Stylesheet */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Allgemeine Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
#mainNav {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 1030; /* Bootstrap's standard z-index for sticky elements */
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color);
}

#mainNav .navbar-brand i {
    margin-right: 0.5rem;
}

#mainNav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

#mainNav .nav-link:hover {
    color: var(--primary-color);
}

/* Navigation when scrolled */
#mainNav.navbar-scrolled {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 150%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,218.7C672,203,768,149,864,133.3C960,117,1056,139,1152,154.7C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    position: relative;
    z-index: 10;
}

.hero-buttons a {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Suchbereich */
.search-container {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.search-container h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.search-form .form-control,
.search-form .form-select {
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.search-form .btn-search {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.search-form .btn-search:hover {
    background-color: #e55500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Statistik-Karten */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.stat-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #666;
    margin-bottom: 0;
}

/* Feature-Boxen */
.feature-box {
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: var(--shadow);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section .btn-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer h5, footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer .social-links a {
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #0066cc;
    color: white;
}

.autocomplete-item.selected {
    background-color: #0052a3;
    color: white;
}

/* Fix für Select-Elemente */
.form-select {
    position: relative;
    z-index: 1;
}

/* Sicherstellen, dass Dropdowns andere Elemente nicht blockieren */
.position-relative {
    z-index: auto;
}

/* Branche Count Info Animation */
.branche-count-info {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-5px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Initially hidden elements */
.initially-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
}