/* Persönlichkeitsentwicklung Übersicht - Modern Clean Design */

/* CSS Variables */
:root {
    --header-height: 80px;
}

/* Modern Login Button & Dropdown Styles */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-login-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 140px !important;
    justify-content: center !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.nav-login-btn::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;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

.nav-login-btn:hover::before {
    left: 100%;
}

.nav-login-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.nav-login-btn i {
    font-size: 1.1rem !important;
    transition: transform 0.3s ease !important;
}

.nav-login-btn:hover i {
    transform: scale(1.1) !important;
}

/* Modern User Dropdown */
.user-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
    min-width: 300px !important;
    z-index: 1000 !important;
    margin-top: 12px !important;
    overflow: hidden !important;
    animation: dropdownSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: top right !important;
}

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

.user-dropdown-header {
    padding: 20px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.user-avatar-small {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.user-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1/1 !important;
    border-radius: 50% !important;
}

.user-info-small {
    flex: 1 !important;
}

.user-name-small {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    color: white !important;
}

.user-email-small {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.user-dropdown-content {
    padding: 8px !important;
}

.user-dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.user-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    transform: translateX(4px) !important;
}

.user-dropdown-item i {
    font-size: 1.1rem !important;
    width: 20px !important;
    text-align: center !important;
    color: #6b7280 !important;
    transition: color 0.2s ease !important;
}

.user-dropdown-item:hover i {
    color: #6366f1 !important;
}

.user-dropdown-item.logout {
    color: #ef4444 !important;
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

.user-dropdown-item.logout i {
    color: #ef4444 !important;
}

.user-dropdown-item.logout:hover i {
    color: #dc2626 !important;
}

.user-dropdown-divider {
    height: 1px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    margin: 8px 0 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-login-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        min-width: 120px !important;
    }
    
    .user-dropdown {
        min-width: 260px !important;
        right: -10px !important;
    }
    
    .user-dropdown-header {
        padding: 16px !important;
    }
    
    .user-avatar-small {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Force mobile text visibility */
@media (max-width: 768px) {
    .personality-hero .hero-title {
        font-size: 2rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        line-height: 1.3 !important;
        padding: 0 0.5rem !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
}

/* Language Switcher Styles */
.language-switcher {
    margin-left: 1rem;
}

.language-switcher select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switcher select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.language-switcher select option {
    background: #333;
    color: white;
    padding: 0.5rem;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .language-switcher select {
        width: 100%;
        text-align: center;
    }
}

/* Hero Section - Ultra Modern Redesign like Ikigai */
.personality-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #7c3aed 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    color: white !important;
    margin-top: var(--header-height, 80px);
}

/* Mobile Hero Improvements */
@media (max-width: 768px) {
    .personality-hero {
        padding: 4rem 0 3rem 0;
        margin-top: var(--header-height, 80px);
        overflow: visible !important;
    }
    
    .hero-container {
        overflow: visible !important;
        max-width: 100vw !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        max-width: 100%;
        text-align: center;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
        word-wrap: break-word;
    }
}

/* Extra Mobile Optimizations */
@media (max-width: 480px) {
    .personality-hero {
        padding: 3rem 0 2rem 0;
        margin-top: var(--header-height, 80px);
        overflow: visible !important;
    }
    
    .hero-container {
        overflow: visible !important;
        max-width: 100vw !important;
        padding: 0 0.25rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
        max-width: 100%;
        text-align: center;
        padding: 0 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        width: 100% !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
        max-width: 100%;
        word-wrap: break-word;
        padding: 0 1rem;
    }
}

/* Ultra Small Mobile Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
        padding: 0 0.5rem;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* Only break on very small screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.2rem;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }
}

/* Wunderschöne Sternen- und Staubkörnchen-Animation */
.personality-hero::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="25" cy="25" r="1" fill="rgba(255,255,255,0.15)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.15)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    animation: grainMove 20s linear infinite;
}

/* Animierte Sterne und Staubkörnchen */
.personality-hero::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;
}

/* 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);
    }
}

@keyframes grainMove {
    0% { 
        transform: translateX(0px) translateY(0px);
    }
    25% { 
        transform: translateX(2px) translateY(-1px);
    }
    50% { 
        transform: translateX(-1px) translateY(2px);
    }
    75% { 
        transform: translateX(1px) translateY(-2px);
    }
    100% { 
        transform: translateX(0px) translateY(0px);
    }
}

/* Animierte Partikel */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 10%;
    animation: particleFloat1 12s ease-in-out infinite;
}

