.hero-section {
    height: 90vh;
    position: relative;
    max-width: 100%;
}

/* Card Stack Container */
.hero-section .card-stack {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Für 3D-Effekt */
}

/* Individual Card - SQUARE 1/1 RATIO */
.hero-section .stack-card {
    position: absolute;
    width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.hero-section .stack-card video { 
    border-radius: 20px;
}

/* Card positions in stack - WALLET STYLE STACKING */
.hero-section .stack-card[data-position="0"] {
    transform: scale(1) translateY(0px) translateZ(0);
    z-index: 5;
    opacity: 1;
}

.hero-section .stack-card[data-position="1"] {
    transform: scale(0.95) translateY(40px) translateZ(-50px);
    z-index: 4;
    opacity: 1;
}

.hero-section .stack-card[data-position="2"] {
    transform: scale(0.9) translateY(80px) translateZ(-100px);
    z-index: 3;
    opacity: 1;
}

.hero-section .stack-card[data-position="3"],
.hero-section .stack-card[data-position="4"] {
    transform: scale(0.85) translateY(100px) translateZ(-150px);
    z-index: 2;
    opacity: 0.7;
}

/* Hidden state for card moving to back */
.hero-section .stack-card.re-stacking {
    z-index: 1;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Card Background */
.hero-section .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Video Background */
.hero-section .card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient Overlay */
.hero-section .card-overlay {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%);
}

/* Card Content */
.hero-section .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem; /* Adjusted for smaller space */
    color: var(--color-white);
    z-index: 2;
}

.hero-section .card-headline {
    font-size: 2rem; 
    color: var(--color-accent);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.hero-section .card-description {
    font-size: 1rem; /* Adjusted for smaller space */
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Swipe Hint Overlay */
.hero-section .swipe-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.hero-section .swipe-hint-overlay.show {
    opacity: 1;
    visibility: visible;
}

.hero-section .swipe-hint-container {
    position: relative;
    top: -10%; /* Position at 60% from top (40% from center) */
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-section .swipe-arrows {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-700);
}

.hero-section .swipe-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-700);
    white-space: nowrap;
}

.hero-section .swipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    animation: slideHint 2s ease-in-out infinite;
}

.hero-section .swipe-arrow-left {
    animation-delay: 0s;
}

.hero-section .swipe-arrow-right {
    animation-delay: 1s;
}

.hero-section .swipe-arrow svg {
    width: 18px;
    height: 18px;
}

@keyframes slideHint {
    0%, 40%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    20% {
        transform: translateX(-5px);
        opacity: 0.8;
    }
}

.hero-section .swipe-arrow-right {
    animation-name: slideHintRight;
}

@keyframes slideHintRight {
    0%, 40%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    20% {
        transform: translateX(5px);
        opacity: 0.8;
    }
}

/* Swipe Indicators */
.hero-section .swipe-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-section .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gray-500);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.hero-section .indicator-dot.active {
    background: var(--color-accent);
    width: 24px;
    border-radius: 4px;
}

/* Placeholder Section */
.hero-section .placeholder-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 640px) {

    .hero-section .stack-card[data-position="1"] {
        transform: scale(0.95) translateY(50px) translateZ(-50px);
        z-index: 4;
        opacity: 1;
    }

    .hero-section .stack-card[data-position="2"] {
        transform: scale(0.9) translateY(100px) translateZ(-100px);
        z-index: 3;
        opacity: 1;
    }
    .hero-section .swipe-indicator {
        display:none;
    }

    .hero-section .card-headline {
        font-size: 1.4rem;
    }

    .hero-section .card-description {
        font-size: 0.9rem;
    }

    .hero-section .stack-card {
        width: 100%;
        aspect-ratio: 9 / 16;
    }
}
