/* Additional styles for Mietwagen Charlottenburg website */

/* Custom variables */
:root {
    --primary-blue: #1A3263;
    --primary-blue-light: #2E4A7C;
    --accent-red: #DD0000;
    --accent-red-light: #FF3333;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced hover effects */
.fleet-tab {
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.fleet-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
}

.fleet-tab:hover::before {
    transform: scaleX(1);
}

.fleet-tab.active::before {
    transform: scaleX(1);
}

/* Enhanced cards */
.deal-card, .fleet-card, .location-card {
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.deal-card::before, .fleet-card::before, .location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 50, 99, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.deal-card:hover::before, .fleet-card:hover::before, .location-card:hover::before {
    opacity: 1;
}

/* Enhanced buttons */
.cta-button, .booking-button {
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cta-button::before, .booking-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--transition-smooth);
}

.cta-button:hover::before, .booking-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced forms */
.form-input, .form-select {
    transition: all 0.3s var(--transition-smooth);
    border: 2px solid #e5e7eb;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 50, 99, 0.1);
    outline: none;
}

/* Enhanced dividers */
.divider-dots {
    position: relative;
    overflow: hidden;
}

.divider-dots::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-red) 50%, transparent 100%);
    transform: translateY(-50%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateY(-50%) translateX(-100%);
    }
    100% {
        transform: translateY(-50%) translateX(100%);
    }
}

/* Enhanced hero block */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(26, 50, 99, 0.1) 100%);
    pointer-events: none;
}

/* Enhanced reviews */
.review-card {
    transition: all 0.3s var(--transition-smooth);
    transform: translateY(0);
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-avatar {
    transition: all 0.3s var(--transition-smooth);
}

.review-card:hover .review-avatar {
    transform: scale(1.1);
}

/* Enhanced avatar styles for SVG */
.review-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Ensure SVG displays correctly */
    display: block;
    flex-shrink: 0;
}

/* Responsive adjustments for avatars */
@media (max-width: 767px) {
    .review-avatar img {
        width: 56px;
        height: 56px;
    }
    
    .review-avatar {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .review-avatar img {
        width: 48px;
        height: 48px;
    }
    
    .review-avatar {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }
}

/* Enhanced FAQ */
.faq-answer {
    transition: max-height 0.3s var(--transition-smooth);
}

.faq-answer.show {
    animation: slideDown 0.3s var(--transition-smooth);
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

/* Enhanced mobile header */
@media (max-width: 767px) {
    .mobile-menu {
        transform: translateY(-100%);
        transition: transform 0.3s var(--transition-smooth);
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        transition: opacity 0.3s var(--transition-smooth);
    }
    
    .mobile-menu.active::before {
        opacity: 1;
    }
}

/* Enhanced typography */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* Enhanced icons */
.icon-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 50%;
    transition: all 0.3s var(--transition-smooth);
}

.icon-feature:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Enhanced badges */
.badge-discount {
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-red);
    color: white;
    font-weight: bold;
    border-radius: 20px;
    font-size: 14px;
    animation: pulse 2s infinite;
}

/* Enhanced progress bars */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-red));
    border-radius: 2px;
    transition: width 0.5s var(--transition-smooth);
}

/* Enhanced route cards */
.route-card {
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.route-card:hover::before {
    opacity: 0.1;
}

/* Enhanced widget forms */
.widget-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.widget-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced widget buttons */
.widget-button {
    background: linear-gradient(135deg, var(--accent-red), var(--primary-blue));
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.widget-button::after {
    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 var(--transition-smooth);
}

.widget-button:hover::after {
    left: 100%;
}

/* Enhanced sections */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition-smooth);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced service cards */
.service-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
    border: 2px solid transparent;
}

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

/* Enhanced contact cards */
.contact-item {
    transition: all 0.3s var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Enhanced social icons */
.social-icon {
    transition: all 0.3s var(--transition-smooth);
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--accent-red);
}

/* Enhanced navigation links */
.nav-link {
    position: relative;
    transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition-smooth);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Enhanced images */
.responsive-image {
    transition: all 0.3s var(--transition-smooth);
}

.responsive-image:hover {
    transform: scale(1.05);
}

/* Enhanced price tables */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.price-table th,
.price-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.price-table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.price-table tr:hover {
    background: rgba(26, 50, 99, 0.05);
}

/* Enhanced checkboxes */
.checkbox-custom {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.checkbox-custom:checked {
    background: var(--primary-blue);
}

.checkbox-custom::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.checkbox-custom:checked::before {
    opacity: 1;
}

/* Enhanced notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(400px);
    transition: all 0.3s var(--transition-smooth);
}

.notification.show {
    transform: translateX(0);
}

/* Enhanced loaders */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-content {
    visibility: hidden;
    opacity: 0;
    background: var(--text-dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    transition: opacity 0.3s var(--transition-smooth);
    white-space: nowrap;
    font-size: 14px;
}

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

/* Enhanced accordions */
.accordion-item {
    border: 1px solid var(--bg-light);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
}

.accordion-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced sliders */
.swiper-container {
    position: relative;
    overflow: hidden;
}

.swiper-pagination {
    bottom: 20px;
}

.swiper-pagination-bullet {
    background: var(--bg-light);
    opacity: 0.5;
    transition: all 0.3s var(--transition-smooth);
}

.swiper-pagination-bullet-active {
    background: var(--primary-blue);
    opacity: 1;
}

/* Enhanced mobile adaptations */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .fleet-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .fleet-tab {
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .deal-card,
    .fleet-card {
        margin-bottom: 16px;
    }
    
    .widget-form {
        padding: 1rem;
    }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced printing */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    header, footer, .cta-button {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* Enhanced dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --text-dark: #f0f0f0;
        --primary-blue-light: #4a5f7f;
    }
}

/* Feature Cards */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: countUp 1s ease-out;
}

/* Widget Styles */
.widget-field {
    position: relative;
}

.widget-field input {
    transition: all 0.3s ease;
}

.widget-field input:hover {
    background-color: #f8fafc;
}

.widget-car-category {
    transition: all 0.3s ease;
}

.widget-car-category:hover {
    transform: translateY(-2px);
}

.widget-car-category.active div {
    border-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Widget Background */
.widget-bg-image {
    position: relative;
    overflow: hidden;
}

.widget-bg-image img {
    transition: transform 0.3s ease;
}

.widget-bg-image:hover img {
    transform: scale(1.05);
}

.widget-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 50, 99, 0.3), rgba(26, 50, 99, 0.1));
    pointer-events: none;
}