/* Autoankauf - Custom Styles */

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/autoankauf-1920x750.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.section-image {
    background-size: cover;
    background-position: center;
}

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.hover-lift:hover {
    transform: translateY(-2px);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #1f2937);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom animations for mobile menu */
.rotate-90 {
    transform: rotate(90deg);
}

/* FAQ specific styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    transition: all 0.3s ease;
}

.faq-answer {
    display: none;
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Scroll to top button animation */
#scroll-top {
    animation: fadeInUp 0.3s ease;
}

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

/* Scroll down indicator improvements */
.scroll-indicator {
    z-index: 10;
}

/* Ensure hero section has proper spacing on mobile */
@media (max-width: 768px) {
    .hero-bg {
        min-height: 100vh;
        padding-top: 8rem !important; /* Account for fixed header height */
        padding-bottom: 3rem;
    }

    .hero-features {
        margin-bottom: 3rem;
    }
}

/* Enhanced mobile padding for smartphones */
@media (max-width: 640px) {
    .hero-bg {
        padding-top: 9rem !important; /* Extra space for mobile header */
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 4rem;
        min-height: 100vh;
    }

    .hero-bg .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-title {
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .hero-bg p {
        padding: 0 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-features > div {
        margin-bottom: 1rem;
    }
}

/* Improved header styling with better contrast */
.header-top {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form input styling improvements */
.form-step input,
.form-step select,
.form-step textarea {
    background-color: #ffffff !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.form-step input::placeholder,
.form-step textarea::placeholder {
    color: #9ca3af !important;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background-color: #ffffff !important;
    color: #374151 !important;
}

/* Error state styling */
.form-step input.border-red-500,
.form-step select.border-red-500,
.form-step textarea.border-red-500 {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #374151 !important;
}

/* Cookie notice animation */
#cookie-notice {
    transition: transform 0.3s ease;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Header improvements */
.header-top {
    background: #111827 !important; /* Dark gray background */
    width: 100%;
}

/* Header text contrast improvements */
.header-top * {
    color: #f9fafb !important; /* Force white text for all elements */
}

.header-top .text-yellow-300,
.header-top .text-yellow-400 {
    color: #fde047 !important; /* Bright yellow for phone number */
}

.header-top a:hover {
    color: #fef3c7 !important; /* Light yellow on hover */
}

/* Ensure full width header */
header {
    width: 100vw;
    left: 0;
    right: 0;
}

/* Header shadow enhancement */
header.bg-white {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .mobile-menu {
        animation: slideDown 0.3s ease;
    }

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

/* Loading animation */
.loading {
    opacity: 0;
    animation: loading 0.5s ease forwards;
}

@keyframes loading {
    to {
        opacity: 1;
    }
}

/* Responsive text scaling */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1;
    }
}

/* Multi-Step Form Styles */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInStep 0.3s ease-in-out;
}

/* Form highlight effect when scrolled to */
.highlight-form {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

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

.step-indicator {
    transition: all 0.3s ease;
    min-width: 2rem;
    min-height: 2rem;
}

.step-line {
    transition: all 0.3s ease;
    height: 2px;
}

/* Form input focus improvements */
.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile form adjustments */
@media (max-width: 768px) {
    .step-indicator {
        min-width: 1.5rem;
        min-height: 1.5rem;
        font-size: 0.75rem;
    }

    .step-line {
        width: 2rem;
    }
}

/* City Typewriter Animation */
.city-typer {
    display: inline-block;
    position: relative;
    font-weight: inherit;
    color: inherit;
}

.city-typer::after {
    content: '';
    display: none;
}


/* Typewriter effect keyframes */
@keyframes type-text {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}


/* Ensure smooth animation */
.city-typer .typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: type-text 1.5s ease-in-out forwards;
}

/* Optional: Add a slight delay for multiple city elements */
.city-typer:nth-child(2) .typing-text {
    animation-delay: 0.2s;
}

.city-typer:nth-child(3) .typing-text {
    animation-delay: 0.4s;
}

/* System integrity protection styles */
.sys-backup {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.sys-backup.active {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
}

/* Anti-inspection measures */
#dc-info:empty::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 1px;
}

/* Developer console detection styling */
@media screen and (min-width: 0\0
) {
    .sys-backup {
        display: none !important;
    }
}