/**
 * Theme1 Info-Box2 Styles
 * Frontend-Stile für den Informationsblock mit mehreren Bereichen und Icons
 */

/* Google Fonts einbinden */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');

.wp-block-theme1-info-box2 {
    position: relative;
    margin: 2rem 0;
    overflow: visible;
    padding: 1rem;
}

.theme1-info-box2-inner {
    padding: 0;
}

.theme1-info-box2-title {
    display: none;
}

.theme1-info-box2-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.theme1-info-box2-section {
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 0.5rem;
}

.theme1-info-box2-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.theme1-info-box2-section-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.theme1-info-box2-section-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
}

.theme1-info-box2-section-icon svg {
    width: 100%;
    height: 100%;
}

.theme1-info-box2-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.theme1-info-box2-section-content {
    padding: 1.5rem;
}

.theme1-info-box2-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.theme1-info-box2-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.theme1-info-box2-item-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.theme1-info-box2-item-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Farbvarianten */
.wp-block-theme1-info-box2.has-white-background-color {
    background-color: #ffffff;
}

.wp-block-theme1-info-box2.has-primary-background-color {
    background-color: #1e3a32;
}

.wp-block-theme1-info-box2.has-accent-background-color {
    background-color: #d4af37;
}

.wp-block-theme1-info-box2.has-white-color {
    color: #ffffff;
}

.wp-block-theme1-info-box2.has-primary-color {
    color: #1e3a32;
}

.wp-block-theme1-info-box2.has-accent-color {
    color: #d4af37;
}

.theme1-info-box2-section-icon.has-accent-color svg {
    color: #d4af37;
}

.theme1-info-box2-section-icon.has-primary-color svg {
    color: #1e3a32;
}

.theme1-info-box2-section-icon.has-white-color svg {
    color: #ffffff;
}

.theme1-info-box2-title.has-accent-color {
    color: #d4af37;
}

.theme1-info-box2-title.has-primary-color {
    color: #1e3a32;
}

.theme1-info-box2-title.has-white-color {
    color: #ffffff;
}

/* Glassmorphism-Effekt für weiße Hintergrundfarbe */
.wp-block-theme1-info-box2.has-white-background-color .theme1-info-box2-section {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glassmorphism-Effekt für dunkle Hintergrundfarbe */
.wp-block-theme1-info-box2.has-primary-background-color .theme1-info-box2-section {
    background-color: rgba(30, 58, 50, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .theme1-info-box2-sections {
        grid-template-columns: 1fr;
    }
    
    .theme1-info-box2-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .theme1-info-box2-inner {
        padding: 1.5rem;
    }
    
    .theme1-info-box2-title {
        font-size: 1.75rem;
    }
    
    .theme1-info-box2-section-header {
        padding: 1.1rem;
    }
    
    .theme1-info-box2-section-content {
        padding: 1.1rem;
    }
    
    .theme1-info-box2-section-icon {
        width: 48px;
        height: 48px;
    }
    
    .theme1-info-box2-section-title {
        font-size: 1.2rem;
    }
    
    .theme1-info-box2-item-value {
        font-size: 1.1rem;
    }
}

/* Styles für das Bild in der Verpflegung-Karte */
.theme1-info-box2-section-has-image {
    position: relative;
    padding-bottom: 40px; /* Mehr Platz unten für das Bild */
    overflow: visible !important; /* Wichtig, damit das Bild über die Karte hinausgehen kann */
}

.theme1-info-box2-section-image {
    position: absolute;
    bottom: -15px;
    right: -20px;
    z-index: 5;
    max-width: 140px;
    pointer-events: none; /* Damit Klicks durch das Bild hindurchgehen */
    opacity: 0; /* Startet unsichtbar für die Animation */
    transform: translateY(20px) rotate(-5deg) scale(0.8); /* Startposition für die Animation */
    animation-name: foodImageAppear;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-play-state: paused; /* Animation ist zunächst pausiert */
    will-change: transform, opacity; /* Optimierung für die Animation */
}

/* Animation für das Food-Image */
@keyframes foodImageAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(-5deg) scale(0.8);
    }
    40% {
        opacity: 1;
        transform: translateY(-10px) rotate(8deg) scale(1.1);
    }
    60% {
        transform: translateY(0) rotate(-3deg) scale(0.95);
    }
    80% {
        transform: translateY(-5px) rotate(2deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(5deg) scale(1);
    }
}

/* Klasse, die vom IntersectionObserver hinzugefügt wird, um die Animation zu starten */
.food-image-animate {
    animation-play-state: running !important;
}

.theme1-info-box2-section-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Responsive Anpassungen für das Bild */
@media (max-width: 768px) {
    .theme1-info-box2-section-image {
        max-width: 120px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .theme1-info-box2-section-image {
        max-width: 100px;
        right: -5px;
    }
} 