/* ===== Ramadan Countdown Section - MOBILE FIRST - KOMPLETT ===== */
.ramadan-countdown-area {
    background: linear-gradient(135deg, #0f1f47 0%, #1e3c72 30%, #2a5298 70%, #7e22ce 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Animated Background */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Stars Layer */
.stars-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: twinkle 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}

/* Floating Particles - GRÖSSER */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 10px;  /* Von 4px auf 10px erhöht */
    height: 10px; /* Von 4px auf 10px erhöht */
    background: radial-gradient(circle, rgba(255, 215, 0, 0.9), rgba(255, 215, 0, 0.3) 50%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); /* Extra Glow */
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Optional: Noch größere Partikel für größere Bildschirme */
@media (min-width: 992px) {
    .particle {
        width: 14px;
        height: 14px;
    }
}

/* Ramadan Content */
.ramadan-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

/* Moon Container - MIT EIGENEM BILD */
.moon-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.moon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

/* Mond Bild */
.moon-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
    animation: float-moon 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float-moon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Title mit Gradient-Animation */
.ramadan-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(90deg,
            #FFD700 0%,
            #FFA500 20%,
            #FF8C00 40%,
            #FFD700 60%,
            #FFA500 80%,
            #FFD700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 4s ease-in-out infinite;
    display: inline-block;
    text-shadow: none;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.ramadan-subtitle {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.9;
    animation: fade-pulse 3s ease-in-out infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive Sizes */
@media (min-width: 576px) {
    .moon-container {
        width: 180px;
        height: 180px;
        margin: 0 auto 40px;
    }

    .moon-glow {
        width: 240px;
        height: 240px;
    }

    .ramadan-title {
        font-size: 42px;
    }

    .ramadan-subtitle {
        font-size: 18px;
    }
}

@media (min-width: 992px) {
    .moon-container {
        width: 250px;
        height: 250px;
        margin: 0 auto 50px;
    }

    .moon-glow {
        width: 320px;
        height: 320px;
    }

    .ramadan-title {
        font-size: 56px;
    }

    .ramadan-subtitle {
        font-size: 22px;
        margin-bottom: 50px;
    }
}

@media (min-width: 1200px) {
    .ramadan-title {
        font-size: 64px;
    }
}

.title-word {
    display: inline-block;
    animation: title-wave 2s ease-in-out infinite;
}

.title-word:nth-child(1) {
    animation-delay: 0s;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
    margin-left: 10px;
}

@keyframes title-wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


@keyframes fade-pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Countdown Timer - MOBILE FIRST - KORRIGIERT */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 30px;
    width: 100%;
    padding: 0 10px;
}

.countdown-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 12px 6px;
    min-width: 60px;
    flex: 0 0 auto;
    transition: all 0.3s ease;
    animation: float-box 3s ease-in-out infinite;
}

/* Unterschiedliche Delays für wellenförmige Animation */
.countdown-box[data-type="days"] {
    animation-delay: 0s;
}

.countdown-box[data-type="hours"] {
    animation-delay: 0.2s;
}

.countdown-box[data-type="minutes"] {
    animation-delay: 0.4s;
}

.countdown-box[data-type="seconds"] {
    animation-delay: 0.6s;
}

@keyframes float-box {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.countdown-box:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

.countdown-inner {
    position: relative;
    z-index: 2;
}

.countdown-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-box:hover .countdown-glow {
    opacity: 1;
    animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.countdown-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    display: block;
    font-size: 8px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.countdown-separator {
    color: #FFD700;
    font-size: 20px;
    font-weight: 700;
    margin: 0 1px;
    flex-shrink: 0;
    animation: pulse-separator 2s ease-in-out infinite;
}

@keyframes pulse-separator {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}


/* Ramadan Active Phase - MOBILE */
.ramadan-active-phase {
    text-align: center;
    padding: 20px;
}

.fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#fireworks {
    width: 100%;
    height: 100%;
}

.celebration-content {
    position: relative;
    z-index: 2;
}

.mosque-icon {
    margin-bottom: 20px;
    animation: float-mosque 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes float-mosque {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.ramadan-mubarak {
    font-size: 40px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.mubarak-line {
    display: block;
    animation: bounce-in 1s ease-out;
}

.mubarak-line:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes bounce-in {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.ramadan-message {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 30px;
    animation: fade-in-up 1s ease-out 0.6s both;
}

@keyframes fade-in-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Info Cards - MOBILE */
.ramadan-info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    animation: card-slide-in 0.6s ease-out both;
}

.info-card:nth-child(1) {
    animation-delay: 0.8s;
}

.info-card:nth-child(2) {
    animation-delay: 1s;
}

.info-card:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes card-slide-in {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.info-card p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* ===== TABLET (min-width: 576px) ===== */
@media (min-width: 576px) {
    .moon-container {
        width: 180px;
        height: 180px;
        margin: 0 auto 40px;
    }

    .blob-container {
        width: 220px;
        height: 220px;
    }

    .ramadan-title {
        font-size: 42px;
    }

    .ramadan-subtitle {
        font-size: 18px;
    }

    .countdown-timer {
        gap: 8px;
    }

    .countdown-box {
        padding: 16px 12px;
        min-width: 75px;
        border-radius: 12px;
    }

    .countdown-number {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .countdown-separator {
        font-size: 26px;
        margin: 0 3px;
    }

    .ramadan-info-cards {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1;
        max-width: 200px;
        min-width: 150px;
    }
}

/* ===== DESKTOP (min-width: 992px) ===== */
@media (min-width: 992px) {
    .ramadan-countdown-area {
        padding: 100px 0;
    }

    .ramadan-content {
        padding: 40px;
    }

    .moon-container {
        width: 250px;
        height: 250px;
        margin: 0 auto 50px;
    }

    .moon-glow {
        width: 300px;
        height: 300px;
    }

    .blob-container {
        width: 280px;
        height: 280px;
    }

    .ramadan-title {
        font-size: 56px;
    }

    .title-word:nth-child(2) {
        margin-left: 20px;
    }

    .ramadan-subtitle {
        font-size: 22px;
        margin-bottom: 50px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .countdown-box {
        padding: 30px 25px;
        min-width: 120px;
        border-radius: 15px;
    }

    .countdown-number {
        font-size: 52px;
        margin-bottom: 10px;
    }

    .countdown-label {
        font-size: 13px;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 40px;
        margin: 0 5px;
    }

    .ramadan-mubarak {
        font-size: 64px;
    }

    .ramadan-message {
        font-size: 24px;
    }

    .info-card {
        max-width: 250px;
    }

    .info-icon {
        font-size: 42px;
    }

    .info-card p {
        font-size: 16px;
    }
}

/* ===== LARGE DESKTOP (min-width: 1200px) ===== */
@media (min-width: 1200px) {
    .countdown-box {
        padding: 35px 30px;
        min-width: 140px;
    }

    .countdown-number {
        font-size: 60px;
    }

    .countdown-label {
        font-size: 14px;
    }

    .ramadan-title {
        font-size: 64px;
    }
}