/*
 * custom.css für Die Wampe
 * Version: 1.4
 * • Avatar-Glow und Hover-Effekt für .goal-avatar hinzugefügt
 * • Inline-Styles vom Avatar-Bild entfernt → jetzt zentral gesteuert
 * • Logo-Hover-Effekt mit zwei Bildern (logo.png → hlogo.png) implementiert
 * Letzte Änderung: Februar 2026
 */

body {
    padding: 20px 0;
    background: #f8f9fa;
}

.container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fett {
    background: #fff0f0 !important;
    color: #c0392b;
    text-align: center;
    font-weight: 600;
}

.schlank,
.gleich {
    background: #f0fff4 !important;
    color: #1a7a3c;
    text-align: center;
    font-weight: 600;
}

th {
    text-align: center;
    vertical-align: middle;
}

/* Tabellen-Header grau */
.wampe-thead th {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #5c636a !important;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.03em;
    padding: 10px 16px;
}

/* Dropdown im Tabellen-Header */
.wampe-thead select {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-size: 13px;
    padding: 4px 8px;
    cursor: pointer;
    width: 100%;
    max-width: 140px;
}

/* Tabellen-Zeilen abwechselnd */
.table tbody tr:nth-child(odd) td {
    background-color: #f8f9fa;
}
.table tbody tr:nth-child(even) td {
    background-color: #ffffff;
}

/* Trend-Farben überschreiben das Zebra-Muster */
.table tbody td.fett {
    background: #fff0f0 !important;
}
.table tbody td.schlank,
.table tbody td.gleich {
    background: #f0fff4 !important;
}

/* Min/Max Label + Werte */
.wampe-label {
    font-weight: 700;
    font-size: 12px;
    color: #adb5bd;
    padding: 12px 16px;
    letter-spacing: 0.03em;
    text-align: center;
    vertical-align: middle;
}

.wampe-val {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    display: block;
    text-align: center;
}

.wampe-date {
    font-size: 13px;
    color: #6c757d;
    display: block;
    text-align: center;
}

/* Goal-Klassen: nur Hintergrund + Text neutralisiert (neues Karten-Design)
   Alles andere (padding, border, border-radius) kommt vom Inline-Style in goal.php */
.goal-darkred,
.goal-red,
.goal-orange,
.goal-yellow,
.goal-success {
    background-color: transparent !important;
    color: inherit !important;
}

.mobile-input .form-control {
    font-size: 2.2rem !important;
    height: 90px !important;
    text-align: center;
}

.mobile-input .btn {
    font-size: 2rem !important;
    padding: 0 40px;
}

.mobile-input .form-label {
    font-size: 1.6rem !important;
}

input[name="weight"] {
    font-weight: bold;
}

/* Login-Seite Animation + Styling */
.login-container {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control:focus {
    border-bottom-color: #28a745 !important;
    box-shadow: none !important;
    outline: none;
}

input[type="image"]:hover {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

/* Mobile-Anpassungen für Goal-Boxen */
@media (max-width: 576px) {
    .goal-box {
        gap: 20px !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .goal-avatar {
        width: 60px !important;
        height: 60px !important;
    }
}

.d-flex.gap-3 {
    justify-content: flex-start;
}

/* ────────────────────────────────────────────────
   Logo – Header (klickbar für Logout + Hover-Effekt)
───────────────────────────────────────────────── */

.logo-container {
    margin-top: 0.5rem;
    position: relative;
    width: 60px;          /* ← an deine Logo-Größe anpassen */
    height: 60px;
    cursor: pointer;
}

.logo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-image,
.logo-hover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.25s ease;
}

.logo-image {
    opacity: 1;
    transform: scale(1);
}

.logo-hover {
    opacity: 0;
    transform: scale(1.05);
}

.logo-link:hover .logo-image {
    opacity: 0;
    transform: scale(0.95);
}

.logo-link:hover .logo-hover {
    opacity: 1;
    transform: scale(1);
}

/* ────────────────────────────────────────────────
   Avatar Glow + Hover in Goal-Boxen
───────────────────────────────────────────────── */

.goal-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
                0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.35s ease;
}

.goal-box:hover .goal-avatar {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1),
                0 0 28px rgba(255, 215, 0, 0.75),
                0 0 45px rgba(255, 165, 0, 0.45);
    transform: scale(1.14);
}

/* Farbige Glow-Varianten je nach Status */
.goal-success:hover .goal-avatar {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1),
                0 0 30px rgba(40, 167, 69, 0.9) !important;
}

.goal-red:hover .goal-avatar,
.goal-darkred:hover .goal-avatar {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1),
                0 0 30px rgba(220, 53, 69, 0.9) !important;
}

.goal-orange:hover .goal-avatar {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1),
                0 0 30px rgba(253, 126, 20, 0.9) !important;
}

.goal-yellow:hover .goal-avatar {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1),
                0 0 32px rgba(255, 193, 7, 0.9) !important;
}

/* Tabellen-Zeilen: Schrift bold bei Hover */
.table tbody tr:hover td,
.table tbody tr:hover td.fett,
.table tbody tr:hover td.schlank,
.table tbody tr:hover td.gleich {
    font-weight: 700 !important;
}
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #5c636a !important;
}