.particle-2 {
    width: 1px;
    height: 1px;
    top: 30%;
    left: 80%;
    animation: particleFloat2 15s ease-in-out infinite;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 20%;
    animation: particleFloat3 18s ease-in-out infinite;
}

.particle-4 {
    width: 1.5px;
    height: 1.5px;
    top: 40%;
    left: 70%;
    animation: particleFloat4 14s ease-in-out infinite;
}

.particle-5 {
    width: 2.5px;
    height: 2.5px;
    top: 70%;
    left: 60%;
    animation: particleFloat5 16s ease-in-out infinite;
}

.particle-6 {
    width: 1px;
    height: 1px;
    top: 15%;
    left: 50%;
    animation: particleFloat6 13s ease-in-out infinite;
}

.particle-7 {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 30%;
    animation: particleFloat7 17s ease-in-out infinite;
}

.particle-8 {
    width: 1.5px;
    height: 1.5px;
    top: 45%;
    left: 90%;
    animation: particleFloat8 19s ease-in-out infinite;
}

.particle-9 {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 40%;
    animation: particleFloat9 11s ease-in-out infinite;
}

.particle-10 {
    width: 1px;
    height: 1px;
    top: 85%;
    left: 75%;
    animation: particleFloat10 20s ease-in-out infinite;
}

/* Partikel-Animationen */
@keyframes particleFloat1 {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% { 
        opacity: 0.8; 
        transform: translateY(-20px) translateX(10px) scale(1.2);
    }
    50% { 
        opacity: 0.4; 
        transform: translateY(-10px) translateX(-5px) scale(0.8);
    }
    75% { 
        opacity: 0.9; 
        transform: translateY(-30px) translateX(15px) scale(1.1);
    }
}

@keyframes particleFloat2 {
    0%, 100% { 
        opacity: 0.2; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    33% { 
        opacity: 0.7; 
        transform: translateY(-15px) translateX(-8px) scale(1.3);
    }
    66% { 
        opacity: 0.5; 
        transform: translateY(-25px) translateX(12px) scale(0.9);
    }
}

@keyframes particleFloat3 {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    20% { 
        opacity: 0.9; 
        transform: translateY(-25px) translateX(5px) scale(1.4);
    }
    40% { 
        opacity: 0.3; 
        transform: translateY(-5px) translateX(-10px) scale(0.7);
    }
    60% { 
        opacity: 0.8; 
        transform: translateY(-35px) translateX(20px) scale(1.2);
    }
    80% { 
        opacity: 0.6; 
        transform: translateY(-15px) translateX(-3px) scale(1.1);
    }
}

@keyframes particleFloat4 {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(-20px) translateX(-12px) scale(1.2);
    }
}

