/* ============================================
   PROSTOBAU STYLE HEADER CSS
   Дизайн шапки в стиле prostobau.de
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Container */
.header.prostobau-style {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.header.prostobau-style .header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

/* Logo Styles - Enhanced with maximum specificity */
.header.prostobau-style .logo {
    flex-shrink: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 140px !important;
}

.header.prostobau-style .logo-image {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header.prostobau-style .logo-text {
    color: #FF6B35 !important;
    font-weight: bold !important;
    font-size: 24px !important;
    text-decoration: none !important;
    display: none !important;
}

.header.prostobau-style .logo-link {
    display: block !important;
    transition: opacity 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

.header.prostobau-style .logo-image,
.header.prostobau-style img.logo-image,
.header.prostobau-style .logo img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    color: transparent !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important;
}

/* Force logo to show - override any hiding styles */
.header.prostobau-style .logo *,
.header.prostobau-style .logo img,
.header.prostobau-style .logo a img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 48px !important;
    width: auto !important;
}

/* Prevent text fallback */
.header.prostobau-style .logo-link::before,
.header.prostobau-style .logo-link::after {
    display: none !important;
    content: none !important;
}

.header.prostobau-style .logo-link {
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
}

.header.prostobau-style .logo-link:hover {
    opacity: 0.8;
}

.header.prostobau-style .logo-image {
    max-height: 48px;
    width: auto;
    display: block;
}

/* Main Navigation */
.header.prostobau-style .main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.header.prostobau-style .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header.prostobau-style .nav-item {
    position: relative;
}

.header.prostobau-style .nav-link {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.header.prostobau-style .nav-link:hover {
    color: #FF6B35;
    background-color: #f3f4f6;
}

.header.prostobau-style .nav-link.active {
    color: #FF6B35;
    font-weight: 600;
}

.header.prostobau-style .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: #FF6B35;
    border-radius: 1px;
}

/* Header Actions */
.header.prostobau-style .header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Contact Button */
.header.prostobau-style .btn-contact {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.header.prostobau-style .btn-contact:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF6B35 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* Language Dropdown */
.header.prostobau-style .language-dropdown {
    position: relative;
    display: inline-block;
}

.header.prostobau-style .lang-dropdown-btn {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 70px;
    justify-content: space-between;
}

.header.prostobau-style .lang-dropdown-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.header.prostobau-style .lang-dropdown-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header.prostobau-style .lang-dropdown-btn.active i {
    transform: rotate(180deg);
}

.header.prostobau-style .lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.header.prostobau-style .lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header.prostobau-style .lang-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.header.prostobau-style .lang-dropdown-item:last-child {
    border-bottom: none;
}

.header.prostobau-style .lang-dropdown-item:hover {
    background-color: #f3f4f6;
    color: #FF6B35;
}

.header.prostobau-style .lang-dropdown-item.active {
    background-color: #fff5f0;
    color: #FF6B35;
    font-weight: 600;
}

.header.prostobau-style .lang-dropdown-item.active::after {
    content: '✓';
    float: right;
    color: #FF6B35;
}

/* Mobile Menu Toggle */
.header.prostobau-style .mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.header.prostobau-style .mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.header.prostobau-style .hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #374151;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header.prostobau-style .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.header.prostobau-style .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
    z-index: 999;
}

.header.prostobau-style .mobile-nav.active {
    display: block;
}

.header.prostobau-style .mobile-nav-content {
    padding: 20px 32px;
}

.header.prostobau-style .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header.prostobau-style .mobile-nav-item {
    margin-bottom: 8px;
}

.header.prostobau-style .mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header.prostobau-style .mobile-nav-link:hover {
    background-color: #f3f4f6;
    color: #FF6B35;
}

/* Mobile Languages */
.header.prostobau-style .mobile-languages {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.header.prostobau-style .mobile-languages h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header.prostobau-style .mobile-lang-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    margin: 4px 8px 4px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.header.prostobau-style .mobile-lang-btn:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.header.prostobau-style .mobile-lang-btn.active {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.contact-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.contact-modal-body {
    padding: 24px;
}

.contact-modal-body p {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-modal-body i {
    color: #FF6B35;
    width: 16px;
}

.contact-modal-body a {
    color: #FF6B35;
    text-decoration: none;
}

.contact-modal-body a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-send {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-send:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #FF6B35 100%);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header.prostobau-style .header-container {
        padding: 0 16px;
        height: 70px;
    }
    
    .header.prostobau-style .main-nav {
        display: none;
    }
    
    .header.prostobau-style .mobile-menu-toggle {
        display: flex;
    }
    
    .header.prostobau-style .language-dropdown {
        display: none;
    }
    
    .header.prostobau-style .btn-contact {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .header.prostobau-style .logo-image {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .header.prostobau-style .header-container {
        padding: 0 12px;
        gap: 12px;
    }
    
    .header.prostobau-style .btn-contact {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .contact-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .contact-modal-header,
    .contact-modal-body {
        padding: 16px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header.prostobau-style .mobile-nav.active {
    animation: fadeIn 0.3s ease;
}

.contact-modal {
    animation: fadeIn 0.3s ease;
}

/* Focus styles for accessibility */
.header.prostobau-style .nav-link:focus,
.header.prostobau-style .lang-btn:focus,
.header.prostobau-style .btn-contact:focus,
.header.prostobau-style .mobile-menu-toggle:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header.prostobau-style {
        border-bottom: 2px solid #000;
    }
    
    .header.prostobau-style .nav-link {
        border: 1px solid transparent;
    }
    
    .header.prostobau-style .nav-link:hover,
    .header.prostobau-style .nav-link.active {
        border-color: #FF6B35;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .header.prostobau-style * {
        transition: none !important;
        animation: none !important;
    }
}