/**
 * Theme1 Banner Countdown Styles
 * Frontend-Stile für den Banner mit Countdown
 */

.wp-block-theme1-banner-countdown {
    position: relative;
    padding: 9rem 0 3rem; /* Deutlich mehr Padding oben für das Wappen */
    border-radius: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

/* Wappen-Logo Styles */
.theme1-banner-logo {
    position: absolute;
    z-index: 5;
    left: 50%; /* Zentriert */
    top: 1rem; /* Weiter oben positioniert */
    transform: translateX(-50%); /* Horizontal zentrieren */
    display: flex;
    justify-content: center;
}

.theme1-wappen-logo {
    width: 100px;
    height: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.theme1-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 2rem; /* Zusätzlicher Abstand nach oben */
}

.theme1-banner-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0; /* Kein zusätzlicher Abstand nach oben, da wir margin-top beim Container haben */
    margin-bottom: 1rem;
    background-color: transparent !important;
    padding: 0 !important;
    color: #ffffff !important;
}

.theme1-banner-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem !important;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.theme1-countdown-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.theme1-countdown-item {
    min-width: 120px;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.theme1-countdown-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.theme1-countdown-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.theme1-countdown-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #d4af37;
}

/* Animation für die Zahlen */
.theme1-countdown-number {
    transition: all 0.3s ease;
}

.theme1-countdown-number.changed {
    animation: numberChange 0.5s ease-in-out;
}

@keyframes numberChange {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    20% {
        transform: translateY(-10px);
        opacity: 0;
    }
    40% {
        transform: translateY(10px);
        opacity: 0;
    }
    60% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Anpassungen */
@media (max-width: 1400px) {
    .theme1-banner-logo {
        top: 1rem;
    }
}

@media (max-width: 1200px) {
    .theme1-banner-logo {
        top: 1rem;
    }
}

@media (max-width: 992px) {
    .wp-block-theme1-banner-countdown {
        padding: 8.5rem 0 3rem;
    }
    
    .theme1-wappen-logo {
        width: 90px;
    }
    
    .theme1-banner-inner {
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .wp-block-theme1-banner-countdown {
        padding: 7.5rem 0 2rem; /* Angepasstes Padding für Tablets */
    }
    
    .theme1-banner-logo {
        top: 1rem;
    }
    
    .theme1-wappen-logo {
        width: 80px;
    }
    
    .theme1-banner-inner {
        padding: 0 1.5rem;
        margin-top: 1rem;
    }
    
    .theme1-banner-title {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .theme1-banner-description {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .theme1-countdown-container {
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .theme1-countdown-item {
        min-width: 100px;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .theme1-countdown-number {
        font-size: 2rem;
        font-weight: 700;
    }
    
    .theme1-countdown-label {
        font-size: 0.875rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .wp-block-theme1-banner-countdown {
        padding: 6.5rem 0 1.5rem; /* Angepasstes Padding für Mobilgeräte */
    }
    
    .theme1-banner-logo {
        top: 0.75rem;
    }
    
    .theme1-wappen-logo {
        width: 70px;
    }
    
    .theme1-banner-inner {
        padding: 0 1.5rem;
        margin-top: 0.75rem;
    }
    
    .theme1-banner-title {
        font-size: 1.75rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .theme1-banner-description {
        font-size: 1rem !important;
        margin-bottom: 1.25rem;
    }
    
    .theme1-countdown-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem; /* Für Scrollbar-Platz */
        margin-top: 1rem;
        -webkit-overflow-scrolling: touch; /* Für glattes Scrollen auf iOS */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .theme1-countdown-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .theme1-countdown-item {
        min-width: 70px;
        flex: 0 0 auto;
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .theme1-countdown-item:hover,
    .theme1-countdown-item:active {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    
    .theme1-countdown-number {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }
    
    .theme1-countdown-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

/* Extra kleine Geräte */
@media (max-width: 360px) {
    .wp-block-theme1-banner-countdown {
        padding: 6rem 0 1.5rem; /* Angepasstes Padding für kleine Mobilgeräte */
    }
    
    .theme1-wappen-logo {
        width: 60px;
    }
    
    .theme1-banner-inner {
        margin-top: 0.5rem;
    }
    
    .theme1-banner-title {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .theme1-banner-description {
        font-size: 1.35rem !important;
        margin-bottom: 1rem;
    }
    
    .theme1-countdown-container {
        gap: 0.35rem;
    }
    
    .theme1-countdown-item {
        min-width: 65px;
        padding: 0.5rem 0.25rem;
    }
    
    .theme1-countdown-number {
        font-size: 1.5rem;
    }
    
    .theme1-countdown-label {
        font-size: 0.7rem;
    }
} 