/**
 * ==========================================================================
 * MAIN STYLES - Agentur Website
 * ==========================================================================
 * 
 * Enthält alle Basis-Styles die vorher inline waren.
 * Wird zusammen mit premium-upgrade.css geladen.
 * 
 * Stand: Januar 2026
 * ==========================================================================
 */

/* ==========================================================================
   BASIS
   ========================================================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

/* Prevent scroll jumping - ensure sections have proper spacing */
section[id] {
    scroll-margin-top: 100px;
}

/* Disable smooth scroll on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .smooth-scroll,
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   ANIMATIONEN
   ========================================================================== */

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

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

/* Form Step Animations */
.form-step {
    animation: slideIn 0.3s ease-out;
}

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

/* Scroll Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   GLASSMORPHISM
   ========================================================================== */

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   GRADIENT TEXT
   ========================================================================== */

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 1.2s ease-in-out;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Button Hover - verlangsamt */
.btn-modern.bg-gradient-to-r,
.cta-button.bg-gradient-to-r {
    background-size: 200% 200%;
    background-position: 0% 50%;
    transition: background-position 1.5s ease-in-out, transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

.btn-modern.bg-gradient-to-r:hover,
.cta-button.bg-gradient-to-r:hover {
    background-position: 100% 50%;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ==========================================================================
   GRADIENT BACKGROUND
   ========================================================================== */

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-modern:hover::before {
    opacity: 1;
}

.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    will-change: transform;
}

.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2px;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #f43f5e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-gradient-border:hover::before {
    opacity: 1;
}

/* ==========================================================================
   BLOBS (Animated Background)
   ========================================================================== */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.project-type-option input[type="radio"],
.timeline-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.project-type-option:hover,
.timeline-option:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: translateX(4px);
    transition: all 0.3s ease;
}

/* ==========================================================================
   CALENDAR / APPOINTMENT BOOKING
   ========================================================================== */

.date-cell {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.date-cell:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: scale(1.1);
}

.date-cell.disabled {
    pointer-events: none;
}

.time-slot {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.time-slot:hover {
    background: linear-gradient(135deg, #f0f9ff, #faf5ff);
    transform: scale(1.05);
}

.time-slot.cursor-not-allowed {
    pointer-events: none;
}

.month-calendar {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar-modern {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0284c7;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Touch Target Sizes */
@media (pointer: coarse) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ==========================================================================
   LAZY LOADING
   ========================================================================== */

img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #111827;
    color: #f9fafb;
}

.dark .bg-white {
    background-color: #1f2937;
}

.dark .text-gray-900 {
    color: #f9fafb;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .border-gray-200 {
    border-color: #374151;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .navbar-modern,
    .blob,
    #cookie-banner,
    .btn-modern,
    nav,
    footer {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
