/* Mein kleiner Tierhof - kindgerechtes, einfaches Design */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: linear-gradient(180deg, #fff7e6 0%, #f0f9ff 100%);
    min-height: 100vh;
    color: #2d2d2d;
}

.app-header {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}

.app-header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #d97706;
    text-shadow: 2px 2px 0 #fff;
}

.subtitle {
    font-size: 1.3rem;
    margin: 0.5rem 0 0 0;
    color: #059669;
}

.menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 4px solid #fbbf24;
    border-radius: 24px;
    padding: 2rem 1rem;
    text-decoration: none;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: 180px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.menu-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-emoji {
    font-size: 4rem;
    line-height: 1;
}

.menu-text {
    text-align: center;
}

.app-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
    font-size: 1.1rem;
}

/* Gemeinsame Seitenstile */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.back-btn {
    background: white;
    border: 3px solid #93c5fd;
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #1e40af;
    font-size: 1.3rem;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.back-btn:active {
    transform: scale(0.98);
}

.page-title {
    font-size: 2rem;
    margin: 0;
    color: #d97706;
    flex: 1;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem 1rem;
}

/* Tiere kennenlernen */
.animal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.animal-btn {
    background: white;
    border: 4px solid #86efac;
    border-radius: 20px;
    padding: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #065f46;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.animal-btn:active {
    transform: scale(0.98);
}

.animal-emoji {
    font-size: 3.5rem;
}

.animal-display {
    background: white;
    border: 4px solid #fbbf24;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.big-animal {
    font-size: 8rem;
    line-height: 1;
    margin: 1rem 0;
}

.animal-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d97706;
    margin: 0.5rem 0;
}

.animal-explain {
    font-size: 1.8rem;
    color: #065f46;
    margin: 1rem 0;
    line-height: 1.4;
}

.action-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.big-btn {
    background: white;
    border: 4px solid #93c5fd;
    border-radius: 18px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e40af;
    min-height: 70px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.big-btn:active {
    transform: scale(0.98);
}

.status {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    min-height: 2rem;
}

/* Zahlen lernen */
.count-display {
    text-align: center;
    background: white;
    border: 4px solid #c7d2fe;
    border-radius: 24px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.count-question {
    font-size: 2rem;
    color: #3730a3;
    margin: 0 0 1.5rem 0;
    font-weight: bold;
}

.animal-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.count-animal {
    font-size: 5rem;
    background: #fef3c7;
    border: 3px solid #fbbf24;
    border-radius: 16px;
    padding: 0.75rem;
    min-width: 90px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.count-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.count-btn {
    background: white;
    border: 4px solid #86efac;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #065f46;
    min-width: 80px;
    min-height: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.count-btn:active {
    transform: scale(0.98);
}

.count-btn.richtig {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.count-btn.falsch {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.count-btn:disabled {
    opacity: 0.85;
    cursor: default;
}

.lob {
    font-size: 2rem;
    color: #059669;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    min-height: 3rem;
}

/* Afrika-Erweiterung */
.afrika-menu {
    max-width: 700px;
}

.tier-bild-btn {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.tier-vorschau {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.tier-bild {
    width: min(320px, 80vw);
    height: auto;
    max-height: 320px;
    margin: 0 auto 1rem auto;
    display: block;
}

.afrika-count {
    margin-top: 2rem;
}

.count-tier-bild {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #fef3c7;
    border: 3px solid #fbbf24;
    border-radius: 16px;
    padding: 0.35rem;
}

.menu {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .app-header h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .menu-btn {
        font-size: 1.5rem;
        min-height: 150px;
    }
    .menu-emoji {
        font-size: 3rem;
    }
    .big-animal {
        font-size: 6rem;
    }
    .animal-name {
        font-size: 2rem;
    }
    .animal-explain {
        font-size: 1.4rem;
    }
    .count-animal {
        font-size: 4rem;
        min-width: 70px;
        min-height: 70px;
    }
}
