/* ==========================================
   GALLERY SLIDER WIDGET - PREMIUM EDITION
   Elegant, luxuriös, Estelle-würdig
   ========================================== */

/* Section Container */
.estelle-gallery-slider-section {
    padding: 100px 20px;
    background: transparent;
    overflow: hidden;
}

.estelle-gallery-slider-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================
   SECTION HEADER - Luxuriös
   ========================================== */
.gallery-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-title {
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #4A3F35;
    margin: 0 0 25px 0;
    font-weight: 400;
    letter-spacing: 1px;
}

.gallery-divider {
    width: 80px;
    height: 1px;
    background: #B8956A;
    margin: 0 auto 30px auto;
}

.gallery-subtitle {
    font-family: 'Questrial', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #6B5D52;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ==========================================
   SLIDER WRAPPER - Mit mehr Raum
   ========================================== */
.gallery-slider-wrapper {
    position: relative;
    margin-bottom: 70px;
    padding: 0 80px;
}

/* Swiper Container */
.gallery-slider-wrapper .swiper {
    width: 100%;
    padding: 20px 0 80px 0;
}

.swiper-wrapper {
    align-items: stretch;
}

/* ==========================================
   SLIDE ITEM - Premium Rahmen
   ========================================== */
.gallery-slide-item {
    height: 100%;
    padding: 0 15px;
    animation: fadeSlideIn 0.6s ease-out backwards;
}

.swiper-slide:nth-child(1) .gallery-slide-item { animation-delay: 0.1s; }
.swiper-slide:nth-child(2) .gallery-slide-item { animation-delay: 0.2s; }
.swiper-slide:nth-child(3) .gallery-slide-item { animation-delay: 0.3s; }

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 
        0 5px 25px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Luxuriöser Gold-Rahmen */
.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: 
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, rgba(184, 149, 106, 0.2), transparent 30%, transparent 70%, rgba(184, 149, 106, 0.2)) border-box;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Dezenter innerer Schatten */
.gallery-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.05);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-image-wrapper:hover::before,
.gallery-image-wrapper:hover::after {
    opacity: 1;
}

.gallery-image-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 60px rgba(184, 149, 106, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98) contrast(1.02);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.03);
}

.gallery-button-wrapper a:focus,
.gallery-button-wrapper a:focus-visible {
    outline: none;
}


/* ==========================================
   NAVIGATION ARROWS - Minimalistisch & Elegant
   ========================================== */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(184, 149, 106, 0.3);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px;
    font-weight: 300;
    color: #B8956A;
    transition: all 0.4s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #B8956A;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(184, 149, 106, 0.2);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: #4A3F35;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

/* ==========================================
   PAGINATION - Zarte Gold-Linien
   ========================================== */
