/*
 * Desert Sky Wadi Rum - Tailwind Custom CSS
 * Premium "Desert Luxury" Theme
 * Author: lippert-dev.de
 * Version: 3.0
 */

/* ============================================
   CUSTOM PROPERTIES - DESERT LUXURY PALETTE
   ============================================ */
:root {
    /* Primary Colors */
    --gold-primary: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #A68B4B;
    
    /* Neutral Colors */
    --charcoal: #1A1A1A;
    --slate: #2D3436;
    --slate-light: #3D4446;
    
    /* Background Colors */
    --sand-light: #F5F0E8;
    --cream: #FDFCFA;
    --sand-dark: #E8DFD1;
    
    /* Accent Colors */
    --terracotta: #B85C38;
    --terracotta-light: #D4785A;
    
    /* Functional Colors */
    --success: #4A7C59;
    --error: #C24B4B;
    --warning: #D4A84B;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1rem, 4vw, 2rem);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-gold: 0 4px 14px 0 rgb(201 169 98 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

.heading-display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SELECTION & SCROLLBAR
   ============================================ */
::selection {
    background: var(--gold-primary);
    color: var(--charcoal);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================
   ANIMATIONS - KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--gold-primary); }
}

/* ============================================
   ANIMATION UTILITY CLASSES
   ============================================ */
.animate-fade-in {
    animation: fadeIn var(--transition-slow) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-out forwards;
}

/* Elegante, langsame Animationen für Hero */
.animate-elegant-down {
    opacity: 0;
    animation: elegantFadeDown 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-elegant-up {
    opacity: 0;
    animation: elegantFadeUp 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes elegantFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes elegantFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.8s; }

/* Scroll-triggered animations (add .visible via JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: var(--charcoal);
    border-color: var(--gold-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--cream);
    border-color: var(--charcoal);
}

.btn-dark:hover {
    background: var(--slate);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--cream);
    color: var(--charcoal);
    border-color: var(--cream);
}

.btn-light:hover {
    background: var(--sand-light);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.75rem;
    border-radius: var(--radius-full);
}

/* ============================================
   GLASSMORPHISM CARDS
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-gold {
    background: rgba(201, 169, 98, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
    background: var(--cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card-elevated {
    box-shadow: var(--shadow-base);
}

.card-elevated:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-bordered {
    border: 1px solid var(--sand-dark);
}

.card-dark {
    background: var(--charcoal);
    color: var(--cream);
}

.card-gold-accent {
    border-top: 3px solid var(--gold-primary);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: var(--cream);
    border: 1px solid var(--sand-dark);
    border-radius: var(--radius-base);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--slate-light);
}

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-textarea,
.form-dark .form-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--cream);
}

.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-dark .form-label {
    color: var(--sand-light);
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.nav-link {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    overflow-x: hidden;
}

/* Fix für Mobile Overflow durch decorative Elemente */
@media (max-width: 768px) {
    .hero,
    section {
        overflow-x: hidden;
    }
    
    /* Decorative Elemente auf Mobile ausblenden */
    .absolute.-translate-x-1\/2,
    .absolute.translate-x-1\/2,
    [class*="blur-3xl"] {
        display: none !important;
    }
}

.section-dark {
    background: var(--charcoal);
    color: var(--cream);
}

.section-light {
    background: var(--sand-light);
}

.section-cream {
    background: var(--cream);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate);
    line-height: 1.6;
}

.section-dark .section-subtitle {
    color: var(--sand-light);
}

/* ============================================
   CONTAINER & GRID
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1440px;
}

/* ============================================
   IMAGE STYLES
   ============================================ */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-rounded {
    border-radius: var(--radius-lg);
}

.img-rounded-full {
    border-radius: var(--radius-full);
}

.img-gold-border {
    border: 3px solid var(--gold-primary);
}

/* ============================================
   BADGE STYLES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-gold {
    background: var(--gold-light);
    color: var(--charcoal);
}

.badge-dark {
    background: var(--charcoal);
    color: var(--cream);
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ============================================
   DIVIDERS & DECORATIONS
   ============================================ */
.divider {
    height: 1px;
    background: var(--sand-dark);
    border: none;
    margin: 2rem 0;
}

.divider-gold {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--sand-dark);
}

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    border-radius: var(--radius-full);
}

.gold-line-center {
    margin: 1rem auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Text Colors */
.text-gold { color: var(--gold-primary); }
.text-gold-light { color: var(--gold-light); }
.text-charcoal { color: var(--charcoal); }
.text-slate { color: var(--slate); }
.text-cream { color: var(--cream); }
.text-terracotta { color: var(--terracotta); }

/* Background Colors */
.bg-gold { background-color: var(--gold-primary); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-slate { background-color: var(--slate); }
.bg-cream { background-color: var(--cream); }
.bg-sand { background-color: var(--sand-light); }

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-gold:hover {
    color: var(--gold-primary);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.4);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hide-tablet { display: none !important; }
}

@media (min-width: 1025px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print { display: none !important; }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}

