/* Parallax Layer Portlet Styles */

.opc-parallax-layer {
    min-height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Parallax Container */
.parallax-layer-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
}

/* Basis Layer - Kreismaske */
.parallax-layer-base {
    position: relative !important;
    z-index: 1;
    display: block;
}

.parallax-layer-base .img-circle-mask {
    width: 100%;
    height: auto;
    display: block;
    /* Irregulären Kreis-Effekt durch clip-path */
    /* border-radius: 50%; */
    /* clip-path: ellipse(48% 45% at 50% 50%); */
    clip-path: path('M120,0 C60,0 0,50 0,120 C0,180 40,220 80,240 C60,280 80,320 140,320 C160,360 220,380 280,340 C320,370 380,350 400,300 C440,320 480,280 480,240 C520,220 540,180 500,140 C520,80 480,20 400,20 C380,-20 320,-10 280,20 C240,-10 180,-20 120,0Z');
}

/* Position-Wrapper für die Overlay-Layer */
.parallax-layer-wrapper {
    position: absolute;
    pointer-events: none;
}

.parallax-layer-wrapper .parallax-layer {
    position: relative !important;
    width: auto !important;
    height: auto !important;
}

.parallax-layer-wrapper img {
    display: block;
    height: auto;
    pointer-events: auto;
}

/* Layer 2 - Oben rechts */
.parallax-layer-wrapper-top-right {
    top: 0;
    right: 0;
    z-index: 3;
}

.parallax-layer-wrapper-top-right img {
    max-width: 200px;
}

/* Layer 3 - Unten rechts */
.parallax-layer-wrapper-bottom-right {
    bottom: 0;
    right: 0;
    z-index: 2;
}

.parallax-layer-wrapper-bottom-right img {
    max-width: 250px;
}

/* Layer 4 - Unten links */
.parallax-layer-wrapper-bottom-left {
    bottom: 0;
    left: 0;
    z-index: 2;
}

.parallax-layer-wrapper-bottom-left img {
    max-width: 180px;
}

/* Input Group Styling */
.input-group .input-group-text {
    background-color: #fff;
    border-right: 0;
}

/* Nur mittlere Borders entfernen, wenn Icon vorhanden */
.input-group .input-group-text + .form-control {
    border-left: 0;
}

/* Rechten Border beim Input entfernen wenn Button folgt */
.input-group .form-control {
    border-right: 0;
}

/* Linken Border beim ersten Input behalten */
.input-group .form-control:first-child {
    border-top-left-radius: var(--bs-border-radius, 0.25rem);
    border-bottom-left-radius: var(--bs-border-radius, 0.25rem);
}

.input-group .form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .parallax-layer-hero {
        max-width: 500px !important;
        min-height: 270px;
    }
    
    .parallax-layer-wrapper-top-right img {
        max-width: 150px;
    }
    
    .parallax-layer-wrapper-bottom-right img {
        max-width: 180px;
    }
    
    .parallax-layer-wrapper-bottom-left img {
        max-width: 140px;
    }
}

@media (max-width: 767.98px) {
    .parallax-layer-hero {
        max-width: 400px !important;
        min-height: 270px;
    }
    
    .parallax-layer-wrapper-top-right img {
        max-width: 120px;
    }
    
    .parallax-layer-wrapper-bottom-right img {
        max-width: 150px;
    }
    
    .parallax-layer-wrapper-bottom-left img {
        max-width: 110px;
    }
}

/* Animation für Parallax Layers */
.parallax-layer {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Automatische schwebende Animation auf den Bildern (nicht auf .parallax-layer) */
@keyframes float-gentle {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-10px, -15px);
    }
    66% {
        transform: translate(10px, 10px);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(15px, -10px);
    }
    66% {
        transform: translate(-12px, 12px);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-8px, 15px);
    }
}

/* Animationen auf Bilder anwenden, nicht auf die Layer selbst */
.parallax-layer-base img {
    animation: float-gentle 8s ease-in-out infinite;
    will-change: transform;
}

.parallax-layer-wrapper-top-right img {
    animation: float-reverse 6s ease-in-out infinite 0.5s;
    will-change: transform;
}

.parallax-layer-wrapper-bottom-right img {
    animation: float-slow 7s ease-in-out infinite 1s;
    will-change: transform;
}

/* ========================================
   COUNTDOWN TIMER STYLES - JTL CI
   ======================================== */

/* Countdown Wrapper */
.countdown-wrapper {
    padding: 1rem 0;
}

.countdown-label {
    font-size: 1.125rem;
    color: #435a6b;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Countdown Timer Container */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

/* Individual Countdown Item */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Card with Gradient Border */
.countdown-card {
    position: relative;
    background: linear-gradient(135deg, #05C7D1 0%, #51FBB7 100%);
    padding: 3px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(5, 199, 209, 0.2);
    transition: all 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 199, 209, 0.35);
}

/* Inner Card Background */
.countdown-card::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    z-index: 0;
}

/* Countdown Value */
.countdown-value {
    position: relative;
    z-index: 1;
    font-size: 3rem;
    font-weight: 700;
    color: #435a6b;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
    min-width: 80px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0.5rem 1rem;
}

/* Countdown Unit Label */
.countdown-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Separator with Pulse Animation */
.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #05C7D1;
    animation: pulse-separator 2s ease-in-out infinite;
    margin: 0 -0.25rem;
    align-self: flex-start;
    padding-top: 1.2rem;
}

@keyframes pulse-separator {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

/* Flip Animation */
@keyframes countdown-flip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.countdown-card.countdown-flip {
    animation: countdown-flip 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Expired State – hidden, replaced by LIVE badge */
.countdown-expired .countdown-item,
.countdown-expired .countdown-separator {
    display: none;
}

/* LIVE Badge */
.countdown-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(64deg, #05c7d1 0%, #51fbb7 100%);
    padding: 1.25rem 2.25rem 1.25rem 1.75rem;
    border-radius: 60px;
    box-shadow: 0 4px 20px rgba(5, 199, 209, 0.4);
    animation: live-glow 2s ease-in-out infinite;
}

.countdown-live-dot {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: recording-blink 1.1s ease-in-out infinite;
}

.countdown-live-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

@keyframes recording-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.1);
    }
    50% {
        opacity: 0.08;
        transform: scale(0.82);
        box-shadow: none;
    }
}

@keyframes live-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(5, 199, 209, 0.4);
    }
    50% {
        box-shadow: 0 6px 32px rgba(81, 251, 183, 0.65), 0 0 48px rgba(5, 199, 209, 0.2);
    }
}

/* Shimmer Effect on Hover */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.countdown-card:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    border-radius: 12px;
    animation: shimmer 1.5s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

/* Responsive Countdown */
@media (max-width: 767.98px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-value {
        font-size: 2rem;
        min-width: 60px;
        height: 70px;
        padding: 0.25rem 0.5rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        padding-top: 0.8rem;
    }
    
    .countdown-unit {
        font-size: 0.625rem;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .countdown-value {
        font-size: 1.75rem;
        min-width: 50px;
        height: 60px;
    }
    
    .countdown-separator {
        font-size: 1.25rem;
        padding-top: 0.6rem;
    }
    
    .countdown-unit {
        font-size: 0.5rem;
    }
}

.parallax-layer-wrapper-bottom-left img {
    animation: float-gentle 9s ease-in-out infinite 1.5s;
    will-change: transform;
}
