/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    overflow: hidden;
}

/* Main container */
.main-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

/* Background sequence */
.background-sequence {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    opacity: 0.41;
    z-index: -1;
    overflow: hidden;
}

.background-sequence canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo */
.logo {
    position: absolute;
    top: 50%;
    left: calc(50% + 0.5px);
    width: 921px;
    height: 330px;
    max-width: 90vw;
    max-height: 40vh;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
}

/* Top section */
.top-section {
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-left, .text-right {
    display: flex;
    align-items: center;
}

.text-left p, .text-right p {
    font-size: 20px;
    color: black;
    white-space: nowrap;
}

/* Bottom section - Fixed to be relative to viewport height */
.bottom-section {
    position: absolute;
    bottom: 50px; /* Changed from top: 950px to bottom: 50px */
    left: 50px;
    right: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info, .impressum-button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.contact-info p, .impressum-button p {
    font-size: 20px;
    color: black;
    white-space: nowrap;
}

.impressum-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.impressum-button:hover {
    opacity: 0.7;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-overlay.visible {
    display: flex;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.close-button {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close-button:hover {
    opacity: 0.7;
}

.impressum-content h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.impressum-content h3:first-child {
    margin-top: 0;
}

.impressum-content p {
    margin-bottom: 0.5rem;
}

.impressum-content hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .top-section {
        flex-direction: column;
        gap: 1rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        align-items: center;
    }
    
    .bottom-section {
        flex-direction: column;
        gap: 2rem;
        left: 50%;
        right: auto;
        bottom: 100px; /* Keeping bottom positioning for mobile */
        transform: translateX(-50%);
        width: auto;
    }
}

/* Hover effects */
.hover-effect:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
