/* ===================================
   Gift Hero Section
   Premium Design für Geschenkgutschein-Seite
   =================================== */

/* Entfernt: Body-Override. Hintergrund wird je Sektion gesetzt wie auf der Homepage. */

.gift-hero {
    position: relative;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 !important;
    background: linear-gradient(135deg,
      #000000 0%,
      #1A0000 25%,
      #3D0000 50%,
      #610000 75%,
      #3D0000 100%
    );
    overflow: hidden !important; /* verhindert jegliches Überlaufen */
}

.gift-hero .container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: clamp(140px, 16vh, 180px) var(--container-padding) clamp(40px, 6vh, 80px);
    overflow: visible;
}

/* Background Animation */
.gift-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.gift-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.gift-particle.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.gift-particle.particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.gift-particle.particle-3 {
    top: 40%;
    left: 50%;
    animation-delay: 10s;
    animation-duration: 28s;
}

.gift-particle.particle-4 {
    top: 80%;
    left: 30%;
    animation-delay: 15s;
    animation-duration: 22s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.gift-gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.gift-gradient-sphere.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: 0;
    right: -120px;
    animation: pulse-sphere 8s ease-in-out infinite;
}

.gift-gradient-sphere.sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 200, 200, 0.1) 0%, transparent 70%);
    bottom: 0;
    left: -120px;
    animation: pulse-sphere 10s ease-in-out infinite reverse;
}

