/* Import main variables from parent CSS */
:root {
    --primary-green: #48bb78;
    --secondary-green: #38a169;
    --primary-gray: #e2e8f0;
    --secondary-gray: #a0aec0;
    --darker-gray: #1a1a1a;
    --background: #1a202c;
    --background-light: #2d3748;
    --white: #ffffff;
    --text-muted: #718096;
    --surface-light: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --border-color: #4a5568;
}

/* Impressum Section */
.impressum-section {
    background: var(--background);
    padding-top: 120px;
    min-height: 100vh;
    color: var(--primary-gray);
}

.impressum-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fixe Sidebar */
.legal-sidebar {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 140px;
    height: fit-content;
    max-height: calc(100vh - 160px);
    box-shadow: 0 10px 30px rgba(72, 187, 120, 0.3);
}

.sidebar-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 1rem;
}

.back-link-sidebar {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Scrollbarer Content-Bereich */
.impressum-content {
    background: var(--background-light);
    border-radius: 20px;
    border: 2px solid var(--primary-green);
    padding: 2.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 120px);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--background-light);
    scroll-behavior: smooth;
}

.impressum-content::-webkit-scrollbar {
    width: 8px;
}

.impressum-content::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 4px;
}

.impressum-content::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.impressum-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impressum-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-block {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.1);
    transform: translateY(-2px);
}

.info-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

.info-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 1.5rem 0 1rem 0;
}

.info-block p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--secondary-gray);
}

.info-block p:last-child {
    margin-bottom: 0;
}

.info-block strong {
    color: var(--white);
    font-weight: 600;
}

.info-block a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* Specific styling for different info blocks */
.company-info,
.contact-info,
.register-info,
.tax-info,
.responsibility-info {
    background: rgba(72, 187, 120, 0.05) !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    border: 2px solid var(--primary-green) !important;
    margin-top: 1rem !important;
}

.disclaimer-info {
    background: rgba(160, 174, 192, 0.05) !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    border: 2px solid var(--secondary-gray) !important;
    margin-top: 1rem !important;
}

.os-info {
    background: rgba(72, 187, 120, 0.05) !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    border: 2px solid var(--secondary-green) !important;
    margin-top: 1rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .impressum-layout {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
    
    .legal-sidebar {
        padding: 1.5rem;
    }
    
    .impressum-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .impressum-section {
        padding-top: 100px;
    }
    
    .impressum-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1rem;
    }
    
    .legal-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }
    
    .impressum-content {
        max-height: none;
        overflow-y: visible;
        order: 1;
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .info-block h2 {
        font-size: 1.25rem;
    }
    
    .company-info,
    .contact-info,
    .register-info,
    .tax-info,
    .responsibility-info,
    .disclaimer-info,
    .os-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .impressum-section {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .impressum-info {
        gap: 1.5rem;
    }
    
    .info-block {
        padding: 1rem;
    }
    
    .legal-sidebar {
        padding: 1rem;
    }
}