/* Custom styles for Fahrradtouren Hamburg */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

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

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

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.pulse-hover:hover {
    animation: pulse 0.3s ease-in-out;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.active {
    max-height: 500px;
}

/* Smooth hover transitions for cards */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Card hover effects */
.tour-card {
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Route map styling */
.route-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #16a34a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

/* Custom gradient backgrounds */
.gradient-green {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
}

.gradient-orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #065f46 0%, #059669 30%, #10b981 60%, #6ee7b7 100%);
}

/* Bike icon animation */
.bike-icon {
    transition: transform 0.3s ease;
}

.bike-icon:hover {
    transform: translateX(5px);
}

/* Route line styling */
.route-line {
    position: relative;
}

.route-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #16a34a 0px,
        #16a34a 10px,
        transparent 10px,
        transparent 15px
    );
    transform: translateY(-50%);
}

/* Category badge styles */
.badge-city {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.badge-regional {
    background: linear-gradient(135deg, #16a34a, #4ade80);
}

.badge-fernfahrt {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

.badge-special {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* Difficulty indicators */
.difficulty-easy {
    color: #22c55e;
}

.difficulty-medium {
    color: #eab308;
}

.difficulty-hard {
    color: #ef4444;
}

/* Distance styling */
.distance-badge {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Print styles */
@media print {
    nav,
    footer,
    button,
    .no-print {
        display: none;
    }
    
    .tour-card {
        break-inside: avoid;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tour-card:hover {
        transform: none;
    }
}

/* Breadcrumb styling */
.breadcrumb-separator::after {
    content: '›';
    margin: 0 8px;
    color: #9ca3af;
}

/* Feature list checkmarks */
.feature-list li {
    position: relative;
    padding-left: 28px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: bold;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #16a34a;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

