:root {
    /* Sanftes beruhigendes Farbschema */
    /* Basis: Sanftes Blau-Grün (Teal/Türkis) */
    --primary-color: #5eaaa8;
    --primary-dark: #4a8886;
    --primary-light: #7fc4c2;
    --secondary-color: #9ed9cc;
    --accent-color: #c5b4e3;
    --accent-mint: #b5e7d8;
    
    /* Flächen: Beige / helles Grau */
    --background: #f5f3f0;
    --card-bg: #faf9f7;
    --surface: #ede9e3;
    
    /* Text */
    --text-primary: #4a5568;
    --text-secondary: #718096;
    --border-color: #e4dfd6;
    
    /* Status Colors - in sanften Tönen */
    --success: #9ed9cc;
    --warning: #f4d9b8;
    --error: #f4c3c3;
    --info: #b8d8f4;
    
    --pending: #b8d8f4;
    --approved: #9ed9cc;
    --rejected: #f4c3c3;
    
    /* Sanfte Pastell-Gradients */
    --gradient-primary: linear-gradient(135deg, #5eaaa8 0%, #7fc4c2 100%);
    --gradient-success: linear-gradient(135deg, #9ed9cc 0%, #7fc4c2 100%);
    --gradient-sunset: linear-gradient(135deg, #f4d9b8 0%, #f4c3c3 100%);
    --gradient-ocean: linear-gradient(135deg, #b5e7d8 0%, #7fc4c2 100%);
    --gradient-lavender: linear-gradient(135deg, #c5b4e3 0%, #d4c8ed 100%);
    --gradient-purple: linear-gradient(135deg, #c5b4e3 0%, #e3d4f4 100%);
    
    /* Sanfte Schatten */
    --shadow-xs: 0 1px 2px 0 rgba(94, 170, 168, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(94, 170, 168, 0.08), 0 1px 2px -1px rgba(94, 170, 168, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(94, 170, 168, 0.1), 0 2px 4px -2px rgba(94, 170, 168, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(94, 170, 168, 0.12), 0 4px 6px -4px rgba(94, 170, 168, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(94, 170, 168, 0.12), 0 8px 10px -6px rgba(94, 170, 168, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(94, 170, 168, 0.15);
    
    /* Helper Colors */
}

/* Pulse Animation für wartende Chats */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
    --success-light: #e8f5f1;
    --success-dark: #4a8886;
    --warning-light: #fdf6ec;
    --warning-dark: #c9a572;
    --error-light: #fef2f2;
    --error-dark: #c98787;
    --info-light: #eff6ff;
    --info-dark: #7091c4;
    
    /* Grays - warme Beige-Töne */
    --gray-50: #faf9f7;
    --gray-100: #f5f3f0;
    --gray-200: #ede9e3;
    --gray-300: #ddd7cc;
    --gray-400: #c4bbb0;
    --gray-500: #9a8f82;
    --gray-600: #7a6f64;
    --gray-700: #5a5149;
    --gray-800: #3d3731;
    --gray-900: #2a2520;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-brand i {
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu > li > a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition-base);
    padding: 8px 0;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    transition: var(--transition-base);
}

.nav-dropdown > .dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 2px;
}

.nav-dropdown:hover > .dropdown-toggle {
    color: var(--primary-color);
}

.nav-dropdown:hover > .dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown .dropdown-toggle i {
    font-size: 12px;
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    border: 1px solid var(--gray-200);
    z-index: 1000;
    
    /* Verstecken */
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li {
    padding: 0;
    list-style: none;
    margin: 0;
}

.nav-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-base);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.nav-dropdown .dropdown-menu a::after {
    display: none !important;
    content: none !important;
}

.nav-dropdown .dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.nav-dropdown .dropdown-menu i {
    font-size: 16px;
    opacity: 0.7;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 32px;
    opacity: 0.95;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.hero-message {
    font-size: 22px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-base);
    cursor: default;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge i {
    font-size: 18px;
}

/* ================================
   SECTIONS
   ================================ */
.intro-section, 
.men-section, 
.message-section, 
.depression-section,
.stats-section,
.cta-section,
.help-section {
    margin: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-intro {
    font-size: 22px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ================================
   CARDS & GRIDS
   ================================ */
.intro-grid, 
.stats-grid, 
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.intro-card, 
.stat-card, 
.challenge-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.intro-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.intro-card:hover,
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.intro-card:hover::before,
.stat-card:hover::before {
    transform: scaleX(1);
}

.card-icon, 
.challenge-icon {
    font-size: 56px;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-card h2, 
.challenge-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.intro-card p, 
.challenge-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* Challenge Cards (Special Styling) */
.challenge-card {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.challenge-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.challenge-icon {
    color: white;
    opacity: 0.95;
    -webkit-text-fill-color: white;
}

.challenge-card h3 {
    color: white;
    font-size: 26px;
}

.challenge-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
}

/* ================================
   MESSAGE SECTION
   ================================ */
.message-box {
    background: var(--gradient-primary);
    color: white;
    padding: 60px;
    border-radius: 32px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.message-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.message-box h2 {
    font-size: 42px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-content p {
    font-size: 20px;
    margin-bottom: 28px;
    line-height: 1.9;
    padding-left: 24px;
    border-left: 4px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition-base);
}

.message-content p:hover {
    border-left-color: rgba(255, 255, 255, 0.8);
    padding-left: 32px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    font-weight: 700;
    font-size: 22px;
}

/* ================================
   STATS SECTION
   ================================ */
.stats-section {
    text-align: center;
}

.stats-section h2 {
    font-size: 48px;
    margin-bottom: 60px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.stat-note {
    display: block;
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 12px;
    font-weight: 400;
}

/* Stat Card Color Variants */
.stat-warning .stat-number {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info .stat-number {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-success .stat-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ================================
   DEPRESSION SECTION
   ================================ */
.depression-box {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-base);
}

.depression-box:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.depression-box h2 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 800;
}

.depression-content {
    display: grid;
    gap: 36px;
}

.depression-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: var(--background);
    border-radius: 20px;
    transition: var(--transition-base);
}

.depression-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(8px);
}

.depression-item > i {
    font-size: 32px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 4px;
}

.depression-item h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.depression-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 17px;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-box {
    background: var(--gradient-ocean);
    color: white;
    padding: 80px 60px;
    border-radius: 32px;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-box h2 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 900;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.cta-box p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn {
    background: white;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.cta-box .btn:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-4px) scale(1.05);
}

/* ================================
   HELP SECTION
   ================================ */
.help-box {
    padding: 50px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid var(--error);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

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

.help-box h3 {
    color: var(--error);
    font-size: 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.help-numbers {
    list-style: none;
    font-size: 32px;
    margin: 32px 0;
    font-weight: 800;
}

.help-numbers li {
    margin: 16px 0;
    color: var(--error);
    padding: 12px 24px;
    background: white;
    border-radius: 12px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.help-note {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 28px;
    font-size: 19px;
    font-weight: 500;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 20px 56px;
    font-size: 20px;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ================================
   AUTH PAGES
   ================================ */
.auth-container {
    max-width: 540px;
    margin: 80px auto;
}

.auth-box {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.auth-box h1 {
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 36px;
    font-weight: 800;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 17px;
}

.auth-form {
    margin: 36px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-base);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ================================
   ALERTS
   ================================ */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 20px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--success);
}

/* ================================
   DASHBOARD
   ================================ */
.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.dashboard-header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    font-weight: 800;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.section-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

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

.section-card h2 {
    color: var(--text-primary);
    font-size: 26px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.application-item {
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid;
    transition: var(--transition-base);
}

.application-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.application-item.status-pending {
    background: #eff6ff;
    border-color: var(--pending);
}

.application-item.status-approved {
    background: #f0fdf4;
    border-color: var(--approved);
}

.application-item.status-rejected {
    background: #fef2f2;
    border-color: var(--rejected);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.application-date {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.application-status {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.application-item.status-pending .application-status {
    color: var(--pending);
}

.application-item.status-approved .application-status {
    color: var(--approved);
}

.application-item.status-rejected .application-status {
    color: var(--rejected);
}

.application-details p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.admin-comment {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
}

.admin-comment strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.4;
}

.info-box {
    background: #eff6ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-box i {
    font-size: 28px;
    color: var(--primary-color);
}

/* ================================
   ADMIN PANEL
   ================================ */
.admin-header {
    text-align: center;
    margin-bottom: 60px;
}

.admin-header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    font-weight: 800;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-box {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

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

.stat-box i {
    font-size: 48px;
}

.stat-box.stat-pending i {
    color: var(--pending);
}

.stat-box.stat-approved i {
    color: var(--approved);
}

.stat-box.stat-rejected i {
    color: var(--rejected);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
    font-weight: 500;
}

.admin-applications {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.admin-application-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border-left: 6px solid;
    transition: var(--transition-base);
}

.admin-application-card:hover {
    box-shadow: var(--shadow-xl);
}

.admin-application-card.status-pending {
    border-color: var(--pending);
}

.admin-application-card.status-approved {
    border-color: var(--approved);
}

.admin-application-card.status-rejected {
    border-color: var(--rejected);
}

.application-user-info {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.application-user-info h3 {
    color: var(--text-primary);
    font-size: 26px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.user-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    letter-spacing: 0.3px;
}

.status-badge.status-pending {
    background: var(--pending);
}

.status-badge.status-approved {
    background: var(--approved);
}

.status-badge.status-rejected {
    background: var(--rejected);
}

.application-content {
    display: grid;
    gap: 24px;
    margin-bottom: 28px;
}

.question-block {
    background: var(--background);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition-base);
}

.question-block:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.question-block h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
}

.question-block p {
    color: var(--text-primary);
    line-height: 1.7;
}

.application-actions {
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    background: var(--background);
    transition: var(--transition-base);
}

.admin-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 24px;
    text-align: center;
    margin-top: 120px;
}

.footer p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-note {
    font-style: italic;
    opacity: 0.85;
    font-size: 19px;
    font-weight: 300;
    margin-top: 12px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links span {
    opacity: 0.5;
}

/* ================================
   LIVE STATS SECTION
   ================================ */
.live-stats-section {
    margin: 80px 0;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.live-stat-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.live-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(94,170,168,0.15);
    border-color: #5eaaa8;
}

.live-stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #5eaaa8, #7bc4c2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.live-stat-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5eaaa8, #7bc4c2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.live-stat-label {
    color: #5a5a5a;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-section {
    margin: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(94,170,168,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5eaaa8, #7bc4c2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p {
    color: #5a5a5a;
    line-height: 1.7;
    font-size: 1rem;
}

/* ================================
   LEGAL PAGES
   ================================ */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.legal-page h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 3px solid #5eaaa8;
}

.legal-intro {
    background: linear-gradient(135deg, rgba(94,170,168,0.1), rgba(181,231,216,0.1));
    padding: 24px 28px;
    border-radius: 12px;
    border-left: 4px solid #5eaaa8;
    margin-bottom: 48px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.legal-section {
    margin: 48px 0;
}

.legal-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-section h3 {
    color: #5eaaa8;
    font-size: 1.3rem;
    margin: 24px 0 12px;
    font-weight: 700;
}

.legal-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.legal-section ul li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

.legal-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #5eaaa8;
    font-weight: bold;
    font-size: 1.2rem;
}

.privacy-highlight,
.legal-notice,
.privacy-commitment {
    background: white;
    border: 2px solid #5eaaa8;
    border-radius: 16px;
    padding: 28px;
    margin: 32px 0;
    display: flex;
    gap: 24px;
    align-items: start;
}

.privacy-highlight i,
.legal-notice i,
.privacy-commitment i {
    font-size: 3rem;
    color: #5eaaa8;
    flex-shrink: 0;
}

.legal-notice i {
    color: #f39c12;
}

.legal-back {
    margin-top: 60px;
    text-align: center;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 24px;
    text-align: center;
    margin-top: 120px;
}

.footer p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer-note {
    font-style: italic;
    opacity: 0.85;
    font-size: 19px;
    font-weight: 300;
    margin-top: 12px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 80px 16px 60px;
    }
    
    .hero-content h1 {
        font-size: 40px;
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-message {
        font-size: 18px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: stretch;
    }
    
    .badge {
        justify-content: center;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    /* Dropdown in Mobile Menu */
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
    }
    
    .nav-dropdown .dropdown-menu li a {
        padding: 0.8rem 2rem 0.8rem 3rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    /* Live Stats Mobile */
    .live-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .live-stat-number {
        font-size: 3rem;
    }
    
    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Legal Pages Mobile */
    .legal-page {
        padding: 32px 24px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .privacy-highlight,
    .legal-notice,
    .privacy-commitment {
        flex-direction: column;
        padding: 20px;
    }
    
    .privacy-highlight i,
    .legal-notice i,
    .privacy-commitment i {
        font-size: 2.5rem;
    }
    
    /* Hero CTA Buttons für Mobile */
    .hero-cta {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-cta .cta-button {
        width: 100% !important;
        justify-content: center !important;
        font-size: 1.1rem !important;
        padding: 16px 24px !important;
    }
    
    .nav-menu {
        gap: 20px;
        font-size: 14px;
    }
    
    .intro-grid,
    .stats-grid,
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .message-box,
    .depression-box,
    .cta-box {
        padding: 40px 28px;
    }
    
    .message-box h2,
    .depression-box h2,
    .cta-box h2 {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 36px;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .auth-box {
        padding: 36px 24px;
    }
    
    /* Dashboard & Admin Panel Mobile */
    .dashboard-header h1,
    .admin-header h1 {
        font-size: 32px;
        flex-direction: column;
    }
    
    .dashboard-subtitle,
    .admin-subtitle {
        font-size: 18px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .section-card,
    .admin-application-card {
        padding: 28px 20px;
    }
    
    .section-card h2 {
        font-size: 22px;
        flex-wrap: wrap;
    }
    
    /* Application Cards Mobile */
    .application-item {
        padding: 20px 16px;
    }
    
    .application-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .application-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Admin User Cards Mobile */
    .user-card {
        padding: 20px 16px;
    }
    
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .user-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .status-badge {
        position: static;
        display: inline-block;
        margin-top: 12px;
    }
    
    /* Admin Application Detail Mobile */
    .admin-application-card {
        padding: 24px 16px;
    }
    
    .question-block {
        padding: 16px;
    }
    
    /* Form Elements Mobile */
    .form-group textarea,
    .form-group input[type="text"],
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Verhindere Overflow in Cards */
    .section-card,
    .admin-application-card,
    .user-card,
    .application-item {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-card * {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-message {
        font-size: 16px;
    }
    
    .nav-menu {
        gap: 12px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 17px;
    }
    
    .hero-cta .cta-button {
        font-size: 1rem !important;
        padding: 14px 20px !important;
        gap: 8px !important;
    }
    
    .hero-cta .cta-button i {
        font-size: 1rem;
    }
    
    /* Dashboard & Admin für sehr kleine Screens */
    .dashboard-header h1,
    .admin-header h1 {
        font-size: 28px;
    }
    
    .dashboard-subtitle,
    .admin-subtitle {
        font-size: 16px;
    }
    
    .section-card {
        padding: 20px 16px;
    }
    
    .section-card h2 {
        font-size: 20px;
    }
    
    .application-item,
    .user-card,
    .admin-application-card {
        padding: 16px 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card h3 {
        font-size: 14px;
    }
    
    .stat-card .stat-value {
        font-size: 28px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .admin-comment {
        padding: 12px;
        font-size: 14px;
    }
    
    /* Weitere Overflow-Fixes */
    .application-content,
    .question-block,
    .user-meta,
    .application-meta {
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
