/* Allgemeiner Kartenstil */
.hfm-card {
    width: 18rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    position: relative;
    border: 1px solid #ccc;
}

/* Kartenbildstil mit Standardbild */
.hfm-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    margin-top: 20px;
    z-index: 1;
    position: relative;
}

/* Standardbild, wenn kein Bild vorhanden ist */
.hfm-card::before {
    content: "";
    background-size: cover;
    background-position: center;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

/* Kartenüberschrift */
.hfm-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Benutzername */
.hfm-text-muted {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.2;
}

/* Symbolstile für Buttons */
.hfm-card-body .hfm-btn-link i {
    font-size: 1.2rem;
    color: black;
    transition: color 0.2s ease-in-out;
}

.hfm-card-body .hfm-btn-link i:hover {
    color: #007bff;
}

/* Header und Footer */
.hfm-card-header-custom {
    font-weight: bold;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.hfm-card-body {
    padding: 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Startet den Inhalt oben */
    text-align: left; /* Richtet den Text linksbündig aus */
}


.hfm-card-footer-custom {
    font-weight: bold;
    padding: 5px;
    margin-top: 0.5rem;
    text-align: center;
}

/* Dropdown-Menü */
.hfm-card .hfm-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    z-index: 2;
}

.hfm-card .hfm-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    right: 0;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 5px;
    white-space: nowrap;
}

.hfm-card .hfm-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    text-align: left;
}

.hfm-card .hfm-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.hfm-card .hfm-dropdown-content a i {
    margin-right: 10px;
}

.hfm-card .hfm-dropdown-content.show {
    display: block;
}

.hfm-card .hfm-dropdown-content.hfm-dropdown-up {
    bottom: 100%;
    top: auto;
}

/* Badge */
.hfm-badge {
    padding: 0.5em;
    font-size: 0.875rem;
    margin-right: 0.25em;
}

/* Reduzierter Zeilenabstand im Card Body */
.hfm-card-body p {
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Kartenstatus */
.hfm-card-einstallen {
    border-left: 5px solid #28a745;
}

.hfm-card-ausstallen {
    border-left: 5px solid #ffc107;
}

.hfm-card-verlust {
    border-left: 5px solid #dc3545;
}

.hfm-card-storniert {
    border-left: 5px solid #dc3545;
}

.hfm-card-aktiv {
    border-left: 5px solid #28a745;
}

.hfm-card-inaktiv {
    border-left: 5px solid #6c757d;
}

/* Tankstatus */
.hfm-vollgetankt-icon, .hfm-nicht-vollgetankt-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hfm-vollgetankt-icon {
    color: #28a745;
}

.hfm-vollgetankt-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}

.hfm-nicht-vollgetankt-icon {
    color: #ffc107;
}

.hfm-nicht-vollgetankt-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffc107;
}
