/* Impressum Page Specific Styles */
body {
    font-family: 'Inter', sans-serif;
    background: url('../media/background.jpg') center/cover no-repeat fixed;
    color: #e8f5f5;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.impressum-page {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

.langnav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(26, 51, 51, 0.9);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(64, 224, 208, 0.35);
    border-radius: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.langnav .lang-link,
.langnav .lang-sep {
    color: #d4a574;
}

.langnav .lang-link {
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.langnav .lang-link:hover {
    color: #f0c79d;
}

.langnav .lang-sep {
    opacity: 0.75;
}

.back-home {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(26, 51, 51, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(64, 224, 208, 0.5);
    border-radius: 16px;
    color: #40E0D0;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.back-home:hover {
    background: rgba(26, 51, 51, 1);
    border-color: #40E0D0;
    transform: translateX(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.back-home svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.impressum-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 120px 40px 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.impressum-content {
    max-width: 900px;
    width: 100%;
    padding: 60px;
    background: rgba(26, 51, 51, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 2px solid rgba(64, 224, 208, 0.4);
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(64, 224, 208, 0.2);
}

.impressum-content:hover { transform: none; }
.impressum-content::before { display: none; }

.impressum-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
}

.impressum-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7)) 
            drop-shadow(0 0 40px rgba(64, 224, 208, 0.3));
}

.impressum-header h1 {
    font-family: 'Anybody', sans-serif;
    font-size: 3.5rem;
    color: #40E0D0;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.impressum-subtitle {
    font-size: 1.1rem;
    color: #8dd3c7;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 1rem;
    color: #8dd3c7;
    font-weight: 400;
    font-style: italic;
}

.impressum-section {
    margin-bottom: 45px;
}

.impressum-section h2 {
    font-family: 'Anybody', sans-serif;
    font-size: 1.8rem;
    color: #40E0D0;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.impressum-section h3 {
    font-family: 'Anybody', sans-serif;
    font-size: 1.4rem;
    color: #40E0D0;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.impressum-section p {
    font-size: 1.05rem;
    color: #e8f5f5;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.impressum-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.impressum-section ul li {
    font-size: 1.05rem;
    color: #e8f5f5;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 300;
}

.impressum-section ul li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: #40E0D0;
    font-weight: 600;
    font-size: 1.2rem;
}

.impressum-section a {
    color: #40E0D0;
    text-decoration: none;
    border-bottom: 1px solid rgba(64, 224, 208, 0.3);
    transition: all 0.3s ease;
}

.impressum-section a:hover {
    color: #5ff5e3;
    border-bottom-color: #40E0D0;
}

.contact-details {
    margin-top: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
}

.contact-details p { margin-bottom: 10px; }
.contact-details p:last-child { margin-bottom: 0; }
.contact-details strong { color: #40E0D0; font-weight: 600; }

/* Sidebar Toggle Button (Mobile) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 30px;
    left: 180px;
    z-index: 1001;
    background: rgba(26, 51, 51, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(64, 224, 208, 0.5);
    border-radius: 12px;
    color: #40E0D0;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle:hover {
    background: rgba(26, 51, 51, 1);
    border-color: #40E0D0;
}

/* Sidebar */
.impressum-sidebar {
    position: fixed;
    top: 90px;
    left: 20px;
    width: 260px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    z-index: 100;
    background: rgba(26, 51, 51, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 224, 208, 0.3) transparent;
}

.impressum-sidebar::-webkit-scrollbar {
    width: 4px;
}

.impressum-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.impressum-sidebar::-webkit-scrollbar-thumb {
    background: rgba(64, 224, 208, 0.3);
    border-radius: 4px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: block;
    padding: 8px 20px;
    color: #8dd3c7;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link:hover {
    color: #40E0D0;
    background: rgba(64, 224, 208, 0.08);
    border-left-color: rgba(64, 224, 208, 0.4);
}

.sidebar-link.active {
    color: #40E0D0;
    font-weight: 600;
    background: rgba(64, 224, 208, 0.12);
    border-left-color: #40E0D0;
}

.sidebar-link.sidebar-sub {
    padding-left: 34px;
    font-size: 0.73rem;
    color: rgba(141, 211, 199, 0.7);
}

.sidebar-link.sidebar-sub:hover {
    color: #8dd3c7;
}

.sidebar-link.sidebar-sub.active {
    color: #40E0D0;
    font-weight: 500;
}

/* Adjust main content to make room for sidebar on desktop */
@media (min-width: 1101px) {
    .impressum-container {
        margin-left: 290px;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .impressum-sidebar {
        top: 0;
        left: -300px;
        width: 280px;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0 16px 16px 0;
        padding-top: 80px;
        transition: left 0.3s ease, box-shadow 0.3s ease;
        z-index: 999;
    }

    .impressum-sidebar.open {
        left: 0;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 1024px) {
    .impressum-container { padding: 100px 30px 50px; }
    .impressum-content { padding: 50px 40px; }
    .impressum-header h1 { font-size: 3rem; }
    .impressum-section h2 { font-size: 1.6rem; }
    .impressum-section h3 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .langnav {
        top: 0.7rem;
        right: 0.7rem;
        padding: 0.45rem 0.75rem;
        gap: 0.4rem;
    }

    .sidebar-toggle { top: 20px; left: 70px; padding: 8px 10px; }
    .back-home { top: 20px; left: 20px; padding: 10px 18px; font-size: 0.9rem; }
    .back-home span { display: none; }
    .back-home svg { width: 20px; height: 20px; }
    .impressum-container { padding: 80px 20px 40px; }
    .impressum-content { padding: 40px 25px; border-radius: 24px; }
    .impressum-logo { width: 150px; margin-bottom: 20px; }
    .impressum-header { margin-bottom: 40px; padding-bottom: 30px; }
    .impressum-header h1 { font-size: 2.2rem; }
    .last-updated { font-size: 0.9rem; }
    .impressum-section { margin-bottom: 35px; }
    .impressum-section h2 { font-size: 1.4rem; margin-bottom: 15px; }
    .impressum-section h3 { font-size: 1.2rem; margin-top: 20px; margin-bottom: 12px; }
    .impressum-section p, .impressum-section ul li { font-size: 0.95rem; line-height: 1.7; }
    .impressum-section ul li { padding-left: 25px; margin-bottom: 12px; }
    .impressum-section ul li::before { font-size: 1rem; }
    .contact-details { padding: 20px; }
}

@media (max-width: 480px) {
    .impressum-content { padding: 30px 20px; }
    .impressum-header h1 { font-size: 1.8rem; }
    .impressum-section h2 { font-size: 1.2rem; }
    .impressum-section h3 { font-size: 1.1rem; }
    .impressum-section p, .impressum-section ul li { font-size: 0.9rem; }
}

@media print {
    .back-home { display: none; }
    .impressum-sidebar { display: none; }
    .sidebar-toggle { display: none !important; }
    body::before { display: none; }
    .impressum-content { background: white; color: black; border: none; box-shadow: none; }
    .impressum-header h1, .impressum-section h2, .impressum-section h3, .impressum-section a, .contact-details strong { color: #1a3333; }
    .impressum-section p, .impressum-section ul li { color: #333; }
    .last-updated { color: #666; }
}
