/* ============================================
   BEWERBUNGSMANAGER - MAIN STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Animierte Sterne und Staubkörnchen */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="stars" width="400" height="400" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.8)"/><circle cx="150" cy="80" r="1" fill="rgba(255,255,255,0.6)"/><circle cx="250" cy="120" r="2" fill="rgba(255,255,255,0.9)"/><circle cx="350" cy="60" r="1.2" fill="rgba(255,255,255,0.7)"/><circle cx="80" cy="180" r="0.8" fill="rgba(255,255,255,0.5)"/><circle cx="200" cy="200" r="1.8" fill="rgba(255,255,255,0.8)"/><circle cx="320" cy="180" r="1.1" fill="rgba(255,255,255,0.6)"/><circle cx="120" cy="280" r="1.3" fill="rgba(255,255,255,0.7)"/><circle cx="280" cy="320" r="0.9" fill="rgba(255,255,255,0.5)"/><circle cx="360" cy="280" r="1.6" fill="rgba(255,255,255,0.8)"/><circle cx="40" cy="320" r="1.4" fill="rgba(255,255,255,0.6)"/><circle cx="180" cy="360" r="0.7" fill="rgba(255,255,255,0.4)"/><circle cx="300" cy="40" r="1.7" fill="rgba(255,255,255,0.9)"/><circle cx="60" cy="140" r="1.2" fill="rgba(255,255,255,0.6)"/><circle cx="220" cy="140" r="0.6" fill="rgba(255,255,255,0.3)"/><circle cx="340" cy="220" r="1.5" fill="rgba(255,255,255,0.7)"/><circle cx="100" cy="240" r="1.1" fill="rgba(255,255,255,0.5)"/><circle cx="240" cy="260" r="0.8" fill="rgba(255,255,255,0.4)"/><circle cx="380" cy="140" r="1.3" fill="rgba(255,255,255,0.6)"/><circle cx="20" cy="200" r="1.9" fill="rgba(255,255,255,0.8)"/><circle cx="160" cy="40" r="1.4" fill="rgba(255,255,255,0.7)"/><circle cx="260" cy="80" r="0.5" fill="rgba(255,255,255,0.3)"/><circle cx="380" cy="360" r="1.8" fill="rgba(255,255,255,0.9)"/></pattern></defs><rect width="400" height="400" fill="url(%23stars)"/></svg>');
    opacity: 0.6;
    animation: starsTwinkle 8s ease-in-out infinite, starsFloat 15s linear infinite;
    z-index: 1;
}

/* Animationen für die Sterne */
@keyframes starsTwinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(0.9);
    }
    75% { 
        opacity: 0.9; 
        transform: scale(1.05);
    }
}

@keyframes starsFloat {
    0% { 
        transform: translateY(0px) translateX(0px);
    }
    25% { 
        transform: translateY(-10px) translateX(5px);
    }
    50% { 
        transform: translateY(-5px) translateX(-3px);
    }
    75% { 
        transform: translateY(-15px) translateX(8px);
    }
    100% { 
        transform: translateY(0px) translateX(0px);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: #f6f7fb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    display: block;
    font-size: 2.3rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #1f2937;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 6s ease-in-out infinite;
    box-shadow: var(--shadow-lg);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 20%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card span {
    font-weight: 500;
    font-size: 0.875rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-benefits li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.feature-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================
   WORKFLOW SECTION
   ============================================ */

.workflow-section {
    padding: 6rem 0;
    background: white;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.step-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Mobile Hamburger Button */
.mobile-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Fullscreen */
.mobile-menu-fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s ease;
}

.mobile-menu-fullscreen.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 80px 20px 40px;
    gap: 15px;
}

.mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.mobile-menu-link i {
    width: 24px;
    text-align: center;
}

.mobile-menu-divider {
    width: 100%;
    max-width: 320px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

/* Mobile Auth Button */
.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-auth-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

.mobile-auth-btn.logged-in {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.mobile-lang-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-lang-btn:hover,
.mobile-lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Responsive - Only for OLD navbar style, NOT .navbar-modern */
@media (max-width: 768px) {
    /* Navbar auf Mobile sichtbar machen - only legacy nav */
    .navbar:not(.navbar-modern) {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 10px 15px !important;
        background: rgba(30, 58, 138, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
    }
    
    .navbar:not(.navbar-modern) .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        visibility: visible !important;
    }
    
    .navbar:not(.navbar-modern) .nav-brand {
        display: flex !important;
        visibility: visible !important;
    }
    
    .navbar:not(.navbar-modern) .nav-title {
        display: none !important;
    }
    
    .navbar:not(.navbar-modern) .nav-logo {
        width: 36px !important;
        height: 36px !important;
    }
    
    .navbar:not(.navbar-modern) .mobile-hamburger {
        display: flex !important;
        visibility: visible !important;
    }
    
    .navbar:not(.navbar-modern) .nav-menu,
    .navbar:not(.navbar-modern) .auth-section {
        display: none !important;
    }
}

