* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #000;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100svh; /* iOS 16+: stabile Viewport-Höhe */
    min-height: 100dvh; /* neuere Browser */
    justify-content: center;
    gap: 1rem;
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
    box-sizing: border-box;
}

h1 {
    margin-bottom: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: min(500px, calc((100vh - 200px) * 9 / 16));
    margin: 0 auto;
    flex-shrink: 0;
    background: #000;
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 177.78%; /* 9:16 Aspect Ratio (16/9 = 1.7778) */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.pdf-downloads {
    margin-top: 1rem;
    text-align: center;
    flex-shrink: 0;
    padding: 0.5rem 0;
}

.pdf-link {
    display: block;
    color: #fff;
    text-decoration: underline;
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.pdf-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        height: 100vh;
        height: 100svh; /* iOS 16+: stabile Viewport-Höhe */
        height: 100dvh; /* neuere Browser */
        justify-content: center;
        overflow: hidden;
    }
    
    .content-wrapper {
        min-height: 100svh; /* iOS 16+: stabile Viewport-Höhe */
        min-height: 100dvh; /* neuere Browser */
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: env(safe-area-inset-top) env(safe-area-inset-right)
                 env(safe-area-inset-bottom) env(safe-area-inset-left);
        box-sizing: border-box;
    }
    
    .video-container {
        max-width: 100%;
        width: 100%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        margin: 0;
        position: relative;
    }
    
    .video-container::before {
        display: none;
    }
    
    .video-container video {
        position: relative;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100svh - 200px);
        max-height: calc(100dvh - 200px);
        min-height: 200px;
        display: block;
        background: #000;
        margin: 0;
        padding: 0;
    }
    
    .pdf-downloads {
        margin-top: 0;
        padding: 0.5rem 0;
        flex-shrink: 0;
        min-height: fit-content;
        width: 100%;
    }
}

