/* Welcome Page Styles */
#welcomePage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    text-align: center;
    padding: 60px 20px 20px; /* Mehr Padding oben für Abstand zum Header */
    width: 100%;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f7 100%);
    position: relative;
}

/* Subtile Dekoration im Hintergrund */
#welcomePage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(33, 66, 109, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(33, 66, 109, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

/* Remove background and shadow from content-wrapper when welcome page is active */
#welcomePage.active ~ form,
#welcomePage.active {
    background: transparent !important;
}

.content-wrapper:has(#welcomePage.active) {
    background: transparent !important;
    box-shadow: none !important;
}

.welcome-content {
    max-width: 600px;
    width: 100%;
    padding: 50px 40px;
    background: linear-gradient(145deg, #ffffff 0%, #fbfcfd 100%);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Eleganter Akzent am oberen Rand */
.welcome-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #21426D 50%, transparent 100%);
    border-radius: 0 0 2px 2px;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #21426D 0%, #2B5694 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

/* Elegante orangene Akzentlinie unter dem Titel */
.welcome-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff7b2d 0%, #ff9547 100%);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    from { 
        box-shadow: 0 0 5px rgba(255, 123, 45, 0.3);
    }
    to { 
        box-shadow: 0 0 15px rgba(255, 123, 45, 0.6);
    }
}

.welcome-subtitle {
    font-size: 22px;
    color: #4a5568;
    margin-bottom: 35px;
    font-weight: 500;
}

.welcome-description {
    font-size: 16px;
    line-height: 1.7;
    margin: 30px 0;
    color: #4a5568;
    position: relative;
}

/* Dezente Icons für bessere visuelle Struktur */
.welcome-description::before {
    content: '📋';
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

.welcome-info {
    font-size: 14px;
    color: #718096;
    margin: 25px 0 35px;
    font-style: italic;
    padding: 12px 20px;
    background: rgba(33, 66, 109, 0.04);
    border-radius: 8px;
    border-left: 3px solid #21426D;
    position: relative;
}

.welcome-info::before {
    content: '⏱️';
    margin-right: 8px;
    font-style: normal;
}

.welcome-buttons {
    margin-top: 40px;
}

.primary-button {
    background: linear-gradient(135deg, #21426D 0%, #2B5694 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 66, 109, 0.2);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 66, 109, 0.3);
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 13px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
    background-color: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design für verschiedene Bildschirmgrößen */
@media screen and (max-width: 768px) {
    #welcomePage {
        padding: 40px 15px 15px;
        min-height: calc(100vh - 120px);
    }
    
    .welcome-content {
        padding: 35px 25px;
        max-width: 90%;
        border-radius: 12px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-subtitle {
        font-size: 18px;
    }
    
    .welcome-description {
        font-size: 15px;
    }
    
    .welcome-info {
        padding: 10px 15px;
        margin: 20px 0 30px;
    }
}

@media screen and (max-width: 480px) {
    #welcomePage {
        padding: 30px 10px 10px;
        min-height: calc(100vh - 100px);
        background: linear-gradient(135deg, #f8fafb 0%, #f0f4f7 100%);
    }
    
    .welcome-content {
        padding: 30px 20px;
        max-width: 95%;
        border-radius: 12px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
    }
    
    .welcome-description {
        font-size: 14px;
        margin: 20px 0;
    }
    
    .welcome-info {
        padding: 8px 12px;
        margin: 15px 0 25px;
        font-size: 13px;
    }
    
    .primary-button {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .secondary-button {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        padding: 11px 20px;
    }
}

@media screen and (min-width: 1200px) {
    #welcomePage {
        padding: 80px 20px 20px; /* Mehr Abstand auf größeren Bildschirmen */
        min-height: calc(100vh - 180px);
    }
    
    .welcome-content {
        max-width: 650px;
        padding: 50px 40px;
    }
    
    .welcome-title {
        font-size: 32px;
    }
    
    .welcome-subtitle {
        font-size: 22px;
    }
}

@media screen and (min-width: 1600px) {
    #welcomePage {
        padding: 100px 20px 20px; /* Noch mehr Abstand auf sehr großen Monitoren */
        min-height: calc(100vh - 200px);
    }
    
    .welcome-content {
        max-width: 700px;
        padding: 60px 50px;
    }
    
    .welcome-title {
        font-size: 36px;
    }
    
    .welcome-subtitle {
        font-size: 24px;
    }
    
    .welcome-description {
        font-size: 17px;
    }
}