@keyframes pulse-sphere {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Content Container */
.gift-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Text Content */
.gift-hero-text {
    animation: fadeInUp 1s ease-out;
}

/* Premium Badge */
.gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeIn 1.2s ease-out 0.2s both;
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hero Title */
.gift-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gift-hero-title .title-line {
    display: block;
    margin-bottom: 8px;
}

.gift-hero-title .title-highlight {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
}

.gift-hero-title .text-accent {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.gift-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

.gift-hero-subtitle strong {
    color: white;
    font-weight: 600;
}

/* Value Props */
.gift-value-props {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.value-prop svg {
    width: 20px;
    height: 20px;
    stroke: #FFD700;
}

/* CTA Buttons */
.gift-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-gift-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #610000;
    padding: 18px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-gift-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-gift-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-gift-primary:hover svg {
    transform: translateX(4px);
}

.btn-gift-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    padding: 18px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gift-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Visual */
.gift-hero-visual {
    position: relative;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.gift-card-preview {
    position: relative;
    perspective: 1000px;
}

/* Mobile-only Gutschein Preview standardmäßig ausblenden (nur auf Mobile zeigen) */
.gift-hero-mobile-preview {
    display: none;
}

.preview-card {
    width: 500px;
    height: auto;
    box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 0 45px 8px rgba(255,255,255,0.9);
    position: relative;
    transform-style: preserve-3d;
    animation: float-card 6s ease-in-out infinite;
}

.preview-card.floating {
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0) rotateX(5deg) rotateY(-5deg);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    }
}

/* Bildbasierter Gutschein */
.gift-card-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    font-size: 32px;
    animation: float-element 10s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 10px;
    right: 10px;
    animation-delay: 0s;
}

.floating-element.element-2 {
    bottom: 20px;
    left: 20px;
    animation-delay: 3s;
    animation-duration: 12s;
}

.floating-element.element-3 {
    top: 50%;
    right: 20px;
    animation-delay: 6s;
    animation-duration: 8s;
}

@keyframes float-element {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Trust Bar */
.gift-trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 40px);
    margin-top: clamp(40px, 6vh, 64px);
    padding-top: clamp(28px, 4vh, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.5s ease-out 1s both;
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-item strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .gift-hero {
        height: auto !important;
        min-height: 90vh !important;
        padding: 0 !important;
    }

    .gift-hero .container {
        padding: clamp(90px, 10vh, 110px) clamp(40px, 6vw, 72px) clamp(36px, 6vh, 60px);
    }

    .gift-hero-content {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 960px;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .gift-hero-mobile-preview {
        display: none;
    }

    .gift-hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .preview-card {
        width: clamp(340px, 42vw, 420px);
        box-shadow: 0 0 38px 8px rgba(255, 255, 255, 0.9);
    }

    .gift-hero-title {
        font-size: clamp(3rem, 5.6vw, 3.6rem);
        margin-bottom: 20px;
        letter-spacing: -0.015em;
    }

    .gift-hero-title .title-highlight {
        font-size: clamp(3.4rem, 6.4vw, 4.2rem);
    }

    .gift-hero-subtitle {
        font-size: clamp(1.25rem, 2.4vw, 1.5rem);
        margin: 0 auto 28px;
        max-width: 44ch;
        line-height: 1.55;
    }

    .gift-value-props {
        gap: clamp(18px, 5vw, 28px);
        justify-content: center;
        margin-bottom: 28px;
    }

    .value-prop {
        font-size: 16px;
        gap: 10px;
    }

    .value-prop svg {
        width: 24px;
        height: 24px;
    }

    .gift-hero-cta {
        gap: 20px;
        justify-content: center;
        margin-bottom: 32px;
    }

    .btn-gift-primary {
        padding: 20px 40px;
        font-size: 19px;
    }

    .btn-gift-secondary {
        padding: 18px 36px;
        font-size: 17px;
    }

    .gift-trust-bar {
        margin-top: clamp(32px, 5vh, 48px);
        padding-top: clamp(24px, 4vh, 36px);
        gap: clamp(28px, 6vw, 36px);
    }

    .trust-item strong {
        font-size: 30px;
    }

    .trust-item span {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .gift-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .gift-hero-text {
        order: 1;
    }
    
    .gift-hero-visual {
        order: 2;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    .gift-hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .gift-value-props {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .gift-hero-cta {
        justify-content: center;
        margin-bottom: 30px;
    }

}

@media (max-width: 768px) {
    .gift-hero {
        height: auto !important;
        min-height: 100dvh !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        display: flex;
        align-items: stretch;
    }
    
    .gift-hero .container {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: clamp(100px, 15vh, 130px) var(--container-padding) clamp(40px, 10vh, 70px);
        min-height: 100%;
    }
    
    .gift-hero-content {
        padding: 0 12px; /* weniger Seitenabstand für mehr Zeilenbreite */
    }
    
    /* Erlaubt sauberen Umbruch auf Mobile, verhindert horizontales Überlaufen */
    .gift-hero-title .title-line {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    
    /* Passt mobile Titelgrößen an */
    .gift-hero, .gift-hero-content { overflow: visible; }
    .gift-hero .container {
        width: 100%;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    .gift-hero-title {
        font-size: clamp(1.6rem, 5.2vw, 2rem);
        line-height: 1.15;
        max-width: 100%;
        letter-spacing: -0.01em;
    }
    .gift-hero-title .title-highlight {
        white-space: normal;
        font-size: clamp(1.9rem, 7vw, 2.4rem);
        line-height: 1.1;
    }

    /* Mobile: Überschrift visuell dominanter als Untertext */
    .gift-hero-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
        font-weight: 900;
        line-height: 1.1;
    }
    .gift-hero-title .title-highlight {
        font-size: clamp(2.6rem, 8.5vw, 3.2rem);
        font-weight: 900;
    }

    /* Mobile: Untertext zurückhaltender */
    .gift-hero-subtitle {
        font-size: clamp(1.1rem, 3.8vw, 1.4rem);
        line-height: 1.4;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        margin-top: 12px;
        margin-bottom: 32px;
        max-width: 32ch;
        margin-left: auto;
        margin-right: auto;
    }
    
    .preview-card {
        width: 320px;
        height: 200px;
    }

    /* Mobile Gutschein Preview anzeigen und große Visual ausblenden */
    .gift-hero-mobile-preview { display: block; margin: 24px 0 40px; }
    .gift-hero-mobile-preview .gift-card-preview { display: flex; justify-content: center; }
    .gift-hero-mobile-preview .preview-card { width: 240px; height: auto; animation: none; box-shadow: 0 0 28px 5px rgba(255,255,255,0.9); }
    .gift-hero-mobile-preview .gift-card-img { width: 100%; height: auto; }
    /* Rechte große Vorschau auf Mobile ausblenden */
    .gift-hero-visual { display: none; }
    
    .card-content {
        padding: 20px;
    }
    
    .card-value {
        font-size: 28px;
    }
    
    .gift-trust-bar {
        gap: 20px;
    }
    
    .trust-item strong {
        font-size: 24px;
    }
    
    .trust-divider {
        height: 30px;
    }
    
    .btn-gift-primary,
    .btn-gift-secondary {
        width: 100%;
        justify-content: center;
    }
}