.swiper-pagination {
    bottom: 30px !important;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 40px;
    height: 2px;
    background: rgba(184, 149, 106, 0.25);
    opacity: 1;
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(90deg, transparent, #B8956A, transparent);
    width: 60px;
    height: 2px;
    box-shadow: 0 0 15px rgba(184, 149, 106, 0.3);
}

.swiper-pagination-bullet:hover {
    background: rgba(184, 149, 106, 0.5);
    width: 50px;
}

/* ==========================================
   BUTTON - ESTELLE-LINK STYLE
   Exakt wie "Zum Kontaktformular"
   ========================================== */
.gallery-button-wrapper {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    margin-top: 50px;
}

.gallery-button {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #B8956A;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    font-family: 'Questrial', sans-serif;
    text-decoration: none;
    background: transparent;
    border: none;
}

/* Unterstrich - startet bei 0 */
.gallery-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #B8956A;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: Unterstrich wächst zu 100% */
.gallery-button:hover {
    color: #4A3F35;
}

.gallery-button:hover::after {
    width: 100%;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet - 968px */
@media (max-width: 968px) {
    .estelle-gallery-slider-section {
        padding: 80px 20px;
    }
    
    .gallery-header {
        margin-bottom: 60px;
    }
    
    .gallery-slider-wrapper {
        padding: 0 60px;
        margin-bottom: 60px;
    }
    
    .gallery-image-wrapper {
        height: 450px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 45px;
        height: 45px;
        opacity: 0.8;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }
    
    .swiper-pagination-bullet {
        width: 35px;
    }
    
    .swiper-pagination-bullet-active {
        width: 50px;
    }
}

/* Mobile - 640px */
@media (max-width: 640px) {
    .estelle-gallery-slider-section {
        padding: 60px 15px;
    }
    
    .gallery-header {
        margin-bottom: 50px;
    }
    
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
    }
    
    .gallery-divider {
        width: 60px;
        margin-bottom: 25px;
    }
    
    .gallery-subtitle {
        font-size: 0.95rem;
    }
    
    .gallery-slider-wrapper {
        padding: 0 50px;
        margin-bottom: 50px;
    }
    
    .gallery-slide-item {
        padding: 0 10px;
    }
    
    .gallery-image-wrapper {
        height: 650px; /* Erhöht von 550px auf 650px - richtig hochkant! */
        border-radius: 2px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 12px;
    }
    
    .swiper-button-prev {
        left: 5px;
    }
    
    .swiper-button-next {
        right: 5px;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
        gap: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 30px;
        height: 1.5px;
    }
    
    .swiper-pagination-bullet-active {
        width: 45px;
    }
    
    .gallery-button {
        font-size: 11px;
        letter-spacing: 1.5px;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    .gallery-slider-wrapper {
        padding: 0 40px;
    }
    
    .gallery-image-wrapper {
        height: 600px; /* Erhöht von 500px auf 600px - sehr hochkant! */
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-pagination-bullet {
        width: 25px;
    }
    
    .swiper-pagination-bullet-active {
        width: 40px;
    }
    
    .gallery-button {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
}

/* Landscape Mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .gallery-image-wrapper {
        height: 450px; /* Auch im Landscape höher für Hochformat-Bilder */
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.gallery-button:focus,
.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: 2px solid #B8956A;
    outline-offset: 4px;
}

.swiper-pagination-bullet:focus {
    outline: 2px solid #B8956A;
    outline-offset: 3px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-slide-item,
    .gallery-header,
    .gallery-button-wrapper {
        animation: none;
    }
    
    .gallery-image-wrapper,
    .gallery-image-wrapper img,
    .swiper-button-prev,
    .swiper-button-next,
    .gallery-button,
    .swiper-pagination-bullet {
        transition: none;
    }
}

/* ==========================================
   ELEMENTOR EDITOR
   ========================================== */
.elementor-editor-active .gallery-slide-item {
    animation: none;
}

.elementor-editor-active .gallery-header {
    animation: none;
}

.elementor-editor-active .gallery-button-wrapper {
    animation: none;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none;
    }
    
    .gallery-slider-wrapper {
        padding: 0;
    }
    
    .gallery-button {
        display: none;
    }
}

.estelle-gallery-slider-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-title {
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #4A3F35;
    margin: 0 0 20px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.gallery-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #B8956A, transparent);
    margin: 0 auto 25px auto;
}

.gallery-subtitle {
    font-family: 'Questrial', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #6B5D52;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ==========================================
   SLIDER WRAPPER
   ========================================== */
.gallery-slider-wrapper {
    position: relative;
    margin-bottom: 50px;
    padding: 0 50px;
}

/* Swiper Container */
.gallery-slider-wrapper .swiper {
    width: 100%;
    padding-bottom: 60px;
}

.swiper-wrapper {
    align-items: stretch;
}

/* ==========================================
   SLIDE ITEM
   ========================================== */
.gallery-slide-item {
    height: 100%;
    animation: fadeSlideIn 0.6s ease-out backwards;
}

.swiper-slide:nth-child(1) .gallery-slide-item { animation-delay: 0.1s; }
.swiper-slide:nth-child(2) .gallery-slide-item { animation-delay: 0.2s; }
.swiper-slide:nth-child(3) .gallery-slide-item { animation-delay: 0.3s; }

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(184, 149, 106, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-image-wrapper:hover::before {
    opacity: 1;
}

.gallery-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 70px rgba(184, 149, 106, 0.25);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.08);
}



/* ==========================================
   NAVIGATION ARROWS
   ========================================== */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(184, 149, 106, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    font-weight: 900;
    color: #B8956A;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #B8956A;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(184, 149, 106, 0.4);
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
    color: #FFFFFF;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

/* ==========================================
   PAGINATION
   ========================================== */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #D4C4B0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #B8956A;
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.swiper-pagination-bullet:hover {
    background: #B8956A;
    opacity: 0.8;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet - 968px */
@media (max-width: 968px) {
    .estelle-gallery-slider-section {
        padding: 60px 20px;
    }
    
    .gallery-header {
        margin-bottom: 50px;
    }
    
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-slider-wrapper {
        padding: 0 40px;
        margin-bottom: 40px;
    }
    
    .gallery-image-wrapper {
        height: 400px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 18px;
    }
    
    .gallery-button {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .gallery-button::after {
        bottom: -6px;
        height: 1.5px;
    }
}

/* Mobile - 640px */
@media (max-width: 640px) {
    .estelle-gallery-slider-section {
        padding: 50px 15px;
    }
    
    .gallery-header {
        margin-bottom: 40px;
    }
    
    .gallery-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .gallery-divider {
        width: 80px;
        height: 2px;
        margin-bottom: 20px;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-slider-wrapper {
        padding: 0 30px;
        margin-bottom: 35px;
    }
    
    .gallery-image-wrapper {
        height: 350px;
        border-radius: 12px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
    
    .swiper-button-prev {
        left: -5px;
    }
    
    .swiper-button-next {
        right: -5px;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
    
    .swiper-pagination-bullet-active {
        width: 25px;
    }
    
    .gallery-button {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .gallery-button::after {
        bottom: -5px;
        height: 1.5px;
    }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
    .gallery-slider-wrapper {
        padding: 0 20px;
    }
    
    .gallery-image-wrapper {
        height: 300px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 14px;
    }
    
    .gallery-button {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Landscape Mobile */
@media (max-width: 968px) and (orientation: landscape) {
    .gallery-image-wrapper {
        height: 350px;
    }
}

/* ==========================================
   LOADING STATE
   ========================================== */
.gallery-slide-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   ELEMENTOR EDITOR
   ========================================== */
.elementor-editor-active .gallery-slide-item {
    animation: none;
}

.elementor-editor-active .gallery-header {
    animation: none;
}

.elementor-editor-active .gallery-button-wrapper {
    animation: none;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.gallery-button:focus,
.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: 3px solid #B8956A;
    outline-offset: 3px;
}

.swiper-pagination-bullet:focus {
    outline: 2px solid #B8956A;
    outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-slide-item,
    .gallery-header,
    .gallery-button-wrapper {
        animation: none;
    }
    
    .gallery-image-wrapper,
    .gallery-image-wrapper img,
    .swiper-button-prev,
    .swiper-button-next,
    .gallery-button {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none;
    }
    
    .gallery-slider-wrapper {
        padding: 0;
    }
    
    .gallery-button {
        display: none;
    }
}

/* ==========================================
   GALERIE SPLIT HEADER LAYOUT
   ========================================== */
.galerie-split-header {
    display: flex !important;
    align-items: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 2rem 0;
}

.galerie-split-header .split-quote {
    flex: 1;
    padding-right: 3rem;
    border-right: 1px solid rgba(184,151,90,0.35);
    text-align: right;
}

.galerie-split-header .split-title {
    flex: 1;
    padding-left: 3rem;
    text-align: left;
}

.galerie-split-header .split-label {
    display: block;
    font-size: 0.63rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b8975a;
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.galerie-split-header .split-text {
    font-family: 'Lora', serif !important;
    font-size: clamp(1.2rem, 1.8vw, 1.9rem) !important;
    color: #4A3F35 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.galerie-split-header .split-underline {
    width: 50px;
    height: 2px;
    background: #b8975a;
    margin-top: 1rem;
}

/* Mobile: untereinander */
@media (max-width: 768px) {
    .galerie-split-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .galerie-split-header .split-quote {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(184,151,90,0.35);
        padding-bottom: 1.5rem;
        text-align: center;
    }
    .galerie-split-header .split-title {
        padding-left: 0;
        text-align: center;
    }
    .galerie-split-header .split-underline {
        margin: 1rem auto 0;
    }
}
