/* Reset und Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Video Container - Vollbild ohne Ränder */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
}

/* Overlay für bessere Lesbarkeit des Kontakt-Links */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* Content Container */
.content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
}

/* Main Content - leer, da nur Kontakt-Link benötigt */
.main-content {
    flex: 1;
}

/* Footer mit Kontakt-Link */
.footer {
    padding: 1.5rem 2rem;
    z-index: 2;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.contact-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.contact-link:active {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design für verschiedene Bildschirmgrößen */

/* Tablets im Hochformat */
@media (max-width: 768px) and (orientation: portrait) {
    .contact-link {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.2rem 1.5rem;
    }
    
    #background-video {
        /* Für Hochformat: Video soll Breite füllen und vertikal zentriert sein */
        min-width: 100vw;
        min-height: 100vh;
        width: 100vw;
        height: auto;
    }
}

/* Smartphones im Hochformat */
@media (max-width: 480px) and (orientation: portrait) {
    .contact-link {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 1rem 1rem;
    }
    
    #background-video {
        /* Optimierung für kleine Hochformat-Bildschirme */
        min-width: 100vw;
        min-height: 100vh;
        width: 100vw;
        height: auto;
    }
}

/* Tablets und Smartphones im Querformat */
@media (max-height: 600px) and (orientation: landscape) {
    .contact-link {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 0.8rem 1rem;
    }
    
    #background-video {
        /* Für Querformat: Video soll Höhe füllen und horizontal zentriert sein */
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: 100vh;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 320px) {
    .contact-link {
        font-size: 0.7rem;
    }
    
    .footer {
        padding: 0.8rem 0.5rem;
    }
}

/* Große Desktop-Bildschirme */
@media (min-width: 1200px) {
    .contact-link {
        font-size: 1.1rem;
    }
    
    .footer {
        padding: 2rem 2rem;
    }
}

/* Ultra-breite Bildschirme */
@media (min-width: 1920px) {
    .contact-link {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 2.5rem 2rem;
    }
}

/* Spezielle Behandlung für verschiedene Seitenverhältnisse */

/* 16:9 Bildschirme */
@media (min-aspect-ratio: 16/9) {
    #background-video {
        width: 100vw;
        height: auto;
        min-height: 100vh;
    }
}

/* 4:3 oder quadratische Bildschirme */
@media (max-aspect-ratio: 4/3) {
    #background-video {
        width: auto;
        height: 100vh;
        min-width: 100vw;
    }
}

/* Sehr breite Bildschirme (21:9 etc.) */
@media (min-aspect-ratio: 21/9) {
    #background-video {
        width: 100vw;
        height: auto;
        min-height: 100vh;
    }
}

/* iPhone X und ähnliche mit Notch */
@media (max-width: 414px) and (max-height: 896px) and (orientation: portrait) {
    .footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* Sicherstellen, dass Video immer den gesamten Bildschirm ausfüllt */
@supports (object-fit: cover) {
    #background-video {
        object-fit: cover;
    }
}

/* Fallback für ältere Browser */
@supports not (object-fit: cover) {
    #background-video {
        width: 100vw;
        height: 100vh;
    }
}

