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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Container with fixed aspect ratio 1080x1920 */
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* Maintain aspect ratio while scaling responsively */
    max-width: 100vw;
    max-height: 100vh;
    background-color: #000;
}

/* Background wrapper */
.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Background image */
.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Default background when no image is uploaded */
.default-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Gradient overlay from transparent (bottom) to #ff5000 (top) */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ff5000 0%, rgba(255, 80, 0, 0.8) 30%, rgba(255, 80, 0, 0.4) 60%, rgba(255, 80, 0, 0) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Different gradient styles */
.gradient-overlay.orange {
    background: linear-gradient(to bottom, #ff5000 0%, rgba(255, 80, 0, 0.8) 30%, rgba(255, 80, 0, 0.4) 60%, rgba(255, 80, 0, 0) 100%);
}

.gradient-overlay.green {
    background: linear-gradient(to bottom, #34fe85 0%, rgba(52, 254, 133, 0.8) 30%, rgba(52, 254, 133, 0.4) 60%, rgba(52, 254, 133, 0) 100%);
}

.gradient-overlay.blue {
    background: linear-gradient(to bottom, #5dd5ff 0%, rgba(93, 213, 255, 0.8) 30%, rgba(93, 213, 255, 0.4) 60%, rgba(93, 213, 255, 0) 100%);
}

/* Content wrapper */
.content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 40px;
}

/* Welcome text styling */
.welcome-text {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10vh;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 90%;
    word-wrap: break-word;
}

/* Responsive design for different screen sizes */
@media screen and (max-width: 768px) {
    .content {
        padding: 60px 20px;
    }

    .welcome-text {
        font-size: clamp(2rem, 10vw, 4rem);
        margin-top: 15vh;
    }
}

@media screen and (max-height: 600px) {
    .content {
        padding: 40px 20px;
    }

    .welcome-text {
        margin-top: 8vh;
        font-size: clamp(1.8rem, 6vh, 3rem);
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 768px) {
    .welcome-text {
        margin-top: 5vh;
        font-size: clamp(2rem, 5vh, 3.5rem);
    }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {
    .welcome-text {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Logo positioning */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
}

.company-logo {
    /* max-height entfernt - wird jetzt nur durch max-width kontrolliert */
    height: auto;
    width: auto;
    opacity: 1.0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    /* max-width wird jetzt dynamisch per inline-style gesetzt */
}

/* Responsive logo sizing - alle Limits entfernt für volle Kontrolle */
@media screen and (max-width: 768px) {
    .company-logo {
        /* Keine Größenbegrenzungen mehr - volle Kontrolle über Slider */
    }
}

@media screen and (max-height: 600px) {
    .company-logo {
        /* Keine Größenbegrenzungen mehr - volle Kontrolle über Slider */
    }
}

/* Print styles */
@media print {
    .container {
        width: 21cm;
        height: 29.7cm;
    }

    .logo-container {
        display: none;
        /* Hide logo in print */
    }
}