/* Home Page Styles - Dark Mode */

.home-wrapper-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-xl);
}

.home-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.home-container {
    text-align: center;
    position: relative;
}

/* Language Selector */
.home-header-nav {
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: var(--z-index-dropdown);
}

.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
}

.language-dropdown-toggle:hover {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.flag-icon {
    width: 24px;
    height: 18px;
    display: block;
    border: none;
    font-family: var(--font-family-base);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-sm);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    box-shadow: var(--glass-shadow);
    z-index: var(--z-index-modal);
}

.language-dropdown:hover .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: background var(--transition-fast);
    border-radius: var(--radius-sm);
    margin: var(--spacing-xs);
    font-family: var(--font-family-base);
}

.language-option:first-child {
    margin-top: var(--spacing-sm);
}

.language-option:last-child {
    margin-bottom: var(--spacing-sm);
}

.language-option:hover {
    background: var(--color-surface-hover);
    animation: pulse 1s ease-in-out infinite;
}

.language-option.active {
    background: var(--color-surface);
}

.language-option.active .flag-icon {
    border: none;
    box-shadow: 0 0 8px var(--color-primary-blue-rgba-50);
    opacity: 1;
}

.language-option .flag-icon {
    flex-shrink: 0;
}

.language-option span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
}

.home-header {
    margin-bottom: var(--spacing-3xl);
}

.app-logo {
    font-size: var(--font-size-5rem);
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    font-family: var(--font-family-base);
    line-height: var(--line-height-tight);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================================================
   Home Welcome Title "Willkommen bei base-ui-testcase" - Komplett neu erstellt
   ============================================================================ */
#home-welcome-title,
.home-header h1,
h1#home-welcome-title,
.home-header h1.widget-headline-h1,
#home-welcome-title.widget-headline-h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary) !important;
    margin-bottom: var(--spacing-md);
    padding: 0;
    font-family: var(--font-family-base);
    line-height: var(--line-height-tight);
    text-decoration: none;
    /* Keine Background-Gradient, keine Animationen */
    background: none !important;
    background-image: none !important;
    -webkit-text-fill-color: var(--color-text-primary) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
}

#home-welcome-title:hover,
#home-welcome-title:focus,
#home-welcome-title:active,
#home-welcome-title:visited,
.home-header h1:hover,
.home-header h1:focus,
.home-header h1:active,
.home-header h1:visited,
.home-header h1.widget-headline-h1:hover,
.home-header h1.widget-headline-h1:focus,
.home-header h1.widget-headline-h1:active,
#home-welcome-title.widget-headline-h1:hover,
#home-welcome-title.widget-headline-h1:focus,
#home-welcome-title.widget-headline-h1:active {
    color: var(--color-text-primary) !important;
    text-decoration: none;
    background: none !important;
    background-image: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    -webkit-text-fill-color: var(--color-text-primary) !important;
}

#home-welcome-title::before,
#home-welcome-title::after,
#home-welcome-title:hover::before,
#home-welcome-title:hover::after,
#home-welcome-title:focus::before,
#home-welcome-title:focus::after,
#home-welcome-title:active::before,
#home-welcome-title:active::after,
.home-header h1::before,
.home-header h1::after,
.home-header h1:hover::before,
.home-header h1:hover::after,
.home-header h1:focus::before,
.home-header h1:focus::after,
.home-header h1:active::before,
.home-header h1:active::after,
.home-header h1.widget-headline-h1::before,
.home-header h1.widget-headline-h1::after,
.home-header h1.widget-headline-h1:hover::before,
.home-header h1.widget-headline-h1:hover::after,
#home-welcome-title.widget-headline-h1::before,
#home-welcome-title.widget-headline-h1::after,
#home-welcome-title.widget-headline-h1:hover::before,
#home-welcome-title.widget-headline-h1:hover::after {
    display: none !important;
    content: none !important;
}

.home-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-tertiary);
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family-base);
}

.home-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.home-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: var(--color-surface);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all var(--transition-normal);
    min-height: 280px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-family-base);
}

.home-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-purple) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.home-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.home-option:hover::before {
    opacity: 1;
}

.home-option.admin-option:hover {
    border-color: var(--color-primary);
}

.home-option.oauth-option:hover {
    border-color: var(--color-accent-purple);
}

.option-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.home-option h2 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
    font-family: var(--font-family-base);
}

.home-option p {
    font-size: var(--font-size-base);
    color: var(--color-text-tertiary);
    line-height: var(--line-height-relaxed);
    position: relative;
    z-index: 1;
    font-family: var(--font-family-base);
}

/* Responsive Design */
@media (width <= 768px) {
    #home-welcome-title,
    .home-header h1,
    h1#home-welcome-title,
    .home-header h1.widget-headline-h1,
    #home-welcome-title.widget-headline-h1 {
        font-size: var(--font-size-2xl);
    }
    
    .home-subtitle {
        font-size: var(--font-size-base);
    }
    
    .home-options {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .home-option {
        min-height: 240px;
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .option-icon {
        font-size: var(--font-size-3xl);
    }
    
    .home-option h2 {
        font-size: var(--font-size-xl);
    }
}

