/* ========================================
   Modern Forstmann Website Styles
   ======================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   Modern Header & Navigation
   ======================================== */

#site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 0.5rem 0;
}

#site-header.nav-fixed {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar {
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 70px;
    transition: var(--transition);
}

#site-header.nav-fixed .navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition);
    color: var(--text-dark);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #667eea;
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    display: block;
    position: relative;
    transition: var(--transition);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* ========================================
   Modern Hero Section
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================
   Modern Buttons
   ======================================== */

.btn-modern {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: white;
    color: #667eea;
    box-shadow: var(--shadow-lg);
}

.btn-primary-modern:hover {
    box-shadow: var(--shadow-xl);
    color: #667eea;
}

.btn-outline-modern {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-modern:hover {
    background: white;
    color: #667eea;
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: 5rem 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: block;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Zentrierte Überschriften - Linie auch zentrieren */
.text-center .section-title::after,
.text-center > .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

/* ========================================
   Cards & Features
   ======================================== */

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    padding-bottom: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: visible;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Image Gallery & Grid
   ======================================== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   Modern Footer
   ======================================== */

.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
}

/* ========================================
   Vacation Modal Styles
   ======================================== */

.vacation-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vacation-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.5rem 2rem;
    color: white;
}

.vacation-modal-header .modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.vacation-modal-body {
    background: white;
    padding: 2.5rem 2rem;
}

.vacation-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.vacation-icon-wrapper i {
    font-size: 3rem;
    color: white;
}

.vacation-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.vacation-date-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
    letter-spacing: 0.5px;
}

.vacation-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.vacation-footer-text {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.vacation-modal-footer {
    background: white;
    padding-top: 0.5rem;
}

.vacation-btn {
    padding: 0.875rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.vacation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

/* ========================================
   Cookie Button Modernization
   ======================================== */

.cookieBtn {
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    position: fixed;
    bottom: 30px;
    left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    color: var(--text-dark);
}

.cookieBtn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: #667eea;
    color: white;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-logo {
        max-width: 80%;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    #site-header .navbar-brand img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-modern {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .cookieBtn {
        left: 20px;
        bottom: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-logo {
        max-width: 90%;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    #site-header .navbar-brand img {
        height: 50px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.rounded-20 { border-radius: 20px; }
.rounded-30 { border-radius: 30px; }

.bg-gradient {
    background: var(--gradient-primary);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ========================================
   Product Cards
   ======================================== */

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.product-link:hover {
    gap: 1rem;
    color: #764ba2;
}

/* ========================================
   Suppliers/Partners Section
   ======================================== */

.supplier-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.supplier-logo:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.supplier-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.supplier-logo:hover img {
    filter: grayscale(0%);
}

/* ========================================
   Inquiry Form / Projektanfrage
   ======================================== */

.inquiry-form-wrapper {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.inquiry-form .form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.inquiry-form .form-section:last-of-type {
    border-bottom: none;
}

.inquiry-form .form-section h4 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.25rem;
}

.inquiry-form .form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.inquiry-form .form-control,
.inquiry-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.inquiry-form .form-control:hover,
.inquiry-form .form-select:hover {
    border-color: #667eea;
}

.inquiry-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.inquiry-form .text-danger {
    color: var(--accent-color);
}

.inquiry-form .field-group {
    transition: var(--transition);
}

.inquiry-form .alert {
    border-radius: 15px;
    padding: 1.25rem;
    font-weight: 500;
}

.inquiry-form .alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.inquiry-form .alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.inquiry-form .btn-modern {
    min-width: 200px;
    font-size: 1.1rem;
}

.inquiry-form .btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.inquiry-form .btn-modern .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.inquiry-form .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inquiry-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.inquiry-form .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.inquiry-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.inquiry-form .form-check-label {
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-dark);
}

.inquiry-form .form-check-label a {
    color: #667eea;
    font-weight: 500;
}

.inquiry-form .form-check-label a:hover {
    color: #764ba2;
}

/* Responsive Inquiry Form */
@media (max-width: 768px) {
    .inquiry-form-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .inquiry-form .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .inquiry-form .form-section h4 {
        font-size: 1.1rem;
    }
    
    .inquiry-form .form-check-label {
        font-size: 0.9rem;
    }
}

/* ========================================
   Content Card (for legal pages)
   ======================================== */

.content-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.content-card h3,
.content-card h4 {
    color: var(--text-dark);
}

.content-card h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-card a {
    color: #667eea;
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-card {
        padding: 2rem 1.5rem;
    }
}