@keyframes particleFloat5 {
    0%, 100% { 
        opacity: 0.5; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% { 
        opacity: 0.9; 
        transform: translateY(-30px) translateX(8px) scale(1.3);
    }
    75% { 
        opacity: 0.4; 
        transform: translateY(-10px) translateX(-6px) scale(0.8);
    }
}

@keyframes particleFloat6 {
    0%, 100% { 
        opacity: 0.2; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    40% { 
        opacity: 0.7; 
        transform: translateY(-18px) translateX(6px) scale(1.1);
    }
    80% { 
        opacity: 0.4; 
        transform: translateY(-8px) translateX(-4px) scale(0.9);
    }
}

@keyframes particleFloat7 {
    0%, 100% { 
        opacity: 0.4; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    30% { 
        opacity: 0.8; 
        transform: translateY(-22px) translateX(-10px) scale(1.2);
    }
    60% { 
        opacity: 0.3; 
        transform: translateY(-12px) translateX(14px) scale(0.8);
    }
    90% { 
        opacity: 0.6; 
        transform: translateY(-28px) translateX(-2px) scale(1.1);
    }
}

@keyframes particleFloat8 {
    0%, 100% { 
        opacity: 0.3; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% { 
        opacity: 0.9; 
        transform: translateY(-25px) translateX(15px) scale(1.4);
    }
    50% { 
        opacity: 0.4; 
        transform: translateY(-5px) translateX(-8px) scale(0.7);
    }
    75% { 
        opacity: 0.8; 
        transform: translateY(-32px) translateX(3px) scale(1.2);
    }
}

@keyframes particleFloat9 {
    0%, 100% { 
        opacity: 0.5; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    20% { 
        opacity: 0.9; 
        transform: translateY(-20px) translateX(-5px) scale(1.3);
    }
    40% { 
        opacity: 0.3; 
        transform: translateY(-8px) translateX(12px) scale(0.8);
    }
    60% { 
        opacity: 0.8; 
        transform: translateY(-28px) translateX(-3px) scale(1.1);
    }
    80% { 
        opacity: 0.6; 
        transform: translateY(-15px) translateX(8px) scale(1.0);
    }
}

@keyframes particleFloat10 {
    0%, 100% { 
        opacity: 0.2; 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    33% { 
        opacity: 0.7; 
        transform: translateY(-24px) translateX(7px) scale(1.2);
    }
    66% { 
        opacity: 0.4; 
        transform: translateY(-12px) translateX(-9px) scale(0.9);
    }
}

.personality-hero * {
    color: white !important;
    position: relative;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: visible;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    width: 100% !important;
}

.personality-hero .hero-title,
.personality-hero .hero-subtitle,
.personality-hero .btn,
.personality-hero .stat-label,
.personality-hero .stat-number {
    color: white !important;
}

/* Mobile Hero Title */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.personality-hero .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Mobile Hero Subtitle */
@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

.personality-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 400px;
}

.visual-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visual-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.visual-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.visual-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Search and Filter Styles */
.search-filter-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 2rem;
    z-index: 100;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.2rem;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: #f3f4f6;
    color: #374151;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

.filter-tag {
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.filter-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.filter-tag:hover::before {
    left: 100%;
}

.filter-tag:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Method Cards Grid - Improved Spacing */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* Desktop: 2 columns for better readability */
@media (min-width: 1200px) {
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        max-width: 1200px;
    }
}

/* Large Desktop: 3 columns only on very wide screens */
@media (min-width: 1600px) {
    .methods-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        max-width: 1400px;
    }
}

/* Container für bessere Übersicht */
.personality-methods-overview .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Search and Filter Section */
.search-filter-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
}

.filter-tag:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.method-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 650px;
    max-height: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.method-card:hover::before {
    opacity: 1;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.method-card.hidden {
    display: none;
}

.method-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    min-height: 120px;
}

.method-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.method-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.method-icon.ikigai { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.method-icon.values { background: linear-gradient(135deg, #a8e6cf, #7fcdcd); }
.method-icon.strengths { background: linear-gradient(135deg, #ffd93d, #ff6b6b); }
.method-icon.goals { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.method-icon.mindfulness { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.method-icon.eq { background: linear-gradient(135deg, #fd79a8, #e84393); }
.method-icon.habits { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.method-icon.communication { background: linear-gradient(135deg, #81ecec, #00b894); }
.method-icon.time { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.method-icon.gallup { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.method-icon.via { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.method-icon.self { background: linear-gradient(135deg, #fd79a8, #e84393); }
.method-icon.nlp { background: linear-gradient(135deg, #81ecec, #00b894); }
.method-icon.johari { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.method-icon.walt { background: linear-gradient(135deg, #ff7675, #d63031); }
.method-icon.nonviolent { background: linear-gradient(135deg, #a8e6cf, #00b894); }
.method-icon.pillars { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.method-icon.meta { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.method-icon.aek { background: linear-gradient(135deg, #fd79a8, #e84393); }
.method-icon.rubikon { background: linear-gradient(135deg, #81ecec, #00b894); }
.method-icon.systemic { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.method-icon.rafael { background: linear-gradient(135deg, #ff7675, #d63031); }
.method-icon.conflict { background: linear-gradient(135deg, #a8e6cf, #00b894); }
.method-icon.harvard { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.method-icon.circular { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.method-icon.target { background: linear-gradient(135deg, #fd79a8, #e84393); }
.method-icon.solution { background: linear-gradient(135deg, #81ecec, #00b894); }
.method-icon.change { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }
.method-icon.competence { background: linear-gradient(135deg, #ff7675, #d63031); }
.method-icon.moment { background: linear-gradient(135deg, #a8e6cf, #00b894); }
.method-icon.resource { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.method-icon.raisec { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.method-icon.therapy-form-finder { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.method-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    min-height: 2.4rem;
    display: flex;
    align-items: center;
}

.method-info p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
    min-height: auto;
    display: block;
    overflow: visible;
}

.method-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #f1f5f9;
    min-height: 100px;
    align-items: flex-start;
    justify-content: flex-start;
}

.method-tag {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    overflow: visible;
}

.method-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.method-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-height: 140px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    min-width: 80px;
    max-width: 120px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.method-action {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    min-height: 90px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: visible;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

.btn-outline {
    background: white;
    color: #6366f1;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Method Count */
.method-count {
    text-align: center;
    margin: 2rem 0;
    color: #6b7280;
    font-size: 1.1rem;
}

.method-count strong {
    color: #4f46e5;
    font-weight: 700;
}

/* Responsive Design - Modern */
@media (max-width: 1400px) {
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
        margin: 3rem 0;
    }
    
    .method-card {
        margin-bottom: 1.5rem;
        padding: 2rem;
    }
    
    .method-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .method-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .method-features {
        margin-bottom: 2rem;
    }
    
    .method-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
        min-height: auto;
        margin: 2rem 0;
    }
    
    .stat-item {
        width: 100%;
        max-width: none;
        padding: 1.2rem;
    }
    
    .method-tags {
        gap: 0.6rem;
        margin: 1.5rem 0 2rem 0;
        padding: 1rem 0;
        min-height: auto;
    }
    
    .method-action {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .method-features li {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .method-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }
    
    .method-card {
        padding: 1.5rem;
        min-height: 380px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .visual-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .search-filter-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .method-action {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .method-card {
        padding: 1.2rem;
        min-height: 360px;
    }
    
    .method-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .method-icon {
        align-self: center;
    }
    
    .visual-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}


/* AI Coach Chatbot Styles */
.ai-coach-chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ai-coach-chatbot.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.coach-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.coach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.coach-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.chatbot-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 400px;
}

.message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.coach-message .message-avatar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.user-message .message-avatar {
    background: #f3f4f6;
    color: #6b7280;
}

.message-content {
    flex: 1;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-action-btn {
    background: white;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-action-btn:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.05);
}

.chatbot-input-container {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    background: white;
}

.chatbot-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.send-button {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover {
    transform: scale(1.1);
}

.input-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

/* AI Coach Toggle Button */
#aiCoachToggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

#aiCoachToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.4);
}

#aiCoachToggle.hidden {
    display: none;
}

/* Typing Indicator */
.typing-message {
    opacity: 0.8;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f46e5;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
