/* Auto Ankauf Formular - Modernes Design */

.aaf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.aaf-container::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: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-10px, -10px) rotate(120deg); }
    66% { transform: translate(10px, -10px) rotate(240deg); }
}

.aaf-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.aaf-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.aaf-header p {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 300;
}

.aaf-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.aaf-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 10px;
    width: 9%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

.aaf-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.aaf-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.aaf-step.active {
    display: block;
}

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

.aaf-step label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.aaf-select,
.aaf-input,
.aaf-textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.aaf-select:hover,
.aaf-input:hover,
.aaf-textarea:hover {
    border-color: #667eea;
    background: white;
}

.aaf-select:focus,
.aaf-input:focus,
.aaf-textarea:focus {
    border-color: #764ba2;
    background: white;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
}

.aaf-select:disabled,
.aaf-input:disabled,
.aaf-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

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

.aaf-field {
    position: relative;
}

.aaf-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.aaf-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

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

.aaf-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1;
}

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

.aaf-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.aaf-btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.aaf-btn-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #333;
    flex: 1;
}

.aaf-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(132, 250, 176, 0.4);
}

.aaf-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.aaf-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    z-index: 100;
}

.aaf-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Message */
.aaf-success {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.aaf-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(360deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.aaf-success h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.aaf-success p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aaf-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .aaf-header h2 {
        font-size: 28px;
    }
    
    .aaf-header p {
        font-size: 16px;
    }
    
    .aaf-form {
        padding: 20px;
    }
    
    .aaf-grid {
        grid-template-columns: 1fr;
    }
    
    .aaf-actions {
        flex-direction: column;
    }
    
    .aaf-btn {
        width: 100%;
    }
}

/* Animations für Hover-Effekte */
.aaf-select option:hover {
    background: #667eea;
    color: white;
}

/* Tooltip für Hilfe */
.aaf-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.aaf-tooltip:before {
    content: '?';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
}

.aaf-tooltip .aaf-tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

.aaf-tooltip:hover .aaf-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Error States */
.aaf-error {
    border-color: #f44336 !important;
    background: #ffebee !important;
}

.aaf-error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}