/* ============================================
   IndoWander Reisen — style.css
   ============================================ */

/* --- Base & Reset --- */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #f4f4f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* --- Hero Gradient --- */
.hero-gradient {
    background: radial-gradient(circle at 50% 0%, #27272a 0%, #09090b 40%);
}

/* --- Glass Effect --- */
.glass {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Card Hover --- */
.card-hover {
    transition: all 150ms ease;
}
.card-hover:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Image Zoom --- */
.img-zoom img {
    transition: transform 700ms ease;
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* --- Text Gradient --- */
.text-gradient {
    background: linear-gradient(to bottom, #f4f4f5, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation Links --- */
.nav-link {
    transition: color 150ms ease;
}
.nav-link:hover {
    color: #ffffff;
}

/* --- Mobile Menu Overlay --- */
.menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Mobile Menu Panel --- */
.menu-panel {
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-panel.active {
    transform: translateX(0);
}

/* --- Fade In Animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tour Card Content Slide --- */
.tour-card-content {
    transform: translateY(16px);
    transition: transform 300ms ease;
}
.tour-card:hover .tour-card-content {
    transform: translateY(0);
}

/* --- Float Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.float-anim {
    animation: float 3s ease-in-out infinite;
}

/* --- Form Styles --- */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #f4f4f5;
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-input::placeholder {
    color: #71717a;
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #f4f4f5;
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-select option {
    background: #18181b;
    color: #f4f4f5;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #f4f4f5;
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    resize: vertical;
    min-height: 100px;
}
.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-textarea::placeholder {
    color: #71717a;
}

/* --- Form Alert Messages --- */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none;
}
.form-alert.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.form-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* --- Spinner --- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(9, 9, 11, 0.3);
    border-top-color: #09090b;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Field Error --- */
.field-error {
    color: #f87171;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}
.field-error.show {
    display: block;
}


/*---STYLE GALERIE.PHP---*/
/* ============================================
   GALLERY STYLES
   ============================================ */

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Masonry-like: bestimmte Karten höher machen */
.gallery-item-tall {
    grid-row: span 2;
}

/* --- Gallery Item --- */
.gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 150ms ease, transform 150ms ease;
}
.gallery-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay bei Hover */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,9,11,0.8) 0%, rgba(9,9,11,0) 50%);
    opacity: 0;
    transition: opacity 300ms ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f4f4f5;
    margin-bottom: 0.25rem;
}
.gallery-overlay-location {
    font-size: 0.6875rem;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Zoom Icon */
.gallery-zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    transform: scale(0.8);
    color: #f4f4f5;
}
.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* --- Filter Tabs --- */
.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}
.filter-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #f4f4f5;
}
.filter-tab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #09090b;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.95);
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a1a1aa;
    transition: all 150ms ease;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.lightbox-info {
    position: absolute;
    bottom: -3.5rem;
    left: 0;
    right: 0;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #a1a1aa;
    transition: all 150ms ease;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.lightbox-prev { left: -4.5rem; }
.lightbox-next { right: -4.5rem; }

@media (max-width: 768px) {
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        background: rgba(0, 0, 0, 0.5);
    }
    .lightbox-close {
        top: -2.5rem;
    }
    .lightbox-info {
        bottom: -2.5rem;
    }
}

/* Counter */
.lightbox-counter {
    font-size: 0.6875rem;
    color: #71717a;
    margin-top: 0.25rem;
}

/* --- Gallery Height Variants --- */
.gallery-h-small  { aspect-ratio: 4/3; }
.gallery-h-medium { aspect-ratio: 3/4; }
.gallery-h-large  { aspect-ratio: 2/3; }
.gallery-h-wide   { aspect-ratio: 16/9; }
.gallery-h-square { aspect-ratio: 1/1; }

@media (max-width: 639px) {
    .gallery-h-small,
    .gallery-h-medium,
    .gallery-h-large,
    .gallery-h-wide,
    .gallery-h-square {
        aspect-ratio: 4/3;
    }
    .gallery-item-tall {
        grid-row: span 1;
    }
}


