/* Interactive Assistant Styles - Verbesserte Version */

.interactive-assistant-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 1;
}

.assistant-container {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assistant-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.assistant-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.assistant-title {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.assistant-subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.assistant-content {
    padding: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
}

.welcome-message {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.5s both;
    padding: 20px 0;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.welcome-message h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1.2;
}

.welcome-message p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.option-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    animation: slideInCard 0.6s ease-out both;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.option-card:nth-child(1) { animation-delay: 0.1s; }
.option-card:nth-child(2) { animation-delay: 0.2s; }
.option-card:nth-child(3) { animation-delay: 0.3s; }
.option-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.08), transparent);
    transition: left 0.6s ease;
}

.option-card:hover::before {
    left: 100%;
}

.option-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #667eea;
    transition: all 0.3s ease;
    display: block;
    line-height: 1;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #667eea;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-card:hover .option-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
    border-color: #5a67d8;
}

.option-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.option-description {
    color: #666;
    font-size: 1em;
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s both;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.nav-button {
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 120px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.nav-button.back {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.nav-button.back:hover {
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0 20px;
    overflow: hidden;
    flex-grow: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Verbesserte Animation-Klassen */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards !important;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards !important;
}

/* Responsive Design - Verbessert */
@media (max-width: 768px) {
    .interactive-assistant-wrapper {
        margin: 10px;
    }
    
    .assistant-container {
        border-radius: 15px;
        margin: 0;
    }

    .assistant-header {
        padding: 25px 20px;
        min-height: 100px;
    }

    .assistant-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 15px;
    }

    .assistant-title {
        font-size: 1.8em;
    }

    .assistant-subtitle {
        font-size: 1.1em;
    }

    .assistant-content {
        padding: 25px 20px;
        min-height: 350px;
    }

    .welcome-message h2 {
        font-size: 1.6em;
    }

    .welcome-message p {
        font-size: 1em;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .option-card {
        padding: 25px 20px;
        min-height: 160px;
    }

    .option-icon {
        font-size: 2.5em;
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
    }

    .option-title {
        font-size: 1.3em;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .nav-button {
        width: 100%;
        max-width: 200px;
    }

    .progress-bar {
        margin: 0;
        order: -1;
    }
}

@media (max-width: 480px) {
    .assistant-header {
        padding: 20px 15px;
    }

    .assistant-avatar {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .assistant-title {
        font-size: 1.6em;
    }

    .assistant-content {
        padding: 20px 15px;
    }

    .option-card {
        padding: 20px 15px;
    }

    .option-icon {
        font-size: 2.2em;
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
}

/* Loading Animation - Verbessert */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation - Verbessert */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #667eea;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #667eea;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #667eea;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #667eea;
    }
}

/* Form Styles für Assistant - Verbessert */
.assistant-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Accessibility - Verbessert */
.assistant-container:focus-within {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.option-card:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode - Verbessert */
@media (prefers-contrast: high) {
    .assistant-container {
        border: 2px solid #000;
        background: #ffffff;
    }
    
    .option-card {
        border: 2px solid #000;
        background: #ffffff;
    }
    
    .option-card:hover {
        border-color: #000;
        background: #f0f0f0;
    }

    .assistant-header {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion - Verbessert */
@media (prefers-reduced-motion: reduce) {
    .assistant-container,
    .option-card,
    .assistant-avatar,
    .assistant-header::before,
    .option-icon,
    .nav-button {
        animation: none !important;
        transition: none !important;
    }
    
    .option-card:hover {
        transform: none !important;
    }

    .fade-out,
    .fade-in {
        animation: none !important;
    }
}

/* Zusätzliche Verbesserungen für bessere Darstellung */
.assistant-container * {
    box-sizing: border-box;
}

.option-card:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

/* Verbesserte Schatten und Tiefe */
.assistant-container {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.option-card {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Verbesserte Typografie */
.assistant-title,
.assistant-subtitle,
.option-title,
.option-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Verbesserte Hover-Effekte */
.option-card:hover .option-title {
    color: #667eea;
}

.option-card:hover .option-description {
    color: #555;
}

/* Verbesserte Focus-States */
.nav-button:focus,
.submit-button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Verbesserte Animation-Performance */
.assistant-container,
.option-card,
.assistant-avatar {
    will-change: transform;
}

/* Verbesserte Container-Größen */
@media (min-width: 1200px) {
    .interactive-assistant-wrapper {
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    .interactive-assistant-wrapper {
        max-width: 1000px;
    }
} 