/* Decoart Slideshow Specific Styles */

body {
    overflow: auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 300;
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    z-index: 250;
    padding: 15px var(--spacing);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../images/paper_background.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 140px 20px 25px 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1170px;
    width: 100%;
    align-items: start;
    margin-top: 2px;
}

/* Left Side - Text */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 20px;
    height: 100%;
}

.hero-left h1 {
    font-family: 'Helvetica', sans-serif;
    font-size: 90px;
    font-weight: 500;
    color: #009fe3;
    margin: 0 0 40px 0;
    letter-spacing: 0px;
    line-height: 0.85;
    padding-top: 20px;
}

/* Right Side - Poster */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.poster {
    background: #ffe00c;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/4;
    position: relative;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    mix-blend-mode: multiply;
}

.poster-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.poster-title {
    font-family: 'Helvetica', sans-serif;
    font-size: 90px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -1px;
}

.poster-right-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: 185px;
}

.poster-quotes {
    display: flex;
    gap: 10px;
}

.poster-quotes img {
    width: 40px;
    height: auto;
}

.poster-center {
    flex: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle-cap {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.poster-tagline-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.poster-tagline {
    font-family: 'Helvetica', sans-serif;
    font-size: 35px;
    font-weight: 500;
    color: #009fe3;
    margin: 0;
    line-height: 1.1;
    text-align: left;
}

.tagline-with-icon {
    position: relative;
    display: inline;
}

.quote-inline-left {
    width: 55px;
    height: auto;
    position: absolute;
    left: -65px;
    top: 50%;
    transform: translateY(-50%);
}

.quote-inline-bottom {
    width: 55px;
    height: auto;
    align-self: flex-end;
    margin-top: 8px;
}

.poster-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.poster-thumbs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.poster-thumbs img {
    width: 45px;
    height: auto;
    transform: rotate(180deg);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 400px;
    padding-left: 5px;
}

.btn {
    padding: 12px 28px;
    font-family: 'GroteskMedium', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 300ms ease;
    display: inline-block;
}

.btn-primary {
    background: #009fe3;
    color: #ffffff;
    border-color: #009fe3;
}

.btn-primary:hover {
    background: #007ab8;
    border-color: #007ab8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: #009fe3;
    border-color: #009fe3;
}

.btn-secondary:hover {
    background: #009fe3;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: #009fe3;
    border-color: #009fe3;
}

.btn-tertiary:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Content Blocks (Upcycling)
   ======================================== */

.upcycling-content-block {
    background: url('../images/paper_background.jpg') center center / cover no-repeat;
    padding: 80px 20px;
    position: relative;
}

.content-block-inner {
    max-width: 1170px;
    margin: 0 auto;
    display: grid;
    gap: 60px;
    align-items: center;
}

/* Bild links: Bild-Spalte schmaler (80%), Text-Spalte breiter */
.upcycling-content-block.position-left .content-block-inner {
    grid-template-columns: 0.8fr 1fr;
}

/* Bild rechts: Text-Spalte breiter, Bild-Spalte schmaler (80%) */
.upcycling-content-block.position-right .content-block-inner {
    grid-template-columns: 1fr 0.8fr;
}

.content-block-text {
    padding: 0;
}

.content-block-text h2 {
    font-family: 'Helvetica', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #000000;
    margin: 0 0 30px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
}

.content-text p {
    margin: 0 0 20px 0;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-block-image {
    position: relative;
    overflow: hidden;
    display: flex;
}

/* Bild links: an der linken Außenkante aligned */
.upcycling-content-block.position-left .content-block-image {
    justify-content: flex-start;
}

/* Bild rechts: an der rechten Außenkante aligned */
.upcycling-content-block.position-right .content-block-image {
    justify-content: flex-end;
}

.content-block-image img {
    width: 80%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Responsive für Content Blocks */
@media (max-width: 968px) {
    .upcycling-content-block {
        padding: 60px 20px;
    }
    
    .content-block-inner,
    .upcycling-content-block.position-left .content-block-inner,
    .upcycling-content-block.position-right .content-block-inner {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    /* Bild immer oben auf Mobile */
    .upcycling-content-block.position-left .content-block-image,
    .upcycling-content-block.position-right .content-block-image {
        order: -1;
        justify-content: center;
    }
    
    .content-block-image img {
        margin: 0 auto;
    }
    
    .content-block-text h2 {
        font-size: 36px;
    }
    
    .content-block-text {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .upcycling-content-block {
        padding: 40px 15px;
    }
    
    .content-block-inner {
        gap: 30px;
    }
    
    .content-block-text h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .content-text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .content-block-text {
        padding: 0;
    }
}

/* ======================================== */

/* Layered Slideshow */
.layered-slideshow-section {
    background: url('../images/paper_background.jpg') center / cover no-repeat;
    padding: 80px 20px;
}

.layered-slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: visible;
}

.layer-posters {
    overflow: hidden;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.layer-wall {
    z-index: 1;
}

.layer-posters {
    z-index: 2;
}

.poster-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 600ms ease-in-out;
    transform: translateX(100%);
}

/* Aktiv: In der Mitte */
.poster-slide.poster-active {
    transform: translateX(0);
}

/* Links außerhalb */
.poster-slide.poster-hidden-left {
    transform: translateX(-100%);
}

/* Rechts außerhalb */
.poster-slide.poster-hidden-right {
    transform: translateX(100%);
}

.layer-person {
    z-index: 3;
    pointer-events: none;
    left: auto;
    right: 0;
    width: 30%;
    height: 70%;
    bottom: 0;
    top: auto;
}

.layered-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.layered-nav:hover {
    background: white;
    border-color: #000;
    transform: translateY(-50%) scale(1.1);
}

.layered-nav svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.layered-prev {
    left: -70px;
}

.layered-next {
    right: -70px;
}

@media (max-width: 968px) {
    .layer-person {
        display: none;
    }
    
    .layered-slideshow-container {
        aspect-ratio: 4 / 3;
    }
    
    .layered-slideshow-section {
        padding: 60px 20px;
    }
    
    /* Buttons auf Mobile ausblenden (Swipe stattdessen) */
    .layered-nav {
        display: none;
    }
}

@media (max-width: 600px) {
    .layered-slideshow-section {
        padding: 40px 15px;
    }
    
    .layered-nav {
        width: 40px;
        height: 40px;
    }
    
    .layered-prev {
        left: -50px;
    }
    
    .layered-next {
        right: -50px;
    }
}

/* ======================================== */

/* Slideshow Wrapper */
.slideshow-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

/* Slideshow Container */
.slideshow-container {
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 153px;
    max-width: 1165px;
    margin: 0 auto;
    z-index: 1;
}

    .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 500ms ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: white;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 150px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-text);
    width: 0%;
    transition: width linear;
}

/* Thumbnail Navigation */
.thumb-nav {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 90px;
    background: rgba(251, 251, 251, 0.95);
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    z-index: 200;
    overflow-x: auto;
    overflow-y: hidden;
    backdrop-filter: blur(10px);
}

.thumb-container {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    min-width: min-content;
    justify-content: center;
}

.thumb {
    width: 130px;
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumb:hover {
    border-color: var(--color-text-light);
}

.thumb:hover img {
    transform: scale(1.1);
}

.thumb.active {
    border-color: var(--color-text);
}

/* Navigation Arrows */
.nav-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
    pointer-events: none;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.nav-arrow:hover {
    background: white;
    border-color: var(--color-text);
    transform: scale(1.1);
}

.nav-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-grid {
        gap: 40px;
    }
    
    .hero-left h1 {
        font-size: 70px;
    }
    
    .poster-title {
        font-size: 50px;
    }
    
    .poster-tagline {
        font-size: 22px;
    }
    
    .bottle-cap {
        width: 220px;
    }
}

@media (max-width: 968px) {
    .hero-section {
        padding: 140px 20px 100px 20px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-left {
        align-items: center;
        text-align: center;
    }
    
    .hero-left h1 {
        font-size: 60px;
    }
    
    .hero-buttons {
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        padding: 16px 30px;
        text-align: center;
    }
    
    .poster {
        max-width: 500px;
    }
    
    .poster-title {
        font-size: 45px;
    }
    
    .poster-tagline {
        font-size: 24px;
    }
    
    .poster-right-top {
        margin-top: 80px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 120px 15px 80px 15px;
    }
    
    .hero-left h1 {
        font-size: 50px;
    }
    
    .poster {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .poster-title {
        font-size: 35px;
    }
    
    .poster-quotes img {
        width: 30px;
    }
    
    .bottle-cap {
        width: 160px;
    }
    
    .poster-tagline {
        font-size: 20px;
    }
    
    .poster-thumbs img {
        width: 35px;
    }
    
    .quote-inline-left,
    .quote-inline-bottom {
        width: 35px;
    }
    
    .quote-inline-left {
        left: -45px;
    }
    
    .poster-right-top {
        margin-top: 60px;
    }
    
    .nav-arrows {
        padding: 0 10px;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .thumb-nav {
        height: 70px;
        bottom: 60px;
    }
    
    .thumb {
        width: 100px;
        height: 50px;
    }
    
    .progress-bar {
        bottom: 130px;
    }
}