/* ============================================================
   ZuchtApp - Stylesheet
   ============================================================ */

/* Farbpalette */
:root {
    --zucht-gruen:       #2d5a27;
    --zucht-gruen-hell:  #3d7a35;
    --zucht-braun:       #6b4423;
    --zucht-gold:        #c8960c;
    --zucht-hell:        #f8f5f0;
    --zucht-rand:        #d4c9bb;
}

/* Navbar */
.bg-zucht {
    background-color: var(--zucht-gruen) !important;
}

/* Hintergrund */
body {
    background-color: var(--zucht-hell);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Karten */
.card {
    border: 1px solid var(--zucht-rand);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-header {
    background-color: var(--zucht-gruen);
    color: white;
    border-radius: 9px 9px 0 0 !important;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--zucht-gruen);
    border-color: var(--zucht-gruen);
}
.btn-primary:hover {
    background-color: var(--zucht-gruen-hell);
    border-color: var(--zucht-gruen-hell);
}

/* Dashboard Kacheln */
.stat-kachel {
    border-radius: 12px;
    padding: 1.2rem;
    color: white;
    text-align: center;
    transition: transform 0.2s;
}
.stat-kachel:hover {
    transform: translateY(-3px);
}
.stat-kachel .zahl {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.stat-kachel .label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
}
.kachel-gruen  { background: linear-gradient(135deg, #2d5a27, #4a9e3f); }
.kachel-braun  { background: linear-gradient(135deg, #6b4423, #a0622d); }
.kachel-gold   { background: linear-gradient(135deg, #c8960c, #e5b224); }
.kachel-blau   { background: linear-gradient(135deg, #1a5276, #2e86c1); }
.kachel-rot    { background: linear-gradient(135deg, #922b21, #e74c3c); }

/* Tier-Karte */
.tier-karte img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.tier-karte .tier-placeholder {
    width: 100%;
    height: 160px;
    background: #e9e4dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 8px 8px 0 0;
}

/* Status-Badges */
.badge-aktiv     { background-color: #2d5a27; }
.badge-verendet  { background-color: #922b21; }
.badge-verkauft  { background-color: #6b4423; }

/* Legeliste Tabelle */
.legeliste-zahl {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--zucht-gruen);
}

/* Formular-Verbesserungen */
.form-label {
    font-weight: 500;
    color: #3d3d3d;
}
.required::after {
    content: ' *';
    color: #e74c3c;
}

/* Ahnentafel */
.stammbaum {
    overflow-x: auto;
    font-size: 0.85rem;
}
.stammbaum-tier {
    border: 2px solid var(--zucht-gruen);
    border-radius: 8px;
    padding: 8px 12px;
    background: white;
    min-width: 160px;
    text-align: center;
}
.stammbaum-tier.hahn { border-color: #1a5276; }
.stammbaum-tier.henne { border-color: #922b21; }

/* Mobile Optimierungen */
@media (max-width: 768px) {
    .stat-kachel .zahl { font-size: 1.8rem; }
    .container-fluid { padding-left: 10px; padding-right: 10px; }
    .card-body { padding: 12px; }
    .table-responsive { font-size: 0.85rem; }

    /* Untere Navigation für Mobile */
    .mobile-bottom-nav {
        display: flex !important;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--zucht-rand);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 0.7rem;
    padding: 4px 0;
}
.mobile-bottom-nav a.aktiv,
.mobile-bottom-nav a:hover { color: var(--zucht-gruen); }
.mobile-bottom-nav i { display: block; font-size: 1.4rem; }

/* Abstand für Mobile Bottom Nav */
@media (max-width: 768px) {
    body { padding-bottom: 70px; }
}

/* ============================================================
   Ausstellungen & Paarungen
   ============================================================ */

/* Prädikat-Badges größer auf Karten */
.praedikat-v  { background: #f39c12; color: #fff; }
.praedikat-hv { background: #2980b9; color: #fff; }
.praedikat-sg { background: #27ae60; color: #fff; }
.praedikat-g  { background: #7f8c8d; color: #fff; }
.praedikat-b  { background: #c0392b; color: #fff; }

/* Paarungskarte Henne-Tags */
.henne-tag {
    display: inline-block;
    background: #f0ebe3;
    border: 1px solid var(--zucht-rand);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: var(--zucht-dunkel);
    text-decoration: none;
}
.henne-tag:hover { background: var(--zucht-hell); }

/* Stammbaum-Tiere */
.stammbaum-tier {
    border-radius: 6px;
    padding: 6px 10px;
    transition: background 0.15s;
}
.stammbaum-tier.hahn  { border-color: #2980b9 !important; background: #ebf5fb; }
.stammbaum-tier.henne { border-color: #e74c3c !important; background: #fdedec; }

/* Legeliste Zahl groß */
.legeliste-zahl {
    display: inline-block;
    background: var(--zucht-gruen);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Profil Passwort-Stärke */
#pw_staerke_bar { border-radius: 4px; }

/* Admin-Tabellen */
.table-admin td { vertical-align: middle; }

/* Bottom-Nav aktiv */
.bottom-nav-item.aktiv i { color: var(--zucht-gruen); }

/* Required Label */
.required::after {
    content: ' *';
    color: #dc3545;
}

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card { animation: slideIn 0.15s ease; }
