/* Font faces */
@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter_18pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../assets/fonts/Inter_18pt-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background-color: #000;
    color: #fff;
    line-height: 1.5;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hero Video Section */
.hero {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero video {
    width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: cover;
    display: block;
}

.hero .video-desktop {
    display: block;
}

.hero .video-mobile {
    display: none;
}

/* Video loader overlay */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}

.video-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #D4E500;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Main Content */
.content {
    padding: 40px 30px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Bar */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: height 0.3s ease-in-out;
}

.header-bar.compact {
    height: 80px;
}

.header-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: inline-block;
    padding: 10px 0;
    transition: padding 0.3s ease-in-out;
}

.logo img {
    width: 100px;
    height: auto;
    transition: width 0.3s ease-in-out;
}

.header-bar.compact .logo {
    padding: 8px 0;
}

.header-bar.compact .logo img {
    width: 60px;
}

/* Spacer to push content below header */
.header-spacer {
    height: 120px;
}

/* Section headings */
.section-heading {
    color: #D4E500;
    font-weight: 900;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* Contact info sections */
.contact-section {
    margin-bottom: 40px;
}

.contact-section p {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-section a {
    text-decoration: underline;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

.social-icons svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.social-icons a:hover svg {
    fill: #D4E500;
}

/* Contact cards grid */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 60px;
    margin-top: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card .role {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-card .subrole {
    font-weight: 300;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-card .phone,
.contact-card .email {
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-card .email {
/*    margin-top: 8px;*/
}

.contact-card .email a {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 30px;
    border-top: 1px solid #333;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-copyright {
    font-size: 0.75rem;
    font-weight: 300;
    color: #999;
}

/* Impressum Foldout */
.impressum-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.impressum-section.open {
    max-height: 500px;
    padding: 40px 30px 60px;
}

.impressum-section p {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
}

.impressum-close {
    position: absolute;
    top: 40px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.impressum-close:hover {
    opacity: 1;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .contacts-grid {
        gap: 70px 40px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .header-bar {
        height: 100px;
    }

    .header-bar.compact {
        height: 70px;
    }

    .header-bar-inner {
        padding: 0 15px;
    }

    .logo img {
        width: 80px;
    }

    .header-bar.compact .logo {
        padding: 8px 0;
    }

    .header-bar.compact .logo img {
        width: 54px;
    }

    .header-spacer {
        height: 100px;
    }

    .hero {
        max-width: 100%;
    }

    .hero video {
        max-height: none;
        height: 100%;
    }

    .hero .video-desktop {
        display: none;
    }

    .hero .video-mobile {
        display: block;
    }

    .content {
        padding: 30px 20px 50px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .impressum-section {
        padding: 0 20px;
    }

    .impressum-section.open {
        padding: 30px 20px 50px;
    }

    .impressum-close {
        top: 30px;
        right: 20px;
    }
}
