/* Christians Freilandeier - Egg Information Page Styles */

:root {
    --primary-color: #8BC34A;
    --primary-light: #c5e1a5;
    --primary-dark: #689f38;
    --secondary-color: #FF9800;
    --secondary-light: #FFCC80;
    --secondary-dark: #F57C00;
}

/* Hero Section */
.hero-section {
    height: 50vh;
    background-image: url('../images/uber_das_ei.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

/* Tab Navigation */
.tab-nav {
    background-color: #f0f8e6;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    background-color: white;
    color: #495057;
    margin: 4px 0;
}

.tab-btn:hover {
    background-color: #e8f5e9;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards & Elements */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.green-icon {
    background-color: #e8f5e9;
    color: var(--primary-dark);
}

.yellow-icon {
    background-color: #fff8e1;
    color: var(--secondary-dark);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
}

/* Neue verbesserte Ei-Code-Darstellung */
.egg-code-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.egg-image {
    position: relative;
    width: 200px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.egg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.egg-image img {
    max-height: 100%;
    width: auto;
}

.egg-image img[src*="egg-stamp.png"]:not([src]) + .egg-fallback {
    display: block;
}

.egg-code-parts {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.code-part {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.code-part:hover {
    background-color: #f0f8e6;
    transform: translateX(5px);
}

.code-highlight {
    font-weight: bold;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.code-info {
    flex: 1;
}

.code-info h5 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.code-info p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive für mittlere Bildschirmgrößen */
@media (min-width: 768px) {
    .egg-code-illustration {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .egg-image {
        flex-shrink: 0;
    }
    
    .egg-code-parts {
        max-width: 500px;
    }
}

/* Freshness Cards */
.freshness-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-circle i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Nutrition Grid */
.nutrient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.nutrient-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nutrient-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    background-color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.rotate-icon {
    transform: rotate(180deg);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn-primary {
    background-color: white;
    color: var(--primary-dark);
}

.cta-btn-primary:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-dark);
}

.cta-btn-outline {
    border: 2px solid white;
    background-color: transparent;
    color: white;
}

.cta-btn-outline:hover {
    background-color: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tables */
.table-rounded {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
/* Responsive Anpassungen */
@media (max-width: 991px) {
    .egg-code-illustration {
        flex-direction: column;
        align-items: center;
    }
    
    .egg-image {
        margin-bottom: 15px;
    }
    
    .egg-code-parts {
        width: 100%;
    }
    
    /* Kleinere Tab-Buttons auf Mobilgeräten */
    .tab-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    /* Noch kleinere Tab-Buttons für sehr kleine Geräte */
    .tab-container {
        gap: 5px;
    }
    
    .tab-btn {
        padding: 5px 10px;
        font-size: 13px;
        flex: 1 0 calc(50% - 5px); /* Zwei Buttons pro Zeile auf sehr kleinen Geräten */
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nutrient-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}